[Ltrace-devel] ARM support

Petr Machata pmachata at redhat.com
Wed Apr 25 17:34:24 UTC 2012


Petr Machata <pmachata at redhat.com> writes:

> Florian Echtler <floe at butterbrot.org> writes:
>> I forgot to mention one peculiar aspect: I explicitly have to add the
>> system functions I'm interested in via "-x func", otherwise, they will
>> not be traced. I assume that is due to the way the Android linker loads
>> libraries into Dalvik processes (shell tools, again, work fine without
>> this kludge).
>
> That's probably because it dlopens the libraries.  We have a hack on
> master where ltrace looks for -x symbols in dlopened libraries, if it
> doesn't find them in the main binary.  This should all go away with the
> code on libs branch, where ltrace applies the selected filtering rules
> to all mapped-in DSOs (and the main binary).

Hmm, which is strange, why would a library implementing read and write
be dlopened?  Maybe it's a bug in the dlopen code, that it interprets
all libraries of an attached-to process as dlopened.

PM



More information about the Ltrace-devel mailing list