Address locations indicate a specific program address. They have the generalized form *address.
For line-oriented commands, such as list
and edit
, this
specifies a source line that contains address. For break
and
other breakpoint-oriented commands, this can be used to set breakpoints in
parts of your program which do not have debugging information or
source files.
Here address may be any expression valid in the current working language (see working language) that specifies a code address. In addition, as a convenience, gdb extends the semantics of expressions used in locations to cover several situations that frequently occur during debugging. Here are the various forms of address:
&
function. In Ada, this is function'Address
(although the Pascal form also works).
This form specifies the address of the function's first instruction,
before the stack frame and arguments have been set up.
'
filename':
funcaddr