]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
Call decl_default_tls_model with a proper type (PR gcov-profile/88279).
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
518a3a21
TV
12018-11-30 Tom de Vries <tdevries@suse.de>
2
3 * internal.h (backtrace_vector_free): New static inline fuction,
4 factored out of ...
5 * dwarf.c (read_line_info): ... here.
6
18c742b5
TV
72018-11-28 Tom de Vries <tdevries@suse.de>
8
9 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
10 failure.
11
6d760a01
TV
122018-11-27 Tom de Vries <tdevries@suse.de>
13
14 * mmap.c (backtrace_vector_release): Same.
15 * unittest.c (test1): Add check.
16
0c155f24
TV
172018-11-27 Tom de Vries <tdevries@suse.de>
18
19 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
20 instead of realloc.
21 * Makefile.am (check_PROGRAMS): Add unittest.
22 * Makefile.in: Regenerate.
23 * unittest.c: New file.
24
292592c5
TV
252018-11-22 Tom de Vries <tdevries@suse.de>
26
27 * dwarf.c (read_initial_length): Factor out of ...
28 (build_address_map, read_line_info): ... here.
29
17112570
TV
302018-11-21 Tom de Vries <tdevries@suse.de>
31
32 * dwarf.c (read_string): Factor out of ...
33 (read_attribute, read_line_header, read_line_program): ... here.
34
22e05272
JM
352018-10-31 Joseph Myers <joseph@codesourcery.com>
36
37 PR bootstrap/82856
38 * Makefile.am: Include multilib.am.
39 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
40 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
41
a2a86641
ILT
422018-10-05 Ian Lance Taylor <iant@golang.org>
43
44 PR libbacktrace/87529
45 * backtrace.h: Document that backtrace_create_state should be
46 called only once.
47
2206fb89
IB
482018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
49
50 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
51 * Makefile.in: Regenerate.
52 * config.h.in: Likewise.
53 * configure: Likewise.
54
ca9a1314
TR
552018-08-01 Tony Reix <tony.reix@atos.net>
56
57 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
58 (struct xcoff_func, struct xcoff_func_vector): New structs.
59 (xcoff_syminfo): Drop leading dot from symbol name.
60 (xcoff_line_compare, xcoff_line_search): Remove.
61 (xcoff_func_compare, xcoff_func_search): New static functions.
62 (xcoff_lookup_pc): Search function table.
63 (xcoff_add_line, xcoff_process_linenos): Remove.
64 (xcoff_initialize_fileline): Build function table.
65
1ac6620a
DK
662018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
67
68 PR other/86198
69 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
70 checking up to 36 bytes.
71
7b47ecf2
L
722018-04-24 H.J. Lu <hongjiu.lu@intel.com>
73
74 * configure: Regenerated.
75
a0e1df88
JJ
762018-04-19 Jakub Jelinek <jakub@redhat.com>
77
78 * configure: Regenerated.
79
21070494
ILT
802018-04-17 Ian Lance Taylor <iant@golang.org>
81
82 * backtrace.c: Revert last two changes. Don't call mmap
83 directly.
84
c36af1b4
ILT
852018-04-17 Ian Lance Taylor <iant@golang.org>
86
87 * backtrace.c: Include backtrace-supported.h before checking
88 BACKTRACE_USES_MALLOC.
89
83a658ca
ILT
902018-04-17 Ian Lance Taylor <iant@golang.org>
91
92 * backtrace.c (backtrace_full): When testing whether we can
93 allocate memory, call mmap directly, and munmap the memory.
94
c5c4b2ae
JJ
952018-04-04 Jakub Jelinek <jakub@redhat.com>
96
97 PR other/85161
98 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
99 big endian, only use 32-bit loads if endianity macros are predefined
100 and indicate big or little endian.
101
14e335ed
IT
1022018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
103
104 PR target/84148
105 * configure: Regenerate.
106
bcc23586
JJ
1072018-02-15 Jakub Jelinek <jakub@redhat.com>
108
109 PR other/82368
110 * elf.c (SHT_PROGBITS): Undefine and define.
111
da07141f
JJ
1122018-02-14 Jakub Jelinek <jakub@redhat.com>
113
114 PR other/82368
115 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
116 (struct elf_ppc64_opd_data): New type.
117 (elf_initialize_syminfo): Add opd argument, handle symbols
118 pointing into the PowerPC64 ELFv1 .opd section.
119 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
120 to structure with .opd data to elf_initialize_syminfo.
121
65d0b859
ILT
1222018-01-31 Ian Lance Taylor <iant@golang.org>
123
124 * elf.c (elf_add): Close descriptor if we use a debugfile.
125 * btest.c (check_open_files): New static function.
126 (main): Call check_open_files.
127
96f7c2a9
ILT
1282018-01-25 Ian Lance Taylor <iant@golang.org>
129
130 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
131 desired CRC is zero.
132 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
133
a794e494
ILT
1342018-01-25 Ian Lance Taylor <iant@golang.org>
135
136 * pecoff.c (coff_add): Only release syms_view if it is valid.
137
45f3ab19
ILT
1382018-01-25 Ian Lance Taylor <iant@golang.org>
139
140 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
141
017707ce
ILT
1422018-01-24 Ian Lance Taylor <iant@golang.org>
143
144 * pecoff.c (coff_add): Use coff_read4, not memcpy.
145
3fe3c7d7
ILT
1462018-01-24 Ian Lance Taylor <iant@golang.org>
147
148 PR other/68239
149 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
150 on the free list.
151
47c699f5
TR
1522018-01-19 Tony Reix <tony.reix@atos.net>
153
154 * xcoff.c (xcoff_incl_compare): New function.
155 (xcoff_incl_search): New function.
156 (xcoff_process_linenos): Use bsearch to find include file.
157 (xcoff_initialize_fileline): Sort include file information.
158
566588f1
ILT
1592018-01-16 Ian Lance Taylor <iant@golang.org>
160
161 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
162 288.
163 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
164 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
165 (elf_zlib_default_table): Update.
166 (elf_zlib_default_dist_table): New static array.
167 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
168 for block type 1.
169 * ztest.c (struct zlib_test): Add uncompressed_len.
170 (tests): Initialize uncompressed_len field. Add new test case.
171 (test_samples): Use uncompressed_len field.
172
85ec4feb
JJ
1732018-01-03 Jakub Jelinek <jakub@redhat.com>
174
175 Update copyright years.
176
44685d37
IT
1772017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
178
179 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
180 * aclocal.m4: Regenerate.
181 * Makefile.in: Likewise.
182 * configure: Likewise.
183
549d24e9
ILT
1842017-10-06 Ian Lance Taylor <iant@golang.org>
185
186 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
187 zlib uncompress function.
188
a978e26b
ILT
1892017-10-05 Ian Lance Taylor <iant@golang.org>
190
191 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
192 Read a four byte integer.
193 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
194 boundary before ever calling elf_zlib_fetch.
195 * ztest.c (test_large): Simplify print statements a bit.
196
8398c1df
ILT
1972017-10-02 Ian Lance Taylor <iant@golang.org>
198
199 * ztest.c: #include <errno.h>.
200 (TEST_TIMING): Don't define, don't test.
201 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
202 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
203 (ZLIB_CLOCK_GETTIME_ARG): Define.
204 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
205 * Makefile.am: Likewise.
206 * configure, Makefile.in: Rebuild.
207
dbc31f20
TS
2082017-10-02 Thomas Schwinge <thomas@codesourcery.com>
209
dd954c67
TS
210 PR other/67165
211 * Makefile.am: Append the content of clock_gettime_link to
212 ztest_LDADD.
213 * configure.ac: Test for the case that clock_gettime is in librt.
214 * Makefile.in: Regenerate.
215 * configure: Likewise.
216
dbc31f20
TS
217 PR other/67165
218 * configure.ac: Check for clock_gettime.
219 * config.h.in: Regenerate.
220 * configure: Likewise.
221 * ztest.c (average_time, test_large): Conditionalize test timing
222 on clock_gettime availability.
223
e90c74f5
TR
2242017-09-29 Tony Reix <tony.reix@atos.net>
225
226 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
227 (STYP_DWARF, SSUBTYP_DW*): Define.
228 (enum dwarf_section): Define.
229 (struct dwsect_info): Define.
230 (xcoff_add): Look for DWARF sections, pass them to
231 backtrace_dwarf_add.
232
8da872d9
ILT
2332017-09-28 Ian Lance Taylor <iant@golang.org>
234
235 PR other/67165
236 * elf.c (__builtin_prefetch): Define if not __GNUC__.
237 (unlikely): Define.
238 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
239 (b_elf_chdr): Define type.
240 (enum debug_section): Add ZDEBUG_xxx values.
241 (debug_section_names): Add names for new sections.
242 (struct debug_section_info): Add compressed field.
243 (elf_zlib_failed, elf_zlib_fetch): New static functions.
244 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
245 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
246 (HUFFMAN_SECONDARY_SHIFT): Define.
247 (ZDEBUG_TABLE_SIZE): Define.
248 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
249 (final_next_secondary): New static variable if
250 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
251 (elf_zlib_inflate_table): New static function.
252 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
253 function to produce fixed Huffman table.
254 (elf_zlib_default_table): New static variable.
255 (elf_zlib_inflate): New static function.
256 (elf_zlib_verify_checksum): Likewise.
257 (elf_zlib_inflate_and_verify): Likewise.
258 (elf_uncompress_zdebug): Likewise.
259 (elf_uncompress_chdr): Likewise.
260 (backtrace_uncompress_zdebug): New extern function.
261 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
262 sections, and uncompress them.
263 * internal.h (backtrace_compress_zdebug): Declare.
264 * ztest.c: New file.
265 * configure.ac: Check for -lz and check whether the linker
266 supports --compress-debug-sections.
267 * Makefile.am (ztest_SOURCES): New variable.
268 (ztest_CFLAGS, ztest_LDADD): New variables.
269 (check_PROGRAMS): Add ztest.
270 (ctestg_SOURCES): New variable.
271 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
272 (ctesta_SOURCES): New variable.
273 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
274 (check_PROGRAMS): Add ctestg and ctesta.
275 * configure, config.h.in, Makefile.in: Rebuild.
276
8c2ea6b2
ILT
2772017-09-22 Ian Lance Taylor <iant@golang.org>
278
279 PR sanitizer/77631
280 * configure.ac: Check for lstat and readlink.
281 * elf.c (lstat, readlink): Provide dummy versions if real versions
282 are not available.
283 * configure, config.h.in: Rebuild.
284
f0de4542
ILT
2852017-09-21 Ian Lance Taylor <iant@google.com>
286
287 PR go/82284
288 * elf.c (backtrace_initialize): Set pd.exe_filename.
289
9283471b
ILT
2902017-09-20 Ian Lance Taylor <iant@golang.org>
291 Denis Khalikov <d.khalikov@partner.samsung.com>
292
293 PR sanitizer/77631
294 Support for external debug info.
295 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
296 (S_ISLNK): Define if not defined.
297 (xstrnlen): Define if strnlen is not available.
298 (b_elf_note): Define type.
299 (NT_GNU_BUILD_ID): Define macro.
300 (elf_crc32, elf_crc32_file): New static functions.
301 (elf_is_symlink, elf_readlink): New static functions.
302 (elf_open_debugfile_by_buildid): New static function.
303 (elf_try_debugfile): New static function.
304 (elf_find_debugfile_by_debuglink): New static function.
305 (elf_open_debugfile_by_debuglink): New static function.
306 (elf_add): Add filename and debuginfo parameters. Adjust all
307 callers. Look for external debug info notes, and try to fetch
308 debug info from external file.
309 (struct phdr_data): Add exe_filename field.
310 (phdr_callback): Pass filename to elf_add.
311 (backtrace_initialize): Add filename parameter.
312 * internal.h (backtrace_initialize): Add filename parameter.
313 * fileline.c (fileline_initialize): Pass filename to
314 backtrace_initialize.
315 * pecoff.c (fileline_initialize): Add unused filename parameter.
316 * unknown.c (fileline_initialize): Likewise.
317 * xcoff.c (fileline_initialize): Likewise.
318 * configure.ac: Check for objcopy --add-gnu-debuglink.
319 * Makefile.am (dtest): New test target.
320 * configure, Makefile.in: Rebuild.
321
29788f90
SE
3222017-09-12 Steve Ellcey <sellcey@cavium.com>
323
324 PR other/81096
325 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
326 * Makefile.in: Regenerate.
327
917a804c
SE
3282017-09-12 Steve Ellcey <sellcey@cavium.com>
329
330 PR other/81096
331 * libbacktrace/Makefile.in
332 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
333
2e6af1b8
DE
3342017-08-02 David Edelsohn <dje.gcc@gmail.com>
335
8a0e6224 336 PR bootstrap/81638
2e6af1b8
DE
337 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
338
afce7deb
TR
3392017-07-28 Tony Reix <tony.reix@atos.net>
340
341 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
342
cf311b03
RO
3432017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344
345 * fileline.c (fileline_initialize): Print pid_t as long.
346
7e2a8417
TR
3472017-07-26 Tony Reix <tony.reix@atos.net>
348
349 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
350 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
351 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
352 * configure, config.h.in: Regenerate.
353
b3530b94
TR
3542017-07-21 Tony Reix <tony.reix@atos.net>
355
356 * filetype.awk: Add AIX XCOFF type detection.
357 * configure.ac: Recognize xcoff format.
358 * Makefile.am (FORMAT_FILES): Add xcoff.c.
359 * fileline.c: Include <unistd.h>.
360 (fileline_initialize): Add case for AIX procfs.
361 * xcoff.c: New file.
362 * configure, Makefile.in: Rebuild.
363
e91a2ddc
RB
3642017-06-21 Richard Biener <rguenther@suse.de>
365
366 * configure.ac: Add AC_SYS_LARGEFILE.
367 * config.h.in: Regenerate.
368 * configure: Likewise.
369
d1609a23
ILT
3702017-06-11 Ian Lance Taylor <iant@golang.org>
371
372 * elf.c (backtrace_initialize): Always set *fileline_fn.
373 * ttest.c: New file.
374 * btest.c: Move support functions into testlib.c. Change calls to
375 check to pass file name.
376 * testlib.c: New file, copied from (part of) btest.c.
377 * testlib.h: New file, declarations for testlib.c.
378 * edtest.c: Use testlib.h and testlib.c.
379 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
380 * Makefile.am (btest_SOURCES): Add testlib.c.
381 (edtest_SOURCES): Likewise.
382 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
383 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
384 * configure, Makefile.in: Rebuild.
385
281161d1
TM
3862017-05-19 Than McIntosh <thanm@google.com>
387
388 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
389 (read_line_header): Don't allocate dirs if dirs_count == 0.
390 * edtest.c: New file.
391 * edtest2.c: New file.
392 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
393 (check_PROGRAMS): Add edtest.
394 (edtest2_build.c, gen_edtest2_build): New targets.
395 * Makefile.in: Rebuild.
396
121eb024
ST
3972017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
398
399 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
400 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
401
cbe34bb5
JJ
4022017-01-01 Jakub Jelinek <jakub@redhat.com>
403
404 Update copyright years.
405
84c1b9d3
MK
4062016-11-15 Matthias Klose <doko@ubuntu.com>
407
408 * configure: Regenerate.
409
84ebf639
CL
4102016-09-11 Carlos Liam <carlos@aarzee.me>
411
412 * all: Remove meaningless trailing whitespace.
413
28644f75
UB
4142016-05-18 Uros Bizjak <ubizjak@gmail.com>
415
416 PR target/71161
417 * elf.c (phdr_callback) [__i386__]: Add
418 __attribute__((__force_align_arg_pointer__)).
419
26ac52db
MO
4202016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
421
422 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
423 avoid possible crash.
424 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
425 missing debug info anymore.
426
09b08e17
JDA
4272016-02-06 John David Anglin <danglin@gcc.gnu.org>
428
429 * mmap.c (MAP_FAILED): Define if not defined.
430
818ab71a
JJ
4312016-01-04 Jakub Jelinek <jakub@redhat.com>
432
433 Update copyright years.
434
5b4bbc7d
AP
4352015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
436
28644f75
UB
437 * configure.ac: Specify that DJGPP do not have mmap
438 even when sys/mman.h exists.
5b4bbc7d
AP
439 * configure: Regenerate
440
2f401a8f
JDA
4412015-12-09 John David Anglin <danglin@gcc.gnu.org>
442
28644f75 443 PR libgfortran/68115
2f401a8f
JDA
444 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
445 * configure: Regenerate.
446 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
447 to void.
448
750cdaf7
ILT
4492015-09-17 Ian Lance Taylor <iant@google.com>
450
451 * posix.c (backtrace_open): Cast second argument of open() to int.
452
fc002444
ILT
4532015-09-11 Ian Lance Taylor <iant@google.com>
454
455 * Makefile.am (backtrace.lo): Depend on internal.h.
456 (sort.lo, stest.lo): Add explicit dependencies.
457 * Makefile.in: Rebuild.
458
50809ff9
HPN
4592015-09-09 Hans-Peter Nilsson <hp@axis.com>
460
461 * backtrace.c: #include <sys/types.h>.
462
c478516b
ILT
4632015-09-08 Ian Lance Taylor <iant@google.com>
464
465 PR other/67457
466 * backtrace.c: #include "internal.h".
467 (struct backtrace_data): Add can_alloc field.
468 (unwind): If can_alloc is false, don't try to get file/line
469 information.
470 (backtrace_full): Set can_alloc field in bdata.
471 * alloc.c (backtrace_alloc): Don't call error_callback if it is
472 NULL.
473 * mmap.c (backtrace_alloc): Likewise.
474 * internal.h: Update comments for backtrace_alloc and
475 backtrace_free.
476
981d281f
ILT
4772015-09-08 Ian Lance Taylor <iant@google.com>
478
479 PR other/67457
480 * mmap.c (backtrace_alloc): Correct test for mmap failure.
481
8f5027bf
UW
4822015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
483
484 * configure.ac: For spu-*-* targets, set have_fcntl to no.
485 * configure: Regenerate.
486
7e5c7547
UW
4872015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
488
489 * configure.ac: Remove [disable-shared] argument to LT_INIT.
490 Remove setting PIC_FLAG when building as target library.
491 * configure: Regenerate.
492
7ce9cf39
HPN
4932015-08-26 Hans-Peter Nilsson <hp@axis.com>
494
495 * configure.ac: Only compile with -fPIC if the target
496 supports it.
497 * configure: Regenerate.
498
1b533361
UW
4992015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
500
501 * configure.ac: Set have_mmap to no on spu-*-* targets.
502 * configure: Regenerate.
503
d96fa208
ILT
5042015-08-13 Ian Lance Taylor <iant@google.com>
505
506 * dwarf.c (read_function_entry): Add vec_inlined parameter.
507 Change all callers.
508
d99a7b4d
MS
5092015-06-11 Martin Sebor <msebor@redhat.com>
510
511 PR sanitizer/65479
512 * dwarf.c (struct line): Add new field idx.
513 (line_compare): Use it.
514 (add_line): Set it.
515 (read_line_info): Reset it.
516
e24afc10
TG
5172015-05-29 Tristan Gingold <gingold@adacore.com>
518
519 * pecoff.c: New file.
520 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
521 * Makefile.in: Regenerate.
522 * filetype.awk: Detect pecoff.
523 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
524 Add pecoff.
525 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
526 true.
527 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
528 * configure: Regenerate.
529 * pecoff.c: New file.
530
df96c0f7
MH
5312015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
532
533 * Makefile.in: Regenerated with automake-1.11.6.
534 * aclocal.m4: Likewise.
535 * configure: Likewise.
536
2b8fa469
MK
5372015-01-24 Matthias Klose <doko@ubuntu.com>
538
539 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
540 * configure: Regenerate.
541
5624e564
JJ
5422015-01-05 Jakub Jelinek <jakub@redhat.com>
543
544 Update copyright years.
545
a699d672
L
5462014-11-21 H.J. Lu <hongjiu.lu@intel.com>
547
548 PR bootstrap/63784
549 * configure: Regenerated.
550
35485da9
DM
5512014-11-11 David Malcolm <dmalcolm@redhat.com>
552
553 * ChangeLog.jit: New.
554
ebf6d33b
FXC
5552014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
556
557 PR target/63610
558 * configure: Regenerate.
559
c96601d2
ILT
5602014-10-23 Ian Lance Taylor <iant@google.com>
561
562 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
563 Fix to return void *.
564
d573fd89
ILT
5652014-05-08 Ian Lance Taylor <iant@google.com>
566
567 * mmap.c (backtrace_free): If freeing a large aligned block of
568 memory, call munmap rather than holding onto it.
569 (backtrace_vector_grow): When growing a vector, double the number
570 of pages requested. When releasing the old version of a grown
571 vector, pass the correct size to backtrace_free.
572
dbe20842
ILT
5732014-03-07 Ian Lance Taylor <iant@google.com>
574
575 * sort.c (backtrace_qsort): Use middle element as pivot.
576
c5604b48
ILT
5772014-03-06 Ian Lance Taylor <iant@google.com>
578
579 * sort.c: New file.
580 * stest.c: New file.
581 * internal.h (backtrace_qsort): Declare.
582 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
583 (read_line_info, read_function_entry): Likewise.
584 (read_function_info, build_dwarf_data): Likewise.
585 * elf.c (elf_initialize_syminfo): Likewise.
586 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
587 (stest_SOURCES, stest_LDADD): Define.
588 (check_PROGRAMS): Add stest.
589
63fefb4b
MDM
5902014-02-07 Misty De Meo <misty@brew.sh>
591
592 PR target/58710
593 * configure.ac: Use AC_LINK_IFELSE in check for
594 _Unwind_GetIPInfo.
595 * configure: Regenerate.
596
afeba5cb
RS
5972014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
598
599 Update copyright years
600
0284b52e
JJ
6012013-12-06 Jakub Jelinek <jakub@redhat.com>
602
603 * elf.c (ET_DYN): Undefine and define again.
604 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
605 return early -1 without closing the descriptor.
606 (struct phdr_data): Add exe_descriptor.
607 (phdr_callback): If pd->exe_descriptor is not -1, for very first
608 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
609 otherwise backtrace_close the exe_descriptor if not -1. Adjust
610 call to elf_add.
611 (backtrace_initialize): Adjust call to elf_add. If it returns
612 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
613
bfd74f22
ILT
6142013-12-05 Ian Lance Taylor <iant@google.com>
615
616 * alloc.c (backtrace_vector_finish): Add error_callback and data
617 parameters. Call backtrace_vector_release. Return address base.
618 * mmap.c (backtrace_vector_finish): Add error_callback and data
619 parameters. Return address base.
620 * dwarf.c (read_function_info): Get new address base from
621 backtrace_vector_finish.
622 * internal.h (backtrace_vector_finish): Update declaration.
623
b8ddd61b
ILT
6242013-11-27 Ian Lance Taylor <iant@google.com>
625
626 * dwarf.c (find_address_ranges): New static function, broken out
627 of build_address_map.
628 (build_address_map): Call it.
629 * btest.c (check): Check for missing filename or function, rather
630 than crashing.
631 (f3): Check that enough frames were returned.
632
64856e1e
JJ
6332013-11-19 Jakub Jelinek <jakub@redhat.com>
634
1f96a712
JJ
635 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
636 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
637 last argument.
638 * btest.c (struct symdata): Add size field.
639 (callback_three): Add symsize argument. Copy it to the data->size
640 field.
641 (f23): Set symdata.size to 0.
642 (test5): Likewise. If sizeof (int) > 1, lookup address of
643 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
644 values.
645
64856e1e
JJ
646 * atomic.c: Include sys/types.h.
647
49579c7e
ILT
6482013-11-18 Ian Lance Taylor <iant@google.com>
649
650 * configure.ac: Check for support of __atomic extensions.
651 * internal.h: Declare or #define atomic functions for use in
652 backtrace code.
653 * atomic.c: New file.
654 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
655 (dwarf_fileline, backtrace_dwarf_add): Likewise.
656 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
657 (backtrace_initialize): Likewise.
658 * fileline.c (fileline_initialize): Likewise.
659 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
660 * configure, config.h.in, Makefile.in: Rebuild.
661
582f5a2d
JJ
6622013-11-18 Jakub Jelinek <jakub@redhat.com>
663
f1857815
JJ
664 * elf.c (SHN_UNDEF): Define.
665 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
666 with st_shndx == SHN_UNDEF. Add base_address to address fields.
667 (elf_add): Adjust caller.
668
582f5a2d
JJ
669 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
670
25e6253e
ILT
6712013-11-16 Ian Lance Taylor <iant@google.com>
672
673 * backtrace.h (backtrace_create_state): Correct comment about
674 threading.
675
cfa658e4
ILT
6762013-11-15 Ian Lance Taylor <iant@google.com>
677
678 * backtrace.h (backtrace_syminfo): Update comment and parameter
679 name to take any address, not just a PC value.
680 * elf.c (STT_OBJECT): Define.
681 (elf_nosyms): Rename parameter pc to addr.
682 (elf_symbol_search): Rename local variable pc to addr.
683 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
684 (elf_syminfo): Rename parameter pc to addr.
685 * btest.c (global): New global variable.
686 (test5): New test.
687 (main): Call test5.
688
6c084a5b
ILT
6892013-10-17 Ian Lance Taylor <iant@google.com>
690
691 * elf.c (elf_add): Don't get the wrong offsets if a debug section
692 is missing.
693
459260ec
DM
6942013-10-15 David Malcolm <dmalcolm@redhat.com>
695
696 * configure.ac: Add --enable-host-shared, setting up
697 pre-existing PIC_FLAG variable within Makefile.am et al.
698 * configure: Regenerate.
699
3cbe17f7
AM
7002013-09-20 Alan Modra <amodra@gmail.com>
701
702 * configure: Regenerate.
703
78625ce6
AM
7042013-07-23 Alexander Monakov <amonakov@ispras.ru>
705
706 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
707
0153887c
AM
7082013-07-23 Alexander Monakov <amonakov@ispras.ru>
709
710 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
711 dl_iterate_phdr callbacks.
712
85d8c21e
ILT
7132013-03-25 Ian Lance Taylor <iant@google.com>
714
715 * alloc.c: #include <sys/types.h>.
716 * mmap.c: Likewise.
717
38811401
ILT
7182013-01-31 Ian Lance Taylor <iant@google.com>
719
720 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
721 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
722
1e678aed
JJ
7232013-01-25 Jakub Jelinek <jakub@redhat.com>
724
725 PR other/56076
726 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
727 attribute was not seen.
728
6b514c53
ILT
7292013-01-16 Ian Lance Taylor <iant@google.com>
730
731 * dwarf.c (struct unit): Add filename and abs_filename fields.
732 (build_address_map): Set new fields when reading unit.
733 (dwarf_lookup_pc): If we don't find an entry in the line table,
734 just return the main file name.
735
f8a7e1a4
RS
7362013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
737
738 Update copyright years.
739
c3de1960
ILT
7402013-01-01 Ian Lance Taylor <iant@google.com>
741
742 PR bootstrap/54834
743 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
744 $(MULTIBUILDTOP)/../../gcc/include.
745 * Makefile.in: Rebuild.
746
2a5195d9
ILT
7472013-01-01 Ian Lance Taylor <iant@google.com>
748
749 PR other/55536
750 * mmap.c (backtrace_alloc): Don't call sync functions if not
751 threaded.
752 (backtrace_free): Likewise.
753
85619b6f
JDA
7542012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
755
756 * mmapio.c: Define MAP_FAILED if not defined.
757
36a58fb3
JJ
7582012-12-11 Jakub Jelinek <jakub@redhat.com>
759
760 PR bootstrap/54926
761 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
762 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
763 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
764 accepts it.
765 * Makefile.in: Regenerated.
766 * configure: Regenerated.
767
a58dfde0
JJ
7682012-12-07 Jakub Jelinek <jakub@redhat.com>
769
770 PR bootstrap/54926
771 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
772 * Makefile.in: Regenerated.
773
b20ade36
ILT
7742012-11-20 Ian Lance Taylor <iant@google.com>
775
776 * dwarf.c (read_attribute): Always clear val.
777
73c3ed27
ILT
7782012-11-13 Ian Lance Taylor <iant@google.com>
779
780 PR other/55312
781 * configure.ac: Only add -Werror if building a target library.
2a5195d9 782 * configure: Rebuild.
73c3ed27 783
33521509
ILT
7842012-11-12 Ian Lance Taylor <iant@google.com>
785 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
786 Gerald Pfeifer <gerald@pfeifer.com>
787
788 * configure.ac: Check for getexecname.
789 * fileline.c: #include <errno.h>. Define getexecname if not
790 available.
791 (fileline_initialize): Try to find the executable in a few
792 different ways.
793 * print.c (error_callback): Only print the filename if it came
794 from the backtrace state.
795 * configure, config.h.in: Rebuild.
796
8fe91dea
ILT
7972012-10-29 Ian Lance Taylor <iant@google.com>
798
799 * mmap.c (backtrace_vector_release): Correct last patch: add
800 aligned, not size.
801
8277de34
ILT
8022012-10-29 Ian Lance Taylor <iant@google.com>
803
804 * mmap.c (backtrace_vector_release): Make sure freed block is
805 aligned on 8-byte boundary.
806
73f41491
ILT
8072012-10-26 Ian Lance Taylor <iant@google.com>
808
809 PR other/55087
810 * posix.c (backtrace_open): Add does_not_exist parameter.
811 * elf.c (phdr_callback): Do not warn if shared library could not
812 be opened.
813 * fileline.c (fileline_initialize): Update calls to
814 backtrace_open.
815 * internal.h (backtrace_open): Update declaration.
816
385710cf
JH
8172012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
818
819 PR target/55061
820 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
821 * configure: Regenerate.
822
32061319
ILT
8232012-10-24 Ian Lance Taylor <iant@google.com>
824
825 PR target/55061
826 * configure.ac: Check whether -funwind-tables option works.
827 * configure: Rebuild.
828
5551b12c
ILT
8292012-10-11 Ian Lance Taylor <iant@google.com>
830
831 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
832 * configure: Rebuild.
833
40d15b5b
ILT
8342012-10-10 Ian Lance Taylor <iant@google.com>
835
836 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
837 lower case.
838
74f80620
HPN
8392012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
840
841 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
842
ce8aa074
ILT
8432012-10-09 Ian Lance Taylor <iant@google.com>
844
845 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
846 (backtrace_dwarf_add): Likewise.
847
e561a992
ILT
8482012-10-09 Ian Lance Taylor <iant@google.com>
849
850 Add support for tracing through shared libraries.
851 * configure.ac: Check for link.h and dl_iterate_phdr.
852 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
853 ELF macros before #defining them.
854 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
855 dl_iterate_phdr.
856 (struct elf_syminfo_data): Add next field.
857 (elf_initialize_syminfo): Initialize next field.
858 (elf_add_syminfo_data): New static function.
859 (elf_add): New static function, broken out of
860 backtrace_initialize. Call backtrace_dwarf_add instead of
861 backtrace_dwarf_initialize.
862 (struct phdr_data): Define.
863 (phdr_callback): New static function.
864 (backtrace_initialize): Call elf_add.
865 * dwarf.c (struct dwarf_data): Add next and base_address fields.
866 (add_unit_addr): Add base_address parameter. Change all callers.
867 (add_unit_ranges, build_address_map): Likewise.
868 (add_line): Add ddata parameter. Change all callers.
869 (read_line_program, add_function_range): Likewise.
870 (dwarf_lookup_pc): New static function, broken out of
871 dwarf_fileline.
872 (dwarf_fileline): Call dwarf_lookup_pc.
873 (build_dwarf_data): New static function.
874 (backtrace_dwarf_add): New function.
875 (backtrace_dwarf_initialize): Remove.
876 * internal.h (backtrace_dwarf_initialize): Don't declare.
877 (backtrace_dwarf_add): Declare.
878 * configure, config.h.in: Rebuild.
879
068ef6d1
GP
8802012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
881
882 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 883
244e2d9c
ILT
8842012-10-04 Ian Lance Taylor <iant@google.com>
885
886 * dwarf.c: If the system header files do not declare strnlen,
887 provide our own version.
888
be4ba8ae
ILT
8892012-10-03 Ian Lance Taylor <iant@google.com>
890
891 * dwarf.c (read_uleb128): Fix overflow test.
892 (read_sleb128): Likewise.
893 (build_address_map): Don't change unit_buf.start.
894
56195009
UB
8952012-10-02 Uros Bizjak <ubizjak@gmail.com>
896
faf86a02
UB
897 PR other/54761
898 * configure.ac (EXTRA_FLAGS): New.
56195009 899 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 900 * configure, Makefile.in: Regenerate.
56195009 901
8a447b3d
ILT
9022012-09-29 Ian Lance Taylor <iant@google.com>
903
904 PR other/54749
905 * fileline.c (fileline_initialize): Pass errnum as -1 when
906 reporting that we could not read executable information after a
907 previous failure.
908
af710874
ILT
9092012-09-27 Ian Lance Taylor <iant@google.com>
910
911 PR bootstrap/54732
912 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
913 * Makefile.am: Add dependencies for all objects.
914 * configure, aclocal.m4, Makefile.in: Rebuild.
915
588f4f8f
ILT
9162012-09-27 Ian Lance Taylor <iant@google.com>
917
918 PR other/54726
919 * elf.c (backtrace_initialize): Set *fileln_fn, not
920 state->fileln_fn.
921
64b89453
ILT
9222012-09-19 Ian Lance Taylor <iant@google.com>
923
924 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
925 as a target library.
926 * configure: Rebuild.
927
76850556
RO
9282012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
929 Ian Lance Taylor <iant@google.com>
930
92a285c1
ML
931 * configure.ac (GCC_HEADER_STDINT): Invoke.
932 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
933 * btest.c: Don't include <stdint.h>.
934 * dwarf.c: Likewise.
935 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
76850556 936
9425c00b
ILT
9372012-09-18 Ian Lance Taylor <iant@google.com>
938
939 PR bootstrap/54623
940 * Makefile.am (AM_CPPFLAGS): Define.
941 (AM_CFLAGS): Remove -I options.
942 * Makefile.in: Rebuild.
943
3319ef17
ILT
9442012-09-18 Ian Lance Taylor <iant@google.com>
945
946 * posix.c (O_BINARY): Define if not defined.
947 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
948 HAVE_FCNTL is defined.
949 * configure.ac: Test for the fcntl function.
950 * configure, config.h.in: Rebuild.
951
bd3e497d
ILT
9522012-09-18 Ian Lance Taylor <iant@google.com>
953
954 * btest.c (test1, test2, test3, test4): Add the unused attribute.
955
30e15876
ILT
9562012-09-18 Ian Lance Taylor <iant@google.com>
957
958 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
959
d4c059d5
ILT
9602012-09-18 Ian Lance Taylor <iant@google.com>
961
962 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
963 * mmapio.c: Don't define _GNU_SOURCE.
964 * configure, config.h.in: Rebuild.
965
772a71a9
ILT
9662012-09-18 Ian Lance Taylor <iant@google.com>
967
968 * configure.ac: Check whether strnlen is declared.
969 * dwarf.c: Declare strnlen if not declared.
970 * configure, config.h.in: Rebuild.
971
c0558468
RO
9722012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
973
974 * fileline.c: Include <stdlib.h>.
975 * mmap.c: Likewise.
976
c5812e0b
ILT
9772012-09-17 Ian Lance Taylor <iant@google.com>
978
979 PR bootstrap/54611
980 * nounwind.c (backtrace_full): Rename from backtrace. Add state
981 parameter.
982
e8f4008a
GP
9832012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
984
985 PR bootstrap/54611
986 * nounwind.c (backtrace_simple): Add state parameter.
987
f588eb27
ILT
9882012-09-17 Ian Lance Taylor <iant@google.com>
989
990 PR bootstrap/54609
991 * unknown.c (unknown_fileline): Add state parameter, remove
992 fileline_data parameter, name error_callback parameter.
993 (backtrace_initialize): Add state parameter.
994
eff02e4f
ILT
9952012-09-17 Ian Lance Taylor <iant@google.com>
996
997 * Initial implementation.
818ab71a 998\f
85ec4feb 999Copyright (C) 2012-2018 Free Software Foundation, Inc.
818ab71a
JJ
1000
1001Copying and distribution of this file, with or without modification,
1002are permitted in any medium without royalty provided the copyright
1003notice and this notice are preserved.