aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/btest.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-28dwarf.c (find_address_ranges): New static function, broken out of ↵Ian Lance Taylor1-0/+15
build_address_map. * dwarf.c (find_address_ranges): New static function, broken out of build_address_map. (build_address_map): Call it. * btest.c (check): Check for missing filename or function, rather than crashing. (f3): Check that enough frames were returned. From-SVN: r205490
2013-11-19backtrace.h (backtrace_syminfo_callback): Add symsize argument.Jakub Jelinek1-3/+27
* backtrace.h (backtrace_syminfo_callback): Add symsize argument. * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as last argument. * btest.c (struct symdata): Add size field. (callback_three): Add symsize argument. Copy it to the data->size field. (f23): Set symdata.size to 0. (test5): Likewise. If sizeof (int) > 1, lookup address of ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size values. From-SVN: r205028
2013-11-16backtrace.h (backtrace_syminfo): Update comment and parameter name to take ↵Ian Lance Taylor1-0/+48
any address, not just a PC value. * backtrace.h (backtrace_syminfo): Update comment and parameter name to take any address, not just a PC value. * elf.c (STT_OBJECT): Define. (elf_nosyms): Rename parameter pc to addr. (elf_symbol_search): Rename local variable pc to addr. (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. (elf_syminfo): Rename parameter pc to addr. * btest.c (global): New global variable. (test5): New test. (main): Call test5. From-SVN: r204904
2013-01-14Update copyright years in libbacktrace.Richard Sandiford1-1/+1
From-SVN: r195165
2012-10-04* btest.c (f23): Avoid uninitialized variable warning.Gerald Pfeifer1-1/+1
From-SVN: r192102
2012-09-19configure.ac (GCC_HEADER_STDINT): Invoke.Rainer Orth1-1/+0
* configure.ac (GCC_HEADER_STDINT): Invoke. * 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. Co-Authored-By: Ian Lance Taylor <iant@google.com> From-SVN: r191474
2012-09-18* btest.c (test1, test2, test3, test4): Add the unused attribute.Ian Lance Taylor1-4/+4
From-SVN: r191440
2012-09-17libbacktrace/:Ian Lance Taylor1-0/+629
* 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. From-SVN: r191397