This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/12803] Regression: const/volatile method functionslinespec `break'
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 May 2011 17:04:47 +0000
- Subject: [Bug breakpoints/12803] Regression: const/volatile method functionslinespec `break'
- Auto-submitted: auto-generated
- References: <bug-12803-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12803
--- Comment #3 from Keith Seitz <keiths at redhat dot com> 2011-05-24 17:04:41 UTC ---
(In reply to comment #1)
> "break 'C::m() const'" does work, but you must "set lang c++" first. This is
> because keep_name_info in linespec.c is only called when the current language
> is set to c++. We could change this to unconditionally call this; from
> decode_compound, it should be relatively safe (assertion untested). What do you
> think?
Actually, I was incorrect. keep_name_info is guarded in one place by the
current language. There are other uses in decode_line_1 which are unguarded.
keep_name_info does do some c++-specific things (keeping overload & template
info), but I am unable to invent a specific case where this would interfere
with C, and the test suite shows no regressions by removing this guard
(linespec.c:1615).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.