This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11734] New: break c::bar() broken, can't find bar
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 21 Jun 2010 06:59:29 -0000
- Subject: [Bug c++/11734] New: break c::bar() broken, can't find bar
- Reply-to: sourceware-bugzilla at sourceware dot org
With the appended testcase, I get the following:
$ g++ --version
g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
[...]
$ g++ -g foo.cc foo2.cc
$ ./gdb -nx ./a.out
GNU gdb (GDB) 7.1.50.20100619-cvs
[...]
(gdb) start
[...]
(gdb) b 'c::foo()'
the class c does not have any method named foo()
Hint: try 'c::foo()<TAB> or 'c::foo()<ESC-?>
(Note leading single quote.)
Make breakpoint pending on future shared library load? (y or [n])
This is a regression from 7.1.
fyi, the following does work:
(gdb) b c::foo # Do this first ...
(gdb) b c::foo() # ... and then this works.
---
foo.h:
class c
{
public:
void foo ();
};
---
foo.cc:
#include "foo.h"
int
main ()
{
c* p = new c;
p->foo ();
return 0;
}
---
foo2.cc:
#include "foo.h"
void
c::foo ()
{
}
--
Summary: break c::bar() broken, can't find bar
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at sourceware dot org
ReportedBy: dje at google dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: amd64-linux
GCC host triplet: amd64-linux
GCC target triplet: amd64-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=11734
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.