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