From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13356 invoked by alias); 4 Jun 2007 14:54:20 -0000 Received: (qmail 13348 invoked by uid 22791); 4 Jun 2007 14:54:19 -0000 X-Spam-Check-By: sourceware.org Received: from smtp5.poczta.onet.pl (HELO smtp5.poczta.onet.pl) (213.180.130.32) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Jun 2007 14:54:16 +0000 Received: from static-62-233-152-148.devs.futuro.pl ([62.233.152.148]:16914 "EHLO [10.0.0.72]") by ps5.test.onet.pl with ESMTP id (ORCPT ); Mon, 4 Jun 2007 16:54:05 +0200 Message-ID: <4664278C.1010404@op.pl> Date: Mon, 04 Jun 2007 14:54:00 -0000 From: Bogdan Slusarczyk User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: gdb@sourceware.org Subject: How to set memory value from gdb? (MI) Content-Type: text/plain; charset=ISO-8859-2; 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/msg00030.txt.bz2 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? Regards Bogdan