From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4266 invoked by alias); 22 Dec 2008 20:27:15 -0000 Received: (qmail 4258 invoked by uid 22791); 22 Dec 2008 20:27:14 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Dec 2008 20:26:24 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id mBMKULVP020530; Mon, 22 Dec 2008 14:30:21 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Dec 2008 14:26:18 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: reverse for GDB/MI Date: Mon, 22 Dec 2008 20:27:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA06B06B04@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <494BF080.9060009@vmware.com> References: <49463870.6080302@virtutech.com> <494A0A9C.6020809@virtutech.com> <494B5A82.4020004@virtutech.com> <494BF080.9060009@vmware.com> From: "Marc Khouzam" To: "Michael Snyder" , "Tomas Holmberg" Cc: "Vladimir Prus" , 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-12/txt/msg00392.txt.bz2 Hi, It was pointed out to me that people who have been doing reversible debug for a while seems to=20 have specific commands for reverse debugging and they do have a command for "go to time point P". For example http://www.undo-software.com/undodb_man.html: bgoton =20 Move forwards or backwards to the specified time, in simulated nanoseconds.=20 bgoton + | -=20 Step forward/backward the specified number of simulated nanoseconds.=20=20 Marc > -----Original Message----- > From: gdb-patches-owner@sourceware.org=20 > [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Michael Snyder > Sent: Friday, December 19, 2008 2:06 PM > To: Tomas Holmberg > Cc: Vladimir Prus; gdb-patches@sources.redhat.com > Subject: Re: reverse for GDB/MI >=20 > Tomas Holmberg wrote: > > Vladimir Prus wrote: > >> Tomas Holmberg wrote: > >> > >>>> I am not quite sure about adding new set of commands for=20 > that. Can we use > >>>> --reverse option, thereby not introducing new commands? > >>> Adding a reverse option to the existing commands is=20 > possible. But I do > >>> not think it is a good idea. It is not always obvious what should > >>> happen when running a standard command in reverse.=20 > >> Why? -exec-step always steps forward. -exec-step --reverse=20 > always steps > >> backward. Seems like a fairly simple model to me. > >=20 > > There are other reverse commands than the=20 > -exec-reverse-step that are more > > complicated. If you consider all reverse commands to be=20 > simple variants > > of the forward commands, then you are correct that there should just > > be a --reverse option. But I consider them to not be simple=20 > variants. >=20 > They're not simple variants. Some of them have to deal with > issues like prologues vs. epilogues, stepping thru a return > back to the callee, etc. >=20 > It's mostly handled in infrun and infcmd, by checking the > "exec-direction" flag. >=20 > > You can also look at the documentation to see if the=20 > reverse commands are > > just variants of the forward variants. I do not think we=20 > can replace the > > documentation for reverse-step, reverse-step-instruction,=20 > reverse-continue, > > reverse-finish, reverse-next, and reverse-next-instruction=20 > and just say it > > is the reverse variant for the corresponding forward=20 > commands. Please look > > at the other reverse commands and see if you can say=20 > "reverse-finish" is > > just the reverse variant of finish. >=20 > Yeah -- it's not. ;-) > It's an analogue, that's all. >=20