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] Typedef'd method parameters [3/4]


Hi,

So, finally, the "guts" of the patch. This is the one where we add calls to cp_canonicalize_no_typedefs (introduced in this patch) to decode_variable and decode_compound (and one or two other appropriate places), allowing typedefs to be resolved to their basic types before looking the symbol in the symbol table.

Comments/questions/concerns?

Keith

ChangeLog
2011-04-20  Keith Seitz  <keiths@redhat.com>

	* cp-support.h (cp_canonicalize_string_no_typedefs): Define.
	* cp-support.c (inspect_type): New function.
	(replace_typedefs): New function.
	(cp_canonicalize_string_no_typedefs): New function.
	* linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
	instead of cp_canonicalize_string.
	(find_method): Likewise.
	(decode_compound): Before looking up the name, call
	cp_canonicalize_string_no_typedefs.
	(decode_variable): Likewise.

Attachment: cp_canonicalize_no_typedefs.patch
Description: Text document


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