1 2012-10-29 Ian Lance Taylor <iant@google.com>
3 * mmap.c (backtrace_vector_release): Make sure freed block is
4 aligned on 8-byte boundary.
6 2012-10-26 Ian Lance Taylor <iant@google.com>
9 * posix.c (backtrace_open): Add does_not_exist parameter.
10 * elf.c (phdr_callback): Do not warn if shared library could not
12 * fileline.c (fileline_initialize): Update calls to
14 * internal.h (backtrace_open): Update declaration.
16 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
19 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
20 * configure: Regenerate.
22 2012-10-24 Ian Lance Taylor <iant@google.com>
25 * configure.ac: Check whether -funwind-tables option works.
28 2012-10-11 Ian Lance Taylor <iant@google.com>
30 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
33 2012-10-10 Ian Lance Taylor <iant@google.com>
35 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
38 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
40 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
42 2012-10-09 Ian Lance Taylor <iant@google.com>
44 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
45 (backtrace_dwarf_add): Likewise.
47 2012-10-09 Ian Lance Taylor <iant@google.com>
49 Add support for tracing through shared libraries.
50 * configure.ac: Check for link.h and dl_iterate_phdr.
51 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
52 ELF macros before #defining them.
53 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
55 (struct elf_syminfo_data): Add next field.
56 (elf_initialize_syminfo): Initialize next field.
57 (elf_add_syminfo_data): New static function.
58 (elf_add): New static function, broken out of
59 backtrace_initialize. Call backtrace_dwarf_add instead of
60 backtrace_dwarf_initialize.
61 (struct phdr_data): Define.
62 (phdr_callback): New static function.
63 (backtrace_initialize): Call elf_add.
64 * dwarf.c (struct dwarf_data): Add next and base_address fields.
65 (add_unit_addr): Add base_address parameter. Change all callers.
66 (add_unit_ranges, build_address_map): Likewise.
67 (add_line): Add ddata parameter. Change all callers.
68 (read_line_program, add_function_range): Likewise.
69 (dwarf_lookup_pc): New static function, broken out of
71 (dwarf_fileline): Call dwarf_lookup_pc.
72 (build_dwarf_data): New static function.
73 (backtrace_dwarf_add): New function.
74 (backtrace_dwarf_initialize): Remove.
75 * internal.h (backtrace_dwarf_initialize): Don't declare.
76 (backtrace_dwarf_add): Declare.
77 * configure, config.h.in: Rebuild.
79 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
81 * btest.c (f23): Avoid uninitialized variable warning.
83 2012-10-04 Ian Lance Taylor <iant@google.com>
85 * dwarf.c: If the system header files do not declare strnlen,
86 provide our own version.
88 2012-10-03 Ian Lance Taylor <iant@google.com>
90 * dwarf.c (read_uleb128): Fix overflow test.
91 (read_sleb128): Likewise.
92 (build_address_map): Don't change unit_buf.start.
94 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
97 * configure.ac (EXTRA_FLAGS): New.
98 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
99 * configure, Makefile.in: Regenerate.
101 2012-09-29 Ian Lance Taylor <iant@google.com>
104 * fileline.c (fileline_initialize): Pass errnum as -1 when
105 reporting that we could not read executable information after a
108 2012-09-27 Ian Lance Taylor <iant@google.com>
111 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
112 * Makefile.am: Add dependencies for all objects.
113 * configure, aclocal.m4, Makefile.in: Rebuild.
115 2012-09-27 Ian Lance Taylor <iant@google.com>
118 * elf.c (backtrace_initialize): Set *fileln_fn, not
121 2012-09-19 Ian Lance Taylor <iant@google.com>
123 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
125 * configure: Rebuild.
127 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
128 Ian Lance Taylor <iant@google.com>
130 * configure.ac (GCC_HEADER_STDINT): Invoke.
131 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
132 * btest.c: Don't include <stdint.h>.
134 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
136 2012-09-18 Ian Lance Taylor <iant@google.com>
139 * Makefile.am (AM_CPPFLAGS): Define.
140 (AM_CFLAGS): Remove -I options.
141 * Makefile.in: Rebuild.
143 2012-09-18 Ian Lance Taylor <iant@google.com>
145 * posix.c (O_BINARY): Define if not defined.
146 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
147 HAVE_FCNTL is defined.
148 * configure.ac: Test for the fcntl function.
149 * configure, config.h.in: Rebuild.
151 2012-09-18 Ian Lance Taylor <iant@google.com>
153 * btest.c (test1, test2, test3, test4): Add the unused attribute.
155 2012-09-18 Ian Lance Taylor <iant@google.com>
157 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
159 2012-09-18 Ian Lance Taylor <iant@google.com>
161 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
162 * mmapio.c: Don't define _GNU_SOURCE.
163 * configure, config.h.in: Rebuild.
165 2012-09-18 Ian Lance Taylor <iant@google.com>
167 * configure.ac: Check whether strnlen is declared.
168 * dwarf.c: Declare strnlen if not declared.
169 * configure, config.h.in: Rebuild.
171 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
173 * fileline.c: Include <stdlib.h>.
176 2012-09-17 Ian Lance Taylor <iant@google.com>
179 * nounwind.c (backtrace_full): Rename from backtrace. Add state
182 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
185 * nounwind.c (backtrace_simple): Add state parameter.
187 2012-09-17 Ian Lance Taylor <iant@google.com>
190 * unknown.c (unknown_fileline): Add state parameter, remove
191 fileline_data parameter, name error_callback parameter.
192 (backtrace_initialize): Add state parameter.
194 2012-09-17 Ian Lance Taylor <iant@google.com>
196 * Initial implementation.