Shared library call problems on PowerPC with gdb 7.2

Klaus Zeitler
Mon Apr 15 14:21:00 GMT 2013

I'm trying to debug a shared library on PowerPC (P3041).
Unfortunately it is nearly impossible to step through
functions in the shared library, cause neither "next" nor "step"
work as expected. e.g. I set a breakpoint at a function in the shared
lib and when I try now to step through the code (with "next" or "step")
I get:
"Single stepping until exit from function call___do_global_ctors_aux,
 which has no line number information."

I can return with "finish" to my function, but the same thing happens
for every "next" or "step".

I found a few reports about this problem from 2007 and 2008 (but it
seems as if they were solved long ago), e.g. from Ulrich Weigand:

I'm using gdb 7.2, the exact version is:
GNU gdb (Wind River Linux Sourcery G++ 4.4a-341)
Maybe the gcc/binutils version is also relevant:
powerpc-wrs-linux-gnu-gcc (Wind River Linux Sourcery G++ 4.4a-341) 4.4.1



|  Klaus Zeitler              Alcatel-Lucent                        |
|  Lorenzstrasse 10           70435 Stuttgart, Germany              |
|  Department:                Building: 005  Office: 3/171          |
|  Telefon:                   +49 711821 43898                      |
|  Email:                 |
|                                                                   |
| Alcatel-Lucent Deutschland AG                                     |
| Sitz der Gesellschaft: Stuttgart · Amtsgericht Stuttgart HRB 4026 |
| Vorsitzender des Aufsichtsrates: Michael Oppenhoff                |
| Vorstand:                                                         |
|   Alf Henryk Wulf (Vorsitzender) · Dr. Rainer Fechner             |
Nothing is like it seems, but everything is exactly like it is. -- Yogi Berra

More information about the Gdb mailing list