[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

more on stack dumps




reading more on dejanews, i found this message:

====================================================================
Forum: comp.os.linux.development.system
Thread: How to dump a user stack when program is running ?
Message 1 of 10

 Subject:
        Re: How to dump a user stack when program is running ?
 Date:
        10/11/1999
 Author:
        John Reiser <jreiser@teleport.com>

                  << previous  ·  next >>

 glibc-2.1.2 has functions
 int backtrace(void **p_pc, int n)
 char **backtrace_symbols(void *const *arr, int n)
 void backtrace_symbols_fd(void *const *arr, int n, int fd)
 which work best when the code is compiled with the usual frame pointers.
See <execinfo.h>.

 --
 John Reiser, jreiser@teleport.com

====================================================================

guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il