|
|
The adb program normally displays memory and file addresses as the sum of a symbol and an offset. This helps associate the instructions and data being viewed with a given function or variable. When first invoked, adb sets the maximum offset to 255. This means instructions or data that are no more than 255 bytes from the start of the function or variable are given symbolic addresses. Instructions or data beyond this point are given numeric addresses.
In many programs, the size of a function or variable is actually
larger than 255 bytes.
For this reason, adb lets you change the maximum offset
to accommodate larger programs.
To change the maximum offset, use the
$s
command.
The command has the following form where
n
is an integer giving the new offset:
n$s
For example, the following command increases the maximum possible offset to 4095:
4095$sAll instructions and data that are no more than 4095 bytes away are given symbolic addresses.