DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
adb: absolute debugger

Using the ? and / commands

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?ia
The following command displays the instructions, with no addresses other than the starting address:
   main,5?i
Use 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?x
Local variables are generally at some offset from the address indicated by the ebp register.

Next topic: An example: simple formatting
Previous topic: Using the = command

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003