* command to enit a memory content
@ 2001-10-01 9:27 kiki w
2001-10-01 9:36 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: kiki w @ 2001-10-01 9:27 UTC (permalink / raw)
To: gdb
Hi,
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,
( I know by using insight I can do that), but I could
not find the right
command to do that. Please enlight me. any reply will
be highly appreciated.
Thanks
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: command to enit a memory content
2001-10-01 9:27 command to enit a memory content kiki w
@ 2001-10-01 9:36 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2001-10-01 9:36 UTC (permalink / raw)
To: kiki_wus; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* command to enit a memory content
@ 2001-10-01 16:26 kiki w
0 siblings, 0 replies; 4+ messages in thread
From: kiki w @ 2001-10-01 16:26 UTC (permalink / raw)
To: gdb
Thank you guys. that command does work. :)
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: command to enit a memory content
@ 2001-10-01 9:54 Hiro Sugawara
0 siblings, 0 replies; 4+ messages in thread
From: Hiro Sugawara @ 2001-10-01 9:54 UTC (permalink / raw)
To: 'Eli Zaretskii', kiki_wus; +Cc: gdb
> -----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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-10-01 16:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-01 9:27 command to enit a memory content kiki w
2001-10-01 9:36 ` Eli Zaretskii
2001-10-01 9:54 Hiro Sugawara
2001-10-01 16:26 kiki w
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox