From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27154 invoked by alias); 10 Jun 2009 16:50:31 -0000 Received: (qmail 27145 invoked by uid 22791); 10 Jun 2009 16:50:30 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 16:50:24 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id n5AGoMX8007253 for ; Wed, 10 Jun 2009 11:50:22 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 10 Jun 2009 11:49:57 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Wrong Reverse result Date: Wed, 10 Jun 2009 16:50:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0790D133@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: 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: 2009-06/txt/msg00089.txt.bz2 Hi, I'm getting a weird behaviour in reverse, where GDB jumps to far backwards. I have GDB HEAD from two weeks ago with the three missing PRrecord patches applied (that were pinged by Hui this very week). I'm running on Ubuntu.=20=20 Is it me or can someone reproduce it? (It happened during my presentation at the GCC summit, so I have witnesses :-)) Thanks Marc GNU gdb (GDB) 6.8.50.20090522-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... (gdb) l 1 void foo() { 2 return; 3 } 4=09 5 int main() { 6=09 7 foo(); // 1 8 foo(); // 2 9 foo(); // 3 10=09 (gdb) l 11 return 0; 12 } (gdb) start Temporary breakpoint 1 at 0x80483f7: file r.c, line 7. Starting program: /home/marc/testing/a.out=20 Temporary breakpoint 1, main () at r.c:7 7 foo(); // 1 Current language: auto; currently c++ (gdb) record (gdb) n 8 foo(); // 2 (gdb) n 9 foo(); // 3 (gdb) n 11 return 0; (gdb) rn 9 foo(); // 3 (gdb) s foo () at r.c:3 3 } (gdb) rn No more reverse-execution history. main () at r.c:7 7 foo(); // 1 =3D=3D=3D=3D=3D=3D=3D=3D This is weird. Why does it go back to the top?