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: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 May 2011 16:52:22 +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 #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-05-24 16:51:46 UTC ---
(In reply to comment #1)
> "break 'C::m() const'" does work, but you must "set lang c++" first.
Aha, again, OK.
> 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?
Yes, I would prefer it, it was already so in pre-phys and getting current
language correctly set does not always work.
> The volatile case is a bug: keep_name_info does not include it. When it is
> added, then it works. I can prepare a patch and some tests for this.
OK, thanks.
--
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.