This is the mail archive of the 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]
Other format: [Raw text]

Re: How to set memory value from gdb? (MI)

On Tue, Jun 05, 2007 at 09:03:59AM +0200, Bogdan Slusarczyk wrote:
> On Mon, Jun 04, 2007 at 04:54:04PM +0200, Bogdan Slusarczyk wrote:
> >> Hi, can anybody tell me how to set memory value from gdb? Suppose I want to 
> >> set bool variable using memory, I tryied '-var-create - * 
> >> *0x0289add0-0x0289add1' and next: '-var-assign var1 1' but I got: 'Left 
> >> operand of assignment is not an lvalue' How can I do it properly?
> >>     
> >
> > Try *(short *)0x0289add0.  I believe the "TBD" marker in the manual
> > means the syntax it describes doesn't exist yet.  We should decide if
> > we want it, or get rid of the documentation for it.
> Is there any possibility to set memory bit by bit? Suppose I want to set some 
> larger area than short or long, can I do this using gdb?

You probably could, but it is easier to just send multiple commands.
And no, there are no single bit operations.

> PS. What does "TBD" mean?

I don't know, but I would guess "to be done" or "to be determined".

Daniel Jacobowitz

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