This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: command to enit a memory content
- To: "'Eli Zaretskii'" <eliz at is dot elta dot co dot il>, kiki_wus at yahoo dot com
- Subject: RE: command to enit a memory content
- From: Hiro Sugawara <hsugawar at brocade dot com>
- Date: Mon, 1 Oct 2001 09:48:54 -0700
- Cc: gdb at sources dot redhat dot com
> -----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