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