]>
Commit | Line | Data |
---|---|---|
844fae29 | 1 | 2017-09-29 Tony Reix <tony.reix@atos.net> |
2 | ||
3 | * xcoff.c: Initial support for DWARF debug sections in XCOFF. | |
4 | (STYP_DWARF, SSUBTYP_DW*): Define. | |
5 | (enum dwarf_section): Define. | |
6 | (struct dwsect_info): Define. | |
7 | (xcoff_add): Look for DWARF sections, pass them to | |
8 | backtrace_dwarf_add. | |
9 | ||
1fffcf69 | 10 | 2017-09-28 Ian Lance Taylor <iant@golang.org> |
11 | ||
12 | PR other/67165 | |
13 | * elf.c (__builtin_prefetch): Define if not __GNUC__. | |
14 | (unlikely): Define. | |
15 | (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define. | |
16 | (b_elf_chdr): Define type. | |
17 | (enum debug_section): Add ZDEBUG_xxx values. | |
18 | (debug_section_names): Add names for new sections. | |
19 | (struct debug_section_info): Add compressed field. | |
20 | (elf_zlib_failed, elf_zlib_fetch): New static functions. | |
21 | (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define. | |
22 | (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define. | |
23 | (HUFFMAN_SECONDARY_SHIFT): Define. | |
24 | (ZDEBUG_TABLE_SIZE): Define. | |
25 | (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define. | |
26 | (final_next_secondary): New static variable if | |
27 | BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE. | |
28 | (elf_zlib_inflate_table): New static function. | |
29 | (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main | |
30 | function to produce fixed Huffman table. | |
31 | (elf_zlib_default_table): New static variable. | |
32 | (elf_zlib_inflate): New static function. | |
33 | (elf_zlib_verify_checksum): Likewise. | |
34 | (elf_zlib_inflate_and_verify): Likewise. | |
35 | (elf_uncompress_zdebug): Likewise. | |
36 | (elf_uncompress_chdr): Likewise. | |
37 | (backtrace_uncompress_zdebug): New extern function. | |
38 | (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug | |
39 | sections, and uncompress them. | |
40 | * internal.h (backtrace_compress_zdebug): Declare. | |
41 | * ztest.c: New file. | |
42 | * configure.ac: Check for -lz and check whether the linker | |
43 | supports --compress-debug-sections. | |
44 | * Makefile.am (ztest_SOURCES): New variable. | |
45 | (ztest_CFLAGS, ztest_LDADD): New variables. | |
46 | (check_PROGRAMS): Add ztest. | |
47 | (ctestg_SOURCES): New variable. | |
48 | (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables. | |
49 | (ctesta_SOURCES): New variable. | |
50 | (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables. | |
51 | (check_PROGRAMS): Add ctestg and ctesta. | |
52 | * configure, config.h.in, Makefile.in: Rebuild. | |
53 | ||
7b3574e4 | 54 | 2017-09-22 Ian Lance Taylor <iant@golang.org> |
55 | ||
56 | PR sanitizer/77631 | |
57 | * configure.ac: Check for lstat and readlink. | |
58 | * elf.c (lstat, readlink): Provide dummy versions if real versions | |
59 | are not available. | |
60 | * configure, config.h.in: Rebuild. | |
61 | ||
b522f2ea | 62 | 2017-09-21 Ian Lance Taylor <iant@google.com> |
63 | ||
64 | PR go/82284 | |
65 | * elf.c (backtrace_initialize): Set pd.exe_filename. | |
66 | ||
b919941e | 67 | 2017-09-20 Ian Lance Taylor <iant@golang.org> |
68 | Denis Khalikov <d.khalikov@partner.samsung.com> | |
69 | ||
70 | PR sanitizer/77631 | |
71 | Support for external debug info. | |
72 | * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. | |
73 | (S_ISLNK): Define if not defined. | |
74 | (xstrnlen): Define if strnlen is not available. | |
75 | (b_elf_note): Define type. | |
76 | (NT_GNU_BUILD_ID): Define macro. | |
77 | (elf_crc32, elf_crc32_file): New static functions. | |
78 | (elf_is_symlink, elf_readlink): New static functions. | |
79 | (elf_open_debugfile_by_buildid): New static function. | |
80 | (elf_try_debugfile): New static function. | |
81 | (elf_find_debugfile_by_debuglink): New static function. | |
82 | (elf_open_debugfile_by_debuglink): New static function. | |
83 | (elf_add): Add filename and debuginfo parameters. Adjust all | |
84 | callers. Look for external debug info notes, and try to fetch | |
85 | debug info from external file. | |
86 | (struct phdr_data): Add exe_filename field. | |
87 | (phdr_callback): Pass filename to elf_add. | |
88 | (backtrace_initialize): Add filename parameter. | |
89 | * internal.h (backtrace_initialize): Add filename parameter. | |
90 | * fileline.c (fileline_initialize): Pass filename to | |
91 | backtrace_initialize. | |
92 | * pecoff.c (fileline_initialize): Add unused filename parameter. | |
93 | * unknown.c (fileline_initialize): Likewise. | |
94 | * xcoff.c (fileline_initialize): Likewise. | |
95 | * configure.ac: Check for objcopy --add-gnu-debuglink. | |
96 | * Makefile.am (dtest): New test target. | |
97 | * configure, Makefile.in: Rebuild. | |
98 | ||
d0917ddf | 99 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> |
100 | ||
101 | PR other/81096 | |
102 | * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS) | |
103 | * Makefile.in: Regenerate. | |
104 | ||
c5c63423 | 105 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> |
106 | ||
107 | PR other/81096 | |
108 | * libbacktrace/Makefile.in | |
109 | (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS) | |
110 | ||
94bade3f | 111 | 2017-08-02 David Edelsohn <dje.gcc@gmail.com> |
112 | ||
f53d837b | 113 | PR bootstrap/81638 |
94bade3f | 114 | * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. |
115 | ||
ad8b72b9 | 116 | 2017-07-28 Tony Reix <tony.reix@atos.net> |
117 | ||
118 | * xcoff.c: Don't leak a file descriptor if an archive is malformed. | |
119 | ||
6930694d | 120 | 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
121 | ||
122 | * fileline.c (fileline_initialize): Print pid_t as long. | |
123 | ||
0a83c23a | 124 | 2017-07-26 Tony Reix <tony.reix@atos.net> |
125 | ||
126 | * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. | |
127 | * filetype.awk: Separate AIX XCOFF32 and XCOFF64. | |
128 | * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats. | |
129 | * configure, config.h.in: Regenerate. | |
130 | ||
e9e43806 | 131 | 2017-07-21 Tony Reix <tony.reix@atos.net> |
132 | ||
133 | * filetype.awk: Add AIX XCOFF type detection. | |
134 | * configure.ac: Recognize xcoff format. | |
135 | * Makefile.am (FORMAT_FILES): Add xcoff.c. | |
136 | * fileline.c: Include <unistd.h>. | |
137 | (fileline_initialize): Add case for AIX procfs. | |
138 | * xcoff.c: New file. | |
139 | * configure, Makefile.in: Rebuild. | |
140 | ||
772d73b0 | 141 | 2017-06-21 Richard Biener <rguenther@suse.de> |
142 | ||
143 | * configure.ac: Add AC_SYS_LARGEFILE. | |
144 | * config.h.in: Regenerate. | |
145 | * configure: Likewise. | |
146 | ||
3be33b09 | 147 | 2017-06-11 Ian Lance Taylor <iant@golang.org> |
148 | ||
149 | * elf.c (backtrace_initialize): Always set *fileline_fn. | |
150 | * ttest.c: New file. | |
151 | * btest.c: Move support functions into testlib.c. Change calls to | |
152 | check to pass file name. | |
153 | * testlib.c: New file, copied from (part of) btest.c. | |
154 | * testlib.h: New file, declarations for testlib.c. | |
155 | * edtest.c: Use testlib.h and testlib.c. | |
156 | * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional. | |
157 | * Makefile.am (btest_SOURCES): Add testlib.c. | |
158 | (edtest_SOURCES): Likewise. | |
159 | (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD. | |
160 | (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define. | |
161 | * configure, Makefile.in: Rebuild. | |
162 | ||
d8178f6c | 163 | 2017-05-19 Than McIntosh <thanm@google.com> |
164 | ||
165 | * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. | |
166 | (read_line_header): Don't allocate dirs if dirs_count == 0. | |
167 | * edtest.c: New file. | |
168 | * edtest2.c: New file. | |
169 | * Makefile.am (edtest_SOURCES, edtest_LDADD): Define. | |
170 | (check_PROGRAMS): Add edtest. | |
171 | (edtest2_build.c, gen_edtest2_build): New targets. | |
172 | * Makefile.in: Rebuild. | |
173 | ||
673716e3 | 174 | 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk> |
175 | ||
176 | * btest.c (test5): Replace #ifdef guard with 'unused' attribute | |
177 | to fix compile warning when BACKTRACE_SUPPORTED isn't defined. | |
178 | ||
aad93da1 | 179 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
180 | ||
181 | Update copyright years. | |
182 | ||
29a8a56b | 183 | 2016-11-15 Matthias Klose <doko@ubuntu.com> |
184 | ||
185 | * configure: Regenerate. | |
186 | ||
75c399ef | 187 | 2016-09-11 Carlos Liam <carlos@aarzee.me> |
188 | ||
189 | * all: Remove meaningless trailing whitespace. | |
190 | ||
86d786c3 | 191 | 2016-05-18 Uros Bizjak <ubizjak@gmail.com> |
192 | ||
193 | PR target/71161 | |
194 | * elf.c (phdr_callback) [__i386__]: Add | |
195 | __attribute__((__force_align_arg_pointer__)). | |
196 | ||
047a1c2f | 197 | 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> |
198 | ||
199 | * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to | |
200 | avoid possible crash. | |
201 | (elf_add): Don't set *fileline_fn to elf_nodebug value in case of | |
202 | missing debug info anymore. | |
203 | ||
cc2bfdc7 | 204 | 2016-02-06 John David Anglin <danglin@gcc.gnu.org> |
205 | ||
206 | * mmap.c (MAP_FAILED): Define if not defined. | |
207 | ||
f1717362 | 208 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
209 | ||
210 | Update copyright years. | |
211 | ||
b767924b | 212 | 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi> |
213 | ||
86d786c3 | 214 | * configure.ac: Specify that DJGPP do not have mmap |
215 | even when sys/mman.h exists. | |
b767924b | 216 | * configure: Regenerate |
217 | ||
ab861c80 | 218 | 2015-12-09 John David Anglin <danglin@gcc.gnu.org> |
219 | ||
86d786c3 | 220 | PR libgfortran/68115 |
ab861c80 | 221 | * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. |
222 | * configure: Regenerate. | |
223 | * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call | |
224 | to void. | |
225 | ||
d93fbda6 | 226 | 2015-09-17 Ian Lance Taylor <iant@google.com> |
227 | ||
228 | * posix.c (backtrace_open): Cast second argument of open() to int. | |
229 | ||
b7f8771c | 230 | 2015-09-11 Ian Lance Taylor <iant@google.com> |
231 | ||
232 | * Makefile.am (backtrace.lo): Depend on internal.h. | |
233 | (sort.lo, stest.lo): Add explicit dependencies. | |
234 | * Makefile.in: Rebuild. | |
235 | ||
576ea143 | 236 | 2015-09-09 Hans-Peter Nilsson <hp@axis.com> |
237 | ||
238 | * backtrace.c: #include <sys/types.h>. | |
239 | ||
61ee636a | 240 | 2015-09-08 Ian Lance Taylor <iant@google.com> |
241 | ||
242 | PR other/67457 | |
243 | * backtrace.c: #include "internal.h". | |
244 | (struct backtrace_data): Add can_alloc field. | |
245 | (unwind): If can_alloc is false, don't try to get file/line | |
246 | information. | |
247 | (backtrace_full): Set can_alloc field in bdata. | |
248 | * alloc.c (backtrace_alloc): Don't call error_callback if it is | |
249 | NULL. | |
250 | * mmap.c (backtrace_alloc): Likewise. | |
251 | * internal.h: Update comments for backtrace_alloc and | |
252 | backtrace_free. | |
253 | ||
37bab844 | 254 | 2015-09-08 Ian Lance Taylor <iant@google.com> |
255 | ||
256 | PR other/67457 | |
257 | * mmap.c (backtrace_alloc): Correct test for mmap failure. | |
258 | ||
b2d409ee | 259 | 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
260 | ||
261 | * configure.ac: For spu-*-* targets, set have_fcntl to no. | |
262 | * configure: Regenerate. | |
263 | ||
d0724418 | 264 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
265 | ||
266 | * configure.ac: Remove [disable-shared] argument to LT_INIT. | |
267 | Remove setting PIC_FLAG when building as target library. | |
268 | * configure: Regenerate. | |
269 | ||
697bc369 | 270 | 2015-08-26 Hans-Peter Nilsson <hp@axis.com> |
271 | ||
272 | * configure.ac: Only compile with -fPIC if the target | |
273 | supports it. | |
274 | * configure: Regenerate. | |
275 | ||
de04a87e | 276 | 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
277 | ||
278 | * configure.ac: Set have_mmap to no on spu-*-* targets. | |
279 | * configure: Regenerate. | |
280 | ||
8ae2112f | 281 | 2015-08-13 Ian Lance Taylor <iant@google.com> |
282 | ||
283 | * dwarf.c (read_function_entry): Add vec_inlined parameter. | |
284 | Change all callers. | |
285 | ||
6112970b | 286 | 2015-06-11 Martin Sebor <msebor@redhat.com> |
287 | ||
288 | PR sanitizer/65479 | |
289 | * dwarf.c (struct line): Add new field idx. | |
290 | (line_compare): Use it. | |
291 | (add_line): Set it. | |
292 | (read_line_info): Reset it. | |
293 | ||
48ee217e | 294 | 2015-05-29 Tristan Gingold <gingold@adacore.com> |
295 | ||
296 | * pecoff.c: New file. | |
297 | * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. | |
298 | * Makefile.in: Regenerate. | |
299 | * filetype.awk: Detect pecoff. | |
300 | * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. | |
301 | Add pecoff. | |
302 | * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is | |
303 | true. | |
304 | * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. | |
305 | * configure: Regenerate. | |
306 | * pecoff.c: New file. | |
307 | ||
2af09e95 | 308 | 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> |
309 | ||
310 | * Makefile.in: Regenerated with automake-1.11.6. | |
311 | * aclocal.m4: Likewise. | |
312 | * configure: Likewise. | |
313 | ||
a8b04833 | 314 | 2015-01-24 Matthias Klose <doko@ubuntu.com> |
315 | ||
316 | * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. | |
317 | * configure: Regenerate. | |
318 | ||
d353bf18 | 319 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
320 | ||
321 | Update copyright years. | |
322 | ||
4e8a08d4 | 323 | 2014-11-21 H.J. Lu <hongjiu.lu@intel.com> |
324 | ||
325 | PR bootstrap/63784 | |
326 | * configure: Regenerated. | |
327 | ||
863e76f9 | 328 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> |
329 | ||
330 | * ChangeLog.jit: New. | |
331 | ||
7c407808 | 332 | 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
333 | ||
334 | PR target/63610 | |
335 | * configure: Regenerate. | |
336 | ||
f62ce0c7 | 337 | 2014-10-23 Ian Lance Taylor <iant@google.com> |
338 | ||
339 | * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: | |
340 | Fix to return void *. | |
341 | ||
af436d54 | 342 | 2014-05-08 Ian Lance Taylor <iant@google.com> |
343 | ||
344 | * mmap.c (backtrace_free): If freeing a large aligned block of | |
345 | memory, call munmap rather than holding onto it. | |
346 | (backtrace_vector_grow): When growing a vector, double the number | |
347 | of pages requested. When releasing the old version of a grown | |
348 | vector, pass the correct size to backtrace_free. | |
349 | ||
30510c70 | 350 | 2014-03-07 Ian Lance Taylor <iant@google.com> |
351 | ||
352 | * sort.c (backtrace_qsort): Use middle element as pivot. | |
353 | ||
1329f160 | 354 | 2014-03-06 Ian Lance Taylor <iant@google.com> |
355 | ||
356 | * sort.c: New file. | |
357 | * stest.c: New file. | |
358 | * internal.h (backtrace_qsort): Declare. | |
359 | * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. | |
360 | (read_line_info, read_function_entry): Likewise. | |
361 | (read_function_info, build_dwarf_data): Likewise. | |
362 | * elf.c (elf_initialize_syminfo): Likewise. | |
363 | * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. | |
364 | (stest_SOURCES, stest_LDADD): Define. | |
365 | (check_PROGRAMS): Add stest. | |
366 | ||
2ee407b0 | 367 | 2014-02-07 Misty De Meo <misty@brew.sh> |
368 | ||
369 | PR target/58710 | |
370 | * configure.ac: Use AC_LINK_IFELSE in check for | |
371 | _Unwind_GetIPInfo. | |
372 | * configure: Regenerate. | |
373 | ||
225b76bf | 374 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
375 | ||
376 | Update copyright years | |
377 | ||
84ade58d | 378 | 2013-12-06 Jakub Jelinek <jakub@redhat.com> |
379 | ||
380 | * elf.c (ET_DYN): Undefine and define again. | |
381 | (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, | |
382 | return early -1 without closing the descriptor. | |
383 | (struct phdr_data): Add exe_descriptor. | |
384 | (phdr_callback): If pd->exe_descriptor is not -1, for very first | |
385 | call if dlpi_name is NULL just call elf_add with the exe_descriptor, | |
386 | otherwise backtrace_close the exe_descriptor if not -1. Adjust | |
387 | call to elf_add. | |
388 | (backtrace_initialize): Adjust call to elf_add. If it returns | |
389 | -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. | |
390 | ||
583d5f6b | 391 | 2013-12-05 Ian Lance Taylor <iant@google.com> |
392 | ||
393 | * alloc.c (backtrace_vector_finish): Add error_callback and data | |
394 | parameters. Call backtrace_vector_release. Return address base. | |
395 | * mmap.c (backtrace_vector_finish): Add error_callback and data | |
396 | parameters. Return address base. | |
397 | * dwarf.c (read_function_info): Get new address base from | |
398 | backtrace_vector_finish. | |
399 | * internal.h (backtrace_vector_finish): Update declaration. | |
400 | ||
881a0840 | 401 | 2013-11-27 Ian Lance Taylor <iant@google.com> |
402 | ||
403 | * dwarf.c (find_address_ranges): New static function, broken out | |
404 | of build_address_map. | |
405 | (build_address_map): Call it. | |
406 | * btest.c (check): Check for missing filename or function, rather | |
407 | than crashing. | |
408 | (f3): Check that enough frames were returned. | |
409 | ||
8aae250d | 410 | 2013-11-19 Jakub Jelinek <jakub@redhat.com> |
411 | ||
32ccb438 | 412 | * backtrace.h (backtrace_syminfo_callback): Add symsize argument. |
413 | * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as | |
414 | last argument. | |
415 | * btest.c (struct symdata): Add size field. | |
416 | (callback_three): Add symsize argument. Copy it to the data->size | |
417 | field. | |
418 | (f23): Set symdata.size to 0. | |
419 | (test5): Likewise. If sizeof (int) > 1, lookup address of | |
420 | ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size | |
421 | values. | |
422 | ||
8aae250d | 423 | * atomic.c: Include sys/types.h. |
424 | ||
bcafb4a8 | 425 | 2013-11-18 Ian Lance Taylor <iant@google.com> |
426 | ||
427 | * configure.ac: Check for support of __atomic extensions. | |
428 | * internal.h: Declare or #define atomic functions for use in | |
429 | backtrace code. | |
430 | * atomic.c: New file. | |
431 | * dwarf.c (dwarf_lookup_pc): Use atomic functions. | |
432 | (dwarf_fileline, backtrace_dwarf_add): Likewise. | |
433 | * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. | |
434 | (backtrace_initialize): Likewise. | |
435 | * fileline.c (fileline_initialize): Likewise. | |
436 | * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. | |
437 | * configure, config.h.in, Makefile.in: Rebuild. | |
438 | ||
bcddbfd5 | 439 | 2013-11-18 Jakub Jelinek <jakub@redhat.com> |
440 | ||
02dc92c7 | 441 | * elf.c (SHN_UNDEF): Define. |
442 | (elf_initialize_syminfo): Add base_address argument. Ignore symbols | |
443 | with st_shndx == SHN_UNDEF. Add base_address to address fields. | |
444 | (elf_add): Adjust caller. | |
445 | ||
bcddbfd5 | 446 | * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. |
447 | ||
b1a2c599 | 448 | 2013-11-16 Ian Lance Taylor <iant@google.com> |
449 | ||
450 | * backtrace.h (backtrace_create_state): Correct comment about | |
451 | threading. | |
452 | ||
d4cc0c47 | 453 | 2013-11-15 Ian Lance Taylor <iant@google.com> |
454 | ||
455 | * backtrace.h (backtrace_syminfo): Update comment and parameter | |
456 | name to take any address, not just a PC value. | |
457 | * elf.c (STT_OBJECT): Define. | |
458 | (elf_nosyms): Rename parameter pc to addr. | |
459 | (elf_symbol_search): Rename local variable pc to addr. | |
460 | (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. | |
461 | (elf_syminfo): Rename parameter pc to addr. | |
462 | * btest.c (global): New global variable. | |
463 | (test5): New test. | |
464 | (main): Call test5. | |
465 | ||
f9d655c9 | 466 | 2013-10-17 Ian Lance Taylor <iant@google.com> |
467 | ||
468 | * elf.c (elf_add): Don't get the wrong offsets if a debug section | |
469 | is missing. | |
470 | ||
2bd17377 | 471 | 2013-10-15 David Malcolm <dmalcolm@redhat.com> |
472 | ||
473 | * configure.ac: Add --enable-host-shared, setting up | |
474 | pre-existing PIC_FLAG variable within Makefile.am et al. | |
475 | * configure: Regenerate. | |
476 | ||
9613c003 | 477 | 2013-09-20 Alan Modra <amodra@gmail.com> |
478 | ||
479 | * configure: Regenerate. | |
480 | ||
64514244 | 481 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> |
482 | ||
483 | * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. | |
484 | ||
5d62aeb5 | 485 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> |
486 | ||
487 | * elf.c (backtrace_initialize): Pass elf_fileline_fn to | |
488 | dl_iterate_phdr callbacks. | |
489 | ||
db79a293 | 490 | 2013-03-25 Ian Lance Taylor <iant@google.com> |
491 | ||
492 | * alloc.c: #include <sys/types.h>. | |
493 | * mmap.c: Likewise. | |
494 | ||
c187f805 | 495 | 2013-01-31 Ian Lance Taylor <iant@google.com> |
496 | ||
497 | * dwarf.c (read_function_info): Permit fvec parameter to be NULL. | |
498 | (dwarf_lookup_pc): Don't use ddata->fvec if threaded. | |
499 | ||
c4e0613e | 500 | 2013-01-25 Jakub Jelinek <jakub@redhat.com> |
501 | ||
502 | PR other/56076 | |
503 | * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir | |
504 | attribute was not seen. | |
505 | ||
feded019 | 506 | 2013-01-16 Ian Lance Taylor <iant@google.com> |
507 | ||
508 | * dwarf.c (struct unit): Add filename and abs_filename fields. | |
509 | (build_address_map): Set new fields when reading unit. | |
510 | (dwarf_lookup_pc): If we don't find an entry in the line table, | |
511 | just return the main file name. | |
512 | ||
bb88d427 | 513 | 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com> |
514 | ||
515 | Update copyright years. | |
516 | ||
0fe62490 | 517 | 2013-01-01 Ian Lance Taylor <iant@google.com> |
518 | ||
519 | PR bootstrap/54834 | |
520 | * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I | |
521 | $(MULTIBUILDTOP)/../../gcc/include. | |
522 | * Makefile.in: Rebuild. | |
523 | ||
a666b85b | 524 | 2013-01-01 Ian Lance Taylor <iant@google.com> |
525 | ||
526 | PR other/55536 | |
527 | * mmap.c (backtrace_alloc): Don't call sync functions if not | |
528 | threaded. | |
529 | (backtrace_free): Likewise. | |
530 | ||
99c67164 | 531 | 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
532 | ||
533 | * mmapio.c: Define MAP_FAILED if not defined. | |
534 | ||
a7ebc02e | 535 | 2012-12-11 Jakub Jelinek <jakub@redhat.com> |
536 | ||
537 | PR bootstrap/54926 | |
538 | * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. | |
539 | * configure.ac: If --with-target-subdir, add -frandom-seed=$@ | |
540 | to EXTRA_FLAGS unconditionally, otherwise check whether the compiler | |
541 | accepts it. | |
542 | * Makefile.in: Regenerated. | |
543 | * configure: Regenerated. | |
544 | ||
ebfe0e60 | 545 | 2012-12-07 Jakub Jelinek <jakub@redhat.com> |
546 | ||
547 | PR bootstrap/54926 | |
548 | * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. | |
549 | * Makefile.in: Regenerated. | |
550 | ||
d80b0ad4 | 551 | 2012-11-20 Ian Lance Taylor <iant@google.com> |
552 | ||
553 | * dwarf.c (read_attribute): Always clear val. | |
554 | ||
47b4f489 | 555 | 2012-11-13 Ian Lance Taylor <iant@google.com> |
556 | ||
557 | PR other/55312 | |
558 | * configure.ac: Only add -Werror if building a target library. | |
a666b85b | 559 | * configure: Rebuild. |
47b4f489 | 560 | |
686b3772 | 561 | 2012-11-12 Ian Lance Taylor <iant@google.com> |
562 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
563 | Gerald Pfeifer <gerald@pfeifer.com> | |
564 | ||
565 | * configure.ac: Check for getexecname. | |
566 | * fileline.c: #include <errno.h>. Define getexecname if not | |
567 | available. | |
568 | (fileline_initialize): Try to find the executable in a few | |
569 | different ways. | |
570 | * print.c (error_callback): Only print the filename if it came | |
571 | from the backtrace state. | |
572 | * configure, config.h.in: Rebuild. | |
573 | ||
bccc33a3 | 574 | 2012-10-29 Ian Lance Taylor <iant@google.com> |
575 | ||
576 | * mmap.c (backtrace_vector_release): Correct last patch: add | |
577 | aligned, not size. | |
578 | ||
8bca4f13 | 579 | 2012-10-29 Ian Lance Taylor <iant@google.com> |
580 | ||
581 | * mmap.c (backtrace_vector_release): Make sure freed block is | |
582 | aligned on 8-byte boundary. | |
583 | ||
b60ebf03 | 584 | 2012-10-26 Ian Lance Taylor <iant@google.com> |
585 | ||
586 | PR other/55087 | |
587 | * posix.c (backtrace_open): Add does_not_exist parameter. | |
588 | * elf.c (phdr_callback): Do not warn if shared library could not | |
589 | be opened. | |
590 | * fileline.c (fileline_initialize): Update calls to | |
591 | backtrace_open. | |
592 | * internal.h (backtrace_open): Update declaration. | |
593 | ||
a4a5a77a | 594 | 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> |
595 | ||
596 | PR target/55061 | |
597 | * configure.ac: Check for _Unwind_GetIPInfo function declaration. | |
598 | * configure: Regenerate. | |
599 | ||
ff2fe13c | 600 | 2012-10-24 Ian Lance Taylor <iant@google.com> |
601 | ||
602 | PR target/55061 | |
603 | * configure.ac: Check whether -funwind-tables option works. | |
604 | * configure: Rebuild. | |
605 | ||
90de4704 | 606 | 2012-10-11 Ian Lance Taylor <iant@google.com> |
607 | ||
608 | * configure.ac: Do not use dl_iterate_phdr on Solaris 10. | |
609 | * configure: Rebuild. | |
610 | ||
f54077a5 | 611 | 2012-10-10 Ian Lance Taylor <iant@google.com> |
612 | ||
613 | * elf.c: Rename all Elf typedefs to start with b_elf, and be all | |
614 | lower case. | |
615 | ||
fa45cf12 | 616 | 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com> |
617 | ||
618 | * elf.c (elf_add_syminfo_data): Add casts to avoid warning. | |
619 | ||
bbcd37bc | 620 | 2012-10-09 Ian Lance Taylor <iant@google.com> |
621 | ||
622 | * dwarf.c (dwarf_fileline): Add cast to avoid warning. | |
623 | (backtrace_dwarf_add): Likewise. | |
624 | ||
1bfb5d87 | 625 | 2012-10-09 Ian Lance Taylor <iant@google.com> |
626 | ||
627 | Add support for tracing through shared libraries. | |
628 | * configure.ac: Check for link.h and dl_iterate_phdr. | |
629 | * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef | |
630 | ELF macros before #defining them. | |
631 | (dl_phdr_info, dl_iterate_phdr): Define if system does not have | |
632 | dl_iterate_phdr. | |
633 | (struct elf_syminfo_data): Add next field. | |
634 | (elf_initialize_syminfo): Initialize next field. | |
635 | (elf_add_syminfo_data): New static function. | |
636 | (elf_add): New static function, broken out of | |
637 | backtrace_initialize. Call backtrace_dwarf_add instead of | |
638 | backtrace_dwarf_initialize. | |
639 | (struct phdr_data): Define. | |
640 | (phdr_callback): New static function. | |
641 | (backtrace_initialize): Call elf_add. | |
642 | * dwarf.c (struct dwarf_data): Add next and base_address fields. | |
643 | (add_unit_addr): Add base_address parameter. Change all callers. | |
644 | (add_unit_ranges, build_address_map): Likewise. | |
645 | (add_line): Add ddata parameter. Change all callers. | |
646 | (read_line_program, add_function_range): Likewise. | |
647 | (dwarf_lookup_pc): New static function, broken out of | |
648 | dwarf_fileline. | |
649 | (dwarf_fileline): Call dwarf_lookup_pc. | |
650 | (build_dwarf_data): New static function. | |
651 | (backtrace_dwarf_add): New function. | |
652 | (backtrace_dwarf_initialize): Remove. | |
653 | * internal.h (backtrace_dwarf_initialize): Don't declare. | |
654 | (backtrace_dwarf_add): Declare. | |
655 | * configure, config.h.in: Rebuild. | |
656 | ||
fd88e799 | 657 | 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com> |
658 | ||
659 | * btest.c (f23): Avoid uninitialized variable warning. | |
1bfb5d87 | 660 | |
c08b21b7 | 661 | 2012-10-04 Ian Lance Taylor <iant@google.com> |
662 | ||
663 | * dwarf.c: If the system header files do not declare strnlen, | |
664 | provide our own version. | |
665 | ||
68dd5473 | 666 | 2012-10-03 Ian Lance Taylor <iant@google.com> |
667 | ||
668 | * dwarf.c (read_uleb128): Fix overflow test. | |
669 | (read_sleb128): Likewise. | |
670 | (build_address_map): Don't change unit_buf.start. | |
671 | ||
536b8dd3 | 672 | 2012-10-02 Uros Bizjak <ubizjak@gmail.com> |
673 | ||
86385074 | 674 | PR other/54761 |
675 | * configure.ac (EXTRA_FLAGS): New. | |
536b8dd3 | 676 | * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). |
86385074 | 677 | * configure, Makefile.in: Regenerate. |
536b8dd3 | 678 | |
babed505 | 679 | 2012-09-29 Ian Lance Taylor <iant@google.com> |
680 | ||
681 | PR other/54749 | |
682 | * fileline.c (fileline_initialize): Pass errnum as -1 when | |
683 | reporting that we could not read executable information after a | |
684 | previous failure. | |
685 | ||
451b8929 | 686 | 2012-09-27 Ian Lance Taylor <iant@google.com> |
687 | ||
688 | PR bootstrap/54732 | |
689 | * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. | |
690 | * Makefile.am: Add dependencies for all objects. | |
691 | * configure, aclocal.m4, Makefile.in: Rebuild. | |
692 | ||
12073816 | 693 | 2012-09-27 Ian Lance Taylor <iant@google.com> |
694 | ||
695 | PR other/54726 | |
696 | * elf.c (backtrace_initialize): Set *fileln_fn, not | |
697 | state->fileln_fn. | |
698 | ||
837eabff | 699 | 2012-09-19 Ian Lance Taylor <iant@google.com> |
700 | ||
701 | * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled | |
702 | as a target library. | |
703 | * configure: Rebuild. | |
704 | ||
b945b61c | 705 | 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
706 | Ian Lance Taylor <iant@google.com> | |
707 | ||
708 | * configure.ac (GCC_HEADER_STDINT): Invoke. | |
709 | * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". | |
710 | * btest.c: Don't include <stdint.h>. | |
711 | * dwarf.c: Likewise. | |
712 | * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. | |
713 | ||
e9830854 | 714 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
715 | ||
716 | PR bootstrap/54623 | |
717 | * Makefile.am (AM_CPPFLAGS): Define. | |
718 | (AM_CFLAGS): Remove -I options. | |
719 | * Makefile.in: Rebuild. | |
720 | ||
7341e544 | 721 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
722 | ||
723 | * posix.c (O_BINARY): Define if not defined. | |
724 | (backtrace_open): Pass O_BINARY to open. Only call fcntl if | |
725 | HAVE_FCNTL is defined. | |
726 | * configure.ac: Test for the fcntl function. | |
727 | * configure, config.h.in: Rebuild. | |
728 | ||
d48b4b14 | 729 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
730 | ||
731 | * btest.c (test1, test2, test3, test4): Add the unused attribute. | |
732 | ||
249b4e85 | 733 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
734 | ||
735 | * dwarf.c: Correct test of HAVE_DECL_STRNLEN. | |
736 | ||
30bd8e8b | 737 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
738 | ||
739 | * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. | |
740 | * mmapio.c: Don't define _GNU_SOURCE. | |
741 | * configure, config.h.in: Rebuild. | |
742 | ||
5f7c240f | 743 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
744 | ||
745 | * configure.ac: Check whether strnlen is declared. | |
746 | * dwarf.c: Declare strnlen if not declared. | |
747 | * configure, config.h.in: Rebuild. | |
748 | ||
08a2d161 | 749 | 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
750 | ||
751 | * fileline.c: Include <stdlib.h>. | |
752 | * mmap.c: Likewise. | |
753 | ||
49414838 | 754 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
755 | ||
756 | PR bootstrap/54611 | |
757 | * nounwind.c (backtrace_full): Rename from backtrace. Add state | |
758 | parameter. | |
759 | ||
39a0a26e | 760 | 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com> |
761 | ||
762 | PR bootstrap/54611 | |
763 | * nounwind.c (backtrace_simple): Add state parameter. | |
764 | ||
03d628c3 | 765 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
766 | ||
767 | PR bootstrap/54609 | |
768 | * unknown.c (unknown_fileline): Add state parameter, remove | |
769 | fileline_data parameter, name error_callback parameter. | |
770 | (backtrace_initialize): Add state parameter. | |
771 | ||
ecd3459e | 772 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
773 | ||
774 | * Initial implementation. | |
f1717362 | 775 | \f |
aad93da1 | 776 | Copyright (C) 2012-2017 Free Software Foundation, Inc. |
f1717362 | 777 | |
778 | Copying and distribution of this file, with or without modification, | |
779 | are permitted in any medium without royalty provided the copyright | |
780 | notice and this notice are preserved. |