[Ltrace-devel] [PATCH] Early support for libdl in ltrace
Joe Damato
ice799 at gmail.com
Thu Sep 17 08:10:48 UTC 2009
Hi -
No responses =C but I'll keep sending patches until some one says "stop" =]
I've attached a cleaned up patch of libdl support, this works (and was
tested) on both x86 AND x86_64. This still has the caveats listed
below (namely doesn't know about dlsym events that occur after it
attaches), but the code has been split into architecture dependent
subdirs, and is quite a bit cleaner than the previous iterations.
I hope to be done with full libdl support in the next few days, time permitting.
As always questions, comments, suggestions, gripes, and grievances are
all welcome.
Thanks,
Joe
On Sun, Sep 13, 2009 at 12:49 AM, Joe Damato <ice799 at gmail.com> wrote:
> Hi --
>
> Not sure if anyone is reading these emails, but I've cleaned up the
> first patch a bit and made it easier to use. A new patch which
> applies against SHA 163765561621a9127cee3243dd94011e70a2c580 (New
> version (0.5.3)) is attached to this email.
>
> This patch cleans up libdl support and extends the -x flag a bit so
> that it can be used to trace specific libdl loaded symbols, without
> the need of -l. -l was turning out to be a bit painful.
>
> I'm still working on adding support for attaching to a process before
> libdl is used. So expect to see another patch to fully support libdl
> in the very near future.
>
> A sample usage, against a program which uses libdl to load
> libmysqlclient might be:
>
> ltrace -x mysql_real_query -x mysql_real_connect -p <pid>
>
> Questions, comments, and suggestions are welcome!
>
> Thanks,
> Joe
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ltrace.patch
Type: application/octet-stream
Size: 24904 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20090917/e08e2fe0/attachment-0001.obj>
More information about the Ltrace-devel
mailing list