Chapter 10: Expressions and Symbols in Debugger Commands
Addresses
Addresses
An address may be represented by any C expression that evaluates to a single
value. The C expression can contain symbols, constants, line numbers, and
operators.
Code Addresses
Code addresses refer to the executable portion of a program. In high level
mode, expressions that evaluate to a code address cannot contain numeric
constants or operators.
Data and Assembly Level Code Addresses
Data addresses refer to the data portion of a program. Data address and
assembly level code address expressions may be represented by most legal C
expressions. There are no restrictions on constants or operators.
Address Ranges
An address range is a range of memory bounded by two addresses. You specify
an address range with a starting address, two periods (..), and an ending
address. These addresses can be actual memory locations, line numbers,
symbols, or expressions that evaluate to addresses in memory.
You can also specify a byte offset as the ending address parameter. If you
specify a byte offset, the debugger adds the specified number of bytes to the
starting address and uses the resulting address as the ending address. You
must precede a byte offset with a plus sign (+ ).
You may specify module names before symbols and line numbers to override
the default module.
The following examples show how to specify address ranges.
To set instruction breakpoints starting at line number 80 and ending at line
number 90:
Breakpt Instr #80..#90
427