gcc/libbacktrace
Ian Lance Taylor 33521509a8 configure.ac: Check for getexecname.
* configure.ac: Check for getexecname.
	* fileline.c: #include <errno.h>.  Define getexecname if not
	available.
	(fileline_initialize): Try to find the executable in a few
	different ways.
	* print.c (error_callback): Only print the filename if it came
	from the backtrace state.
	* configure, config.h.in: Rebuild.

Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com>
Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

From-SVN: r193454
2012-11-12 21:24:19 +00:00
..
aclocal.m4 re PR bootstrap/54732 (Installation failure: libbacktrace rebuilds upon install when built with "make bootstrap-lean") 2012-09-28 06:13:00 +00:00
alloc.c
backtrace-supported.h.in
backtrace.c
backtrace.h configure.ac (GCC_HEADER_STDINT): Invoke. 2012-09-19 13:41:33 +00:00
btest.c * btest.c (f23): Avoid uninitialized variable warning. 2012-10-04 20:16:08 +00:00
ChangeLog configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
config.h.in configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
configure configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
configure.ac configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
dwarf.c dwarf.c (dwarf_fileline): Add cast to avoid warning. 2012-10-10 04:37:06 +00:00
elf.c re PR other/55087 (bogus "linux-vdso.so.1: No such file or directory" caused by libbacktrace) 2012-10-26 20:08:29 +00:00
fileline.c configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
filetype.awk
internal.h re PR other/55087 (bogus "linux-vdso.so.1: No such file or directory" caused by libbacktrace) 2012-10-26 20:08:29 +00:00
Makefile.am re PR other/54761 (FAIL log) 2012-10-02 15:14:25 +02:00
Makefile.in re PR other/54761 (FAIL log) 2012-10-02 15:14:25 +02:00
mmap.c mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size. 2012-10-29 18:42:05 +00:00
mmapio.c configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 2012-09-18 16:36:48 +00:00
nounwind.c re PR bootstrap/54611 (Bootstrap failure: conflicting types for 'backtrace_simple') 2012-09-17 21:14:51 +00:00
posix.c re PR other/55087 (bogus "linux-vdso.so.1: No such file or directory" caused by libbacktrace) 2012-10-26 20:08:29 +00:00
print.c configure.ac: Check for getexecname. 2012-11-12 21:24:19 +00:00
read.c
README
simple.c
state.c
unknown.c

The libbacktrace library
Initially written by Ian Lance Taylor <iant@google.com>

The libbacktrace library may be linked into a program or library and
used to produce symbolic backtraces.  Sample uses would be to print a
detailed backtrace when an error occurs or to gather detailed
profiling information.

The libbacktrace library is provided under a BSD license.  See the
source files for the exact license text.

The public functions are declared and documented in the header file
backtrace.h, which should be #include'd by a user of the library.

Building libbacktrace will generate a file backtrace-supported.h,
which a user of the library may use to determine whether backtraces
will work.  See the source file backtrace-supported.h.in for the
macros that it defines.

As of September 2012, libbacktrace only supports ELF executables with
DWARF debugging information.  The library is written to make it
straightforward to add support for other object file and debugging
formats.