This is the mail archive of the gdb-patches@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]

[RFA] Change to pre-expand symtabs


Hi,

This patch actually does two things, both related to PR symtab/11743 (for which I've previously submitted various ugly patches). First, it switches gdb to search for symtabs by using psymtab pre-expansion.

Second, it strips off overload information from psymtab search names, since psymtabs do not contain any of this information to begin with. I believe this is going to be the cleanest approach to fixing the overload-instance-in-a-psymtab problem (symtab/11743) that we're likely to find.

Note that I have not addressed the linespec.c problems specifically reported in symtab/11743. This simply gets the non-quoted case working (which is a pre-requisite anyway).

Keith

ChangeLog
2010-07-26  Keith Seitz  <keiths@redhat.com>

	PR symtab/11743 (partial):
	* psymtab.c (lookup_symbol_aux_psymtabs): Always return NULL;
	switching to pre-expanding symtabs instead.
	(pre_expand_symtabs_matching_psymtabs): Implement.
	If overload information is present in the search name,
	strip it.

Attachment: expand-psymtabs-overloaded.patch
Description: Text document


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