1 2012-10-11 Ian Lance Taylor <iant@google.com>
3 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
6 2012-10-10 Ian Lance Taylor <iant@google.com>
8 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
11 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
13 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
15 2012-10-09 Ian Lance Taylor <iant@google.com>
17 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
18 (backtrace_dwarf_add): Likewise.
20 2012-10-09 Ian Lance Taylor <iant@google.com>
22 Add support for tracing through shared libraries.
23 * configure.ac: Check for link.h and dl_iterate_phdr.
24 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
25 ELF macros before #defining them.
26 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
28 (struct elf_syminfo_data): Add next field.
29 (elf_initialize_syminfo): Initialize next field.
30 (elf_add_syminfo_data): New static function.
31 (elf_add): New static function, broken out of
32 backtrace_initialize. Call backtrace_dwarf_add instead of
33 backtrace_dwarf_initialize.
34 (struct phdr_data): Define.
35 (phdr_callback): New static function.
36 (backtrace_initialize): Call elf_add.
37 * dwarf.c (struct dwarf_data): Add next and base_address fields.
38 (add_unit_addr): Add base_address parameter. Change all callers.
39 (add_unit_ranges, build_address_map): Likewise.
40 (add_line): Add ddata parameter. Change all callers.
41 (read_line_program, add_function_range): Likewise.
42 (dwarf_lookup_pc): New static function, broken out of
44 (dwarf_fileline): Call dwarf_lookup_pc.
45 (build_dwarf_data): New static function.
46 (backtrace_dwarf_add): New function.
47 (backtrace_dwarf_initialize): Remove.
48 * internal.h (backtrace_dwarf_initialize): Don't declare.
49 (backtrace_dwarf_add): Declare.
50 * configure, config.h.in: Rebuild.
52 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
54 * btest.c (f23): Avoid uninitialized variable warning.
56 2012-10-04 Ian Lance Taylor <iant@google.com>
58 * dwarf.c: If the system header files do not declare strnlen,
59 provide our own version.
61 2012-10-03 Ian Lance Taylor <iant@google.com>
63 * dwarf.c (read_uleb128): Fix overflow test.
64 (read_sleb128): Likewise.
65 (build_address_map): Don't change unit_buf.start.
67 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
70 * configure.ac (EXTRA_FLAGS): New.
71 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
72 * configure, Makefile.in: Regenerate.
74 2012-09-29 Ian Lance Taylor <iant@google.com>
77 * fileline.c (fileline_initialize): Pass errnum as -1 when
78 reporting that we could not read executable information after a
81 2012-09-27 Ian Lance Taylor <iant@google.com>
84 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
85 * Makefile.am: Add dependencies for all objects.
86 * configure, aclocal.m4, Makefile.in: Rebuild.
88 2012-09-27 Ian Lance Taylor <iant@google.com>
91 * elf.c (backtrace_initialize): Set *fileln_fn, not
94 2012-09-19 Ian Lance Taylor <iant@google.com>
96 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
100 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101 Ian Lance Taylor <iant@google.com>
103 * configure.ac (GCC_HEADER_STDINT): Invoke.
104 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
105 * btest.c: Don't include <stdint.h>.
107 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
109 2012-09-18 Ian Lance Taylor <iant@google.com>
112 * Makefile.am (AM_CPPFLAGS): Define.
113 (AM_CFLAGS): Remove -I options.
114 * Makefile.in: Rebuild.
116 2012-09-18 Ian Lance Taylor <iant@google.com>
118 * posix.c (O_BINARY): Define if not defined.
119 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
120 HAVE_FCNTL is defined.
121 * configure.ac: Test for the fcntl function.
122 * configure, config.h.in: Rebuild.
124 2012-09-18 Ian Lance Taylor <iant@google.com>
126 * btest.c (test1, test2, test3, test4): Add the unused attribute.
128 2012-09-18 Ian Lance Taylor <iant@google.com>
130 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
132 2012-09-18 Ian Lance Taylor <iant@google.com>
134 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
135 * mmapio.c: Don't define _GNU_SOURCE.
136 * configure, config.h.in: Rebuild.
138 2012-09-18 Ian Lance Taylor <iant@google.com>
140 * configure.ac: Check whether strnlen is declared.
141 * dwarf.c: Declare strnlen if not declared.
142 * configure, config.h.in: Rebuild.
144 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
146 * fileline.c: Include <stdlib.h>.
149 2012-09-17 Ian Lance Taylor <iant@google.com>
152 * nounwind.c (backtrace_full): Rename from backtrace. Add state
155 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
158 * nounwind.c (backtrace_simple): Add state parameter.
160 2012-09-17 Ian Lance Taylor <iant@google.com>
163 * unknown.c (unknown_fileline): Add state parameter, remove
164 fileline_data parameter, name error_callback parameter.
165 (backtrace_initialize): Add state parameter.
167 2012-09-17 Ian Lance Taylor <iant@google.com>
169 * Initial implementation.