[Ltrace-devel] [PATCH] Early support for libdl in ltrace

Joe Damato ice799 at gmail.com
Mon Sep 7 19:57:24 UTC 2009


On Sun, Sep 6, 2009 at 10:36 PM, Joe Damato<ice799 at gmail.com> wrote:
> Hi -
>
> I've attached a patch with early support for libdl in ltrace. This is
> patch is pretty rough, intended as a first cut.
>
> A few important notes:
>
> - I don't know much at all about libelf, so proceed with caution.
> - This patch ONLY supports x86_64 right now and I probably should have
> put this code in the architecture specific subdirectory (oops)
> - This patch does not support launching the process (ltrace
> /usr/bin/blah does NOT work - coming soon), but attaching (ltrace -p
> whatever) works.

I should be more specific here. The patch will only trace libdl loaded
symbols if ltrace is attached after the calls to dlopen/dlsym. I am
working on fixing this limitation.

Joe



More information about the Ltrace-devel mailing list