This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/15962] break / rbreak fails to match C linkage C++ functions with user-defined types
- From: "jifl-bugzilla at jifvik dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 03 Feb 2015 22:09:23 +0000
- Subject: [Bug symtab/15962] break / rbreak fails to match C linkage C++ functions with user-defined types
- Auto-submitted: auto-generated
- References: <bug-15962-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15962
--- Comment #1 from Jonathan Larmour <jifl-bugzilla at jifvik dot org> ---
Created attachment 8099
--> https://sourceware.org/bugzilla/attachment.cgi?id=8099&action=edit
Candidate patch to try with and without canonicalization
Hi,
I've come back to this issue as it is still present in 7.8.2. The suggested fix
I proposed was not right - cp_canonicalize_string_no_typedefs() will eventually
call lookup_symbol() (via replace_typedefs() or inspect_type()) which can cause
infinite recursion.
Therefore I am attaching a possible more straightforward fix which is to adjust
find_linespec_symbols() so that it first tries to find a function symbol for
the passed-in name, and only then repeats the search with a canonicalized
version of the name.
It certainly fixes the reported issue. So can someone have a look at it?
Thanks.
I do have an FSF assignment.
Jifl
2014-02-03 Jonathan Larmour <jifl@eCosCentric.com>
PR symtab/15962
* linespec.c (find_linespec_symbols): Attempt to find function symbol
both without and with C++ canonicalization.
--
You are receiving this mail because:
You are on the CC list for the bug.