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