* dwarf.c (read_attribute): Always clear val.
[gcc.git] / libbacktrace / ChangeLog
1 2012-11-20 Ian Lance Taylor <iant@google.com>
2
3 * dwarf.c (read_attribute): Always clear val.
4
5 2012-11-13 Ian Lance Taylor <iant@google.com>
6
7 PR other/55312
8 * configure.ac: Only add -Werror if building a target library.
9
10 2012-11-12 Ian Lance Taylor <iant@google.com>
11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12 Gerald Pfeifer <gerald@pfeifer.com>
13
14 * configure.ac: Check for getexecname.
15 * fileline.c: #include <errno.h>. Define getexecname if not
16 available.
17 (fileline_initialize): Try to find the executable in a few
18 different ways.
19 * print.c (error_callback): Only print the filename if it came
20 from the backtrace state.
21 * configure, config.h.in: Rebuild.
22
23 2012-10-29 Ian Lance Taylor <iant@google.com>
24
25 * mmap.c (backtrace_vector_release): Correct last patch: add
26 aligned, not size.
27
28 2012-10-29 Ian Lance Taylor <iant@google.com>
29
30 * mmap.c (backtrace_vector_release): Make sure freed block is
31 aligned on 8-byte boundary.
32
33 2012-10-26 Ian Lance Taylor <iant@google.com>
34
35 PR other/55087
36 * posix.c (backtrace_open): Add does_not_exist parameter.
37 * elf.c (phdr_callback): Do not warn if shared library could not
38 be opened.
39 * fileline.c (fileline_initialize): Update calls to
40 backtrace_open.
41 * internal.h (backtrace_open): Update declaration.
42
43 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
44
45 PR target/55061
46 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
47 * configure: Regenerate.
48
49 2012-10-24 Ian Lance Taylor <iant@google.com>
50
51 PR target/55061
52 * configure.ac: Check whether -funwind-tables option works.
53 * configure: Rebuild.
54
55 2012-10-11 Ian Lance Taylor <iant@google.com>
56
57 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
58 * configure: Rebuild.
59
60 2012-10-10 Ian Lance Taylor <iant@google.com>
61
62 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
63 lower case.
64
65 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
66
67 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
68
69 2012-10-09 Ian Lance Taylor <iant@google.com>
70
71 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
72 (backtrace_dwarf_add): Likewise.
73
74 2012-10-09 Ian Lance Taylor <iant@google.com>
75
76 Add support for tracing through shared libraries.
77 * configure.ac: Check for link.h and dl_iterate_phdr.
78 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
79 ELF macros before #defining them.
80 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
81 dl_iterate_phdr.
82 (struct elf_syminfo_data): Add next field.
83 (elf_initialize_syminfo): Initialize next field.
84 (elf_add_syminfo_data): New static function.
85 (elf_add): New static function, broken out of
86 backtrace_initialize. Call backtrace_dwarf_add instead of
87 backtrace_dwarf_initialize.
88 (struct phdr_data): Define.
89 (phdr_callback): New static function.
90 (backtrace_initialize): Call elf_add.
91 * dwarf.c (struct dwarf_data): Add next and base_address fields.
92 (add_unit_addr): Add base_address parameter. Change all callers.
93 (add_unit_ranges, build_address_map): Likewise.
94 (add_line): Add ddata parameter. Change all callers.
95 (read_line_program, add_function_range): Likewise.
96 (dwarf_lookup_pc): New static function, broken out of
97 dwarf_fileline.
98 (dwarf_fileline): Call dwarf_lookup_pc.
99 (build_dwarf_data): New static function.
100 (backtrace_dwarf_add): New function.
101 (backtrace_dwarf_initialize): Remove.
102 * internal.h (backtrace_dwarf_initialize): Don't declare.
103 (backtrace_dwarf_add): Declare.
104 * configure, config.h.in: Rebuild.
105
106 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
107
108 * btest.c (f23): Avoid uninitialized variable warning.
109
110 2012-10-04 Ian Lance Taylor <iant@google.com>
111
112 * dwarf.c: If the system header files do not declare strnlen,
113 provide our own version.
114
115 2012-10-03 Ian Lance Taylor <iant@google.com>
116
117 * dwarf.c (read_uleb128): Fix overflow test.
118 (read_sleb128): Likewise.
119 (build_address_map): Don't change unit_buf.start.
120
121 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
122
123 PR other/54761
124 * configure.ac (EXTRA_FLAGS): New.
125 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
126 * configure, Makefile.in: Regenerate.
127
128 2012-09-29 Ian Lance Taylor <iant@google.com>
129
130 PR other/54749
131 * fileline.c (fileline_initialize): Pass errnum as -1 when
132 reporting that we could not read executable information after a
133 previous failure.
134
135 2012-09-27 Ian Lance Taylor <iant@google.com>
136
137 PR bootstrap/54732
138 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
139 * Makefile.am: Add dependencies for all objects.
140 * configure, aclocal.m4, Makefile.in: Rebuild.
141
142 2012-09-27 Ian Lance Taylor <iant@google.com>
143
144 PR other/54726
145 * elf.c (backtrace_initialize): Set *fileln_fn, not
146 state->fileln_fn.
147
148 2012-09-19 Ian Lance Taylor <iant@google.com>
149
150 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
151 as a target library.
152 * configure: Rebuild.
153
154 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
155 Ian Lance Taylor <iant@google.com>
156
157 * configure.ac (GCC_HEADER_STDINT): Invoke.
158 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
159 * btest.c: Don't include <stdint.h>.
160 * dwarf.c: Likewise.
161 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
162
163 2012-09-18 Ian Lance Taylor <iant@google.com>
164
165 PR bootstrap/54623
166 * Makefile.am (AM_CPPFLAGS): Define.
167 (AM_CFLAGS): Remove -I options.
168 * Makefile.in: Rebuild.
169
170 2012-09-18 Ian Lance Taylor <iant@google.com>
171
172 * posix.c (O_BINARY): Define if not defined.
173 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
174 HAVE_FCNTL is defined.
175 * configure.ac: Test for the fcntl function.
176 * configure, config.h.in: Rebuild.
177
178 2012-09-18 Ian Lance Taylor <iant@google.com>
179
180 * btest.c (test1, test2, test3, test4): Add the unused attribute.
181
182 2012-09-18 Ian Lance Taylor <iant@google.com>
183
184 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
185
186 2012-09-18 Ian Lance Taylor <iant@google.com>
187
188 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
189 * mmapio.c: Don't define _GNU_SOURCE.
190 * configure, config.h.in: Rebuild.
191
192 2012-09-18 Ian Lance Taylor <iant@google.com>
193
194 * configure.ac: Check whether strnlen is declared.
195 * dwarf.c: Declare strnlen if not declared.
196 * configure, config.h.in: Rebuild.
197
198 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
199
200 * fileline.c: Include <stdlib.h>.
201 * mmap.c: Likewise.
202
203 2012-09-17 Ian Lance Taylor <iant@google.com>
204
205 PR bootstrap/54611
206 * nounwind.c (backtrace_full): Rename from backtrace. Add state
207 parameter.
208
209 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
210
211 PR bootstrap/54611
212 * nounwind.c (backtrace_simple): Add state parameter.
213
214 2012-09-17 Ian Lance Taylor <iant@google.com>
215
216 PR bootstrap/54609
217 * unknown.c (unknown_fileline): Add state parameter, remove
218 fileline_data parameter, name error_callback parameter.
219 (backtrace_initialize): Add state parameter.
220
221 2012-09-17 Ian Lance Taylor <iant@google.com>
222
223 * Initial implementation.