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]

Re: [patch 1/2] Search typedefs in namespaces also in other files


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> 2010-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan> 	* cp-namespace.c (cp_lookup_nested_type): New variable
Jan> 	concatenated_name.  Turn the current return condition into a reverse
Jan> 	one.  Call also lookup_static_symbol_aux on the constructed qualified
Jan> 	name.
Jan> 	* symtab.c (lookup_symbol_aux): Move variable objfile and searching in
Jan> 	other files into a called ...
Jan> 	(lookup_static_symbol_aux): ... new function here.
Jan> 	* symtab.h (lookup_static_symbol_aux): New prototype.
Jan> 	* valops.c (value_maybe_namespace_elt): Call also
Jan> 	lookup_static_symbol_aux if we failed otherwise.

Jan> 2010-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan> 	* gdb.cp/namespace.exp (whatis C::cOtherFileType)
Jan> 	(whatis ::C::cOtherFileType, whatis C::cOtherFileVar)
Jan> 	(whatis ::C::cOtherFileVar, print C::cOtherFileVar)
Jan> 	(print ::C::cOtherFileVar)
Jan> 	(whatis C::OtherFileClass::cOtherFileClassType)
Jan> 	(whatis ::C::OtherFileClass::cOtherFileClassType)
Jan> 	(print C::OtherFileClass::cOtherFileClassVar)
Jan> 	(print ::cOtherFileClassVar)
Jan> 	(print ::C::OtherFileClass::cOtherFileClassVar): New tests.
Jan> 	(ptype OtherFileClass, ptype ::C::OtherFileClass): Permit arbitrary
Jan> 	trailing content.
Jan> 	* gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType)
Jan> 	(C::OtherFileClass::cOtherFileClassVar)
Jan> 	(C::OtherFileClass::cOtherFileClassVar_use, C::cOtherFileType)
Jan> 	(C::cOtherFileVar, C::cOtherFileVar_use): New.

This is ok.  Thanks.

Tom


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