White Paper: Red Hat Crash Utility |
||
![]() |
||
< Prev | Contents | Next > |
![]() |
Command InputUpon a successful session invocation on a dump file or a live kernel, the crash> prompt will appear. Interactive crash commands are gathered using the GNU readline library, taking advantage of its command line history mechanism, and its vi or emacs command line editing modes. Commands may also be issued to crash from a file. Command Line HistoryThe command line history consists of a numbered list of previously-run commands. The full list of commands may be viewed by entering h at any time. For example:
Commands in the history list may be re-run in the following manners
Command Line EditingThe command line editing mode may be set to either vi (the default) or emacs. The mode may set in the following manners, listed in increasing order of precedence:
Given either editing mode, any previously entered command line can be brought back by entering the mode-specific key-stroke(s), the command line edited using the proper mode, and then run by hitting ENTER. Command Line Input from a FileAn input file consisting of a list of commands may be fed to crash in the following manners:
In all of the three cases above, after the list of commands in the file have completed, the crash> prompt will appear and commands may then be entered interactively (unless one of the file commands happens to be the exit command). Numerical ArgumentsNumerical arguments are typically presumed to be decimal unless the argument contains an a, b, c, d, e or f. In those cases, the preceding 0x is not required. For hexadecimal numbers that do not contain one of those 6 characters, the preceding 0x is required. So, for example, a value of 1 gigabyte would have to be expressed as 0x40000000, whereas 3 gigabytes could be expressed as c0000000. It should be noted that several commands will only accept hexadecimal numerical arguments. For example, the rd ("read") command only accepts hexadecimal addresses. Therefore a read from user address of 0x40017000 could be entered as:
|
![]() |
||
< Prev | Contents | Next > |
![]() |