Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.]

Joel Brobecker brobecker@adacore.com
Mon May 14 17:59:00 GMT 2012


> I agree; I was going to suggest it.  And naturally, this is target
> dependent.  On Windows/PE, there's no concept of symbol preemption, so
> looking in the current image / objfile would always be good.  We
> already do something of the sort with solib_global_lookup ->
> elf_lookup_lib_symbol.

<brainstorming>

So enhance elf_lookup_lib_symbol to search the main objfile?
It would mean that, if the main objfile doesn't have the symbol,
and thus returns no match, the normal lookup loop would potentially
search the main objfile a second time...

Perhaps a gdbarch method?

</brainstorming>

-- 
Joel



More information about the Gdb-patches mailing list