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