Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: gdb@sources.redhat.com
Subject: gdb and c++ method names
Date: Mon, 12 Dec 2005 03:15:00 -0000	[thread overview]
Message-ID: <439CEB4C.5050205@tausq.org> (raw)

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/


             reply	other threads:[~2005-12-12  3:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12  3:15 Randolph Chung [this message]
2005-12-12  4:30 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=439CEB4C.5050205@tausq.org \
    --to=randolph@tausq.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox