remove unused defines from sendmsg.c
[official-gcc.git] / libbacktrace / ChangeLog
blob5d182e9fc347244476c4864aab76f893b5750b69
1 2015-09-11  Ian Lance Taylor  <iant@google.com>
3         * Makefile.am (backtrace.lo): Depend on internal.h.
4         (sort.lo, stest.lo): Add explicit dependencies.
5         * Makefile.in: Rebuild.
7 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
9         * backtrace.c: #include <sys/types.h>.
11 2015-09-08  Ian Lance Taylor  <iant@google.com>
13         PR other/67457
14         * backtrace.c: #include "internal.h".
15         (struct backtrace_data): Add can_alloc field.
16         (unwind): If can_alloc is false, don't try to get file/line
17         information.
18         (backtrace_full): Set can_alloc field in bdata.
19         * alloc.c (backtrace_alloc): Don't call error_callback if it is
20         NULL.
21         * mmap.c (backtrace_alloc): Likewise.
22         * internal.h: Update comments for backtrace_alloc and
23         backtrace_free.
25 2015-09-08  Ian Lance Taylor  <iant@google.com>
27         PR other/67457
28         * mmap.c (backtrace_alloc): Correct test for mmap failure.
30 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32         * configure.ac: For spu-*-* targets, set have_fcntl to no.
33         * configure: Regenerate.
35 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37         * configure.ac: Remove [disable-shared] argument to LT_INIT.
38         Remove setting PIC_FLAG when building as target library.
39         * configure: Regenerate.
41 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
43         * configure.ac: Only compile with -fPIC if the target
44         supports it.
45         * configure: Regenerate.
47 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
49         * configure.ac: Set have_mmap to no on spu-*-* targets.
50         * configure: Regenerate.
52 2015-08-13  Ian Lance Taylor  <iant@google.com>
54         * dwarf.c (read_function_entry): Add vec_inlined parameter.
55         Change all callers.
57 2015-06-11  Martin Sebor  <msebor@redhat.com>
59         PR sanitizer/65479
60         * dwarf.c (struct line): Add new field idx.
61         (line_compare): Use it.
62         (add_line): Set it.
63         (read_line_info): Reset it.
65 2015-05-29  Tristan Gingold  <gingold@adacore.com>
67         * pecoff.c: New file.
68         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
69         * Makefile.in: Regenerate.
70         * filetype.awk: Detect pecoff.
71         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
72         Add pecoff.
73         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
74         true.
75         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
76         * configure: Regenerate.
77         * pecoff.c: New file.
79 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
81         * Makefile.in: Regenerated with automake-1.11.6.
82         * aclocal.m4: Likewise.
83         * configure: Likewise.
85 2015-01-24  Matthias Klose  <doko@ubuntu.com>
87         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
88         * configure: Regenerate.
90 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
92         Update copyright years.
94 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
96         PR bootstrap/63784
97         * configure: Regenerated.
99 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
101         * ChangeLog.jit: New.
103 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
105         PR target/63610
106         * configure: Regenerate.
108 2014-10-23  Ian Lance Taylor  <iant@google.com>
110         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
111         Fix to return void *.
113 2014-05-08  Ian Lance Taylor  <iant@google.com>
115         * mmap.c (backtrace_free): If freeing a large aligned block of
116         memory, call munmap rather than holding onto it.
117         (backtrace_vector_grow): When growing a vector, double the number
118         of pages requested.  When releasing the old version of a grown
119         vector, pass the correct size to backtrace_free.
121 2014-03-07  Ian Lance Taylor  <iant@google.com>
123         * sort.c (backtrace_qsort): Use middle element as pivot.
125 2014-03-06  Ian Lance Taylor  <iant@google.com>
127         * sort.c: New file.
128         * stest.c: New file.
129         * internal.h (backtrace_qsort): Declare.
130         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
131         (read_line_info, read_function_entry): Likewise.
132         (read_function_info, build_dwarf_data): Likewise.
133         * elf.c (elf_initialize_syminfo): Likewise.
134         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
135         (stest_SOURCES, stest_LDADD): Define.
136         (check_PROGRAMS): Add stest.
138 2014-02-07  Misty De Meo  <misty@brew.sh>
140         PR target/58710
141         * configure.ac: Use AC_LINK_IFELSE in check for
142         _Unwind_GetIPInfo.
143         * configure: Regenerate.
145 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
147         Update copyright years
149 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
151         * elf.c (ET_DYN): Undefine and define again.
152         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
153         return early -1 without closing the descriptor.
154         (struct phdr_data): Add exe_descriptor.
155         (phdr_callback): If pd->exe_descriptor is not -1, for very first
156         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
157         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
158         call to elf_add.
159         (backtrace_initialize): Adjust call to elf_add.  If it returns
160         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
162 2013-12-05  Ian Lance Taylor  <iant@google.com>
164         * alloc.c (backtrace_vector_finish): Add error_callback and data
165         parameters.  Call backtrace_vector_release.  Return address base.
166         * mmap.c (backtrace_vector_finish): Add error_callback and data
167         parameters.  Return address base.
168         * dwarf.c (read_function_info): Get new address base from
169         backtrace_vector_finish.
170         * internal.h (backtrace_vector_finish): Update declaration.
172 2013-11-27  Ian Lance Taylor  <iant@google.com>
174         * dwarf.c (find_address_ranges): New static function, broken out
175         of build_address_map.
176         (build_address_map): Call it.
177         * btest.c (check): Check for missing filename or function, rather
178         than crashing.
179         (f3): Check that enough frames were returned.
181 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
183         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
184         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
185         last argument.
186         * btest.c (struct symdata): Add size field.
187         (callback_three): Add symsize argument.  Copy it to the data->size
188         field.
189         (f23): Set symdata.size to 0.
190         (test5): Likewise.  If sizeof (int) > 1, lookup address of
191         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
192         values.
194         * atomic.c: Include sys/types.h.
196 2013-11-18  Ian Lance Taylor  <iant@google.com>
198         * configure.ac: Check for support of __atomic extensions.
199         * internal.h: Declare or #define atomic functions for use in
200         backtrace code.
201         * atomic.c: New file.
202         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
203         (dwarf_fileline, backtrace_dwarf_add): Likewise.
204         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
205         (backtrace_initialize): Likewise.
206         * fileline.c (fileline_initialize): Likewise.
207         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
208         * configure, config.h.in, Makefile.in: Rebuild.
210 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
212         * elf.c (SHN_UNDEF): Define.
213         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
214         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
215         (elf_add): Adjust caller.
217         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
219 2013-11-16  Ian Lance Taylor  <iant@google.com>
221         * backtrace.h (backtrace_create_state): Correct comment about
222         threading.
224 2013-11-15  Ian Lance Taylor  <iant@google.com>
226         * backtrace.h (backtrace_syminfo): Update comment and parameter
227         name to take any address, not just a PC value.
228         * elf.c (STT_OBJECT): Define.
229         (elf_nosyms): Rename parameter pc to addr.
230         (elf_symbol_search): Rename local variable pc to addr.
231         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
232         (elf_syminfo): Rename parameter pc to addr.
233         * btest.c (global): New global variable.
234         (test5): New test.
235         (main): Call test5.
237 2013-10-17  Ian Lance Taylor  <iant@google.com>
239         * elf.c (elf_add): Don't get the wrong offsets if a debug section
240         is missing.
242 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
244         * configure.ac: Add --enable-host-shared, setting up
245         pre-existing PIC_FLAG variable within Makefile.am et al.
246         * configure: Regenerate.
248 2013-09-20  Alan Modra  <amodra@gmail.com>
250         * configure: Regenerate.
252 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
254         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
256 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
258         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
259         dl_iterate_phdr callbacks.
261 2013-03-25  Ian Lance Taylor  <iant@google.com>
263         * alloc.c: #include <sys/types.h>.
264         * mmap.c: Likewise.
266 2013-01-31  Ian Lance Taylor  <iant@google.com>
268         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
269         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
271 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
273         PR other/56076
274         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
275         attribute was not seen.
277 2013-01-16  Ian Lance Taylor  <iant@google.com>
279         * dwarf.c (struct unit): Add filename and abs_filename fields.
280         (build_address_map): Set new fields when reading unit.
281         (dwarf_lookup_pc): If we don't find an entry in the line table,
282         just return the main file name.
284 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
286         Update copyright years.
288 2013-01-01  Ian Lance Taylor  <iant@google.com>
290         PR bootstrap/54834
291         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
292         $(MULTIBUILDTOP)/../../gcc/include.
293         * Makefile.in: Rebuild.
295 2013-01-01  Ian Lance Taylor  <iant@google.com>
297         PR other/55536
298         * mmap.c (backtrace_alloc): Don't call sync functions if not
299         threaded.
300         (backtrace_free): Likewise.
302 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
304         * mmapio.c: Define MAP_FAILED if not defined.
306 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
308         PR bootstrap/54926
309         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
310         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
311         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
312         accepts it.
313         * Makefile.in: Regenerated.
314         * configure: Regenerated.
316 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
318         PR bootstrap/54926
319         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
320         * Makefile.in: Regenerated.
322 2012-11-20  Ian Lance Taylor  <iant@google.com>
324         * dwarf.c (read_attribute): Always clear val.
326 2012-11-13  Ian Lance Taylor  <iant@google.com>
328         PR other/55312
329         * configure.ac: Only add -Werror if building a target library.
330         * configure: Rebuild.
332 2012-11-12  Ian Lance Taylor  <iant@google.com>
333             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
334             Gerald Pfeifer  <gerald@pfeifer.com>
336         * configure.ac: Check for getexecname.
337         * fileline.c: #include <errno.h>.  Define getexecname if not
338         available.
339         (fileline_initialize): Try to find the executable in a few
340         different ways.
341         * print.c (error_callback): Only print the filename if it came
342         from the backtrace state.
343         * configure, config.h.in: Rebuild.
345 2012-10-29  Ian Lance Taylor  <iant@google.com>
347         * mmap.c (backtrace_vector_release): Correct last patch: add
348         aligned, not size.
350 2012-10-29  Ian Lance Taylor  <iant@google.com>
352         * mmap.c (backtrace_vector_release): Make sure freed block is
353         aligned on 8-byte boundary.
355 2012-10-26  Ian Lance Taylor  <iant@google.com>
357         PR other/55087
358         * posix.c (backtrace_open): Add does_not_exist parameter.
359         * elf.c (phdr_callback): Do not warn if shared library could not
360         be opened.
361         * fileline.c (fileline_initialize): Update calls to
362         backtrace_open.
363         * internal.h (backtrace_open): Update declaration.
365 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
367         PR target/55061
368         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
369         * configure: Regenerate.
371 2012-10-24  Ian Lance Taylor  <iant@google.com>
373         PR target/55061
374         * configure.ac: Check whether -funwind-tables option works.
375         * configure: Rebuild.
377 2012-10-11  Ian Lance Taylor  <iant@google.com>
379         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
380         * configure: Rebuild.
382 2012-10-10  Ian Lance Taylor  <iant@google.com>
384         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
385         lower case.
387 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
389         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
391 2012-10-09  Ian Lance Taylor  <iant@google.com>
393         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
394         (backtrace_dwarf_add): Likewise.
396 2012-10-09  Ian Lance Taylor  <iant@google.com>
398         Add support for tracing through shared libraries.
399         * configure.ac: Check for link.h and dl_iterate_phdr.
400         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
401         ELF macros before #defining them.
402         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
403         dl_iterate_phdr.
404         (struct elf_syminfo_data): Add next field.
405         (elf_initialize_syminfo): Initialize next field.
406         (elf_add_syminfo_data): New static function.
407         (elf_add): New static function, broken out of
408         backtrace_initialize.  Call backtrace_dwarf_add instead of
409         backtrace_dwarf_initialize.
410         (struct phdr_data): Define.
411         (phdr_callback): New static function.
412         (backtrace_initialize): Call elf_add.
413         * dwarf.c (struct dwarf_data): Add next and base_address fields.
414         (add_unit_addr): Add base_address parameter.  Change all callers.
415         (add_unit_ranges, build_address_map): Likewise.
416         (add_line): Add ddata parameter.  Change all callers.
417         (read_line_program, add_function_range): Likewise.
418         (dwarf_lookup_pc): New static function, broken out of
419         dwarf_fileline.
420         (dwarf_fileline): Call dwarf_lookup_pc.
421         (build_dwarf_data): New static function.
422         (backtrace_dwarf_add): New function.
423         (backtrace_dwarf_initialize): Remove.
424         * internal.h (backtrace_dwarf_initialize): Don't declare.
425         (backtrace_dwarf_add): Declare.
426         * configure, config.h.in: Rebuild.
428 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
430         * btest.c (f23): Avoid uninitialized variable warning.
432 2012-10-04  Ian Lance Taylor  <iant@google.com>
434         * dwarf.c: If the system header files do not declare strnlen,
435         provide our own version.
437 2012-10-03  Ian Lance Taylor  <iant@google.com>
439         * dwarf.c (read_uleb128): Fix overflow test.
440         (read_sleb128): Likewise.
441         (build_address_map): Don't change unit_buf.start.
443 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
445         PR other/54761
446         * configure.ac (EXTRA_FLAGS): New.
447         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
448         * configure, Makefile.in: Regenerate.
450 2012-09-29  Ian Lance Taylor  <iant@google.com>
452         PR other/54749
453         * fileline.c (fileline_initialize): Pass errnum as -1 when
454         reporting that we could not read executable information after a
455         previous failure.
457 2012-09-27  Ian Lance Taylor  <iant@google.com>
459         PR bootstrap/54732
460         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
461         * Makefile.am: Add dependencies for all objects.
462         * configure, aclocal.m4, Makefile.in: Rebuild.
464 2012-09-27  Ian Lance Taylor  <iant@google.com>
466         PR other/54726
467         * elf.c (backtrace_initialize): Set *fileln_fn, not
468         state->fileln_fn.
470 2012-09-19  Ian Lance Taylor  <iant@google.com>
472         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
473         as a target library.
474         * configure: Rebuild.
476 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
477             Ian Lance Taylor  <iant@google.com>
479         * configure.ac (GCC_HEADER_STDINT): Invoke.
480         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
481         * btest.c: Don't include <stdint.h>.
482         * dwarf.c: Likewise.
483         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
485 2012-09-18  Ian Lance Taylor  <iant@google.com>
487         PR bootstrap/54623
488         * Makefile.am (AM_CPPFLAGS): Define.
489         (AM_CFLAGS): Remove -I options.
490         * Makefile.in: Rebuild.
492 2012-09-18  Ian Lance Taylor  <iant@google.com>
494         * posix.c (O_BINARY): Define if not defined.
495         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
496         HAVE_FCNTL is defined.
497         * configure.ac: Test for the fcntl function.
498         * configure, config.h.in: Rebuild.
500 2012-09-18  Ian Lance Taylor  <iant@google.com>
502         * btest.c (test1, test2, test3, test4): Add the unused attribute.
504 2012-09-18  Ian Lance Taylor  <iant@google.com>
506         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
508 2012-09-18  Ian Lance Taylor  <iant@google.com>
510         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
511         * mmapio.c: Don't define _GNU_SOURCE.
512         * configure, config.h.in: Rebuild.
514 2012-09-18  Ian Lance Taylor  <iant@google.com>
516         * configure.ac: Check whether strnlen is declared.
517         * dwarf.c: Declare strnlen if not declared.
518         * configure, config.h.in: Rebuild.
520 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
522         * fileline.c: Include <stdlib.h>.
523         * mmap.c: Likewise.
525 2012-09-17  Ian Lance Taylor  <iant@google.com>
527         PR bootstrap/54611
528         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
529         parameter.
531 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
533         PR bootstrap/54611
534         * nounwind.c (backtrace_simple): Add state parameter.
536 2012-09-17  Ian Lance Taylor  <iant@google.com>
538         PR bootstrap/54609
539         * unknown.c (unknown_fileline): Add state parameter, remove
540         fileline_data parameter, name error_callback parameter.
541         (backtrace_initialize): Add state parameter.
543 2012-09-17  Ian Lance Taylor  <iant@google.com>
545         * Initial implementation.