From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18999 invoked by alias); 2 Mar 2009 06:11:54 -0000 Received: (qmail 18677 invoked by uid 22791); 2 Mar 2009 06:11:52 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_12,SARE_MSGID_LONG40,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Mar 2009 06:11:47 +0000 Received: by ti-out-0910.google.com with SMTP id y8so2620045tia.12 for ; Sun, 01 Mar 2009 22:11:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.52.5 with SMTP id z5mr4736022tiz.26.1235974304295; Sun, 01 Mar 2009 22:11:44 -0800 (PST) In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA06E85695@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BF2D@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06D3416B@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06E85695@ecamlmw720.eamcs.ericsson.se> Date: Mon, 02 Mar 2009 06:11:00 -0000 Message-ID: Subject: Re: [RFA] Patch to fix "reverse-next" command error From: teawater To: Marc Khouzam Cc: Michael Snyder , Pedro Alves , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-03/txt/msg00006.txt.bz2 http://sourceware.org/ml/gdb-patches/2009-03/msg00005.html This is the patch for this bug. Thanks, Hui On Thu, Feb 12, 2009 at 03:55, Marc Khouzam wro= te: >> From: teawater [mailto:teawater@gmail.com] >> Sent: Thursday, January 29, 2009 11:12 PM >> To: Marc Khouzam >> Cc: Michael Snyder; Pedro Alves; gdb-patches@sourceware.org >> Subject: Re: [RFA] Patch to fix "reverse-next" command error >> >> Hi Marc, >> >> Could you please send more message about your issue? >> > >> > I just noticed I still have the problem of jumping library functions >> > when using reverse-step. =A0Seems ok for reverse-next. >> > > > Was this still in my court? =A0Sorry about that. > Here is how I reproduced the problem: > > > GNU gdb (GDB) 6.8.50.20090113-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. =A0Type "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 =A0 =A0 =A0 #include > 2 =A0 =A0 =A0 int main() > 3 =A0 =A0 =A0 { > 4 =A0 =A0 =A0 =A0 =A0 char* cptr =3D "Thread 1"; > 5 =A0 =A0 =A0 =A0 =A0 int b[2] =3D {5,8}; > 6 =A0 =A0 =A0 =A0 =A0 b[0] =3D 6; =A0 b[1] =3D 9; > 7 =A0 =A0 =A0 =A0 =A0 printf("Thread 1, loop \n"); > 8 =A0 =A0 =A0 =A0 =A0 printf("Thread 2, loop \n"); > 9 =A0 =A0 =A0 =A0 =A0 printf("Thread 3, loop \n"); > 10 =A0 =A0 =A0 =A0 =A0return 1; > (gdb) b main > Breakpoint 1 at 0x8048485: file a.cc, line 4. > (gdb) r > Starting program: /local/home/lmckhou/testing/a.out > > Breakpoint 1, main () at a.cc:4 > 4 =A0 =A0 =A0 =A0 =A0 char* cptr =3D "Thread 1"; > (gdb) record > (gdb) n > 5 =A0 =A0 =A0 =A0 =A0 int b[2] =3D {5,8}; > (gdb) > 6 =A0 =A0 =A0 =A0 =A0 b[0] =3D 6; =A0 b[1] =3D 9; > (gdb) > 7 =A0 =A0 =A0 =A0 =A0 printf("Thread 1, loop \n"); > (gdb) > Thread 1, loop > 8 =A0 =A0 =A0 =A0 =A0 printf("Thread 2, loop \n"); > (gdb) > Thread 2, loop > 9 =A0 =A0 =A0 =A0 =A0 printf("Thread 3, loop \n"); > (gdb) > Thread 3, loop > 10 =A0 =A0 =A0 =A0 =A0return 1; > (gdb) rs > 9 =A0 =A0 =A0 =A0 =A0 printf("Thread 3, loop \n"); > (gdb) > 8 =A0 =A0 =A0 =A0 =A0 printf("Thread 2, loop \n"); > (gdb) > > No more reverse-execution history. =A0 =A0 <=3D=3D=3D=3D=3D What about li= nes 7, 6, 5? > main () at a.cc:4 > 4 =A0 =A0 =A0 =A0 =A0 char* cptr =3D "Thread 1"; > >