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

Creating new map entries

To create new segment maps and add them to a memory map, use the ?M (create a text segment entry) and /M (create a data segment entry) commands. Unlike ?m and /m, these commands create a new map instead of changing an existing one. These commands have the following form:

?M segment-number file-position size
/M segment-number file-position size

In the above command lines segment-number is the number of the segment map to be created and must be unique, file-position is the offset in the file to the beginning of the given address, and size is the segment size in bytes.


NOTE: A new map entry cannot be created if that has the same number as an existing one.

The ?M and /M commands are useful in accessing segments that are otherwise allocated to your program. For example, the following command creates a text segment entry for segment 0x47 whose size is 0x9c8 bytes:

   ?M 0x47 0x0 0x9c8

Next topic: Validating addresses
Previous topic: Changing the memory map

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