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: Shared library call problems on PowerPC with current binutils/gdb


Daniel Jacobowitz wrote:

> This appears to work consistently, where by work I mean disassembly
> shows the @plt sym but breakpoints on the undecorated version work
> fine.  I'm not sure exactly why; it may be luck.  If it's luck
> and someone cares later, we could make it work reliably by making
> sure the @plt version has an accurate size and the non-@plt version
> has size 0, or by making lookup_minimal_symbol_by_pc_section
> explicitly prefer text to non-text symbols.
> 
> Hmm, thinking about this more, it probably won't work for your
> case after all.  lookup_solib_trampoline_symbol_by_pc will return
> NULL if the first symbol we find is the text version.

If we have two symbols, *both* need to be mst_solib_trampoline.

As an alternative to having two symbols, I'm wondering if there is a
way to have just one symbol with differing SYMBOL_PRINT_NAME (with
@plt) and SYMBOL_SEARCH_NAME (without @plt).  The same might also be
nice for versioned symbols.

I've also been thinking about the same approach to show PowerPC64
'dot' symbols without the dot when printing them ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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