how to r/w memory
loody
miloody@gmail.com
Tue Jun 16 11:25:00 GMT 2009
Hi:
2009/6/16 André Pönitz <andre.poenitz@nokia.com>:
> On Tuesday 16 June 2009 07:47:50 loody wrote:
>> Dear all:
>> From the gdb document, we can use "x/nfu address" to read memory, but
>> how we can write it?
>> I have tried "x 0x80000000=0" like "p var=val" but it fail.
>> thanks for your help,
>> miloody
>
> I use
>
> set {char[5]} &buffer = {65,66,67,68,69}
>
> I am not sure it's the recommended approach but "works".
thanks for your help.
BTW, when checking the usage of breakpoint.
It seems 2 kinds of them, HW and SW.
What are the differences?
appreciate your help,
miloody
More information about the Gdb
mailing list