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