Address locations indicate a specific program address. They have
the generalized form *
For line-oriented commands, such as
specifies a source line that contains
other breakpoint-oriented commands, this can be used to set breakpoints in
parts of your program which do not have debugging information or
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
Any expression valid in the current working language.
An address of a function or procedure derived from its name. In 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
(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.
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.