This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Stack backtracing
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Stack backtracing
- From: "Andrew Morton" <morton at nortelnetworks dot com>
- Date: Tue, 02 Nov 1999 10:18:38 +0000
- CC: Andrew Morton <akpm at zip dot com dot au>, "binutils at sourceware dot cygnus dot com" <binutils at sourceware dot cygnus dot com>
- Organization: Nortel Networks, Wollongong Australia
- References: <381D7CAB.53DFB176@zipworld.com.au> <u866zmz92j.fsf@gromit.rhein-neckar.de>
Andreas Jaeger wrote:
>
> Have a look at the debug support in glibc 2.1.2 (catchsegv and
> libSegFault). I'm not sure if it does everything you like but it's at
> least a starting point.
Thanks again, Andreas. You guys make a Linux-only application very
tempting :-)
Do you think it would be hard to make the guts of this work on a
respectable subset of platforms? Perhaps via libbfd?
BTW - a minor nit: there's a comment in front of
sysdeps/generic/segfault.c:catch_segfault() which says "don't call
malloc()", but it calls __backtrace_symbols_fd().
Both the generic/ and generic/elf/ versions of __backtrace_symbols_fd()
call malloc().