]> git.cworth.org Git - apitrace/blob - thirdparty/libbacktrace/ChangeLog
thirdparty/libbacktrace: update from upstream
[apitrace] / thirdparty / libbacktrace / ChangeLog
1 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
2
3         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
4
5 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
6
7         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
8         dl_iterate_phdr callbacks.
9
10 2013-03-25  Ian Lance Taylor  <iant@google.com>
11
12         * alloc.c: #include <sys/types.h>.
13         * mmap.c: Likewise.
14
15 2013-01-31  Ian Lance Taylor  <iant@google.com>
16
17         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
18         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
19
20 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
21
22         PR other/56076
23         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
24         attribute was not seen.
25
26 2013-01-16  Ian Lance Taylor  <iant@google.com>
27
28         * dwarf.c (struct unit): Add filename and abs_filename fields.
29         (build_address_map): Set new fields when reading unit.
30         (dwarf_lookup_pc): If we don't find an entry in the line table,
31         just return the main file name.
32
33 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
34
35         Update copyright years.
36
37 2013-01-01  Ian Lance Taylor  <iant@google.com>
38
39         PR bootstrap/54834
40         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
41         $(MULTIBUILDTOP)/../../gcc/include.
42         * Makefile.in: Rebuild.
43
44 2013-01-01  Ian Lance Taylor  <iant@google.com>
45
46         PR other/55536
47         * mmap.c (backtrace_alloc): Don't call sync functions if not
48         threaded.
49         (backtrace_free): Likewise.
50
51 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
52
53         * mmapio.c: Define MAP_FAILED if not defined.
54
55 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
56
57         PR bootstrap/54926
58         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
59         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
60         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
61         accepts it.
62         * Makefile.in: Regenerated.
63         * configure: Regenerated.
64
65 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
66
67         PR bootstrap/54926
68         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
69         * Makefile.in: Regenerated.
70
71 2012-11-20  Ian Lance Taylor  <iant@google.com>
72
73         * dwarf.c (read_attribute): Always clear val.
74
75 2012-11-13  Ian Lance Taylor  <iant@google.com>
76
77         PR other/55312
78         * configure.ac: Only add -Werror if building a target library.
79         * configure: Rebuild.
80
81 2012-11-12  Ian Lance Taylor  <iant@google.com>
82             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
83             Gerald Pfeifer  <gerald@pfeifer.com>
84
85         * configure.ac: Check for getexecname.
86         * fileline.c: #include <errno.h>.  Define getexecname if not
87         available.
88         (fileline_initialize): Try to find the executable in a few
89         different ways.
90         * print.c (error_callback): Only print the filename if it came
91         from the backtrace state.
92         * configure, config.h.in: Rebuild.
93
94 2012-10-29  Ian Lance Taylor  <iant@google.com>
95
96         * mmap.c (backtrace_vector_release): Correct last patch: add
97         aligned, not size.
98
99 2012-10-29  Ian Lance Taylor  <iant@google.com>
100
101         * mmap.c (backtrace_vector_release): Make sure freed block is
102         aligned on 8-byte boundary.
103
104 2012-10-26  Ian Lance Taylor  <iant@google.com>
105
106         PR other/55087
107         * posix.c (backtrace_open): Add does_not_exist parameter.
108         * elf.c (phdr_callback): Do not warn if shared library could not
109         be opened.
110         * fileline.c (fileline_initialize): Update calls to
111         backtrace_open.
112         * internal.h (backtrace_open): Update declaration.
113
114 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
115
116         PR target/55061
117         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
118         * configure: Regenerate.
119
120 2012-10-24  Ian Lance Taylor  <iant@google.com>
121
122         PR target/55061
123         * configure.ac: Check whether -funwind-tables option works.
124         * configure: Rebuild.
125
126 2012-10-11  Ian Lance Taylor  <iant@google.com>
127
128         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
129         * configure: Rebuild.
130
131 2012-10-10  Ian Lance Taylor  <iant@google.com>
132
133         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
134         lower case.
135
136 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
137
138         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
139
140 2012-10-09  Ian Lance Taylor  <iant@google.com>
141
142         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
143         (backtrace_dwarf_add): Likewise.
144
145 2012-10-09  Ian Lance Taylor  <iant@google.com>
146
147         Add support for tracing through shared libraries.
148         * configure.ac: Check for link.h and dl_iterate_phdr.
149         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
150         ELF macros before #defining them.
151         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
152         dl_iterate_phdr.
153         (struct elf_syminfo_data): Add next field.
154         (elf_initialize_syminfo): Initialize next field.
155         (elf_add_syminfo_data): New static function.
156         (elf_add): New static function, broken out of
157         backtrace_initialize.  Call backtrace_dwarf_add instead of
158         backtrace_dwarf_initialize.
159         (struct phdr_data): Define.
160         (phdr_callback): New static function.
161         (backtrace_initialize): Call elf_add.
162         * dwarf.c (struct dwarf_data): Add next and base_address fields.
163         (add_unit_addr): Add base_address parameter.  Change all callers.
164         (add_unit_ranges, build_address_map): Likewise.
165         (add_line): Add ddata parameter.  Change all callers.
166         (read_line_program, add_function_range): Likewise.
167         (dwarf_lookup_pc): New static function, broken out of
168         dwarf_fileline.
169         (dwarf_fileline): Call dwarf_lookup_pc.
170         (build_dwarf_data): New static function.
171         (backtrace_dwarf_add): New function.
172         (backtrace_dwarf_initialize): Remove.
173         * internal.h (backtrace_dwarf_initialize): Don't declare.
174         (backtrace_dwarf_add): Declare.
175         * configure, config.h.in: Rebuild.
176
177 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
178
179         * btest.c (f23): Avoid uninitialized variable warning.
180
181 2012-10-04  Ian Lance Taylor  <iant@google.com>
182
183         * dwarf.c: If the system header files do not declare strnlen,
184         provide our own version.
185
186 2012-10-03  Ian Lance Taylor  <iant@google.com>
187
188         * dwarf.c (read_uleb128): Fix overflow test.
189         (read_sleb128): Likewise.
190         (build_address_map): Don't change unit_buf.start.
191
192 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
193
194         PR other/54761
195         * configure.ac (EXTRA_FLAGS): New.
196         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
197         * configure, Makefile.in: Regenerate.
198
199 2012-09-29  Ian Lance Taylor  <iant@google.com>
200
201         PR other/54749
202         * fileline.c (fileline_initialize): Pass errnum as -1 when
203         reporting that we could not read executable information after a
204         previous failure.
205
206 2012-09-27  Ian Lance Taylor  <iant@google.com>
207
208         PR bootstrap/54732
209         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
210         * Makefile.am: Add dependencies for all objects.
211         * configure, aclocal.m4, Makefile.in: Rebuild.
212
213 2012-09-27  Ian Lance Taylor  <iant@google.com>
214
215         PR other/54726
216         * elf.c (backtrace_initialize): Set *fileln_fn, not
217         state->fileln_fn.
218
219 2012-09-19  Ian Lance Taylor  <iant@google.com>
220
221         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
222         as a target library.
223         * configure: Rebuild.
224
225 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
226             Ian Lance Taylor  <iant@google.com>
227
228         * configure.ac (GCC_HEADER_STDINT): Invoke.
229         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
230         * btest.c: Don't include <stdint.h>.
231         * dwarf.c: Likewise.
232         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
233
234 2012-09-18  Ian Lance Taylor  <iant@google.com>
235
236         PR bootstrap/54623
237         * Makefile.am (AM_CPPFLAGS): Define.
238         (AM_CFLAGS): Remove -I options.
239         * Makefile.in: Rebuild.
240
241 2012-09-18  Ian Lance Taylor  <iant@google.com>
242
243         * posix.c (O_BINARY): Define if not defined.
244         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
245         HAVE_FCNTL is defined.
246         * configure.ac: Test for the fcntl function.
247         * configure, config.h.in: Rebuild.
248
249 2012-09-18  Ian Lance Taylor  <iant@google.com>
250
251         * btest.c (test1, test2, test3, test4): Add the unused attribute.
252
253 2012-09-18  Ian Lance Taylor  <iant@google.com>
254
255         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
256
257 2012-09-18  Ian Lance Taylor  <iant@google.com>
258
259         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
260         * mmapio.c: Don't define _GNU_SOURCE.
261         * configure, config.h.in: Rebuild.
262
263 2012-09-18  Ian Lance Taylor  <iant@google.com>
264
265         * configure.ac: Check whether strnlen is declared.
266         * dwarf.c: Declare strnlen if not declared.
267         * configure, config.h.in: Rebuild.
268
269 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
270
271         * fileline.c: Include <stdlib.h>.
272         * mmap.c: Likewise.
273
274 2012-09-17  Ian Lance Taylor  <iant@google.com>
275
276         PR bootstrap/54611
277         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
278         parameter.
279
280 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
281
282         PR bootstrap/54611
283         * nounwind.c (backtrace_simple): Add state parameter.
284
285 2012-09-17  Ian Lance Taylor  <iant@google.com>
286
287         PR bootstrap/54609
288         * unknown.c (unknown_fileline): Add state parameter, remove
289         fileline_data parameter, name error_callback parameter.
290         (backtrace_initialize): Add state parameter.
291
292 2012-09-17  Ian Lance Taylor  <iant@google.com>
293
294         * Initial implementation.