2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
[official-gcc.git] / libbacktrace / ChangeLog
blob79ac1178f80ece6553a51a0c06e00efa892dad58
1 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
3         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
4         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
5         last argument.
6         * btest.c (struct symdata): Add size field.
7         (callback_three): Add symsize argument.  Copy it to the data->size
8         field.
9         (f23): Set symdata.size to 0.
10         (test5): Likewise.  If sizeof (int) > 1, lookup address of
11         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
12         values.
14         * atomic.c: Include sys/types.h.
16 2013-11-18  Ian Lance Taylor  <iant@google.com>
18         * configure.ac: Check for support of __atomic extensions.
19         * internal.h: Declare or #define atomic functions for use in
20         backtrace code.
21         * atomic.c: New file.
22         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
23         (dwarf_fileline, backtrace_dwarf_add): Likewise.
24         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
25         (backtrace_initialize): Likewise.
26         * fileline.c (fileline_initialize): Likewise.
27         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
28         * configure, config.h.in, Makefile.in: Rebuild.
30 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
32         * elf.c (SHN_UNDEF): Define.
33         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
34         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
35         (elf_add): Adjust caller.
37         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
39 2013-11-16  Ian Lance Taylor  <iant@google.com>
41         * backtrace.h (backtrace_create_state): Correct comment about
42         threading.
44 2013-11-15  Ian Lance Taylor  <iant@google.com>
46         * backtrace.h (backtrace_syminfo): Update comment and parameter
47         name to take any address, not just a PC value.
48         * elf.c (STT_OBJECT): Define.
49         (elf_nosyms): Rename parameter pc to addr.
50         (elf_symbol_search): Rename local variable pc to addr.
51         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
52         (elf_syminfo): Rename parameter pc to addr.
53         * btest.c (global): New global variable.
54         (test5): New test.
55         (main): Call test5.
57 2013-10-17  Ian Lance Taylor  <iant@google.com>
59         * elf.c (elf_add): Don't get the wrong offsets if a debug section
60         is missing.
62 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
64         * configure.ac: Add --enable-host-shared, setting up
65         pre-existing PIC_FLAG variable within Makefile.am et al.
66         * configure: Regenerate.
68 2013-09-20  Alan Modra  <amodra@gmail.com>
70         * configure: Regenerate.
72 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
74         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
76 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
78         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
79         dl_iterate_phdr callbacks.
81 2013-03-25  Ian Lance Taylor  <iant@google.com>
83         * alloc.c: #include <sys/types.h>.
84         * mmap.c: Likewise.
86 2013-01-31  Ian Lance Taylor  <iant@google.com>
88         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
89         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
91 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
93         PR other/56076
94         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
95         attribute was not seen.
97 2013-01-16  Ian Lance Taylor  <iant@google.com>
99         * dwarf.c (struct unit): Add filename and abs_filename fields.
100         (build_address_map): Set new fields when reading unit.
101         (dwarf_lookup_pc): If we don't find an entry in the line table,
102         just return the main file name.
104 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
106         Update copyright years.
108 2013-01-01  Ian Lance Taylor  <iant@google.com>
110         PR bootstrap/54834
111         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
112         $(MULTIBUILDTOP)/../../gcc/include.
113         * Makefile.in: Rebuild.
115 2013-01-01  Ian Lance Taylor  <iant@google.com>
117         PR other/55536
118         * mmap.c (backtrace_alloc): Don't call sync functions if not
119         threaded.
120         (backtrace_free): Likewise.
122 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
124         * mmapio.c: Define MAP_FAILED if not defined.
126 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
128         PR bootstrap/54926
129         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
130         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
131         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
132         accepts it.
133         * Makefile.in: Regenerated.
134         * configure: Regenerated.
136 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
138         PR bootstrap/54926
139         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
140         * Makefile.in: Regenerated.
142 2012-11-20  Ian Lance Taylor  <iant@google.com>
144         * dwarf.c (read_attribute): Always clear val.
146 2012-11-13  Ian Lance Taylor  <iant@google.com>
148         PR other/55312
149         * configure.ac: Only add -Werror if building a target library.
150         * configure: Rebuild.
152 2012-11-12  Ian Lance Taylor  <iant@google.com>
153             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
154             Gerald Pfeifer  <gerald@pfeifer.com>
156         * configure.ac: Check for getexecname.
157         * fileline.c: #include <errno.h>.  Define getexecname if not
158         available.
159         (fileline_initialize): Try to find the executable in a few
160         different ways.
161         * print.c (error_callback): Only print the filename if it came
162         from the backtrace state.
163         * configure, config.h.in: Rebuild.
165 2012-10-29  Ian Lance Taylor  <iant@google.com>
167         * mmap.c (backtrace_vector_release): Correct last patch: add
168         aligned, not size.
170 2012-10-29  Ian Lance Taylor  <iant@google.com>
172         * mmap.c (backtrace_vector_release): Make sure freed block is
173         aligned on 8-byte boundary.
175 2012-10-26  Ian Lance Taylor  <iant@google.com>
177         PR other/55087
178         * posix.c (backtrace_open): Add does_not_exist parameter.
179         * elf.c (phdr_callback): Do not warn if shared library could not
180         be opened.
181         * fileline.c (fileline_initialize): Update calls to
182         backtrace_open.
183         * internal.h (backtrace_open): Update declaration.
185 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
187         PR target/55061
188         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
189         * configure: Regenerate.
191 2012-10-24  Ian Lance Taylor  <iant@google.com>
193         PR target/55061
194         * configure.ac: Check whether -funwind-tables option works.
195         * configure: Rebuild.
197 2012-10-11  Ian Lance Taylor  <iant@google.com>
199         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
200         * configure: Rebuild.
202 2012-10-10  Ian Lance Taylor  <iant@google.com>
204         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
205         lower case.
207 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
209         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
211 2012-10-09  Ian Lance Taylor  <iant@google.com>
213         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
214         (backtrace_dwarf_add): Likewise.
216 2012-10-09  Ian Lance Taylor  <iant@google.com>
218         Add support for tracing through shared libraries.
219         * configure.ac: Check for link.h and dl_iterate_phdr.
220         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
221         ELF macros before #defining them.
222         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
223         dl_iterate_phdr.
224         (struct elf_syminfo_data): Add next field.
225         (elf_initialize_syminfo): Initialize next field.
226         (elf_add_syminfo_data): New static function.
227         (elf_add): New static function, broken out of
228         backtrace_initialize.  Call backtrace_dwarf_add instead of
229         backtrace_dwarf_initialize.
230         (struct phdr_data): Define.
231         (phdr_callback): New static function.
232         (backtrace_initialize): Call elf_add.
233         * dwarf.c (struct dwarf_data): Add next and base_address fields.
234         (add_unit_addr): Add base_address parameter.  Change all callers.
235         (add_unit_ranges, build_address_map): Likewise.
236         (add_line): Add ddata parameter.  Change all callers.
237         (read_line_program, add_function_range): Likewise.
238         (dwarf_lookup_pc): New static function, broken out of
239         dwarf_fileline.
240         (dwarf_fileline): Call dwarf_lookup_pc.
241         (build_dwarf_data): New static function.
242         (backtrace_dwarf_add): New function.
243         (backtrace_dwarf_initialize): Remove.
244         * internal.h (backtrace_dwarf_initialize): Don't declare.
245         (backtrace_dwarf_add): Declare.
246         * configure, config.h.in: Rebuild.
248 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
250         * btest.c (f23): Avoid uninitialized variable warning.
252 2012-10-04  Ian Lance Taylor  <iant@google.com>
254         * dwarf.c: If the system header files do not declare strnlen,
255         provide our own version.
257 2012-10-03  Ian Lance Taylor  <iant@google.com>
259         * dwarf.c (read_uleb128): Fix overflow test.
260         (read_sleb128): Likewise.
261         (build_address_map): Don't change unit_buf.start.
263 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
265         PR other/54761
266         * configure.ac (EXTRA_FLAGS): New.
267         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
268         * configure, Makefile.in: Regenerate.
270 2012-09-29  Ian Lance Taylor  <iant@google.com>
272         PR other/54749
273         * fileline.c (fileline_initialize): Pass errnum as -1 when
274         reporting that we could not read executable information after a
275         previous failure.
277 2012-09-27  Ian Lance Taylor  <iant@google.com>
279         PR bootstrap/54732
280         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
281         * Makefile.am: Add dependencies for all objects.
282         * configure, aclocal.m4, Makefile.in: Rebuild.
284 2012-09-27  Ian Lance Taylor  <iant@google.com>
286         PR other/54726
287         * elf.c (backtrace_initialize): Set *fileln_fn, not
288         state->fileln_fn.
290 2012-09-19  Ian Lance Taylor  <iant@google.com>
292         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
293         as a target library.
294         * configure: Rebuild.
296 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
297             Ian Lance Taylor  <iant@google.com>
299         * configure.ac (GCC_HEADER_STDINT): Invoke.
300         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
301         * btest.c: Don't include <stdint.h>.
302         * dwarf.c: Likewise.
303         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
305 2012-09-18  Ian Lance Taylor  <iant@google.com>
307         PR bootstrap/54623
308         * Makefile.am (AM_CPPFLAGS): Define.
309         (AM_CFLAGS): Remove -I options.
310         * Makefile.in: Rebuild.
312 2012-09-18  Ian Lance Taylor  <iant@google.com>
314         * posix.c (O_BINARY): Define if not defined.
315         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
316         HAVE_FCNTL is defined.
317         * configure.ac: Test for the fcntl function.
318         * configure, config.h.in: Rebuild.
320 2012-09-18  Ian Lance Taylor  <iant@google.com>
322         * btest.c (test1, test2, test3, test4): Add the unused attribute.
324 2012-09-18  Ian Lance Taylor  <iant@google.com>
326         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
328 2012-09-18  Ian Lance Taylor  <iant@google.com>
330         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
331         * mmapio.c: Don't define _GNU_SOURCE.
332         * configure, config.h.in: Rebuild.
334 2012-09-18  Ian Lance Taylor  <iant@google.com>
336         * configure.ac: Check whether strnlen is declared.
337         * dwarf.c: Declare strnlen if not declared.
338         * configure, config.h.in: Rebuild.
340 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
342         * fileline.c: Include <stdlib.h>.
343         * mmap.c: Likewise.
345 2012-09-17  Ian Lance Taylor  <iant@google.com>
347         PR bootstrap/54611
348         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
349         parameter.
351 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
353         PR bootstrap/54611
354         * nounwind.c (backtrace_simple): Add state parameter.
356 2012-09-17  Ian Lance Taylor  <iant@google.com>
358         PR bootstrap/54609
359         * unknown.c (unknown_fileline): Add state parameter, remove
360         fileline_data parameter, name error_callback parameter.
361         (backtrace_initialize): Add state parameter.
363 2012-09-17  Ian Lance Taylor  <iant@google.com>
365         * Initial implementation.