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: Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.]


> 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


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