|
Message
From: ddr@d...
Date: Thu, 28 Aug 2003 16:20:01 +0200
Subject: Re: [openrisc] How to use 'SET' command in GDB?
at the www.gnu.org website I found the GDB manual that states:
To store values into arbitrary places in memory, use the `{...}'
construct to generate a value of specified type at a specified address
(see section Expressions). For example, {int}0x83040 refers to memory
location 0x83040 as an integer (which implies a certain size and
representation in memory), and
set {int}0x83040 = 4
stores the value 4 into that memory location.
sorry I posted my question so quick.
never the less, I hope the may help others.
Best regards,
Dries
----- Original Message -----
From: ddr@d...
To: zhangyong@n... , openrisc@o...
Date: Thu, 28 Aug 2003 16:04:10 +0200
Subject: [openrisc] How to use 'SET' command in GDB?
>
>
> Hello
>
> I'm also eager to know this. I think that it is "set
> $0xaddress=value"
> When I do this, GDB seems to execute this command, but when I use
> "x
> address" the memory isn't changed...
>
> Very basic command, that could help a lot!
>
> Many thanks for all replies,
> Dries
>
> ----- Original Message -----
> From: "Zhangyong" <zhangyong@n... >
> To: <openrisc@o... >
> Date: Thu, 26 Sep 2002 09:45:41 +0800
> Subject: [openrisc] How to use gdb set connamd ?
>
> >
> >
> > Hi
> >
> > On page 2 of or1k/docs/gdb.pdf I know that using the 'SET"
> > command, I can access register and memory of or1k.
> >
> > Because there are not many docs about using gdb 'SET' command,
> > from some READMEs I only learned using "set $pc=xxx" to set
> > PC register.
> >
> > So how to use 'SET' command to read/write memory of the or1k?
> >
> > Thanks!
> >
> > zhy
> >
>
|
 |