This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/12803] Regression: const/volatile method functionslinespec `break'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]