Re: Is there an strace type program for shared libs
hi jaldhar,
small update. ltrace _can_ do what you want. i think:
ltrace --library=libm.so --library=libglib.so -o ltrace.output a.out
will put all function calls associated with the math and glib libraries
into a file named ltrace.output made by the executable a.out.
apparently, you can specify 20 libraries.
neat!!! i had no idea ltrace could do this. learn something
everyday. :)
pete
begin Jaldhar H. Vyas <jaldhar@debian.org>
> On Thu, 24 Jan 2002, Peter Jay Salzman wrote:
>
> > well, there's ltrace which lists library calls. i don't think you can
> > restrict output to a particular shared library though.
> >
>
> Thanks to you and Jason for the quick answers. I'll look into ltrace and
> whip up some perl to munge the results. It's only a couple of function
> calls I'm interested in so it shouldn't be too bad.
>
>
> --
> Jaldhar H. Vyas <jaldhar@debian.org>
> It's a girl! See the pictures - http://www.braincells.com/shailaja/
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
The mathematics [of physics] has become ever more abstract, rather than more
complicated. The mind of God appears to be abstract but not complicated.
He also appears to like group theory. -- Tony Zee's `Fearful Symmetry'
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
Reply to: