gdb: Address Locations
9.2.3 Address Locations
-----------------------
"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 (working language Languages.) 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:
'EXPRESSION'
Any expression valid in the current working language.
'FUNCADDR'
An address of a function or procedure derived from its name. In C,
C++, Objective-C, Fortran, minimal, and assembly, this is simply
the function's name FUNCTION (and actually a special case of a
valid expression). In Pascal and Modula-2, this is '&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'
Like FUNCADDR above, but also specifies the name of the source file
explicitly. This is useful if the name of the function does not
specify the function unambiguously, e.g., if there are several
functions with identical names in different source files.