Next | Prev | Up | Top | Contents | Index

Commands to Display Memory

The commands summarized in Table 11-4 are used to display memory or variables.

Commands to Display Memory
CommandExampleOperation
bt [frames]bt 4 Display the calling function, the arguments, and the name of the called function for up to frames stack frames. Most useful after a break or interrupt.
dis range dis geteminor Disassemble and display the instructions over the specified range.
dump [-b|-h|-w] [-o|-d|-x|-c] range dump 0xc0000000Display memory over a specified range. The options -b, -h, and -w specify how memory is grouped, as units of 1, 2, or 4 bytes. The options -o, -d, -x, and -c specify translation into octal, decimal, hex and character.
kp [routine]kp plist Invoke a kernel print routine loaded with the idbg kernel module. If no routine is given, all available names are displayed.
printregs printregs Display all the registers as they were when the debugger was entered.
string range [max]string $v1 0x80Display memory as an ASCII string in quotes. Display stops at the first null byte, or, when max is specified, after at most max bytes.

The display routines available to the kp command are discussed under "Using idbg". The names that idbg accepts as commands are all available under symmon through the kp command.

Use the dump command under symmon. Under idbg, use the hd command for the same purpose.


Next | Prev | Up | Top | Contents | Index