This is the mail archive of the 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

On Tue, Apr 29, 2008 at 12:53:58AM +0200, Ulrich Weigand wrote:
> - Extend elf_symtab_read to treat a synthetic symbol XXX@plt as a
>   mst_solib_trampoline symbol for XXX.

Sounds reasonable.  I suggested this to Aleksandar for another
problem, even :-) Though it was kind of nice to have it show up in
disassembly with @plt; will it still do that?  It's nice to know
immediately when I'm looking at the PLT stub instead of the

> - Change elf_symtab_read to register symbols with version name
>   simply under their base name.
> - Include something along the lines of Markus' "multiply-defined
>   symbol" patch so that "break printf" will break on *both* definitions
>   (created by the two symbols with different version names) after libc
>   has been loaded.
> - Teach minsym_found about function descriptors.

These sound like a good idea to me.

> - Add extra unwinders to ppc-linux-tdep that recognize the various
>   PLT call and glink stubs, and properly treat them as frameless.
>   (This will probably require code reading ...)
> - Extend ppc_skip_trampoline_code to likewise handle those stubs.

These too, but it would be nice if we could avoid code reading all
the time.  Maybe only do it for symbols without a name or where
the defining symbol has size zero?

Daniel Jacobowitz

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