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

Using the = command

The equal sign (=) command displays a given address in a given format. This is used primarily to display instruction and data addresses in simpler form, or to display the results of arithmetic expressions. For example, the following displays the absolute address of the symbol ``main'' (giving the segment and offset):

   main=A
The following displays (in decimal) the sum of the variable b and the hexadecimal value 0x2000:
   <b+0x2000=D
If a count is given, the same value is repeated that number of times. For example, the following displays the value of ``main'' twice:
   main,2=x
If no address is given, the current address is used instead. This is the same as the following command:

.=

If no format is specified, the previous format, specified for this command, is used. For example, in the following sequence, both ``main'' and ``_start'' are displayed in hexadecimal:

   main=x
   _start=

Next topic: Using the ? and / commands
Previous topic: -1

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