Bug 8349 - Setting a breakpoint on a C++ class member function doesn't work when the current lanugage is C.
Summary: Setting a breakpoint on a C++ class member function doesn't work when the cur...
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: 5.3
: P3 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 18:28 UTC by mathews_alex
Modified: 2010-02-17 16:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.