From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13259 invoked by alias); 17 Feb 2009 03:12:53 -0000 Received: (qmail 13227 invoked by uid 22791); 17 Feb 2009 03:12:52 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_74,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Feb 2009 03:12:44 +0000 Received: by ti-out-0910.google.com with SMTP id y8so1776476tia.12 for ; Mon, 16 Feb 2009 19:12:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.3.15 with SMTP id 15mr112709tic.0.1234840361286; Mon, 16 Feb 2009 19:12:41 -0800 (PST) In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA06EEF948@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BF2D@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06D3416B@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06E85695@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06EC2DCA@ecamlmw720.eamcs.ericsson.se> <6D19CA8D71C89C43A057926FE0D4ADAA06EEF948@ecamlmw720.eamcs.ericsson.se> Date: Tue, 17 Feb 2009 03:58: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: 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: 2009-02/txt/msg00340.txt.bz2 The following is what I got: teawater@pek-hzhu:~/tmp/gdb-6.8.50.20090217/gdb$ quilt applied patches 1-gdbarch.txt 2-target_record_stratum.txt 3-record_target.txt 5-linux-record.txt 6-infrun.txt 7-i386-tdep.txt 8-i386-linux-tdep.txt 9-precord-doc.txt teawater@pek-hzhu:~/tmp/gdb-6.8.50.20090217/gdb$ ./gdb ~/gdb/a.out GNU gdb (GDB) 6.8.50.20090217 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: ... Setting up the environment for debugging gdb. Function "internal_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] Function "info_command" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] /home/teawater/tmp/gdb-6.8.50.20090217/gdb/.gdbinit:8: Error in sourced command file: No breakpoint number 0. (gdb) start During symbol reading, DW_AT_name missing from DW_TAG_base_type. Temporary breakpoint 1 at 0x8048465: file 2.c, line 4. Starting program: /home/teawater/gdb/a.out Temporary breakpoint 1, main () at 2.c:4 4 char* cptr = "Thread 1"; Current language: auto; currently c++ (gdb) list 1 #include 2 int main() 3 { 4 char* cptr = "Thread 1"; 5 int b[2] = {5,8}; 6 b[0] = 6; b[1] = 9; 7 printf("Thread 1, loop \n"); 8 printf("Thread 2, loop \n"); 9 printf("Thread 3, loop \n"); 10 return 1; (gdb) b 10 Breakpoint 2 at 0x80484ac: file 2.c, line 10. (gdb) record (gdb) c Continuing. Thread 1, loop Thread 2, loop Thread 3, loop Breakpoint 2, main () at 2.c:10 10 return 1; (gdb) rs During symbol reading, incomplete CFI data; unspecified registers (e.g., eax) at 0x8048462. 9 printf("Thread 3, loop \n"); (gdb) 8 printf("Thread 2, loop \n"); (gdb) 7 printf("Thread 1, loop \n"); (gdb) 6 b[0] = 6; b[1] = 9; (gdb) 5 int b[2] = {5,8}; (gdb) No more reverse-execution history. main () at 2.c:4 4 char* cptr = "Thread 1"; (gdb) quit The program is running. Quit anyway (and kill it)? (y or n) y teawater@pek-hzhu:~/tmp/gdb-6.8.50.20090217/gdb$ quilt applied patches 1-gdbarch.txt 2-target_record_stratum.txt 3-record_target.txt 5-linux-record.txt 6-infrun.txt 7-i386-tdep.txt 8-i386-linux-tdep.txt 9-precord-doc.txt fix-reverse-plt-error.txt teawater@pek-hzhu:~/tmp/gdb-6.8.50.20090217/gdb$ ./gdb ~/gdb/a.out GNU gdb (GDB) 6.8.50.20090217 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: ... Setting up the environment for debugging gdb. Function "internal_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] Function "info_command" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] /home/teawater/tmp/gdb-6.8.50.20090217/gdb/.gdbinit:8: Error in sourced command file: No breakpoint number 0. (gdb) start During symbol reading, DW_AT_name missing from DW_TAG_base_type. Temporary breakpoint 1 at 0x8048465: file 2.c, line 4. Starting program: /home/teawater/gdb/a.out Temporary breakpoint 1, main () at 2.c:4 4 char* cptr = "Thread 1"; Current language: auto; currently c++ (gdb) record (gdb) b 10 Breakpoint 2 at 0x80484ac: file 2.c, line 10. (gdb) c Continuing. Thread 1, loop Thread 2, loop Thread 3, loop Breakpoint 2, main () at 2.c:10 10 return 1; (gdb) rs During symbol reading, incomplete CFI data; unspecified registers (e.g., eax) at 0x8048462. 9 printf("Thread 3, loop \n"); (gdb) 8 printf("Thread 2, loop \n"); (gdb) 7 printf("Thread 1, loop \n"); (gdb) 6 b[0] = 6; b[1] = 9; (gdb) 5 int b[2] = {5,8}; (gdb) No more reverse-execution history. main () at 2.c:4 4 char* cptr = "Thread 1"; (gdb) quit The program is running. Quit anyway (and kill it)? (y or n) y On Mon, Feb 16, 2009 at 23:16, Marc Khouzam wrote: > > >> -----Original Message----- >> From: teawater [mailto:teawater@gmail.com] >> Sent: Monday, February 16, 2009 3:57 AM >> To: Marc Khouzam >> Cc: Michael Snyder; Pedro Alves; gdb-patches@sourceware.org >> Subject: Re: [RFA] Patch to fix "reverse-next" command error >> >> Hi Marc, >> >> I try it again. This test is still OK with me. Could remove >> stopped.diff patch and try it again? >> Or send me a stopped.diff patch? > > The stopped.diff patch was just checked in. > You will actually have to update record.c as it no longer > compiles with those new changes (small fix needed.) > > I updated to today's HEAD and I still get the problem. > How did you turn on those traces to debug the problem? > > Thanks > > Marc > >