From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11592 invoked by alias); 22 May 2008 18:16:22 -0000 Received: (qmail 11583 invoked by uid 22791); 22 May 2008 18:16:22 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 May 2008 18:15:59 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 476643C04B; Thu, 22 May 2008 11:15:58 -0700 (PDT) Subject: Re: GDB record patch 0.1.3.1 for GDB-6.8 release From: Michael Snyder To: Tea Cc: gdb-patches@sourceware.org In-Reply-To: References: <1211231955.32587.23.camel@localhost.localdomain> <1211393440.3601.80.camel@localhost.localdomain> <1211394916.7957.47.camel@localhost.localdomain> <20080521184542.GA31895@caradoc.them.org> <1211402304.7957.76.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 23 May 2008 04:33:00 -0000 Message-Id: <1211480158.3601.88.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit 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: 2008-05/txt/msg00668.txt.bz2 On Fri, 2008-05-23 at 00:17 +0800, Tea wrote: > I think the good way is let user choice. When the user goes back a few > insns and he want to change the values of memory or register. The GDB > willtalk clear what will happen such as the future record will > destory, and ask user if he want to continue or not. > Then user can choice with himself. > > How do you think? I tend to agree about the user choice. Perhaps we could have it as a user-settable mode. Default might be "the past is read-only", ie. you can't change the state. But you could set a mode in which you can change the past (at the cost of destroying the future) -- and if you try to do it when the past is read-only, gdb could ask you if you want to change the mode. Is that clear? Or am I being too metaphorical? Michael