This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Use symbol search name in expand_symtabs_matching_via_partial...
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 13 Dec 2011 21:45:04 +0100
- Subject: Re: [RFA] Use symbol search name in expand_symtabs_matching_via_partial...
- References: <1323808430-18660-1-git-send-email-brobecker@adacore.com>
On Tue, 13 Dec 2011 21:33:50 +0100, Joel Brobecker wrote:
> In C++, that does not make a difference, but it does in
> Ada, because Ada searches using the symbol encoded name...
That is more your Ada decision then...
> --- a/gdb/psymtab.c
> +++ b/gdb/psymtab.c
> @@ -1305,7 +1305,7 @@ expand_symtabs_matching_via_partial
> || (kind == TYPES_DOMAIN
> && SYMBOL_CLASS (*psym) == LOC_TYPEDEF))
> && (*name_matcher) (current_language,
> - SYMBOL_NATURAL_NAME (*psym), data))
> + SYMBOL_SEARCH_NAME (*psym), data))
It will need the same change for .gdb_index in write_psymbols.
It would also mean .gdb_index version should be increased and backward
compatibility implemented although IMHO it can be ignored for Ada, not sure if
Ada users deploy .gdb_index.
Thanks,
Jan