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