]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | 2014-02-07 Misty De Meo <misty@brew.sh> |
2 | ||
3 | PR target/58710 | |
4 | * configure.ac: Use AC_LINK_IFELSE in check for | |
5 | _Unwind_GetIPInfo. | |
6 | * configure: Regenerate. | |
7 | ||
8 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> | |
9 | ||
10 | Update copyright years | |
11 | ||
12 | 2013-12-06 Jakub Jelinek <jakub@redhat.com> | |
13 | ||
14 | * elf.c (ET_DYN): Undefine and define again. | |
15 | (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, | |
16 | return early -1 without closing the descriptor. | |
17 | (struct phdr_data): Add exe_descriptor. | |
18 | (phdr_callback): If pd->exe_descriptor is not -1, for very first | |
19 | call if dlpi_name is NULL just call elf_add with the exe_descriptor, | |
20 | otherwise backtrace_close the exe_descriptor if not -1. Adjust | |
21 | call to elf_add. | |
22 | (backtrace_initialize): Adjust call to elf_add. If it returns | |
23 | -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. | |
24 | ||
25 | 2013-12-05 Ian Lance Taylor <iant@google.com> | |
26 | ||
27 | * alloc.c (backtrace_vector_finish): Add error_callback and data | |
28 | parameters. Call backtrace_vector_release. Return address base. | |
29 | * mmap.c (backtrace_vector_finish): Add error_callback and data | |
30 | parameters. Return address base. | |
31 | * dwarf.c (read_function_info): Get new address base from | |
32 | backtrace_vector_finish. | |
33 | * internal.h (backtrace_vector_finish): Update declaration. | |
34 | ||
35 | 2013-11-27 Ian Lance Taylor <iant@google.com> | |
36 | ||
37 | * dwarf.c (find_address_ranges): New static function, broken out | |
38 | of build_address_map. | |
39 | (build_address_map): Call it. | |
40 | * btest.c (check): Check for missing filename or function, rather | |
41 | than crashing. | |
42 | (f3): Check that enough frames were returned. | |
43 | ||
44 | 2013-11-19 Jakub Jelinek <jakub@redhat.com> | |
45 | ||
46 | * backtrace.h (backtrace_syminfo_callback): Add symsize argument. | |
47 | * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as | |
48 | last argument. | |
49 | * btest.c (struct symdata): Add size field. | |
50 | (callback_three): Add symsize argument. Copy it to the data->size | |
51 | field. | |
52 | (f23): Set symdata.size to 0. | |
53 | (test5): Likewise. If sizeof (int) > 1, lookup address of | |
54 | ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size | |
55 | values. | |
56 | ||
57 | * atomic.c: Include sys/types.h. | |
58 | ||
59 | 2013-11-18 Ian Lance Taylor <iant@google.com> | |
60 | ||
61 | * configure.ac: Check for support of __atomic extensions. | |
62 | * internal.h: Declare or #define atomic functions for use in | |
63 | backtrace code. | |
64 | * atomic.c: New file. | |
65 | * dwarf.c (dwarf_lookup_pc): Use atomic functions. | |
66 | (dwarf_fileline, backtrace_dwarf_add): Likewise. | |
67 | * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. | |
68 | (backtrace_initialize): Likewise. | |
69 | * fileline.c (fileline_initialize): Likewise. | |
70 | * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. | |
71 | * configure, config.h.in, Makefile.in: Rebuild. | |
72 | ||
73 | 2013-11-18 Jakub Jelinek <jakub@redhat.com> | |
74 | ||
75 | * elf.c (SHN_UNDEF): Define. | |
76 | (elf_initialize_syminfo): Add base_address argument. Ignore symbols | |
77 | with st_shndx == SHN_UNDEF. Add base_address to address fields. | |
78 | (elf_add): Adjust caller. | |
79 | ||
80 | * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. | |
81 | ||
82 | 2013-11-16 Ian Lance Taylor <iant@google.com> | |
83 | ||
84 | * backtrace.h (backtrace_create_state): Correct comment about | |
85 | threading. | |
86 | ||
87 | 2013-11-15 Ian Lance Taylor <iant@google.com> | |
88 | ||
89 | * backtrace.h (backtrace_syminfo): Update comment and parameter | |
90 | name to take any address, not just a PC value. | |
91 | * elf.c (STT_OBJECT): Define. | |
92 | (elf_nosyms): Rename parameter pc to addr. | |
93 | (elf_symbol_search): Rename local variable pc to addr. | |
94 | (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. | |
95 | (elf_syminfo): Rename parameter pc to addr. | |
96 | * btest.c (global): New global variable. | |
97 | (test5): New test. | |
98 | (main): Call test5. | |
99 | ||
100 | 2013-10-17 Ian Lance Taylor <iant@google.com> | |
101 | ||
102 | * elf.c (elf_add): Don't get the wrong offsets if a debug section | |
103 | is missing. | |
104 | ||
105 | 2013-10-15 David Malcolm <dmalcolm@redhat.com> | |
106 | ||
107 | * configure.ac: Add --enable-host-shared, setting up | |
108 | pre-existing PIC_FLAG variable within Makefile.am et al. | |
109 | * configure: Regenerate. | |
110 | ||
111 | 2013-09-20 Alan Modra <amodra@gmail.com> | |
112 | ||
113 | * configure: Regenerate. | |
114 | ||
115 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> | |
116 | ||
117 | * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. | |
118 | ||
119 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> | |
120 | ||
121 | * elf.c (backtrace_initialize): Pass elf_fileline_fn to | |
122 | dl_iterate_phdr callbacks. | |
123 | ||
124 | 2013-03-25 Ian Lance Taylor <iant@google.com> | |
125 | ||
126 | * alloc.c: #include <sys/types.h>. | |
127 | * mmap.c: Likewise. | |
128 | ||
129 | 2013-01-31 Ian Lance Taylor <iant@google.com> | |
130 | ||
131 | * dwarf.c (read_function_info): Permit fvec parameter to be NULL. | |
132 | (dwarf_lookup_pc): Don't use ddata->fvec if threaded. | |
133 | ||
134 | 2013-01-25 Jakub Jelinek <jakub@redhat.com> | |
135 | ||
136 | PR other/56076 | |
137 | * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir | |
138 | attribute was not seen. | |
139 | ||
140 | 2013-01-16 Ian Lance Taylor <iant@google.com> | |
141 | ||
142 | * dwarf.c (struct unit): Add filename and abs_filename fields. | |
143 | (build_address_map): Set new fields when reading unit. | |
144 | (dwarf_lookup_pc): If we don't find an entry in the line table, | |
145 | just return the main file name. | |
146 | ||
147 | 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com> | |
148 | ||
149 | Update copyright years. | |
150 | ||
151 | 2013-01-01 Ian Lance Taylor <iant@google.com> | |
152 | ||
153 | PR bootstrap/54834 | |
154 | * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I | |
155 | $(MULTIBUILDTOP)/../../gcc/include. | |
156 | * Makefile.in: Rebuild. | |
157 | ||
158 | 2013-01-01 Ian Lance Taylor <iant@google.com> | |
159 | ||
160 | PR other/55536 | |
161 | * mmap.c (backtrace_alloc): Don't call sync functions if not | |
162 | threaded. | |
163 | (backtrace_free): Likewise. | |
164 | ||
165 | 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
166 | ||
167 | * mmapio.c: Define MAP_FAILED if not defined. | |
168 | ||
169 | 2012-12-11 Jakub Jelinek <jakub@redhat.com> | |
170 | ||
171 | PR bootstrap/54926 | |
172 | * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. | |
173 | * configure.ac: If --with-target-subdir, add -frandom-seed=$@ | |
174 | to EXTRA_FLAGS unconditionally, otherwise check whether the compiler | |
175 | accepts it. | |
176 | * Makefile.in: Regenerated. | |
177 | * configure: Regenerated. | |
178 | ||
179 | 2012-12-07 Jakub Jelinek <jakub@redhat.com> | |
180 | ||
181 | PR bootstrap/54926 | |
182 | * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. | |
183 | * Makefile.in: Regenerated. | |
184 | ||
185 | 2012-11-20 Ian Lance Taylor <iant@google.com> | |
186 | ||
187 | * dwarf.c (read_attribute): Always clear val. | |
188 | ||
189 | 2012-11-13 Ian Lance Taylor <iant@google.com> | |
190 | ||
191 | PR other/55312 | |
192 | * configure.ac: Only add -Werror if building a target library. | |
193 | * configure: Rebuild. | |
194 | ||
195 | 2012-11-12 Ian Lance Taylor <iant@google.com> | |
196 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
197 | Gerald Pfeifer <gerald@pfeifer.com> | |
198 | ||
199 | * configure.ac: Check for getexecname. | |
200 | * fileline.c: #include <errno.h>. Define getexecname if not | |
201 | available. | |
202 | (fileline_initialize): Try to find the executable in a few | |
203 | different ways. | |
204 | * print.c (error_callback): Only print the filename if it came | |
205 | from the backtrace state. | |
206 | * configure, config.h.in: Rebuild. | |
207 | ||
208 | 2012-10-29 Ian Lance Taylor <iant@google.com> | |
209 | ||
210 | * mmap.c (backtrace_vector_release): Correct last patch: add | |
211 | aligned, not size. | |
212 | ||
213 | 2012-10-29 Ian Lance Taylor <iant@google.com> | |
214 | ||
215 | * mmap.c (backtrace_vector_release): Make sure freed block is | |
216 | aligned on 8-byte boundary. | |
217 | ||
218 | 2012-10-26 Ian Lance Taylor <iant@google.com> | |
219 | ||
220 | PR other/55087 | |
221 | * posix.c (backtrace_open): Add does_not_exist parameter. | |
222 | * elf.c (phdr_callback): Do not warn if shared library could not | |
223 | be opened. | |
224 | * fileline.c (fileline_initialize): Update calls to | |
225 | backtrace_open. | |
226 | * internal.h (backtrace_open): Update declaration. | |
227 | ||
228 | 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> | |
229 | ||
230 | PR target/55061 | |
231 | * configure.ac: Check for _Unwind_GetIPInfo function declaration. | |
232 | * configure: Regenerate. | |
233 | ||
234 | 2012-10-24 Ian Lance Taylor <iant@google.com> | |
235 | ||
236 | PR target/55061 | |
237 | * configure.ac: Check whether -funwind-tables option works. | |
238 | * configure: Rebuild. | |
239 | ||
240 | 2012-10-11 Ian Lance Taylor <iant@google.com> | |
241 | ||
242 | * configure.ac: Do not use dl_iterate_phdr on Solaris 10. | |
243 | * configure: Rebuild. | |
244 | ||
245 | 2012-10-10 Ian Lance Taylor <iant@google.com> | |
246 | ||
247 | * elf.c: Rename all Elf typedefs to start with b_elf, and be all | |
248 | lower case. | |
249 | ||
250 | 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com> | |
251 | ||
252 | * elf.c (elf_add_syminfo_data): Add casts to avoid warning. | |
253 | ||
254 | 2012-10-09 Ian Lance Taylor <iant@google.com> | |
255 | ||
256 | * dwarf.c (dwarf_fileline): Add cast to avoid warning. | |
257 | (backtrace_dwarf_add): Likewise. | |
258 | ||
259 | 2012-10-09 Ian Lance Taylor <iant@google.com> | |
260 | ||
261 | Add support for tracing through shared libraries. | |
262 | * configure.ac: Check for link.h and dl_iterate_phdr. | |
263 | * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef | |
264 | ELF macros before #defining them. | |
265 | (dl_phdr_info, dl_iterate_phdr): Define if system does not have | |
266 | dl_iterate_phdr. | |
267 | (struct elf_syminfo_data): Add next field. | |
268 | (elf_initialize_syminfo): Initialize next field. | |
269 | (elf_add_syminfo_data): New static function. | |
270 | (elf_add): New static function, broken out of | |
271 | backtrace_initialize. Call backtrace_dwarf_add instead of | |
272 | backtrace_dwarf_initialize. | |
273 | (struct phdr_data): Define. | |
274 | (phdr_callback): New static function. | |
275 | (backtrace_initialize): Call elf_add. | |
276 | * dwarf.c (struct dwarf_data): Add next and base_address fields. | |
277 | (add_unit_addr): Add base_address parameter. Change all callers. | |
278 | (add_unit_ranges, build_address_map): Likewise. | |
279 | (add_line): Add ddata parameter. Change all callers. | |
280 | (read_line_program, add_function_range): Likewise. | |
281 | (dwarf_lookup_pc): New static function, broken out of | |
282 | dwarf_fileline. | |
283 | (dwarf_fileline): Call dwarf_lookup_pc. | |
284 | (build_dwarf_data): New static function. | |
285 | (backtrace_dwarf_add): New function. | |
286 | (backtrace_dwarf_initialize): Remove. | |
287 | * internal.h (backtrace_dwarf_initialize): Don't declare. | |
288 | (backtrace_dwarf_add): Declare. | |
289 | * configure, config.h.in: Rebuild. | |
290 | ||
291 | 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com> | |
292 | ||
293 | * btest.c (f23): Avoid uninitialized variable warning. | |
294 | ||
295 | 2012-10-04 Ian Lance Taylor <iant@google.com> | |
296 | ||
297 | * dwarf.c: If the system header files do not declare strnlen, | |
298 | provide our own version. | |
299 | ||
300 | 2012-10-03 Ian Lance Taylor <iant@google.com> | |
301 | ||
302 | * dwarf.c (read_uleb128): Fix overflow test. | |
303 | (read_sleb128): Likewise. | |
304 | (build_address_map): Don't change unit_buf.start. | |
305 | ||
306 | 2012-10-02 Uros Bizjak <ubizjak@gmail.com> | |
307 | ||
308 | PR other/54761 | |
309 | * configure.ac (EXTRA_FLAGS): New. | |
310 | * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). | |
311 | * configure, Makefile.in: Regenerate. | |
312 | ||
313 | 2012-09-29 Ian Lance Taylor <iant@google.com> | |
314 | ||
315 | PR other/54749 | |
316 | * fileline.c (fileline_initialize): Pass errnum as -1 when | |
317 | reporting that we could not read executable information after a | |
318 | previous failure. | |
319 | ||
320 | 2012-09-27 Ian Lance Taylor <iant@google.com> | |
321 | ||
322 | PR bootstrap/54732 | |
323 | * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. | |
324 | * Makefile.am: Add dependencies for all objects. | |
325 | * configure, aclocal.m4, Makefile.in: Rebuild. | |
326 | ||
327 | 2012-09-27 Ian Lance Taylor <iant@google.com> | |
328 | ||
329 | PR other/54726 | |
330 | * elf.c (backtrace_initialize): Set *fileln_fn, not | |
331 | state->fileln_fn. | |
332 | ||
333 | 2012-09-19 Ian Lance Taylor <iant@google.com> | |
334 | ||
335 | * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled | |
336 | as a target library. | |
337 | * configure: Rebuild. | |
338 | ||
339 | 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
340 | Ian Lance Taylor <iant@google.com> | |
341 | ||
342 | * configure.ac (GCC_HEADER_STDINT): Invoke. | |
343 | * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". | |
344 | * btest.c: Don't include <stdint.h>. | |
345 | * dwarf.c: Likewise. | |
346 | * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. | |
347 | ||
348 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
349 | ||
350 | PR bootstrap/54623 | |
351 | * Makefile.am (AM_CPPFLAGS): Define. | |
352 | (AM_CFLAGS): Remove -I options. | |
353 | * Makefile.in: Rebuild. | |
354 | ||
355 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
356 | ||
357 | * posix.c (O_BINARY): Define if not defined. | |
358 | (backtrace_open): Pass O_BINARY to open. Only call fcntl if | |
359 | HAVE_FCNTL is defined. | |
360 | * configure.ac: Test for the fcntl function. | |
361 | * configure, config.h.in: Rebuild. | |
362 | ||
363 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
364 | ||
365 | * btest.c (test1, test2, test3, test4): Add the unused attribute. | |
366 | ||
367 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
368 | ||
369 | * dwarf.c: Correct test of HAVE_DECL_STRNLEN. | |
370 | ||
371 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
372 | ||
373 | * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. | |
374 | * mmapio.c: Don't define _GNU_SOURCE. | |
375 | * configure, config.h.in: Rebuild. | |
376 | ||
377 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
378 | ||
379 | * configure.ac: Check whether strnlen is declared. | |
380 | * dwarf.c: Declare strnlen if not declared. | |
381 | * configure, config.h.in: Rebuild. | |
382 | ||
383 | 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
384 | ||
385 | * fileline.c: Include <stdlib.h>. | |
386 | * mmap.c: Likewise. | |
387 | ||
388 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
389 | ||
390 | PR bootstrap/54611 | |
391 | * nounwind.c (backtrace_full): Rename from backtrace. Add state | |
392 | parameter. | |
393 | ||
394 | 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com> | |
395 | ||
396 | PR bootstrap/54611 | |
397 | * nounwind.c (backtrace_simple): Add state parameter. | |
398 | ||
399 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
400 | ||
401 | PR bootstrap/54609 | |
402 | * unknown.c (unknown_fileline): Add state parameter, remove | |
403 | fileline_data parameter, name error_callback parameter. | |
404 | (backtrace_initialize): Add state parameter. | |
405 | ||
406 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
407 | ||
408 | * Initial implementation. |