summaryrefslogtreecommitdiff
path: root/libbacktrace/config.h.in
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-10-09 18:20:45 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-10-09 18:20:45 +0000
commite561a9920cce1e638826a53599eb55ec44ce54c2 (patch)
treecf3815f8c8b0babee15a42892364a912abc14de3 /libbacktrace/config.h.in
parent1a61077e0ef68c9c4453f86c408a302518dd8075 (diff)
Add support for tracing through shared libraries.
* 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. From-SVN: r192267
Diffstat (limited to 'libbacktrace/config.h.in')
-rw-r--r--libbacktrace/config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbacktrace/config.h.in b/libbacktrace/config.h.in
index 656c2ee5a8f..ba564a82e85 100644
--- a/libbacktrace/config.h.in
+++ b/libbacktrace/config.h.in
@@ -10,6 +10,9 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
+/* Define if dl_iterate_phdr is available. */
+#undef HAVE_DL_ITERATE_PHDR
+
/* Define to 1 if you have the fcntl function */
#undef HAVE_FCNTL
@@ -19,6 +22,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
+/* Define to 1 if you have the <link.h> header file. */
+#undef HAVE_LINK_H
+
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H