This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to set memory value from gdb? (MI)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Bogdan Slusarczyk <bodzio131 at op dot pl>
- Cc: gdb at sourceware dot org
- Date: Mon, 4 Jun 2007 11:25:01 -0400
- Subject: Re: How to set memory value from gdb? (MI)
- References: <4664278C.1010404@op.pl>
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.
--
Daniel Jacobowitz
CodeSourcery