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

Joe Damato ice799 at gmail.com
Sun Sep 13 07:49:52 UTC 2009


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: 12924 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20090913/b53462a1/attachment.obj>


More information about the Ltrace-devel mailing list