DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
adb: absolute debugger

Setting the maximum offset

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$s
All instructions and data that are no more than 4095 bytes away are given symbolic addresses.


NOTE: To disable all symbolic addressing, set the maximum offset to zero. All addresses will be given numeric values instead.


Next topic: Setting default input format
Previous topic: Setting output width

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003