This is the mail archive of the gdb@sources.redhat.com 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]

Re: command to enit a memory content


> Date: Mon, 1 Oct 2001 09:26:59 -0700 (PDT)
> From: kiki w <kiki_wus@yahoo.com>
> 
> I am trying to edit the contents of  some memories
> using GDB command line,
> say I want to change the value of 0x02000000 from
> 0x12345678 to 0x87654321,

Untested:

(gdb) set *(int *)0x12345678 = 0x87654321


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