From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hiro Sugawara To: "'Eli Zaretskii'" , kiki_wus@yahoo.com Cc: gdb@sources.redhat.com Subject: RE: command to enit a memory content Date: Mon, 01 Oct 2001 09:54:00 -0000 Message-id: X-SW-Source: 2001-10/msg00013.html > -----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 > > > > 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