Skip to contentSkip to conversation

ltrace for ppc

DISCUSSION Anton Blanchard 3 participants 3 messages Feb 13, 2001 – Feb 16, 2001

lore
Share & tools
lore
#1 lore raw
Quoted 7 lines · Anton Blanchard

Hi,

ltrace is a cool little program for tracing library calls. I ported it to ppclinux a while ago but the ltrace maintainer seems to have ignored my patch.

Quoted 6 lines

For anyone interested the patch can be found at:

http://linuxcare.com.au/anton/patches/ltrace_ppc_patch

It should apply cleanly to the latest source (I got mine from the debian archive).

You did? Wow! I spent ages trying to do this...

Oh, looking at your patch I remember what happened. It's a bloody miracle that ltrace works at all on any architecture; the PLT tricks that the PPC plays are not at all uncommon, as I recall. I got derailed trying to make it insert breakpoints at the proper time.

Thanks for the patch; I'll probably keep bugging the author about this...

Dan

/--------------------------------\ /--------------------------------\

|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         [email protected]         |  |       [email protected]      |
\--------------------------------/  \--------------------------------/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw

If you're interested in ltrace, you may want to take a look at the Linux trace toolkit (http://www.opersys.com/LTT). It runs fine on PPC too.

Best regards,

Karim

Quoted 26 lines · Daniel Jacobowitz
Quoted 7 lines · Anton Blanchard

Hi,

ltrace is a cool little program for tracing library calls. I ported it to ppclinux a while ago but the ltrace maintainer seems to have ignored my patch.

Quoted 6 lines

For anyone interested the patch can be found at:

http://linuxcare.com.au/anton/patches/ltrace_ppc_patch

It should apply cleanly to the latest source (I got mine from the debian archive).

You did? Wow! I spent ages trying to do this...

Oh, looking at your patch I remember what happened. It's a bloody miracle that ltrace works at all on any architecture; the PLT tricks that the PPC plays are not at all uncommon, as I recall. I got derailed trying to make it insert breakpoints at the proper time.

Thanks for the patch; I'll probably keep bugging the author about this...

Quoted 8 lines

Dan

/--------------------------------\ /--------------------------------\

|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         [email protected]         |  |       [email protected]      |
\--------------------------------/  \--------------------------------/

--
===================================================
Karim Yaghmour
[email protected]
Operating System Consultant
(Linux kernel, real-time and distributed systems)
===================================================

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/