summaryrefslogtreecommitdiff
path: root/libbacktrace
Commit message (Collapse)AuthorAgeFilesLines
* PR bootstrap/54834ian2013-01-013-2/+9
| | | | | | | | | * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I $(MULTIBUILDTOP)/../../gcc/include. * Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194770 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/55536ian2013-01-012-4/+28
| | | | | | | | | * mmap.c (backtrace_alloc): Don't call sync functions if not threaded. (backtrace_free): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194768 138bc75d-0d04-0410-961f-82ee72b054a4
* * mmapio.c: Define MAP_FAILED if not defined.danglin2012-12-122-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194443 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54926jakub2012-12-115-10/+63
| | | | | | | | | | | | * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. * configure.ac: If --with-target-subdir, add -frandom-seed=$@ to EXTRA_FLAGS unconditionally, otherwise check whether the compiler accepts it. * Makefile.in: Regenerated. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194412 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54926jakub2012-12-073-2/+8
| | | | | | | | * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194303 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf.c (read_attribute): Always clear val.ian2012-11-202-0/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193670 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/55312ian2012-11-133-2/+7
| | | | | | | * configure.ac: Only add -Werror if building a target library. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193485 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Check for getexecname.ian2012-11-126-10/+111
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193454 138bc75d-0d04-0410-961f-82ee72b054a4
* * mmap.c (backtrace_vector_release): Correct last patch: addian2012-10-292-1/+7
| | | | | | | aligned, not size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192956 138bc75d-0d04-0410-961f-82ee72b054a4
* * mmap.c (backtrace_vector_release): Make sure freed block isian2012-10-292-2/+17
| | | | | | | aligned on 8-byte boundary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192945 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/55087ian2012-10-265-7/+31
| | | | | | | | | | | | * posix.c (backtrace_open): Add does_not_exist parameter. * elf.c (phdr_callback): Do not warn if shared library could not be opened. * fileline.c (fileline_initialize): Update calls to backtrace_open. * internal.h (backtrace_open): Update declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192861 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/55061ian2012-10-263-5/+40
| | | | | | | | * configure.ac: Check for _Unwind_GetIPInfo function declaration. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192853 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/55061ian2012-10-243-2/+53
| | | | | | | | * configure.ac: Check whether -funwind-tables option works. * configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192782 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Do not use dl_iterate_phdr on Solaris 10.ian2012-10-113-0/+17
| | | | | | | * configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192371 138bc75d-0d04-0410-961f-82ee72b054a4
* * elf.c: Rename all Elf typedefs to start with b_elf, and be allian2012-10-102-61/+66
| | | | | | | lower case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192331 138bc75d-0d04-0410-961f-82ee72b054a4
* * elf.c (elf_add_syminfo_data): Add casts to avoid warning.hp2012-10-102-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192311 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf.c (dwarf_fileline): Add cast to avoid warning.ian2012-10-102-3/+8
| | | | | | | (backtrace_dwarf_add): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192288 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for tracing through shared libraries.ian2012-10-097-106/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for link.h and dl_iterate_phdr. * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef ELF macros before #defining them. (dl_phdr_info, dl_iterate_phdr): Define if system does not have dl_iterate_phdr. (struct elf_syminfo_data): Add next field. (elf_initialize_syminfo): Initialize next field. (elf_add_syminfo_data): New static function. (elf_add): New static function, broken out of backtrace_initialize. Call backtrace_dwarf_add instead of backtrace_dwarf_initialize. (struct phdr_data): Define. (phdr_callback): New static function. (backtrace_initialize): Call elf_add. * dwarf.c (struct dwarf_data): Add next and base_address fields. (add_unit_addr): Add base_address parameter. Change all callers. (add_unit_ranges, build_address_map): Likewise. (add_line): Add ddata parameter. Change all callers. (read_line_program, add_function_range): Likewise. (dwarf_lookup_pc): New static function, broken out of dwarf_fileline. (dwarf_fileline): Call dwarf_lookup_pc. (build_dwarf_data): New static function. (backtrace_dwarf_add): New function. (backtrace_dwarf_initialize): Remove. * internal.h (backtrace_dwarf_initialize): Don't declare. (backtrace_dwarf_add): Declare. * configure, config.h.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192267 138bc75d-0d04-0410-961f-82ee72b054a4
* * btest.c (f23): Avoid uninitialized variable warning.gerald2012-10-042-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192102 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf.c: If the system header files do not declare strnlen,ian2012-10-042-2/+21
| | | | | | | provide our own version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192082 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf.c (read_uleb128): Fix overflow test.ian2012-10-032-10/+25
| | | | | | | | (read_sleb128): Likewise. (build_address_map): Don't change unit_buf.start. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192053 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc/ChangeLog: Fix whitespace.uros2012-10-021-3/+3
| | | | | | | | * libbacktrace/ChangeLog: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191982 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/54761uros2012-10-025-5/+26
| | | | | | | | | | * configure.ac (EXTRA_FLAGS): New. * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). * configure, Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191981 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/54749ian2012-09-292-1/+8
| | | | | | | | | * fileline.c (fileline_initialize): Pass errnum as -1 when reporting that we could not read executable information after a previous failure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191855 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54732ian2012-09-286-682/+100
| | | | | | | | | * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. * Makefile.am: Add dependencies for all objects. * configure, aclocal.m4, Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191819 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/54726ian2012-09-272-1/+7
| | | | | | | | * elf.c (backtrace_initialize): Set *fileln_fn, not state->fileln_fn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191811 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiledian2012-09-193-1/+30
| | | | | | | | as a target library. * configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191503 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (GCC_HEADER_STDINT): Invoke.ian2012-09-199-5/+1078
| | | | | | | | | | * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". * btest.c: Don't include <stdint.h>. * dwarf.c: Likewise. * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191474 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54623ian2012-09-193-2/+15
| | | | | | | | | * Makefile.am (AM_CPPFLAGS): Define. (AM_CFLAGS): Remove -I options. * Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191459 138bc75d-0d04-0410-961f-82ee72b054a4
* * posix.c (O_BINARY): Define if not defined.ian2012-09-185-1/+53
| | | | | | | | | | (backtrace_open): Pass O_BINARY to open. Only call fcntl if HAVE_FCNTL is defined. * configure.ac: Test for the fcntl function. * configure, config.h.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191443 138bc75d-0d04-0410-961f-82ee72b054a4
* * btest.c (test1, test2, test3, test4): Add the unused attribute.ian2012-09-182-4/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191440 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf.c: Correct test of HAVE_DECL_STRNLEN.ian2012-09-182-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191437 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.ian2012-09-185-995/+1639
| | | | | | | | * mmapio.c: Don't define _GNU_SOURCE. * configure, config.h.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191435 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Check whether strnlen is declared.ian2012-09-185-2/+77
| | | | | | | | * dwarf.c: Declare strnlen if not declared. * configure, config.h.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191433 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix libbacktrace bootstrap with gcc 4.4ro2012-09-183-0/+7
| | | | | | | * fileline.c: Include <stdlib.h>. * mmap.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191414 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54611ian2012-09-172-3/+10
| | | | | | | | * nounwind.c (backtrace_full): Rename from backtrace. Add state parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191408 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54611gerald2012-09-172-1/+7
| | | | | | | * nounwind.c (backtrace_simple): Add state parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191405 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/54609ian2012-09-172-6/+13
| | | | | | | | | * unknown.c (unknown_fileline): Add state parameter, remove fileline_data parameter, name error_callback parameter. (backtrace_initialize): Add state parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191402 138bc75d-0d04-0410-961f-82ee72b054a4
* libbacktrace/:ian2012-09-1727-0/+21527
* Initial implementation. ./: * MAINTAINERS (Various Maintainers): Add libbacktrace. * configure.ac (host_libs): Add libbacktrace. (target_libraries): Add libbacktrace. * Makefile.def (host_modules): Add libbacktrace. (target_modules): Likewise. * configure, Makefile.in: Rebuild. gcc/go: * config-lang.in (target_libs): Add target-libbacktrace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191397 138bc75d-0d04-0410-961f-82ee72b054a4