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

Writing to a file

To write to a file, use the w and W commands. The commands have the following form:

[ address ] [ ? / ]w value
[ address ] [ ? / ]W value

In the above command lines address is the address of the value to be changed, the w command writes 2 byte values, the W writes 4 byte values, and value is the new value. ? and / indicate whether to change the data in the text or data section. For example, the following commands change the data word ``This'' to ``The'':

   /l 'Th'
   /W 'The'


NOTE: W is used to change all four characters.


Next topic: Making changes to memory
Previous topic: Locating values in a file

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