config.host (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename "arm...
[gcc.git] / libbacktrace / ChangeLog
1 2012-10-11 Ian Lance Taylor <iant@google.com>
2
3 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
4 * configure: Rebuild.
5
6 2012-10-10 Ian Lance Taylor <iant@google.com>
7
8 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
9 lower case.
10
11 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
12
13 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
14
15 2012-10-09 Ian Lance Taylor <iant@google.com>
16
17 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
18 (backtrace_dwarf_add): Likewise.
19
20 2012-10-09 Ian Lance Taylor <iant@google.com>
21
22 Add support for tracing through shared libraries.
23 * configure.ac: Check for link.h and dl_iterate_phdr.
24 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
25 ELF macros before #defining them.
26 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
27 dl_iterate_phdr.
28 (struct elf_syminfo_data): Add next field.
29 (elf_initialize_syminfo): Initialize next field.
30 (elf_add_syminfo_data): New static function.
31 (elf_add): New static function, broken out of
32 backtrace_initialize. Call backtrace_dwarf_add instead of
33 backtrace_dwarf_initialize.
34 (struct phdr_data): Define.
35 (phdr_callback): New static function.
36 (backtrace_initialize): Call elf_add.
37 * dwarf.c (struct dwarf_data): Add next and base_address fields.
38 (add_unit_addr): Add base_address parameter. Change all callers.
39 (add_unit_ranges, build_address_map): Likewise.
40 (add_line): Add ddata parameter. Change all callers.
41 (read_line_program, add_function_range): Likewise.
42 (dwarf_lookup_pc): New static function, broken out of
43 dwarf_fileline.
44 (dwarf_fileline): Call dwarf_lookup_pc.
45 (build_dwarf_data): New static function.
46 (backtrace_dwarf_add): New function.
47 (backtrace_dwarf_initialize): Remove.
48 * internal.h (backtrace_dwarf_initialize): Don't declare.
49 (backtrace_dwarf_add): Declare.
50 * configure, config.h.in: Rebuild.
51
52 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
53
54 * btest.c (f23): Avoid uninitialized variable warning.
55
56 2012-10-04 Ian Lance Taylor <iant@google.com>
57
58 * dwarf.c: If the system header files do not declare strnlen,
59 provide our own version.
60
61 2012-10-03 Ian Lance Taylor <iant@google.com>
62
63 * dwarf.c (read_uleb128): Fix overflow test.
64 (read_sleb128): Likewise.
65 (build_address_map): Don't change unit_buf.start.
66
67 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
68
69 PR other/54761
70 * configure.ac (EXTRA_FLAGS): New.
71 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
72 * configure, Makefile.in: Regenerate.
73
74 2012-09-29 Ian Lance Taylor <iant@google.com>
75
76 PR other/54749
77 * fileline.c (fileline_initialize): Pass errnum as -1 when
78 reporting that we could not read executable information after a
79 previous failure.
80
81 2012-09-27 Ian Lance Taylor <iant@google.com>
82
83 PR bootstrap/54732
84 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
85 * Makefile.am: Add dependencies for all objects.
86 * configure, aclocal.m4, Makefile.in: Rebuild.
87
88 2012-09-27 Ian Lance Taylor <iant@google.com>
89
90 PR other/54726
91 * elf.c (backtrace_initialize): Set *fileln_fn, not
92 state->fileln_fn.
93
94 2012-09-19 Ian Lance Taylor <iant@google.com>
95
96 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
97 as a target library.
98 * configure: Rebuild.
99
100 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101 Ian Lance Taylor <iant@google.com>
102
103 * configure.ac (GCC_HEADER_STDINT): Invoke.
104 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
105 * btest.c: Don't include <stdint.h>.
106 * dwarf.c: Likewise.
107 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
108
109 2012-09-18 Ian Lance Taylor <iant@google.com>
110
111 PR bootstrap/54623
112 * Makefile.am (AM_CPPFLAGS): Define.
113 (AM_CFLAGS): Remove -I options.
114 * Makefile.in: Rebuild.
115
116 2012-09-18 Ian Lance Taylor <iant@google.com>
117
118 * posix.c (O_BINARY): Define if not defined.
119 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
120 HAVE_FCNTL is defined.
121 * configure.ac: Test for the fcntl function.
122 * configure, config.h.in: Rebuild.
123
124 2012-09-18 Ian Lance Taylor <iant@google.com>
125
126 * btest.c (test1, test2, test3, test4): Add the unused attribute.
127
128 2012-09-18 Ian Lance Taylor <iant@google.com>
129
130 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
131
132 2012-09-18 Ian Lance Taylor <iant@google.com>
133
134 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
135 * mmapio.c: Don't define _GNU_SOURCE.
136 * configure, config.h.in: Rebuild.
137
138 2012-09-18 Ian Lance Taylor <iant@google.com>
139
140 * configure.ac: Check whether strnlen is declared.
141 * dwarf.c: Declare strnlen if not declared.
142 * configure, config.h.in: Rebuild.
143
144 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
145
146 * fileline.c: Include <stdlib.h>.
147 * mmap.c: Likewise.
148
149 2012-09-17 Ian Lance Taylor <iant@google.com>
150
151 PR bootstrap/54611
152 * nounwind.c (backtrace_full): Rename from backtrace. Add state
153 parameter.
154
155 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
156
157 PR bootstrap/54611
158 * nounwind.c (backtrace_simple): Add state parameter.
159
160 2012-09-17 Ian Lance Taylor <iant@google.com>
161
162 PR bootstrap/54609
163 * unknown.c (unknown_fileline): Add state parameter, remove
164 fileline_data parameter, name error_callback parameter.
165 (backtrace_initialize): Add state parameter.
166
167 2012-09-17 Ian Lance Taylor <iant@google.com>
168
169 * Initial implementation.