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