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

Changing the memory map

To change the values of a memory map, use the ?m and /m commands. These commands assign specified values to the corresponding map entries. The commands have the following forms:

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

In the above command lines segment-number gives the number of the segment map to be changed. file-position gives the offset in the file to the beginning of the given address, size is the segment size in bytes, ?m assigns values to a text segment entry, and /m assigns values to a data segment entry.

For example, the following command changes the file position for segment 0x3f in the text map to 0x2000:

   ?m 0x3f 0x2000
The following command changes the file position for segment 0x47 in the data map to 0x0:
   /m 0x47 0x0

Next topic: Creating new map entries
Previous topic: Giving segment numbers

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