Re: debugging a multi-threaded program on linux.
From: Chris Markle (cmarkle_at_sendmail.com)
Date: 05/10/03
- Next message: Ed L Cashin: "Re: debugging a multi-threaded program on linux."
- Previous message: chris berg: "Re: Need a log query tool/script like swatch but not"
- In reply to: Michael B. Allen: "Re: debugging a multi-threaded program on linux."
- Next in thread: Ed L Cashin: "Re: debugging a multi-threaded program on linux."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 10 May 2003 02:31:35 GMT
All,
> If you use GNU C I'm certain there is a way to get a sort of stack
> trace. I recall a thread about it. Unfortunately I do not know the
> function/macro necessary to invoke it. Perhaps someone else can put a
> finger on it?
see glibc backtrace(), backtrace_symbols() and backtrace_symbols_fd()
functions (
http://www.gnu.org/manual/glibc-2.2.3/html_chapter/libc_33.html ). Or look
into libunwind although it is somewhat "green" and works best on ia64 (
http://www.hpl.hp.com/research/linux/libunwind/index.php4 ).
Chris
- Next message: Ed L Cashin: "Re: debugging a multi-threaded program on linux."
- Previous message: chris berg: "Re: Need a log query tool/script like swatch but not"
- In reply to: Michael B. Allen: "Re: debugging a multi-threaded program on linux."
- Next in thread: Ed L Cashin: "Re: debugging a multi-threaded program on linux."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|