From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5453 invoked by alias); 14 Sep 2009 15:53:35 -0000 Received: (qmail 5437 invoked by uid 22791); 14 Sep 2009 15:53:35 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Sep 2009 15:53:30 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 2FFA310705; Mon, 14 Sep 2009 15:53:28 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id F19001065D; Mon, 14 Sep 2009 15:53:27 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MnDrr-00072g-1d; Mon, 14 Sep 2009 11:53:27 -0400 Date: Mon, 14 Sep 2009 15:53:00 -0000 From: Daniel Jacobowitz To: Hui Zhu Cc: Marc Khouzam , "gdb@sourceware.org" , Michael Snyder , gdb-patches ml Subject: Re: PRecord sets memory even when it says it did not Message-ID: <20090914155327.GA26740@caradoc.them.org> Mail-Followup-To: Hui Zhu , Marc Khouzam , "gdb@sourceware.org" , Michael Snyder , gdb-patches ml References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00405.txt.bz2 On Mon, Sep 14, 2009 at 12:39:35PM +0800, Hui Zhu wrote: > > (gdb) set var a = 8 > > Because GDB is in replay mode, writing to memory will make the execution log unusable from this point onward.  Write memory at address 0xbffff6a0?(y or [n]) n > > Process record canceled the operation. > > (gdb) p a > > $2 = 8 This should refetch the value from the target. What value is cached? > 2009-09-14 Hui Zhu > > * record.c (record_xfer_partial): Call free_all_values when > cancel the operation. I don't think this is a good idea; this is a memory management function. It's not supposed to change the apparent values. -- Daniel Jacobowitz CodeSourcery