This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and c++ method names


Is this expected behavior?

GNU gdb 6.4.50.20051209-cvs
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"...
(gdb) b StringTest<wchar_t>::testFunction
Breakpoint 1 at 0x3644: file
../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39.
(gdb) b main
Breakpoint 2 at 0x398c: file
../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 62.
(gdb) run
Starting program: /home/tausq/src/build/gdb/testsuite/gdb.cp/bs15503
Error in re-setting breakpoint 1:
the class StringTest<wchar_t> does not have any method named testFunction
Hint: try 'StringTest<wchar_t>::testFunction<TAB> or
'StringTest<wchar_t>::testFunction<ESC-?>
(Note leading single quote.)

Breakpoint 2, main () at ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc:62
62         StringTest<wchar_t> ts;
(gdb) b 'StringTest<wchar_t>::
StringTest<wchar_t>::StringTest()    StringTest<wchar_t>::testFunction()
StringTest<wchar_t>::runTest()
(gdb) b 'StringTest<wchar_t>::testFunction()'
Note: breakpoint 1 (disabled) also set at pc 0x3644.
Breakpoint 3 at 0x3644: file
../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39.
(gdb) b StringTest<wchar_t>::testFunction()
Note: breakpoints 1 (disabled) and 3 also set at pc 0x3644.
Breakpoint 4 at 0x3644: file
../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39.
(gdb) b StringTest<wchar_t>::testFunction
the class StringTest<wchar_t> does not have any method named testFunction
Hint: try 'StringTest<wchar_t>::testFunction<TAB> or
'StringTest<wchar_t>::testFunction<ESC-?>
(Note leading single quote.)
(gdb)

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]