[RFA] choose symbol from given block's objfile first.

Tom Tromey tromey@redhat.com
Wed May 9 20:57:00 GMT 2012


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> I did a second audit, and found that a lot of those uses were for
Joel> purposes other than symbol lookup (finding the symtab associated
Joel> a PC, for instance), so an update shouldn't be needed there.
[...]

Sounds good.  Thanks for looking.

Joel> There are also some locations where the loop is inside a routine
Joel> that does a lookup without "context".  For instance,
Joel> basic_lookup_transparent_type.  In that case, the only real caller
Joel> I could find was check_typedef, which I don't think we want to
Joel> change.

I'm not so sure.  It seems like you could make a multi-objfile test case
where an incomplete type is incorrectly resolved to a type in another
objfile.

Tom



More information about the Gdb-patches mailing list