I would like to trace the function calls to a particular library, call it libfoo. Unfortunately the documentation I have found on it is sparse, so I have a lot of questions.
In the documentation of libfoo, it lists the calls foo_a, foo_b, foo_c .. as api calls. In a Windows DLL, generating such a call list is easy, each external call must be declared so (dllexport(DLL) or something like that), a simple script would extract all the exported symbols. How would I go about generating such a list for linux shared objects.
Once I generate such a list, how do I go about using it with ltrace to generate a trace of the calls using a particular program. Also how do I expand out the ( C ) string arguments in those calls?
foo_
? – Mark Plotnick Apr 16 '15 at 16:07objdump -T
over it. But it looks like you just want ltrace's-l
? ltrace will show strings up to a default size, but you can expand that with-s
. Am I missing something here? – Josip Rodin Jul 9 '16 at 14:29