The addr is any expression resulting in or usable as an address. The addr may be replaced with a + (plus sign) which displays the contents of the next address in the default format.
Example addresses are:
|
0xff99 |
An absolute address |
|
main |
Address of a function |
|
main+20 |
Offset from a function address |
|
&errno |
Address of a variable |
|
str |
A pointer-value variable pointing to a string |
Symbolic addresses used to display memory are specified by preceding a name with an ampersand (&). Function names can be used without the ampersand; &main is equal to main. Registers are denoted by preceding a name with a dollar sign ($).