Hi,

I tried using your patches, but things don't quite work for me.

Firstly, the patches include the entire /debian subdirectory, which
probably isn't what you want.  However there are some things you do
want, like adding the architecture in the control file, which aren't
there.

As a guide, I'd find it easiest if I could do

apt-get source ltrace

and then use your patches.

Things don't work for me, however.  I installed it on a POWER4 machine
(using the gcc4 port) and tried running it

[EMAIL PROTECTED]:~/ltrace-0.3.36$ ltrace /bin/ls
Warning: Couldn't get symbol "main" from "/bin/ls" or it's a duplicate
[ls output follows with no ltrace output]
+++ exited (status 0) +++

On the code; I don't know that much about PPC but I did write a IA64
port which I also want to get in.  At a glance it seems we could both
do with more architecture abstraction.  For example, in read_elf()
what used to be a fairly straight forward breakpoint in the PLT turns
into a bit of a hack requiring you to understand that the PLT on ppc64
is writable (unlike on other architectures I know where the PLT looks
up a GOT entry).  And the elf_plt2addr() peering into the opd has me
similarly confused, along with the indirection through plt2addr() for
the other architectures.  Personally I think lots more comments
wouldn't go astray.

-i

Attachment: signature.asc
Description: Digital signature

Reply via email to