|
|
Use ?
and
/
commands to display the contents of a text or data segment.
The commands have the following form:
[ address ] [, count ] ? [ format ]
[ address ] [, count ] / [ format ]
In the above command lines address is an address with the given segment. count is the number of items to display, and format is the format of the items displayed.
Use the ? command to display instructions in the text segment. For example, the following command displays five instructions starting at the address ``main'', and the address of each instruction displays immediately before it:
main,5?iaThe following command displays the instructions, with no addresses other than the starting address:
main,5?iUse the / command to check the values of variables in a program, especially variables for which no name exists in the program's symbol table. For example, the following command displays the value (in hexadecimal) of a local variable:
<ebp-4?xLocal variables are generally at some offset from the address indicated by the ebp register.