Programming Tools Guide
Chapter 8, adb: absolute debugger

Writing to a file

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.