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