]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
22e05272
JM
12018-10-31 Joseph Myers <joseph@codesourcery.com>
2
3 PR bootstrap/82856
4 * Makefile.am: Include multilib.am.
5 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
6 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7
a2a86641
ILT
82018-10-05 Ian Lance Taylor <iant@golang.org>
9
10 PR libbacktrace/87529
11 * backtrace.h: Document that backtrace_create_state should be
12 called only once.
13
2206fb89
IB
142018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
15
16 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
17 * Makefile.in: Regenerate.
18 * config.h.in: Likewise.
19 * configure: Likewise.
20
ca9a1314
TR
212018-08-01 Tony Reix <tony.reix@atos.net>
22
23 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
24 (struct xcoff_func, struct xcoff_func_vector): New structs.
25 (xcoff_syminfo): Drop leading dot from symbol name.
26 (xcoff_line_compare, xcoff_line_search): Remove.
27 (xcoff_func_compare, xcoff_func_search): New static functions.
28 (xcoff_lookup_pc): Search function table.
29 (xcoff_add_line, xcoff_process_linenos): Remove.
30 (xcoff_initialize_fileline): Build function table.
31
1ac6620a
DK
322018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
33
34 PR other/86198
35 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
36 checking up to 36 bytes.
37
7b47ecf2
L
382018-04-24 H.J. Lu <hongjiu.lu@intel.com>
39
40 * configure: Regenerated.
41
a0e1df88
JJ
422018-04-19 Jakub Jelinek <jakub@redhat.com>
43
44 * configure: Regenerated.
45
21070494
ILT
462018-04-17 Ian Lance Taylor <iant@golang.org>
47
48 * backtrace.c: Revert last two changes. Don't call mmap
49 directly.
50
c36af1b4
ILT
512018-04-17 Ian Lance Taylor <iant@golang.org>
52
53 * backtrace.c: Include backtrace-supported.h before checking
54 BACKTRACE_USES_MALLOC.
55
83a658ca
ILT
562018-04-17 Ian Lance Taylor <iant@golang.org>
57
58 * backtrace.c (backtrace_full): When testing whether we can
59 allocate memory, call mmap directly, and munmap the memory.
60
c5c4b2ae
JJ
612018-04-04 Jakub Jelinek <jakub@redhat.com>
62
63 PR other/85161
64 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
65 big endian, only use 32-bit loads if endianity macros are predefined
66 and indicate big or little endian.
67
14e335ed
IT
682018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
69
70 PR target/84148
71 * configure: Regenerate.
72
bcc23586
JJ
732018-02-15 Jakub Jelinek <jakub@redhat.com>
74
75 PR other/82368
76 * elf.c (SHT_PROGBITS): Undefine and define.
77
da07141f
JJ
782018-02-14 Jakub Jelinek <jakub@redhat.com>
79
80 PR other/82368
81 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
82 (struct elf_ppc64_opd_data): New type.
83 (elf_initialize_syminfo): Add opd argument, handle symbols
84 pointing into the PowerPC64 ELFv1 .opd section.
85 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
86 to structure with .opd data to elf_initialize_syminfo.
87
65d0b859
ILT
882018-01-31 Ian Lance Taylor <iant@golang.org>
89
90 * elf.c (elf_add): Close descriptor if we use a debugfile.
91 * btest.c (check_open_files): New static function.
92 (main): Call check_open_files.
93
96f7c2a9
ILT
942018-01-25 Ian Lance Taylor <iant@golang.org>
95
96 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
97 desired CRC is zero.
98 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
99
a794e494
ILT
1002018-01-25 Ian Lance Taylor <iant@golang.org>
101
102 * pecoff.c (coff_add): Only release syms_view if it is valid.
103
45f3ab19
ILT
1042018-01-25 Ian Lance Taylor <iant@golang.org>
105
106 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
107
017707ce
ILT
1082018-01-24 Ian Lance Taylor <iant@golang.org>
109
110 * pecoff.c (coff_add): Use coff_read4, not memcpy.
111
3fe3c7d7
ILT
1122018-01-24 Ian Lance Taylor <iant@golang.org>
113
114 PR other/68239
115 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
116 on the free list.
117
47c699f5
TR
1182018-01-19 Tony Reix <tony.reix@atos.net>
119
120 * xcoff.c (xcoff_incl_compare): New function.
121 (xcoff_incl_search): New function.
122 (xcoff_process_linenos): Use bsearch to find include file.
123 (xcoff_initialize_fileline): Sort include file information.
124
566588f1
ILT
1252018-01-16 Ian Lance Taylor <iant@golang.org>
126
127 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
128 288.
129 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
130 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
131 (elf_zlib_default_table): Update.
132 (elf_zlib_default_dist_table): New static array.
133 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
134 for block type 1.
135 * ztest.c (struct zlib_test): Add uncompressed_len.
136 (tests): Initialize uncompressed_len field. Add new test case.
137 (test_samples): Use uncompressed_len field.
138
85ec4feb
JJ
1392018-01-03 Jakub Jelinek <jakub@redhat.com>
140
141 Update copyright years.
142
44685d37
IT
1432017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
144
145 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
146 * aclocal.m4: Regenerate.
147 * Makefile.in: Likewise.
148 * configure: Likewise.
149
549d24e9
ILT
1502017-10-06 Ian Lance Taylor <iant@golang.org>
151
152 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
153 zlib uncompress function.
154
a978e26b
ILT
1552017-10-05 Ian Lance Taylor <iant@golang.org>
156
157 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
158 Read a four byte integer.
159 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
160 boundary before ever calling elf_zlib_fetch.
161 * ztest.c (test_large): Simplify print statements a bit.
162
8398c1df
ILT
1632017-10-02 Ian Lance Taylor <iant@golang.org>
164
165 * ztest.c: #include <errno.h>.
166 (TEST_TIMING): Don't define, don't test.
167 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
168 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
169 (ZLIB_CLOCK_GETTIME_ARG): Define.
170 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
171 * Makefile.am: Likewise.
172 * configure, Makefile.in: Rebuild.
173
dbc31f20
TS
1742017-10-02 Thomas Schwinge <thomas@codesourcery.com>
175
dd954c67
TS
176 PR other/67165
177 * Makefile.am: Append the content of clock_gettime_link to
178 ztest_LDADD.
179 * configure.ac: Test for the case that clock_gettime is in librt.
180 * Makefile.in: Regenerate.
181 * configure: Likewise.
182
dbc31f20
TS
183 PR other/67165
184 * configure.ac: Check for clock_gettime.
185 * config.h.in: Regenerate.
186 * configure: Likewise.
187 * ztest.c (average_time, test_large): Conditionalize test timing
188 on clock_gettime availability.
189
e90c74f5
TR
1902017-09-29 Tony Reix <tony.reix@atos.net>
191
192 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
193 (STYP_DWARF, SSUBTYP_DW*): Define.
194 (enum dwarf_section): Define.
195 (struct dwsect_info): Define.
196 (xcoff_add): Look for DWARF sections, pass them to
197 backtrace_dwarf_add.
198
8da872d9
ILT
1992017-09-28 Ian Lance Taylor <iant@golang.org>
200
201 PR other/67165
202 * elf.c (__builtin_prefetch): Define if not __GNUC__.
203 (unlikely): Define.
204 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
205 (b_elf_chdr): Define type.
206 (enum debug_section): Add ZDEBUG_xxx values.
207 (debug_section_names): Add names for new sections.
208 (struct debug_section_info): Add compressed field.
209 (elf_zlib_failed, elf_zlib_fetch): New static functions.
210 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
211 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
212 (HUFFMAN_SECONDARY_SHIFT): Define.
213 (ZDEBUG_TABLE_SIZE): Define.
214 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
215 (final_next_secondary): New static variable if
216 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
217 (elf_zlib_inflate_table): New static function.
218 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
219 function to produce fixed Huffman table.
220 (elf_zlib_default_table): New static variable.
221 (elf_zlib_inflate): New static function.
222 (elf_zlib_verify_checksum): Likewise.
223 (elf_zlib_inflate_and_verify): Likewise.
224 (elf_uncompress_zdebug): Likewise.
225 (elf_uncompress_chdr): Likewise.
226 (backtrace_uncompress_zdebug): New extern function.
227 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
228 sections, and uncompress them.
229 * internal.h (backtrace_compress_zdebug): Declare.
230 * ztest.c: New file.
231 * configure.ac: Check for -lz and check whether the linker
232 supports --compress-debug-sections.
233 * Makefile.am (ztest_SOURCES): New variable.
234 (ztest_CFLAGS, ztest_LDADD): New variables.
235 (check_PROGRAMS): Add ztest.
236 (ctestg_SOURCES): New variable.
237 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
238 (ctesta_SOURCES): New variable.
239 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
240 (check_PROGRAMS): Add ctestg and ctesta.
241 * configure, config.h.in, Makefile.in: Rebuild.
242
8c2ea6b2
ILT
2432017-09-22 Ian Lance Taylor <iant@golang.org>
244
245 PR sanitizer/77631
246 * configure.ac: Check for lstat and readlink.
247 * elf.c (lstat, readlink): Provide dummy versions if real versions
248 are not available.
249 * configure, config.h.in: Rebuild.
250
f0de4542
ILT
2512017-09-21 Ian Lance Taylor <iant@google.com>
252
253 PR go/82284
254 * elf.c (backtrace_initialize): Set pd.exe_filename.
255
9283471b
ILT
2562017-09-20 Ian Lance Taylor <iant@golang.org>
257 Denis Khalikov <d.khalikov@partner.samsung.com>
258
259 PR sanitizer/77631
260 Support for external debug info.
261 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
262 (S_ISLNK): Define if not defined.
263 (xstrnlen): Define if strnlen is not available.
264 (b_elf_note): Define type.
265 (NT_GNU_BUILD_ID): Define macro.
266 (elf_crc32, elf_crc32_file): New static functions.
267 (elf_is_symlink, elf_readlink): New static functions.
268 (elf_open_debugfile_by_buildid): New static function.
269 (elf_try_debugfile): New static function.
270 (elf_find_debugfile_by_debuglink): New static function.
271 (elf_open_debugfile_by_debuglink): New static function.
272 (elf_add): Add filename and debuginfo parameters. Adjust all
273 callers. Look for external debug info notes, and try to fetch
274 debug info from external file.
275 (struct phdr_data): Add exe_filename field.
276 (phdr_callback): Pass filename to elf_add.
277 (backtrace_initialize): Add filename parameter.
278 * internal.h (backtrace_initialize): Add filename parameter.
279 * fileline.c (fileline_initialize): Pass filename to
280 backtrace_initialize.
281 * pecoff.c (fileline_initialize): Add unused filename parameter.
282 * unknown.c (fileline_initialize): Likewise.
283 * xcoff.c (fileline_initialize): Likewise.
284 * configure.ac: Check for objcopy --add-gnu-debuglink.
285 * Makefile.am (dtest): New test target.
286 * configure, Makefile.in: Rebuild.
287
29788f90
SE
2882017-09-12 Steve Ellcey <sellcey@cavium.com>
289
290 PR other/81096
291 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
292 * Makefile.in: Regenerate.
293
917a804c
SE
2942017-09-12 Steve Ellcey <sellcey@cavium.com>
295
296 PR other/81096
297 * libbacktrace/Makefile.in
298 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
299
2e6af1b8
DE
3002017-08-02 David Edelsohn <dje.gcc@gmail.com>
301
8a0e6224 302 PR bootstrap/81638
2e6af1b8
DE
303 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
304
afce7deb
TR
3052017-07-28 Tony Reix <tony.reix@atos.net>
306
307 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
308
cf311b03
RO
3092017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310
311 * fileline.c (fileline_initialize): Print pid_t as long.
312
7e2a8417
TR
3132017-07-26 Tony Reix <tony.reix@atos.net>
314
315 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
316 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
317 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
318 * configure, config.h.in: Regenerate.
319
b3530b94
TR
3202017-07-21 Tony Reix <tony.reix@atos.net>
321
322 * filetype.awk: Add AIX XCOFF type detection.
323 * configure.ac: Recognize xcoff format.
324 * Makefile.am (FORMAT_FILES): Add xcoff.c.
325 * fileline.c: Include <unistd.h>.
326 (fileline_initialize): Add case for AIX procfs.
327 * xcoff.c: New file.
328 * configure, Makefile.in: Rebuild.
329
e91a2ddc
RB
3302017-06-21 Richard Biener <rguenther@suse.de>
331
332 * configure.ac: Add AC_SYS_LARGEFILE.
333 * config.h.in: Regenerate.
334 * configure: Likewise.
335
d1609a23
ILT
3362017-06-11 Ian Lance Taylor <iant@golang.org>
337
338 * elf.c (backtrace_initialize): Always set *fileline_fn.
339 * ttest.c: New file.
340 * btest.c: Move support functions into testlib.c. Change calls to
341 check to pass file name.
342 * testlib.c: New file, copied from (part of) btest.c.
343 * testlib.h: New file, declarations for testlib.c.
344 * edtest.c: Use testlib.h and testlib.c.
345 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
346 * Makefile.am (btest_SOURCES): Add testlib.c.
347 (edtest_SOURCES): Likewise.
348 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
349 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
350 * configure, Makefile.in: Rebuild.
351
281161d1
TM
3522017-05-19 Than McIntosh <thanm@google.com>
353
354 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
355 (read_line_header): Don't allocate dirs if dirs_count == 0.
356 * edtest.c: New file.
357 * edtest2.c: New file.
358 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
359 (check_PROGRAMS): Add edtest.
360 (edtest2_build.c, gen_edtest2_build): New targets.
361 * Makefile.in: Rebuild.
362
121eb024
ST
3632017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
364
365 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
366 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
367
cbe34bb5
JJ
3682017-01-01 Jakub Jelinek <jakub@redhat.com>
369
370 Update copyright years.
371
84c1b9d3
MK
3722016-11-15 Matthias Klose <doko@ubuntu.com>
373
374 * configure: Regenerate.
375
84ebf639
CL
3762016-09-11 Carlos Liam <carlos@aarzee.me>
377
378 * all: Remove meaningless trailing whitespace.
379
28644f75
UB
3802016-05-18 Uros Bizjak <ubizjak@gmail.com>
381
382 PR target/71161
383 * elf.c (phdr_callback) [__i386__]: Add
384 __attribute__((__force_align_arg_pointer__)).
385
26ac52db
MO
3862016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
387
388 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
389 avoid possible crash.
390 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
391 missing debug info anymore.
392
09b08e17
JDA
3932016-02-06 John David Anglin <danglin@gcc.gnu.org>
394
395 * mmap.c (MAP_FAILED): Define if not defined.
396
818ab71a
JJ
3972016-01-04 Jakub Jelinek <jakub@redhat.com>
398
399 Update copyright years.
400
5b4bbc7d
AP
4012015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
402
28644f75
UB
403 * configure.ac: Specify that DJGPP do not have mmap
404 even when sys/mman.h exists.
5b4bbc7d
AP
405 * configure: Regenerate
406
2f401a8f
JDA
4072015-12-09 John David Anglin <danglin@gcc.gnu.org>
408
28644f75 409 PR libgfortran/68115
2f401a8f
JDA
410 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
411 * configure: Regenerate.
412 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
413 to void.
414
750cdaf7
ILT
4152015-09-17 Ian Lance Taylor <iant@google.com>
416
417 * posix.c (backtrace_open): Cast second argument of open() to int.
418
fc002444
ILT
4192015-09-11 Ian Lance Taylor <iant@google.com>
420
421 * Makefile.am (backtrace.lo): Depend on internal.h.
422 (sort.lo, stest.lo): Add explicit dependencies.
423 * Makefile.in: Rebuild.
424
50809ff9
HPN
4252015-09-09 Hans-Peter Nilsson <hp@axis.com>
426
427 * backtrace.c: #include <sys/types.h>.
428
c478516b
ILT
4292015-09-08 Ian Lance Taylor <iant@google.com>
430
431 PR other/67457
432 * backtrace.c: #include "internal.h".
433 (struct backtrace_data): Add can_alloc field.
434 (unwind): If can_alloc is false, don't try to get file/line
435 information.
436 (backtrace_full): Set can_alloc field in bdata.
437 * alloc.c (backtrace_alloc): Don't call error_callback if it is
438 NULL.
439 * mmap.c (backtrace_alloc): Likewise.
440 * internal.h: Update comments for backtrace_alloc and
441 backtrace_free.
442
981d281f
ILT
4432015-09-08 Ian Lance Taylor <iant@google.com>
444
445 PR other/67457
446 * mmap.c (backtrace_alloc): Correct test for mmap failure.
447
8f5027bf
UW
4482015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
449
450 * configure.ac: For spu-*-* targets, set have_fcntl to no.
451 * configure: Regenerate.
452
7e5c7547
UW
4532015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
454
455 * configure.ac: Remove [disable-shared] argument to LT_INIT.
456 Remove setting PIC_FLAG when building as target library.
457 * configure: Regenerate.
458
7ce9cf39
HPN
4592015-08-26 Hans-Peter Nilsson <hp@axis.com>
460
461 * configure.ac: Only compile with -fPIC if the target
462 supports it.
463 * configure: Regenerate.
464
1b533361
UW
4652015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
466
467 * configure.ac: Set have_mmap to no on spu-*-* targets.
468 * configure: Regenerate.
469
d96fa208
ILT
4702015-08-13 Ian Lance Taylor <iant@google.com>
471
472 * dwarf.c (read_function_entry): Add vec_inlined parameter.
473 Change all callers.
474
d99a7b4d
MS
4752015-06-11 Martin Sebor <msebor@redhat.com>
476
477 PR sanitizer/65479
478 * dwarf.c (struct line): Add new field idx.
479 (line_compare): Use it.
480 (add_line): Set it.
481 (read_line_info): Reset it.
482
e24afc10
TG
4832015-05-29 Tristan Gingold <gingold@adacore.com>
484
485 * pecoff.c: New file.
486 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
487 * Makefile.in: Regenerate.
488 * filetype.awk: Detect pecoff.
489 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
490 Add pecoff.
491 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
492 true.
493 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
494 * configure: Regenerate.
495 * pecoff.c: New file.
496
df96c0f7
MH
4972015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
498
499 * Makefile.in: Regenerated with automake-1.11.6.
500 * aclocal.m4: Likewise.
501 * configure: Likewise.
502
2b8fa469
MK
5032015-01-24 Matthias Klose <doko@ubuntu.com>
504
505 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
506 * configure: Regenerate.
507
5624e564
JJ
5082015-01-05 Jakub Jelinek <jakub@redhat.com>
509
510 Update copyright years.
511
a699d672
L
5122014-11-21 H.J. Lu <hongjiu.lu@intel.com>
513
514 PR bootstrap/63784
515 * configure: Regenerated.
516
35485da9
DM
5172014-11-11 David Malcolm <dmalcolm@redhat.com>
518
519 * ChangeLog.jit: New.
520
ebf6d33b
FXC
5212014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
522
523 PR target/63610
524 * configure: Regenerate.
525
c96601d2
ILT
5262014-10-23 Ian Lance Taylor <iant@google.com>
527
528 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
529 Fix to return void *.
530
d573fd89
ILT
5312014-05-08 Ian Lance Taylor <iant@google.com>
532
533 * mmap.c (backtrace_free): If freeing a large aligned block of
534 memory, call munmap rather than holding onto it.
535 (backtrace_vector_grow): When growing a vector, double the number
536 of pages requested. When releasing the old version of a grown
537 vector, pass the correct size to backtrace_free.
538
dbe20842
ILT
5392014-03-07 Ian Lance Taylor <iant@google.com>
540
541 * sort.c (backtrace_qsort): Use middle element as pivot.
542
c5604b48
ILT
5432014-03-06 Ian Lance Taylor <iant@google.com>
544
545 * sort.c: New file.
546 * stest.c: New file.
547 * internal.h (backtrace_qsort): Declare.
548 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
549 (read_line_info, read_function_entry): Likewise.
550 (read_function_info, build_dwarf_data): Likewise.
551 * elf.c (elf_initialize_syminfo): Likewise.
552 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
553 (stest_SOURCES, stest_LDADD): Define.
554 (check_PROGRAMS): Add stest.
555
63fefb4b
MDM
5562014-02-07 Misty De Meo <misty@brew.sh>
557
558 PR target/58710
559 * configure.ac: Use AC_LINK_IFELSE in check for
560 _Unwind_GetIPInfo.
561 * configure: Regenerate.
562
afeba5cb
RS
5632014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
564
565 Update copyright years
566
0284b52e
JJ
5672013-12-06 Jakub Jelinek <jakub@redhat.com>
568
569 * elf.c (ET_DYN): Undefine and define again.
570 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
571 return early -1 without closing the descriptor.
572 (struct phdr_data): Add exe_descriptor.
573 (phdr_callback): If pd->exe_descriptor is not -1, for very first
574 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
575 otherwise backtrace_close the exe_descriptor if not -1. Adjust
576 call to elf_add.
577 (backtrace_initialize): Adjust call to elf_add. If it returns
578 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
579
bfd74f22
ILT
5802013-12-05 Ian Lance Taylor <iant@google.com>
581
582 * alloc.c (backtrace_vector_finish): Add error_callback and data
583 parameters. Call backtrace_vector_release. Return address base.
584 * mmap.c (backtrace_vector_finish): Add error_callback and data
585 parameters. Return address base.
586 * dwarf.c (read_function_info): Get new address base from
587 backtrace_vector_finish.
588 * internal.h (backtrace_vector_finish): Update declaration.
589
b8ddd61b
ILT
5902013-11-27 Ian Lance Taylor <iant@google.com>
591
592 * dwarf.c (find_address_ranges): New static function, broken out
593 of build_address_map.
594 (build_address_map): Call it.
595 * btest.c (check): Check for missing filename or function, rather
596 than crashing.
597 (f3): Check that enough frames were returned.
598
64856e1e
JJ
5992013-11-19 Jakub Jelinek <jakub@redhat.com>
600
1f96a712
JJ
601 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
602 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
603 last argument.
604 * btest.c (struct symdata): Add size field.
605 (callback_three): Add symsize argument. Copy it to the data->size
606 field.
607 (f23): Set symdata.size to 0.
608 (test5): Likewise. If sizeof (int) > 1, lookup address of
609 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
610 values.
611
64856e1e
JJ
612 * atomic.c: Include sys/types.h.
613
49579c7e
ILT
6142013-11-18 Ian Lance Taylor <iant@google.com>
615
616 * configure.ac: Check for support of __atomic extensions.
617 * internal.h: Declare or #define atomic functions for use in
618 backtrace code.
619 * atomic.c: New file.
620 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
621 (dwarf_fileline, backtrace_dwarf_add): Likewise.
622 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
623 (backtrace_initialize): Likewise.
624 * fileline.c (fileline_initialize): Likewise.
625 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
626 * configure, config.h.in, Makefile.in: Rebuild.
627
582f5a2d
JJ
6282013-11-18 Jakub Jelinek <jakub@redhat.com>
629
f1857815
JJ
630 * elf.c (SHN_UNDEF): Define.
631 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
632 with st_shndx == SHN_UNDEF. Add base_address to address fields.
633 (elf_add): Adjust caller.
634
582f5a2d
JJ
635 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
636
25e6253e
ILT
6372013-11-16 Ian Lance Taylor <iant@google.com>
638
639 * backtrace.h (backtrace_create_state): Correct comment about
640 threading.
641
cfa658e4
ILT
6422013-11-15 Ian Lance Taylor <iant@google.com>
643
644 * backtrace.h (backtrace_syminfo): Update comment and parameter
645 name to take any address, not just a PC value.
646 * elf.c (STT_OBJECT): Define.
647 (elf_nosyms): Rename parameter pc to addr.
648 (elf_symbol_search): Rename local variable pc to addr.
649 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
650 (elf_syminfo): Rename parameter pc to addr.
651 * btest.c (global): New global variable.
652 (test5): New test.
653 (main): Call test5.
654
6c084a5b
ILT
6552013-10-17 Ian Lance Taylor <iant@google.com>
656
657 * elf.c (elf_add): Don't get the wrong offsets if a debug section
658 is missing.
659
459260ec
DM
6602013-10-15 David Malcolm <dmalcolm@redhat.com>
661
662 * configure.ac: Add --enable-host-shared, setting up
663 pre-existing PIC_FLAG variable within Makefile.am et al.
664 * configure: Regenerate.
665
3cbe17f7
AM
6662013-09-20 Alan Modra <amodra@gmail.com>
667
668 * configure: Regenerate.
669
78625ce6
AM
6702013-07-23 Alexander Monakov <amonakov@ispras.ru>
671
672 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
673
0153887c
AM
6742013-07-23 Alexander Monakov <amonakov@ispras.ru>
675
676 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
677 dl_iterate_phdr callbacks.
678
85d8c21e
ILT
6792013-03-25 Ian Lance Taylor <iant@google.com>
680
681 * alloc.c: #include <sys/types.h>.
682 * mmap.c: Likewise.
683
38811401
ILT
6842013-01-31 Ian Lance Taylor <iant@google.com>
685
686 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
687 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
688
1e678aed
JJ
6892013-01-25 Jakub Jelinek <jakub@redhat.com>
690
691 PR other/56076
692 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
693 attribute was not seen.
694
6b514c53
ILT
6952013-01-16 Ian Lance Taylor <iant@google.com>
696
697 * dwarf.c (struct unit): Add filename and abs_filename fields.
698 (build_address_map): Set new fields when reading unit.
699 (dwarf_lookup_pc): If we don't find an entry in the line table,
700 just return the main file name.
701
f8a7e1a4
RS
7022013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
703
704 Update copyright years.
705
c3de1960
ILT
7062013-01-01 Ian Lance Taylor <iant@google.com>
707
708 PR bootstrap/54834
709 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
710 $(MULTIBUILDTOP)/../../gcc/include.
711 * Makefile.in: Rebuild.
712
2a5195d9
ILT
7132013-01-01 Ian Lance Taylor <iant@google.com>
714
715 PR other/55536
716 * mmap.c (backtrace_alloc): Don't call sync functions if not
717 threaded.
718 (backtrace_free): Likewise.
719
85619b6f
JDA
7202012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721
722 * mmapio.c: Define MAP_FAILED if not defined.
723
36a58fb3
JJ
7242012-12-11 Jakub Jelinek <jakub@redhat.com>
725
726 PR bootstrap/54926
727 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
728 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
729 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
730 accepts it.
731 * Makefile.in: Regenerated.
732 * configure: Regenerated.
733
a58dfde0
JJ
7342012-12-07 Jakub Jelinek <jakub@redhat.com>
735
736 PR bootstrap/54926
737 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
738 * Makefile.in: Regenerated.
739
b20ade36
ILT
7402012-11-20 Ian Lance Taylor <iant@google.com>
741
742 * dwarf.c (read_attribute): Always clear val.
743
73c3ed27
ILT
7442012-11-13 Ian Lance Taylor <iant@google.com>
745
746 PR other/55312
747 * configure.ac: Only add -Werror if building a target library.
2a5195d9 748 * configure: Rebuild.
73c3ed27 749
33521509
ILT
7502012-11-12 Ian Lance Taylor <iant@google.com>
751 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
752 Gerald Pfeifer <gerald@pfeifer.com>
753
754 * configure.ac: Check for getexecname.
755 * fileline.c: #include <errno.h>. Define getexecname if not
756 available.
757 (fileline_initialize): Try to find the executable in a few
758 different ways.
759 * print.c (error_callback): Only print the filename if it came
760 from the backtrace state.
761 * configure, config.h.in: Rebuild.
762
8fe91dea
ILT
7632012-10-29 Ian Lance Taylor <iant@google.com>
764
765 * mmap.c (backtrace_vector_release): Correct last patch: add
766 aligned, not size.
767
8277de34
ILT
7682012-10-29 Ian Lance Taylor <iant@google.com>
769
770 * mmap.c (backtrace_vector_release): Make sure freed block is
771 aligned on 8-byte boundary.
772
73f41491
ILT
7732012-10-26 Ian Lance Taylor <iant@google.com>
774
775 PR other/55087
776 * posix.c (backtrace_open): Add does_not_exist parameter.
777 * elf.c (phdr_callback): Do not warn if shared library could not
778 be opened.
779 * fileline.c (fileline_initialize): Update calls to
780 backtrace_open.
781 * internal.h (backtrace_open): Update declaration.
782
385710cf
JH
7832012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
784
785 PR target/55061
786 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
787 * configure: Regenerate.
788
32061319
ILT
7892012-10-24 Ian Lance Taylor <iant@google.com>
790
791 PR target/55061
792 * configure.ac: Check whether -funwind-tables option works.
793 * configure: Rebuild.
794
5551b12c
ILT
7952012-10-11 Ian Lance Taylor <iant@google.com>
796
797 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
798 * configure: Rebuild.
799
40d15b5b
ILT
8002012-10-10 Ian Lance Taylor <iant@google.com>
801
802 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
803 lower case.
804
74f80620
HPN
8052012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
806
807 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
808
ce8aa074
ILT
8092012-10-09 Ian Lance Taylor <iant@google.com>
810
811 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
812 (backtrace_dwarf_add): Likewise.
813
e561a992
ILT
8142012-10-09 Ian Lance Taylor <iant@google.com>
815
816 Add support for tracing through shared libraries.
817 * configure.ac: Check for link.h and dl_iterate_phdr.
818 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
819 ELF macros before #defining them.
820 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
821 dl_iterate_phdr.
822 (struct elf_syminfo_data): Add next field.
823 (elf_initialize_syminfo): Initialize next field.
824 (elf_add_syminfo_data): New static function.
825 (elf_add): New static function, broken out of
826 backtrace_initialize. Call backtrace_dwarf_add instead of
827 backtrace_dwarf_initialize.
828 (struct phdr_data): Define.
829 (phdr_callback): New static function.
830 (backtrace_initialize): Call elf_add.
831 * dwarf.c (struct dwarf_data): Add next and base_address fields.
832 (add_unit_addr): Add base_address parameter. Change all callers.
833 (add_unit_ranges, build_address_map): Likewise.
834 (add_line): Add ddata parameter. Change all callers.
835 (read_line_program, add_function_range): Likewise.
836 (dwarf_lookup_pc): New static function, broken out of
837 dwarf_fileline.
838 (dwarf_fileline): Call dwarf_lookup_pc.
839 (build_dwarf_data): New static function.
840 (backtrace_dwarf_add): New function.
841 (backtrace_dwarf_initialize): Remove.
842 * internal.h (backtrace_dwarf_initialize): Don't declare.
843 (backtrace_dwarf_add): Declare.
844 * configure, config.h.in: Rebuild.
845
068ef6d1
GP
8462012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
847
848 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 849
244e2d9c
ILT
8502012-10-04 Ian Lance Taylor <iant@google.com>
851
852 * dwarf.c: If the system header files do not declare strnlen,
853 provide our own version.
854
be4ba8ae
ILT
8552012-10-03 Ian Lance Taylor <iant@google.com>
856
857 * dwarf.c (read_uleb128): Fix overflow test.
858 (read_sleb128): Likewise.
859 (build_address_map): Don't change unit_buf.start.
860
56195009
UB
8612012-10-02 Uros Bizjak <ubizjak@gmail.com>
862
faf86a02
UB
863 PR other/54761
864 * configure.ac (EXTRA_FLAGS): New.
56195009 865 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 866 * configure, Makefile.in: Regenerate.
56195009 867
8a447b3d
ILT
8682012-09-29 Ian Lance Taylor <iant@google.com>
869
870 PR other/54749
871 * fileline.c (fileline_initialize): Pass errnum as -1 when
872 reporting that we could not read executable information after a
873 previous failure.
874
af710874
ILT
8752012-09-27 Ian Lance Taylor <iant@google.com>
876
877 PR bootstrap/54732
878 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
879 * Makefile.am: Add dependencies for all objects.
880 * configure, aclocal.m4, Makefile.in: Rebuild.
881
588f4f8f
ILT
8822012-09-27 Ian Lance Taylor <iant@google.com>
883
884 PR other/54726
885 * elf.c (backtrace_initialize): Set *fileln_fn, not
886 state->fileln_fn.
887
64b89453
ILT
8882012-09-19 Ian Lance Taylor <iant@google.com>
889
890 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
891 as a target library.
892 * configure: Rebuild.
893
76850556
RO
8942012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
895 Ian Lance Taylor <iant@google.com>
896
92a285c1
ML
897 * configure.ac (GCC_HEADER_STDINT): Invoke.
898 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
899 * btest.c: Don't include <stdint.h>.
900 * dwarf.c: Likewise.
901 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
76850556 902
9425c00b
ILT
9032012-09-18 Ian Lance Taylor <iant@google.com>
904
905 PR bootstrap/54623
906 * Makefile.am (AM_CPPFLAGS): Define.
907 (AM_CFLAGS): Remove -I options.
908 * Makefile.in: Rebuild.
909
3319ef17
ILT
9102012-09-18 Ian Lance Taylor <iant@google.com>
911
912 * posix.c (O_BINARY): Define if not defined.
913 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
914 HAVE_FCNTL is defined.
915 * configure.ac: Test for the fcntl function.
916 * configure, config.h.in: Rebuild.
917
bd3e497d
ILT
9182012-09-18 Ian Lance Taylor <iant@google.com>
919
920 * btest.c (test1, test2, test3, test4): Add the unused attribute.
921
30e15876
ILT
9222012-09-18 Ian Lance Taylor <iant@google.com>
923
924 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
925
d4c059d5
ILT
9262012-09-18 Ian Lance Taylor <iant@google.com>
927
928 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
929 * mmapio.c: Don't define _GNU_SOURCE.
930 * configure, config.h.in: Rebuild.
931
772a71a9
ILT
9322012-09-18 Ian Lance Taylor <iant@google.com>
933
934 * configure.ac: Check whether strnlen is declared.
935 * dwarf.c: Declare strnlen if not declared.
936 * configure, config.h.in: Rebuild.
937
c0558468
RO
9382012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
939
940 * fileline.c: Include <stdlib.h>.
941 * mmap.c: Likewise.
942
c5812e0b
ILT
9432012-09-17 Ian Lance Taylor <iant@google.com>
944
945 PR bootstrap/54611
946 * nounwind.c (backtrace_full): Rename from backtrace. Add state
947 parameter.
948
e8f4008a
GP
9492012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
950
951 PR bootstrap/54611
952 * nounwind.c (backtrace_simple): Add state parameter.
953
f588eb27
ILT
9542012-09-17 Ian Lance Taylor <iant@google.com>
955
956 PR bootstrap/54609
957 * unknown.c (unknown_fileline): Add state parameter, remove
958 fileline_data parameter, name error_callback parameter.
959 (backtrace_initialize): Add state parameter.
960
eff02e4f
ILT
9612012-09-17 Ian Lance Taylor <iant@google.com>
962
963 * Initial implementation.
818ab71a 964\f
85ec4feb 965Copyright (C) 2012-2018 Free Software Foundation, Inc.
818ab71a
JJ
966
967Copying and distribution of this file, with or without modification,
968are permitted in any medium without royalty provided the copyright
969notice and this notice are preserved.