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