This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to r/w memory


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]