[lug] Stack trace question
Chris Riddoch
socket at peakpeak.com
Wed Aug 16 16:54:25 MDT 2000
"Dan Wilson" <danwilson100 at hotmail.com> writes:
> In my program I want to trace the stack and see every function within
> the stack and what module it is coming from. If main() calls foo() from
> foo.so and foo called bar() from bar.so and bar() called myfunction() from
> mylibrary.so, In myfunction() I want to see bar() coming from bar.so
> and foo() coming from foo.so and so on. No clue how to do this any
> help is greatly appreciated.
I believe strace might do what you want. Either that or gdb. gdb has
a front-end you can run under X called ddd, but I've never used it,
myself.
--
Chris Riddoch
socket at peakpeak.com
More information about the LUG
mailing list