how to r/w memory

André Pönitz andre.poenitz@nokia.com
Tue Jun 16 07:40:00 GMT 2009


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".

Andre'



More information about the Gdb mailing list