On Sun, May 15, 2011 at 02:12:58PM +0300, Janne Blomqvist wrote: > > so, here is take 3 (sigh). Compared to take 2, it no longer uses > stdio, since opening a stdio FILE stream probably malloc()'s a buffer, > which is not async-signal-safe. > > Regtested on x86_64-unknown-linux-gnu, Ok for trunk? > > 2011-05-15 Janne Blomqvist <j...@gcc.gnu.org> > > PR libfortran/48931 > * configure.ac: Check for backtrace_symbols_fd instead of > backtrace_symbols, check for readlink. > * config.h.in: Regenerated. > * configure: Regenerated. > * runtime/backtrace.c (local_strcasestr): Remove. > (bt_header): New function. > (dump_glibc_backtrace): Remove. > (fd_gets): New function. > (show_backtrace): Rework to use backtrace_symbols_fd and pipes, > reformat output. > * runtime/main.c (store_exe_path): Try to check /proc/self/exe > first. >
OK. -- Steve