From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16532 invoked by alias); 5 Jun 2007 07:04:16 -0000 Received: (qmail 16519 invoked by uid 22791); 5 Jun 2007 07:04:15 -0000 X-Spam-Check-By: sourceware.org Received: from smtp20.poczta.onet.pl (HELO smtp20.poczta.onet.pl) (213.180.130.91) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Jun 2007 07:04:11 +0000 Received: from static-62-233-152-148.devs.futuro.pl ([62.233.152.148]:23813 "EHLO [10.0.0.72]") by ps20.test.onet.pl with ESMTP id (ORCPT ); Tue, 5 Jun 2007 09:04:00 +0200 Message-ID: <46650ADF.2010507@op.pl> Date: Tue, 05 Jun 2007 07:04:00 -0000 From: Bogdan Slusarczyk User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: drow@false.org, gdb@sourceware.org Subject: Re: How to set memory value from gdb? (MI) References: <4664278C.1010404@op.pl> <20070604152501.GA6855@caradoc.them.org> In-Reply-To: <20070604152501.GA6855@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00038.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. 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? PS. What does "TBD" mean?