This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Stack backtracing


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().

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]