Bug 8349

Summary: Setting a breakpoint on a C++ class member function doesn't work when the current lanugage is C.
Product: gdb Reporter: mathews_alex
Component: symtabAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: gdb-prs
Priority: P3    
Version: 5.3   
Target Milestone: 7.1   
Host: Target:
Build: Last reconfirmed:

Description mathews_alex 2003-06-18 18:28:00 UTC
[Converted from Gnats 1244]

Setting a breakpoint on a C++ class member function while the current language is C doesn't work.  You get the error message about the class not having the member.  Once the current language is changed to C++ it works as expected.  <TAB> completion does work in the case that the current lanugage is C.

Release:
5.3 and HEAD

Environment:
Red Hat 7.2 i386
Comment 1 Tom Tromey 2010-02-17 16:20:27 UTC
This seems to work fine with cvs head gdb:

(gdb) set language c
(gdb) b K::foo
Breakpoint 1 at 0x8048801: file leak.cc, line 4.