From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30221 invoked by alias); 4 Jun 2007 15:25:30 -0000 Received: (qmail 30198 invoked by uid 22791); 4 Jun 2007 15:25:29 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Jun 2007 15:25:27 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E4227982E3 for ; Mon, 4 Jun 2007 15:25:24 +0000 (GMT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by nan.false.org (Postfix) with ESMTP id C02EA982E2 for ; Mon, 4 Jun 2007 15:25:24 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1HvEQX-0001nI-TL; Mon, 04 Jun 2007 11:25:01 -0400 Date: Mon, 04 Jun 2007 15:25:00 -0000 From: Daniel Jacobowitz To: Bogdan Slusarczyk Cc: gdb@sourceware.org Subject: Re: How to set memory value from gdb? (MI) Message-ID: <20070604152501.GA6855@caradoc.them.org> Mail-Followup-To: Bogdan Slusarczyk , gdb@sourceware.org References: <4664278C.1010404@op.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4664278C.1010404@op.pl> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00031.txt.bz2 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