From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16816 invoked by alias); 30 Mar 2009 21:25:12 -0000 Received: (qmail 16784 invoked by uid 22791); 30 Mar 2009 21:25:09 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_33,J_CHICKENPOX_34,J_CHICKENPOX_38,J_CHICKENPOX_43,J_CHICKENPOX_63,J_CHICKENPOX_93,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Mar 2009 21:25:02 +0000 Received: (qmail 19188 invoked from network); 30 Mar 2009 15:58:17 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Mar 2009 15:58:17 -0000 From: Pedro Alves To: Keith Seitz Subject: Re: [RFC] Special casing dtors? Date: Mon, 30 Mar 2009 21:46:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <49CAB139.8010100@redhat.com> <49CD2F0F.8040203@redhat.com> <49CDD4C1.1080306@redhat.com> In-Reply-To: <49CDD4C1.1080306@redhat.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_YwO0J4YPlgOv8LI" Message-Id: <200903301658.16807.pedro@codesourcery.com> 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/msg00693.txt.bz2 --Boundary-00=_YwO0J4YPlgOv8LI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 4660 On Saturday 28 March 2009 07:41:53, Keith Seitz wrote: > Keith Seitz wrote: > > > I am building SVN gcc now, and I will retry everything. > > I tried this with exactly the same result on both x86_64 and x86. [It > took long enough!] The "destructor breakpoint" test FAILs without the > patch, and the patch introduces no new failures. There must be something > different about our environments. No, it just means you went in the wrong direction with your testing. :-) I mentioned that these tests pass on *4.2*, and that you see them failing on 4.3. It isn't much of a surprise that they fail on gcc head. I just tried the templates.exp test with both the top of the gcc 4.2 branch, and with current gcc head, both on stabs, x86_64. Here's the result difference: --- gdb.sum.4.2 2009-03-30 16:50:48.000000000 +0100 +++ gdb.sum.4.5 2009-03-30 16:51:33.000000000 +0100 @@ -1,4 +1,4 @@ -Test Run By pedro on Mon Mar 30 16:50:39 2009 +Test Run By pedro on Mon Mar 30 16:51:25 2009 Native configuration is x86_64-unknown-linux-gnu === gdb tests === @@ -9,38 +9,39 @@ Schedule of variations: Running target unix/gdb:debug_flags=-gstabs+ Running ../../../src/gdb/testsuite/gdb.cp/templates.exp ... PASS: gdb.cp/templates.exp: set multiple-symbols ask -PASS: gdb.cp/templates.exp: ptype T5 (obsolescent gcc or gdb) -PASS: gdb.cp/templates.exp: ptype t5i (obsolescent gcc or gdb) -FAIL: gdb.cp/templates.exp: constructor breakpoint (bad menu choices) +FAIL: gdb.cp/templates.exp: ptype T5 +FAIL: gdb.cp/templates.exp: ptype t5i +FAIL: gdb.cp/templates.exp: constructor breakpoint PASS: gdb.cp/templates.exp: destructor breakpoint PASS: gdb.cp/templates.exp: value method breakpoint PASS: gdb.cp/templates.exp: print t5i.value() PASS: gdb.cp/templates.exp: print fint PASS: gdb.cp/templates.exp: print fvpchar -PASS: gdb.cp/templates.exp: ptype Foo -PASS: gdb.cp/templates.exp: ptype fint -PASS: gdb.cp/templates.exp: ptype fchar -PASS: gdb.cp/templates.exp: ptype fvpchar -PASS: gdb.cp/templates.exp: print Foo::foo -PASS: gdb.cp/templates.exp: print Foo::foo -PASS: gdb.cp/templates.exp: ptype Bar -PASS: gdb.cp/templates.exp: ptype bint -PASS: gdb.cp/templates.exp: ptype bint2 -PASS: gdb.cp/templates.exp: ptype Baz -PASS: gdb.cp/templates.exp: ptype bazint -PASS: gdb.cp/templates.exp: ptype bazint2 -PASS: gdb.cp/templates.exp: ptype Qux -PASS: gdb.cp/templates.exp: ptype quxint -PASS: gdb.cp/templates.exp: ptype Spec -PASS: gdb.cp/templates.exp: ptype siip -PASS: gdb.cp/templates.exp: ptype Garply -PASS: gdb.cp/templates.exp: ptype Garply > -PASS: gdb.cp/templates.exp: print Garply >::garply +FAIL: gdb.cp/templates.exp: ptype Foo +FAIL: gdb.cp/templates.exp: ptype fint +FAIL: gdb.cp/templates.exp: ptype fchar +FAIL: gdb.cp/templates.exp: ptype fvpchar +KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) +KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) +FAIL: gdb.cp/templates.exp: ptype Bar +FAIL: gdb.cp/templates.exp: ptype bint +FAIL: gdb.cp/templates.exp: ptype bint2 +FAIL: gdb.cp/templates.exp: ptype Baz +FAIL: gdb.cp/templates.exp: ptype bazint +FAIL: gdb.cp/templates.exp: ptype bazint2 +FAIL: gdb.cp/templates.exp: ptype Qux +FAIL: gdb.cp/templates.exp: ptype quxint +FAIL: gdb.cp/templates.exp: ptype Spec +FAIL: gdb.cp/templates.exp: ptype siip +FAIL: gdb.cp/templates.exp: ptype Garply +FAIL: gdb.cp/templates.exp: ptype Garply > +FAIL: gdb.cp/templates.exp: print Garply >::garply PASS: gdb.cp/templates.exp: break Garply >::garply === gdb Summary === -# of expected passes 28 -# of unexpected failures 1 +# of expected passes 7 +# of unexpected failures 20 +# of known failures 2 /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb version 6.8.50.20090327-cvs -nw -nx So, gcc regressed a bunch of stabs after gcc 4.2. The full logs of running this test with both compilers are attached. > > I don't know what's going on now, but we seem to be at a "Mexican > Stand-off? [Pardon the colloquialism] I don't know how much we care for stabs on 4.2. Certainly on linux it isn't that important, but other platforms are still a bit stuck with it. Note that I'm not objecting to you applying your patch. The failure mode it introduces on stabs isn't that critical. I was merely trying to be helpful, and I didn't expect that we'd find this. In any case, it is always good to try out several compilers, not just the tip of the trunk. GDB has to cope with code produced from older compilers as well. -- Pedro Alves --Boundary-00=_YwO0J4YPlgOv8LI Content-Type: text/plain; charset="iso 8859-15"; name="gdb.sum.4.2" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb.sum.4.2" Content-length: 1840 Test Run By pedro on Mon Mar 30 16:50:39 2009 Native configuration is x86_64-unknown-linux-gnu === gdb tests === Schedule of variations: unix/gdb:debug_flags=-gstabs+ Running target unix/gdb:debug_flags=-gstabs+ Running ../../../src/gdb/testsuite/gdb.cp/templates.exp ... PASS: gdb.cp/templates.exp: set multiple-symbols ask PASS: gdb.cp/templates.exp: ptype T5 (obsolescent gcc or gdb) PASS: gdb.cp/templates.exp: ptype t5i (obsolescent gcc or gdb) FAIL: gdb.cp/templates.exp: constructor breakpoint (bad menu choices) PASS: gdb.cp/templates.exp: destructor breakpoint PASS: gdb.cp/templates.exp: value method breakpoint PASS: gdb.cp/templates.exp: print t5i.value() PASS: gdb.cp/templates.exp: print fint PASS: gdb.cp/templates.exp: print fvpchar PASS: gdb.cp/templates.exp: ptype Foo PASS: gdb.cp/templates.exp: ptype fint PASS: gdb.cp/templates.exp: ptype fchar PASS: gdb.cp/templates.exp: ptype fvpchar PASS: gdb.cp/templates.exp: print Foo::foo PASS: gdb.cp/templates.exp: print Foo::foo PASS: gdb.cp/templates.exp: ptype Bar PASS: gdb.cp/templates.exp: ptype bint PASS: gdb.cp/templates.exp: ptype bint2 PASS: gdb.cp/templates.exp: ptype Baz PASS: gdb.cp/templates.exp: ptype bazint PASS: gdb.cp/templates.exp: ptype bazint2 PASS: gdb.cp/templates.exp: ptype Qux PASS: gdb.cp/templates.exp: ptype quxint PASS: gdb.cp/templates.exp: ptype Spec PASS: gdb.cp/templates.exp: ptype siip PASS: gdb.cp/templates.exp: ptype Garply PASS: gdb.cp/templates.exp: ptype Garply > PASS: gdb.cp/templates.exp: print Garply >::garply PASS: gdb.cp/templates.exp: break Garply >::garply === gdb Summary === # of expected passes 28 # of unexpected failures 1 /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb version 6.8.50.20090327-cvs -nw -nx --Boundary-00=_YwO0J4YPlgOv8LI Content-Type: text/x-java; charset="iso 8859-15"; name="gdb.log.4.2" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb.log.4.2" Content-length: 8711 Test Run By pedro on Mon Mar 30 16:50:39 2009 Native configuration is x86_64-unknown-linux-gnu === gdb tests === Schedule of variations: unix/gdb:debug_flags=-gstabs+ Running target unix/gdb:debug_flags=-gstabs+ Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running ../../../src/gdb/testsuite/gdb.cp/templates.exp ... get_compiler_info: gcc-4-2-5 Executing on host: g++ ../../../src/gdb/testsuite/gdb.cp/templates.cc -L/home/pedro/gdb/baseline/build/libiberty -gstabs+ -lm -o /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates (timeout = 300) GNU gdb (GDB) 6.8.50.20090327-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 "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir ../../../src/gdb/testsuite/gdb.cp Source directories searched: /home/pedro/gdb/baseline/build/gdb/testsuite/../../../src/gdb/testsuite/gdb.cp:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Reading symbols from /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates...done. (gdb) set multiple-symbols ask (gdb) PASS: gdb.cp/templates.exp: set multiple-symbols ask delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x4012d4: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 713. (gdb) run Starting program: /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:713 713 i = i + 1; (gdb) ptype T5 type = class T5 { public: static int X; int x; int val; T5(int); T5(int); T5(T5 const&); T5(T5 const&); ~T5(); ~T5(); static void * operator new(unsigned long); static void operator delete(void*); int value(); } (gdb) PASS: gdb.cp/templates.exp: ptype T5 (obsolescent gcc or gdb) ptype t5i type = class T5 { public: static int X; int x; int val; T5(int); T5(int); T5(T5 const&); T5(T5 const&); ~T5(); ~T5(); static void * operator new(unsigned long); static void operator delete(void*); int value(); } (gdb) PASS: gdb.cp/templates.exp: ptype t5i (obsolescent gcc or gdb) break T5::T5 [0] cancel [1] all [2] T5::T5(T5 const&) at ../../../src/gdb/testsuite/gdb.cp/templates.cc:474 [3] T5::T5(T5 const&) at ../../../src/gdb/testsuite/gdb.cp/templates.cc:474 [4] T5::T5(int) at ../../../src/gdb/testsuite/gdb.cp/templates.cc:470 [5] T5::T5(int) at ../../../src/gdb/testsuite/gdb.cp/templates.cc:470 > 0 canceled (gdb) FAIL: gdb.cp/templates.exp: constructor breakpoint (bad menu choices) break T5::~T5 Breakpoint 2 at 0x4017aa: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 478. (gdb) PASS: gdb.cp/templates.exp: destructor breakpoint break T5::value Breakpoint 3 at 0x4017d8: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 493. (gdb) PASS: gdb.cp/templates.exp: value method breakpoint delete breakpoints Delete all breakpoints? (y or n) y (gdb) info breakpoints No breakpoints or watchpoints. (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 4 at 0x4012d4: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 713. (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Breakpoint 4, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:713 713 i = i + 1; (gdb) print t5i.value() $1 = 2 (gdb) PASS: gdb.cp/templates.exp: print t5i.value() b 770 Breakpoint 5 at 0x4014a2: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 770. (gdb) c Continuing. Breakpoint 5, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:770 770 return 0; (gdb) print fint $2 = {x = 0, t = 0} (gdb) PASS: gdb.cp/templates.exp: print fint print fvpchar $3 = {x = 0, t = 0x0} (gdb) PASS: gdb.cp/templates.exp: print fvpchar ptype Foo No symbol "Foo" in current context. (gdb) PASS: gdb.cp/templates.exp: ptype Foo ptype fint type = class Foo { public: int x; int t; int foo(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype fint ptype fchar type = class Foo { public: int x; char t; char foo(int, char); } (gdb) PASS: gdb.cp/templates.exp: ptype fchar ptype fvpchar type = class Foo { public: int x; volatile char *t; volatile char * foo(int, char volatile*); } (gdb) PASS: gdb.cp/templates.exp: ptype fvpchar print Foo::foo $4 = {volatile char *(Foo * const, int, volatile char *)} 0x40191e ::foo(int, char volatile*)> (gdb) PASS: gdb.cp/templates.exp: print Foo::foo print Foo::foo $5 = {volatile char *(Foo * const, int, volatile char *)} 0x40191e ::foo(int, char volatile*)> (gdb) PASS: gdb.cp/templates.exp: print Foo::foo ptype Bar No symbol "Bar" in current context. (gdb) PASS: gdb.cp/templates.exp: ptype Bar ptype bint type = class Bar { public: int x; int t; int bar(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype bint ptype bint2 type = class Bar { public: int x; int t; int bar(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype bint2 ptype Baz No symbol "Baz" in current context. (gdb) PASS: gdb.cp/templates.exp: ptype Baz ptype bazint type = class Baz { public: int x; int t; int baz(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype bazint ptype bazint2 type = class Baz { public: int x; char t; char baz(int, char); } (gdb) PASS: gdb.cp/templates.exp: ptype bazint2 ptype Qux No symbol "Qux" in current context. (gdb) PASS: gdb.cp/templates.exp: ptype Qux ptype quxint type = class Qux { public: int x; int t; int qux(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype quxint ptype Spec No symbol "Spec" in current context. (gdb) PASS: gdb.cp/templates.exp: ptype Spec ptype siip type = class Spec { public: int x; int spec(int*); } (gdb) PASS: gdb.cp/templates.exp: ptype siip ptype Garply type = class Garply { public: int x; int t; int garply(int, int); } (gdb) PASS: gdb.cp/templates.exp: ptype Garply ptype Garply > type = class Garply > { public: int x; Garply t; Garply garply(int, Garply); } (gdb) PASS: gdb.cp/templates.exp: ptype Garply > print Garply >::garply $6 = {Garply (Garply > * const, int, Garply)} 0x401abc >::garply(int, Garply)> (gdb) PASS: gdb.cp/templates.exp: print Garply >::garply break Garply >::garply Breakpoint 6 at 0x401acb: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 696. (gdb) PASS: gdb.cp/templates.exp: break Garply >::garply testcase ../../../src/gdb/testsuite/gdb.cp/templates.exp completed in 2 seconds === gdb Summary === # of expected passes 28 # of unexpected failures 1 Executing on host: /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb -nw -nx --command gdb_cmd (timeout = 300) GNU gdb (GDB) 6.8.50.20090327-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 "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb version 6.8.50.20090327-cvs -nw -nx runtest completed at Mon Mar 30 16:50:41 2009 --Boundary-00=_YwO0J4YPlgOv8LI Content-Type: text/plain; charset="iso 8859-15"; name="gdb.sum.4.5" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb.sum.4.5" Content-length: 1828 Test Run By pedro on Mon Mar 30 16:51:25 2009 Native configuration is x86_64-unknown-linux-gnu === gdb tests === Schedule of variations: unix/gdb:debug_flags=-gstabs+ Running target unix/gdb:debug_flags=-gstabs+ Running ../../../src/gdb/testsuite/gdb.cp/templates.exp ... PASS: gdb.cp/templates.exp: set multiple-symbols ask FAIL: gdb.cp/templates.exp: ptype T5 FAIL: gdb.cp/templates.exp: ptype t5i FAIL: gdb.cp/templates.exp: constructor breakpoint PASS: gdb.cp/templates.exp: destructor breakpoint PASS: gdb.cp/templates.exp: value method breakpoint PASS: gdb.cp/templates.exp: print t5i.value() PASS: gdb.cp/templates.exp: print fint PASS: gdb.cp/templates.exp: print fvpchar FAIL: gdb.cp/templates.exp: ptype Foo FAIL: gdb.cp/templates.exp: ptype fint FAIL: gdb.cp/templates.exp: ptype fchar FAIL: gdb.cp/templates.exp: ptype fvpchar KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) FAIL: gdb.cp/templates.exp: ptype Bar FAIL: gdb.cp/templates.exp: ptype bint FAIL: gdb.cp/templates.exp: ptype bint2 FAIL: gdb.cp/templates.exp: ptype Baz FAIL: gdb.cp/templates.exp: ptype bazint FAIL: gdb.cp/templates.exp: ptype bazint2 FAIL: gdb.cp/templates.exp: ptype Qux FAIL: gdb.cp/templates.exp: ptype quxint FAIL: gdb.cp/templates.exp: ptype Spec FAIL: gdb.cp/templates.exp: ptype siip FAIL: gdb.cp/templates.exp: ptype Garply FAIL: gdb.cp/templates.exp: ptype Garply > FAIL: gdb.cp/templates.exp: print Garply >::garply PASS: gdb.cp/templates.exp: break Garply >::garply === gdb Summary === # of expected passes 7 # of unexpected failures 20 # of known failures 2 /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb version 6.8.50.20090327-cvs -nw -nx --Boundary-00=_YwO0J4YPlgOv8LI Content-Type: text/x-objcsrc; charset="iso 8859-15"; name="gdb.log.4.5" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb.log.4.5" Content-length: 7942 Test Run By pedro on Mon Mar 30 16:51:25 2009 Native configuration is x86_64-unknown-linux-gnu === gdb tests === Schedule of variations: unix/gdb:debug_flags=-gstabs+ Running target unix/gdb:debug_flags=-gstabs+ Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running ../../../src/gdb/testsuite/gdb.cp/templates.exp ... get_compiler_info: gcc-4-5-0 Executing on host: g++ ../../../src/gdb/testsuite/gdb.cp/templates.cc -L/home/pedro/gdb/baseline/build/libiberty -gstabs+ -lm -o /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates (timeout = 300) GNU gdb (GDB) 6.8.50.20090327-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 "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir ../../../src/gdb/testsuite/gdb.cp Source directories searched: /home/pedro/gdb/baseline/build/gdb/testsuite/../../../src/gdb/testsuite/gdb.cp:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Reading symbols from /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates...done. (gdb) set multiple-symbols ask (gdb) PASS: gdb.cp/templates.exp: set multiple-symbols ask delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x401335: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 713. (gdb) run Starting program: /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:713 713 i = i + 1; (gdb) ptype T5 No symbol "T5" in current context. (gdb) FAIL: gdb.cp/templates.exp: ptype T5 ptype t5i type = class T5 { public: static int X; int x; int val; T5(int); T5(int); T5(T5 const&); T5(T5 const&); ~T5(); ~T5(); static void * operator new(unsigned long); static void operator delete(void*); int value(); } (gdb) FAIL: gdb.cp/templates.exp: ptype t5i break T5::T5 Breakpoint 2 at 0x40169d: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 470. (gdb) FAIL: gdb.cp/templates.exp: constructor breakpoint break T5::~T5 Breakpoint 3 at 0x4017d2: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 478. (gdb) PASS: gdb.cp/templates.exp: destructor breakpoint break T5::value Breakpoint 4 at 0x401800: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 493. (gdb) PASS: gdb.cp/templates.exp: value method breakpoint delete breakpoints Delete all breakpoints? (y or n) y (gdb) info breakpoints No breakpoints or watchpoints. (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 5 at 0x401335: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 713. (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.cp/templates Breakpoint 5, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:713 713 i = i + 1; (gdb) print t5i.value() $1 = 2 (gdb) PASS: gdb.cp/templates.exp: print t5i.value() b 770 Breakpoint 6 at 0x401534: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 770. (gdb) c Continuing. Breakpoint 6, main () at ../../../src/gdb/testsuite/gdb.cp/templates.cc:770 770 return 0; (gdb) print fint $2 = {x = 0, t = 0} (gdb) PASS: gdb.cp/templates.exp: print fint print fvpchar $3 = {x = 0, t = 0x0} (gdb) PASS: gdb.cp/templates.exp: print fvpchar ptype Foo type = class Foo { public: int x; int t; int foo(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype Foo ptype fint type = class Foo { public: int x; int t; int foo(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype fint ptype fchar type = class Foo { public: int x; char t; char foo(int, char); } (gdb) FAIL: gdb.cp/templates.exp: ptype fchar ptype fvpchar type = class Foo { public: int x; volatile char *t; volatile char * foo(int, char volatile*); } (gdb) FAIL: gdb.cp/templates.exp: ptype fvpchar print Foo::foo No symbol "Foo" in current context. (gdb) KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) print Foo::foo No symbol "Foo" in current context. (gdb) KFAIL: gdb.cp/templates.exp: print Foo::foo (PRMS: gdb/931) ptype Bar type = class Bar { public: int x; int t; int bar(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype Bar ptype bint type = class Bar { public: int x; int t; int bar(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype bint ptype bint2 type = class Bar { public: int x; int t; int bar(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype bint2 ptype Baz type = class Baz { public: int x; int t; int baz(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype Baz ptype bazint type = class Baz { public: int x; int t; int baz(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype bazint ptype bazint2 type = class Baz { public: int x; char t; char baz(int, char); } (gdb) FAIL: gdb.cp/templates.exp: ptype bazint2 ptype Qux type = class Qux { public: int x; char t; char qux(int, char); } (gdb) FAIL: gdb.cp/templates.exp: ptype Qux ptype quxint type = class Qux { public: int x; int t; int qux(int, int); } (gdb) FAIL: gdb.cp/templates.exp: ptype quxint ptype Spec type = class Spec { public: int x; int spec(char); } (gdb) FAIL: gdb.cp/templates.exp: ptype Spec ptype siip type = class Spec { public: int x; int spec(int*); } (gdb) FAIL: gdb.cp/templates.exp: ptype siip ptype Garply No symbol "Garply" in current context. (gdb) FAIL: gdb.cp/templates.exp: ptype Garply ptype Garply > No symbol "Garply >" in current context. (gdb) FAIL: gdb.cp/templates.exp: ptype Garply > print Garply >::garply No symbol "Garply >" in current context. (gdb) FAIL: gdb.cp/templates.exp: print Garply >::garply break Garply >::garply Breakpoint 7 at 0x401abd: file ../../../src/gdb/testsuite/gdb.cp/templates.cc, line 696. (gdb) PASS: gdb.cp/templates.exp: break Garply >::garply testcase ../../../src/gdb/testsuite/gdb.cp/templates.exp completed in 2 seconds === gdb Summary === # of expected passes 7 # of unexpected failures 20 # of known failures 2 Executing on host: /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb -nw -nx --command gdb_cmd (timeout = 300) GNU gdb (GDB) 6.8.50.20090327-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 "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb version 6.8.50.20090327-cvs -nw -nx runtest completed at Mon Mar 30 16:51:27 2009 --Boundary-00=_YwO0J4YPlgOv8LI--