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




> -----Original Message-----
> From: Eli Zaretskii [mailto:eliz@is.elta.co.il]
> Sent: Monday, October 01, 2001 09:36
> To: kiki_wus@yahoo.com
> Cc: gdb@sources.redhat.com
> Subject: 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
> 
Tested:

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


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