]>
Commit | Line | Data |
---|---|---|
c9d1fc43 | 1 | 2019-05-24 Clement Chigot <clement.chigot@atos.net> |
2 | ||
3 | * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and | |
4 | test_elf_64. | |
5 | * Makefile.in: Regenerate. | |
6 | ||
0fd03648 | 7 | 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
8 | ||
9 | * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* | |
10 | handling. | |
11 | * configure: Regenerate. | |
12 | ||
a7b7d246 | 13 | 2019-03-11 Ian Lance Taylor <iant@golang.org> |
14 | ||
15 | PR libbacktrace/89669 | |
16 | * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if | |
17 | HAVE_ELF. | |
18 | * Makefile.in: Regenerate. | |
19 | ||
a0f72275 | 20 | 2019-02-26 Tom de Vries <tdevries@suse.de> |
21 | ||
22 | * btest.c (test5): Allow global.* as minimal symbol name for global. | |
23 | ||
0579ef66 | 24 | 2019-02-26 Tom de Vries <tdevries@suse.de> |
25 | ||
26 | * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ. | |
27 | * Makefile.in: Regenerate. | |
28 | ||
32e6b120 | 29 | 2019-02-12 Tom de Vries <tdevries@suse.de> |
30 | ||
31 | PR libbacktrace/81983 | |
32 | * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0. | |
33 | ||
1cd00d9e | 34 | 2019-02-10 Tom de Vries <tdevries@suse.de> |
35 | ||
36 | * Makefile.am (BUILDTESTS): Add btest_lto. | |
37 | * Makefile.in: Regenerate. | |
38 | * btest.c (test1, f2, f3, test3, f22, f23): Declare with | |
39 | __attribute__((noclone)). | |
40 | ||
216ad750 | 41 | 2019-02-08 Tom de Vries <tdevries@suse.de> |
42 | ||
43 | * backtrace.c (backtrace_full): Declare with __attribute__((noinline)). | |
44 | * print.c (backtrace_print): Same. | |
45 | * simple.c (backtrace_simple): Same. | |
46 | ||
15e58db8 | 47 | 2019-02-08 Tom de Vries <tdevries@suse.de> |
48 | ||
49 | PR libbacktrace/78063 | |
50 | * dwarf.c (build_address_map): Keep all parsed units. | |
51 | (read_referenced_name_from_attr): Handle DW_FORM_ref_addr. | |
52 | ||
841c4887 | 53 | 2019-01-31 Tom de Vries <tdevries@suse.de> |
54 | ||
55 | PR libbacktrace/89136 | |
56 | * elf.c (elf_add): Read build-id if with_buildid_data. Fix | |
57 | 'debugaltlink_name_len =+ 1'. | |
58 | ||
5c1bcc1b | 59 | 2019-01-29 Tom de Vries <tdevries@suse.de> |
60 | ||
61 | * install-debuginfo-for-buildid.sh.in: New script. | |
62 | * Makefile.am (check_PROGRAMS): Add b2test and b3test. | |
63 | (TESTS): Add b2test_buildid and b3test_dwz_buildid. | |
64 | * Makefile.in: Regenerate. | |
65 | * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL. | |
66 | (READELF): Set with AC_CHECK_PROG. | |
67 | (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES. | |
68 | * configure: Regenerate. | |
69 | * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ... | |
70 | (elf_open_debugfile_by_buildid): ... here. | |
71 | ||
b4cbe225 | 72 | 2019-01-29 Tom de Vries <tdevries@suse.de> |
73 | ||
74 | * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for | |
75 | allocfail. | |
76 | (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS. | |
77 | (check_PROGRAMS): Add BUILDTESTS. | |
78 | * Makefile.in: Regenerate. | |
79 | ||
1c4c882d | 80 | 2019-01-28 Tom de Vries <tdevries@suse.de> |
81 | ||
82 | * Makefile.am (xcoff_%.c): Generate sed result into temporary file. | |
83 | Use $< to access prerequisite. | |
84 | * Makefile.in: Regenerate. | |
85 | ||
2ff929d2 | 86 | 2019-01-25 Nathan Sidwell <nathan@acm.org> |
87 | ||
88 | * elf.c (elf_add): Pass "" filename to recursive call with | |
89 | separated debug. | |
90 | ||
2ed0e16f | 91 | 2019-01-25 Tom de Vries <tdevries@suse.de> |
92 | ||
93 | * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with | |
94 | filename == "". | |
95 | * Makefile.am (TESTS): Add btest_dwz_gnudebuglink. | |
96 | * Makefile.in: Regenerate. | |
97 | ||
a76703bb | 98 | 2019-01-25 Tom de Vries <tdevries@suse.de> |
99 | ||
100 | * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule. | |
101 | (TESTS): Rename dtest to btest_gnudebuglink. | |
102 | * Makefile.in: Regenerate. | |
103 | ||
dd845228 | 104 | 2019-01-23 Tom de Vries <tdevries@suse.de> |
105 | ||
106 | * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields. | |
107 | (units_search, find_unit): Use size_t for offset. | |
108 | (build_address_map): Use size_t for unit_offset. | |
109 | ||
6832e904 | 110 | 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com> |
111 | ||
112 | * allocfail.c (main): Increase portability of printf statement. | |
113 | ||
432ce2bc | 114 | 2019-01-18 Ian Lance Taylor <iant@golang.org> |
115 | ||
116 | PR libbacktrace/88890 | |
117 | * mmapio.c (backtrace_get_view): Change size parameter to | |
118 | uint64_t. Check that value fits in size_t. | |
119 | * read.c (backtrace_get_view): Likewise. | |
120 | * internal.h (backtrace_get_view): Update declaration. | |
121 | * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view. | |
122 | ||
555388b4 | 123 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
124 | ||
125 | PR libbacktrace/82857 | |
126 | * configure.ac (DWZ): Set with AC_CHECK_PROG. | |
127 | (HAVE_DWZ): Set with AM_CONDITIONAL. | |
128 | * configure: Regenerate. | |
129 | * Makefile.am (TESTS): Add btest_dwz. | |
130 | * Makefile.in: Regenerate. | |
131 | ||
f6494275 | 132 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
133 | ||
134 | PR libbacktrace/82857 | |
135 | * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO. | |
136 | (read_attribute): Handle DW_FORM_GNU_ref_alt using | |
137 | ATTR_VAL_REF_ALT_INFO. | |
138 | (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt. | |
139 | ||
484fdf8b | 140 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
141 | ||
142 | * dwarf.c (struct unit): Add low_offset and high_offset fields. | |
143 | (struct unit_vector): New type. | |
144 | (struct dwarf_data): Add units and units_counts fields. | |
145 | (find_unit): New function. | |
146 | (find_address_ranges): Add and handle unit_tag parameter. | |
147 | (build_address_map): Add and handle units_vec parameter. | |
148 | (build_dwarf_data): Pass units_vec to build_address_map. Store resulting | |
149 | units vector. | |
150 | ||
48da990d | 151 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
152 | ||
153 | PR libbacktrace/82857 | |
154 | * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt | |
155 | using altlink. | |
156 | ||
151e5350 | 157 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
158 | ||
159 | * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE. | |
160 | (read_attribute): Add altlink parameter. Handle missing altlink for | |
161 | DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt. | |
162 | (find_address_ranges, build_address_map, build_dwarf_data): Add and | |
163 | handle altlink parameter. | |
164 | (read_referenced_name, read_function_entry): Add argument to | |
165 | read_attribute call. | |
166 | ||
7ad450d1 | 167 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
168 | ||
169 | * dwarf.c (struct dwarf_data): Add altlink field. | |
170 | (backtrace_dwarf_add): Add and handle fileline_altlink parameter. | |
171 | * elf.c (elf_add): Add argument to backtrace_dwarf_add call. | |
172 | (phdr_callback, backtrace_initialize): Add argument to elf_add calls. | |
173 | * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter. | |
174 | * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. | |
175 | * xcoff.c (xcoff_add): Same. | |
176 | ||
477b4e4c | 177 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
178 | ||
179 | * internal.h (backtrace_dwarf_add): Add fileline_entry parameter. | |
180 | * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter. | |
181 | * elf.c (elf_add): Add and handle fileline_entry parameter. Add | |
182 | argument to backtrace_dwarf_add call. | |
183 | (phdr_callback, backtrace_initialize): Add argument to elf_add calls. | |
184 | * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. | |
185 | * xcoff.c (xcoff_add): Same. | |
186 | ||
af0ac1f5 | 187 | 2019-01-17 Tom de Vries <tdevries@suse.de> |
188 | ||
189 | * elf.c (elf_add): Add and handle with_buildid_data and | |
190 | with_buildid_size parameters. Handle .gnu_debugaltlink section. | |
191 | (phdr_callback, backtrace_initialize): Add arguments to elf_add calls. | |
192 | ||
7d476f30 | 193 | 2019-01-16 Tom de Vries <tdevries@suse.de> |
194 | ||
195 | * dwarf.c (read_referenced_name_from_attr): New function. Factor out | |
196 | of ... | |
197 | (read_referenced_name): ... here, and ... | |
198 | (read_function_entry): ... here. | |
199 | ||
0f535bb0 | 200 | 2019-01-16 Tom de Vries <tdevries@suse.de> |
201 | ||
202 | * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any | |
203 | name. | |
204 | (read_function_entry): Same. Don't allow name found via | |
205 | DW_AT_abstract_origin or case DW_AT_specification to override linkage | |
206 | name. | |
207 | ||
f4d3c071 | 208 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
209 | ||
210 | PR other/16615 | |
211 | ||
212 | * backtrace.h: Mechanically replace "can not" with "cannot". | |
213 | ||
fbd26352 | 214 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
215 | ||
216 | Update copyright years. | |
217 | ||
e2b33370 | 218 | 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com> |
219 | ||
220 | * Makefile.am (xcoff_%.c): Use an actual newline instead of \n | |
221 | in sed pattern. | |
222 | * Makefile.in: Regenerate. | |
223 | ||
7c9096f8 | 224 | 2018-12-28 Tom de Vries <tdevries@suse.de> |
225 | ||
226 | * dwarf.c (build_address_map): Reuse unused units. | |
227 | ||
f03f36c3 | 228 | 2018-12-28 Tom de Vries <tdevries@suse.de> |
229 | ||
230 | * dwarf.c (build_address_map): Simplify by removing local variable | |
231 | abbrevs. | |
232 | ||
0394c30e | 233 | 2018-12-28 Ian Lance Taylor <iant@golang.org> |
234 | Tom de Vries <tdevries@suse.de> | |
235 | ||
236 | PR libbacktrace/88063 | |
237 | * dwarf.c (free_unit_addrs_vector): Remove. | |
238 | (build_address_map): Keep track of allocated units in vector. Free | |
239 | allocated units and corresponding abbrevs upon failure. Remove now | |
240 | redundant call to free_unit_addrs_vector. Free addrs vector upon | |
241 | failure. Free allocated unit vector. | |
242 | ||
f36d7c04 | 243 | 2018-12-28 Tom de Vries <tdevries@suse.de> |
244 | ||
245 | * dwarf.c (build_address_map): Free addrs vector upon failure. | |
246 | ||
0ae5612b | 247 | 2018-12-14 Tom de Vries <tdevries@suse.de> |
248 | ||
249 | PR testsuite/88491 | |
250 | * allocfail.sh: Remove "set -o pipefail". | |
251 | ||
69b2e931 | 252 | 2018-12-12 Tom de Vries <tdevries@suse.de> |
253 | ||
254 | * Makefile.am (TESTS): Add allocfail.sh. | |
255 | (check_PROGRAMS): Add allocfail. | |
256 | * Makefile.in: Regenerate. | |
257 | * instrumented_alloc.c: New file. Redefine malloc and realloc. | |
258 | Include alloc.c. | |
259 | * allocfail.c: New file. | |
260 | * allocfail.sh: New file. | |
261 | ||
fe5ae662 | 262 | 2018-11-30 Tom de Vries <tdevries@suse.de> |
263 | ||
264 | * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32, | |
265 | test_xcoff_64, test_pecoff and test_unknown. | |
266 | * Makefile.in: Regenerate. | |
267 | * test_format.c: New file. | |
268 | ||
8a4ef2e4 | 269 | 2018-11-30 Tom de Vries <tdevries@suse.de> |
270 | ||
271 | * Makefile.am : Add _with_alloc version for each test in | |
272 | check_PROGRAMS. | |
273 | * Makefile.in: Regenerate. | |
274 | ||
579f637c | 275 | 2018-11-30 Tom de Vries <tdevries@suse.de> |
276 | ||
277 | * internal.h (backtrace_vector_free): New static inline fuction, | |
278 | factored out of ... | |
279 | * dwarf.c (read_line_info): ... here. | |
280 | ||
257d0d5b | 281 | 2018-11-28 Tom de Vries <tdevries@suse.de> |
282 | ||
283 | * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation | |
284 | failure. | |
285 | ||
cc0ff4df | 286 | 2018-11-27 Tom de Vries <tdevries@suse.de> |
287 | ||
288 | * mmap.c (backtrace_vector_release): Same. | |
289 | * unittest.c (test1): Add check. | |
290 | ||
968bbc89 | 291 | 2018-11-27 Tom de Vries <tdevries@suse.de> |
292 | ||
293 | * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free | |
294 | instead of realloc. | |
295 | * Makefile.am (check_PROGRAMS): Add unittest. | |
296 | * Makefile.in: Regenerate. | |
297 | * unittest.c: New file. | |
298 | ||
1cbf749f | 299 | 2018-11-22 Tom de Vries <tdevries@suse.de> |
300 | ||
301 | * dwarf.c (read_initial_length): Factor out of ... | |
302 | (build_address_map, read_line_info): ... here. | |
303 | ||
c5f7c189 | 304 | 2018-11-21 Tom de Vries <tdevries@suse.de> |
305 | ||
306 | * dwarf.c (read_string): Factor out of ... | |
307 | (read_attribute, read_line_header, read_line_program): ... here. | |
308 | ||
f00f02a3 | 309 | 2018-10-31 Joseph Myers <joseph@codesourcery.com> |
310 | ||
311 | PR bootstrap/82856 | |
312 | * Makefile.am: Include multilib.am. | |
313 | * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. | |
314 | * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. | |
315 | ||
c7811b88 | 316 | 2018-10-05 Ian Lance Taylor <iant@golang.org> |
317 | ||
318 | PR libbacktrace/87529 | |
319 | * backtrace.h: Document that backtrace_create_state should be | |
320 | called only once. | |
321 | ||
c7e50530 | 322 | 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org> |
323 | ||
324 | * configure.ac: Move define of HAVE_ZLIB into check for -lz. | |
325 | * Makefile.in: Regenerate. | |
326 | * config.h.in: Likewise. | |
327 | * configure: Likewise. | |
328 | ||
572fe631 | 329 | 2018-08-01 Tony Reix <tony.reix@atos.net> |
330 | ||
331 | * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove. | |
332 | (struct xcoff_func, struct xcoff_func_vector): New structs. | |
333 | (xcoff_syminfo): Drop leading dot from symbol name. | |
334 | (xcoff_line_compare, xcoff_line_search): Remove. | |
335 | (xcoff_func_compare, xcoff_func_search): New static functions. | |
336 | (xcoff_lookup_pc): Search function table. | |
337 | (xcoff_add_line, xcoff_process_linenos): Remove. | |
338 | (xcoff_initialize_fileline): Build function table. | |
339 | ||
52458f06 | 340 | 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com> |
341 | ||
342 | PR other/86198 | |
343 | * elf.c (elf_add): Increase ".note.gnu.build-id" section size | |
344 | checking up to 36 bytes. | |
345 | ||
6726651f | 346 | 2018-04-24 H.J. Lu <hongjiu.lu@intel.com> |
347 | ||
348 | * configure: Regenerated. | |
349 | ||
ee8fea81 | 350 | 2018-04-19 Jakub Jelinek <jakub@redhat.com> |
351 | ||
352 | * configure: Regenerated. | |
353 | ||
e6f37162 | 354 | 2018-04-17 Ian Lance Taylor <iant@golang.org> |
355 | ||
356 | * backtrace.c: Revert last two changes. Don't call mmap | |
357 | directly. | |
358 | ||
d3a6e3ed | 359 | 2018-04-17 Ian Lance Taylor <iant@golang.org> |
360 | ||
361 | * backtrace.c: Include backtrace-supported.h before checking | |
362 | BACKTRACE_USES_MALLOC. | |
363 | ||
b77ef01f | 364 | 2018-04-17 Ian Lance Taylor <iant@golang.org> |
365 | ||
366 | * backtrace.c (backtrace_full): When testing whether we can | |
367 | allocate memory, call mmap directly, and munmap the memory. | |
368 | ||
53d4dec1 | 369 | 2018-04-04 Jakub Jelinek <jakub@redhat.com> |
370 | ||
371 | PR other/85161 | |
372 | * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for | |
373 | big endian, only use 32-bit loads if endianity macros are predefined | |
374 | and indicate big or little endian. | |
375 | ||
5611e648 | 376 | 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> |
377 | ||
378 | PR target/84148 | |
379 | * configure: Regenerate. | |
380 | ||
4314139b | 381 | 2018-02-15 Jakub Jelinek <jakub@redhat.com> |
382 | ||
383 | PR other/82368 | |
384 | * elf.c (SHT_PROGBITS): Undefine and define. | |
385 | ||
9d9c29a1 | 386 | 2018-02-14 Jakub Jelinek <jakub@redhat.com> |
387 | ||
388 | PR other/82368 | |
389 | * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define. | |
390 | (struct elf_ppc64_opd_data): New type. | |
391 | (elf_initialize_syminfo): Add opd argument, handle symbols | |
392 | pointing into the PowerPC64 ELFv1 .opd section. | |
393 | (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer | |
394 | to structure with .opd data to elf_initialize_syminfo. | |
395 | ||
902288bc | 396 | 2018-01-31 Ian Lance Taylor <iant@golang.org> |
397 | ||
398 | * elf.c (elf_add): Close descriptor if we use a debugfile. | |
399 | * btest.c (check_open_files): New static function. | |
400 | (main): Call check_open_files. | |
401 | ||
54a5135c | 402 | 2018-01-25 Ian Lance Taylor <iant@golang.org> |
403 | ||
404 | * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the | |
405 | desired CRC is zero. | |
406 | (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo. | |
407 | ||
18b2cf38 | 408 | 2018-01-25 Ian Lance Taylor <iant@golang.org> |
409 | ||
410 | * pecoff.c (coff_add): Only release syms_view if it is valid. | |
411 | ||
2db19dec | 412 | 2018-01-25 Ian Lance Taylor <iant@golang.org> |
413 | ||
414 | * pecoff.c (coff_add): Another memcpy -> coff_read4 fix. | |
415 | ||
6cb0493d | 416 | 2018-01-24 Ian Lance Taylor <iant@golang.org> |
417 | ||
418 | * pecoff.c (coff_add): Use coff_read4, not memcpy. | |
419 | ||
c0a300a5 | 420 | 2018-01-24 Ian Lance Taylor <iant@golang.org> |
421 | ||
422 | PR other/68239 | |
423 | * mmap.c (backtrace_free_locked): Don't put more than 16 entries | |
424 | on the free list. | |
425 | ||
64c25158 | 426 | 2018-01-19 Tony Reix <tony.reix@atos.net> |
427 | ||
428 | * xcoff.c (xcoff_incl_compare): New function. | |
429 | (xcoff_incl_search): New function. | |
430 | (xcoff_process_linenos): Use bsearch to find include file. | |
431 | (xcoff_initialize_fileline): Sort include file information. | |
432 | ||
c2cddbc4 | 433 | 2018-01-16 Ian Lance Taylor <iant@golang.org> |
434 | ||
435 | * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be | |
436 | 288. | |
437 | (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to | |
438 | elf_zlib_inflate_table. Generate elf_zlib_default_dist_table. | |
439 | (elf_zlib_default_table): Update. | |
440 | (elf_zlib_default_dist_table): New static array. | |
441 | (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table | |
442 | for block type 1. | |
443 | * ztest.c (struct zlib_test): Add uncompressed_len. | |
444 | (tests): Initialize uncompressed_len field. Add new test case. | |
445 | (test_samples): Use uncompressed_len field. | |
446 | ||
8e8f6434 | 447 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
448 | ||
449 | Update copyright years. | |
450 | ||
b2a9aeb7 | 451 | 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> |
452 | ||
453 | * configure.ac: Add CET_FLAGS to EXTRA_FLAGS. | |
454 | * aclocal.m4: Regenerate. | |
455 | * Makefile.in: Likewise. | |
456 | * configure: Likewise. | |
457 | ||
ff130bf4 | 458 | 2017-10-06 Ian Lance Taylor <iant@golang.org> |
459 | ||
460 | * ztest.c (test_large): Pass unsigned long *, not size_t *, to | |
461 | zlib uncompress function. | |
462 | ||
c8cf6ab0 | 463 | 2017-10-05 Ian Lance Taylor <iant@golang.org> |
464 | ||
465 | * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *. | |
466 | Read a four byte integer. | |
467 | (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit | |
468 | boundary before ever calling elf_zlib_fetch. | |
469 | * ztest.c (test_large): Simplify print statements a bit. | |
470 | ||
bf821bfd | 471 | 2017-10-02 Ian Lance Taylor <iant@golang.org> |
472 | ||
473 | * ztest.c: #include <errno.h>. | |
474 | (TEST_TIMING): Don't define, don't test. | |
475 | (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME. | |
476 | (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise. | |
477 | (ZLIB_CLOCK_GETTIME_ARG): Define. | |
478 | * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK. | |
479 | * Makefile.am: Likewise. | |
480 | * configure, Makefile.in: Rebuild. | |
481 | ||
c476d11e | 482 | 2017-10-02 Thomas Schwinge <thomas@codesourcery.com> |
483 | ||
0b986d3d | 484 | PR other/67165 |
485 | * Makefile.am: Append the content of clock_gettime_link to | |
486 | ztest_LDADD. | |
487 | * configure.ac: Test for the case that clock_gettime is in librt. | |
488 | * Makefile.in: Regenerate. | |
489 | * configure: Likewise. | |
490 | ||
c476d11e | 491 | PR other/67165 |
492 | * configure.ac: Check for clock_gettime. | |
493 | * config.h.in: Regenerate. | |
494 | * configure: Likewise. | |
495 | * ztest.c (average_time, test_large): Conditionalize test timing | |
496 | on clock_gettime availability. | |
497 | ||
844fae29 | 498 | 2017-09-29 Tony Reix <tony.reix@atos.net> |
499 | ||
500 | * xcoff.c: Initial support for DWARF debug sections in XCOFF. | |
501 | (STYP_DWARF, SSUBTYP_DW*): Define. | |
502 | (enum dwarf_section): Define. | |
503 | (struct dwsect_info): Define. | |
504 | (xcoff_add): Look for DWARF sections, pass them to | |
505 | backtrace_dwarf_add. | |
506 | ||
1fffcf69 | 507 | 2017-09-28 Ian Lance Taylor <iant@golang.org> |
508 | ||
509 | PR other/67165 | |
510 | * elf.c (__builtin_prefetch): Define if not __GNUC__. | |
511 | (unlikely): Define. | |
512 | (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define. | |
513 | (b_elf_chdr): Define type. | |
514 | (enum debug_section): Add ZDEBUG_xxx values. | |
515 | (debug_section_names): Add names for new sections. | |
516 | (struct debug_section_info): Add compressed field. | |
517 | (elf_zlib_failed, elf_zlib_fetch): New static functions. | |
518 | (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define. | |
519 | (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define. | |
520 | (HUFFMAN_SECONDARY_SHIFT): Define. | |
521 | (ZDEBUG_TABLE_SIZE): Define. | |
522 | (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define. | |
523 | (final_next_secondary): New static variable if | |
524 | BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE. | |
525 | (elf_zlib_inflate_table): New static function. | |
526 | (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main | |
527 | function to produce fixed Huffman table. | |
528 | (elf_zlib_default_table): New static variable. | |
529 | (elf_zlib_inflate): New static function. | |
530 | (elf_zlib_verify_checksum): Likewise. | |
531 | (elf_zlib_inflate_and_verify): Likewise. | |
532 | (elf_uncompress_zdebug): Likewise. | |
533 | (elf_uncompress_chdr): Likewise. | |
534 | (backtrace_uncompress_zdebug): New extern function. | |
535 | (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug | |
536 | sections, and uncompress them. | |
537 | * internal.h (backtrace_compress_zdebug): Declare. | |
538 | * ztest.c: New file. | |
539 | * configure.ac: Check for -lz and check whether the linker | |
540 | supports --compress-debug-sections. | |
541 | * Makefile.am (ztest_SOURCES): New variable. | |
542 | (ztest_CFLAGS, ztest_LDADD): New variables. | |
543 | (check_PROGRAMS): Add ztest. | |
544 | (ctestg_SOURCES): New variable. | |
545 | (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables. | |
546 | (ctesta_SOURCES): New variable. | |
547 | (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables. | |
548 | (check_PROGRAMS): Add ctestg and ctesta. | |
549 | * configure, config.h.in, Makefile.in: Rebuild. | |
550 | ||
7b3574e4 | 551 | 2017-09-22 Ian Lance Taylor <iant@golang.org> |
552 | ||
553 | PR sanitizer/77631 | |
554 | * configure.ac: Check for lstat and readlink. | |
555 | * elf.c (lstat, readlink): Provide dummy versions if real versions | |
556 | are not available. | |
557 | * configure, config.h.in: Rebuild. | |
558 | ||
b522f2ea | 559 | 2017-09-21 Ian Lance Taylor <iant@google.com> |
560 | ||
561 | PR go/82284 | |
562 | * elf.c (backtrace_initialize): Set pd.exe_filename. | |
563 | ||
b919941e | 564 | 2017-09-20 Ian Lance Taylor <iant@golang.org> |
565 | Denis Khalikov <d.khalikov@partner.samsung.com> | |
566 | ||
567 | PR sanitizer/77631 | |
568 | Support for external debug info. | |
569 | * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. | |
570 | (S_ISLNK): Define if not defined. | |
571 | (xstrnlen): Define if strnlen is not available. | |
572 | (b_elf_note): Define type. | |
573 | (NT_GNU_BUILD_ID): Define macro. | |
574 | (elf_crc32, elf_crc32_file): New static functions. | |
575 | (elf_is_symlink, elf_readlink): New static functions. | |
576 | (elf_open_debugfile_by_buildid): New static function. | |
577 | (elf_try_debugfile): New static function. | |
578 | (elf_find_debugfile_by_debuglink): New static function. | |
579 | (elf_open_debugfile_by_debuglink): New static function. | |
580 | (elf_add): Add filename and debuginfo parameters. Adjust all | |
581 | callers. Look for external debug info notes, and try to fetch | |
582 | debug info from external file. | |
583 | (struct phdr_data): Add exe_filename field. | |
584 | (phdr_callback): Pass filename to elf_add. | |
585 | (backtrace_initialize): Add filename parameter. | |
586 | * internal.h (backtrace_initialize): Add filename parameter. | |
587 | * fileline.c (fileline_initialize): Pass filename to | |
588 | backtrace_initialize. | |
589 | * pecoff.c (fileline_initialize): Add unused filename parameter. | |
590 | * unknown.c (fileline_initialize): Likewise. | |
591 | * xcoff.c (fileline_initialize): Likewise. | |
592 | * configure.ac: Check for objcopy --add-gnu-debuglink. | |
593 | * Makefile.am (dtest): New test target. | |
594 | * configure, Makefile.in: Rebuild. | |
595 | ||
d0917ddf | 596 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> |
597 | ||
598 | PR other/81096 | |
599 | * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS) | |
600 | * Makefile.in: Regenerate. | |
601 | ||
c5c63423 | 602 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> |
603 | ||
604 | PR other/81096 | |
605 | * libbacktrace/Makefile.in | |
606 | (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS) | |
607 | ||
94bade3f | 608 | 2017-08-02 David Edelsohn <dje.gcc@gmail.com> |
609 | ||
f53d837b | 610 | PR bootstrap/81638 |
94bade3f | 611 | * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. |
612 | ||
ad8b72b9 | 613 | 2017-07-28 Tony Reix <tony.reix@atos.net> |
614 | ||
615 | * xcoff.c: Don't leak a file descriptor if an archive is malformed. | |
616 | ||
6930694d | 617 | 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
618 | ||
619 | * fileline.c (fileline_initialize): Print pid_t as long. | |
620 | ||
0a83c23a | 621 | 2017-07-26 Tony Reix <tony.reix@atos.net> |
622 | ||
623 | * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. | |
624 | * filetype.awk: Separate AIX XCOFF32 and XCOFF64. | |
625 | * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats. | |
626 | * configure, config.h.in: Regenerate. | |
627 | ||
e9e43806 | 628 | 2017-07-21 Tony Reix <tony.reix@atos.net> |
629 | ||
630 | * filetype.awk: Add AIX XCOFF type detection. | |
631 | * configure.ac: Recognize xcoff format. | |
632 | * Makefile.am (FORMAT_FILES): Add xcoff.c. | |
633 | * fileline.c: Include <unistd.h>. | |
634 | (fileline_initialize): Add case for AIX procfs. | |
635 | * xcoff.c: New file. | |
636 | * configure, Makefile.in: Rebuild. | |
637 | ||
772d73b0 | 638 | 2017-06-21 Richard Biener <rguenther@suse.de> |
639 | ||
640 | * configure.ac: Add AC_SYS_LARGEFILE. | |
641 | * config.h.in: Regenerate. | |
642 | * configure: Likewise. | |
643 | ||
3be33b09 | 644 | 2017-06-11 Ian Lance Taylor <iant@golang.org> |
645 | ||
646 | * elf.c (backtrace_initialize): Always set *fileline_fn. | |
647 | * ttest.c: New file. | |
648 | * btest.c: Move support functions into testlib.c. Change calls to | |
649 | check to pass file name. | |
650 | * testlib.c: New file, copied from (part of) btest.c. | |
651 | * testlib.h: New file, declarations for testlib.c. | |
652 | * edtest.c: Use testlib.h and testlib.c. | |
653 | * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional. | |
654 | * Makefile.am (btest_SOURCES): Add testlib.c. | |
655 | (edtest_SOURCES): Likewise. | |
656 | (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD. | |
657 | (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define. | |
658 | * configure, Makefile.in: Rebuild. | |
659 | ||
d8178f6c | 660 | 2017-05-19 Than McIntosh <thanm@google.com> |
661 | ||
662 | * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. | |
663 | (read_line_header): Don't allocate dirs if dirs_count == 0. | |
664 | * edtest.c: New file. | |
665 | * edtest2.c: New file. | |
666 | * Makefile.am (edtest_SOURCES, edtest_LDADD): Define. | |
667 | (check_PROGRAMS): Add edtest. | |
668 | (edtest2_build.c, gen_edtest2_build): New targets. | |
669 | * Makefile.in: Rebuild. | |
670 | ||
673716e3 | 671 | 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk> |
672 | ||
673 | * btest.c (test5): Replace #ifdef guard with 'unused' attribute | |
674 | to fix compile warning when BACKTRACE_SUPPORTED isn't defined. | |
675 | ||
aad93da1 | 676 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
677 | ||
678 | Update copyright years. | |
679 | ||
29a8a56b | 680 | 2016-11-15 Matthias Klose <doko@ubuntu.com> |
681 | ||
682 | * configure: Regenerate. | |
683 | ||
75c399ef | 684 | 2016-09-11 Carlos Liam <carlos@aarzee.me> |
685 | ||
686 | * all: Remove meaningless trailing whitespace. | |
687 | ||
86d786c3 | 688 | 2016-05-18 Uros Bizjak <ubizjak@gmail.com> |
689 | ||
690 | PR target/71161 | |
691 | * elf.c (phdr_callback) [__i386__]: Add | |
692 | __attribute__((__force_align_arg_pointer__)). | |
693 | ||
047a1c2f | 694 | 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> |
695 | ||
696 | * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to | |
697 | avoid possible crash. | |
698 | (elf_add): Don't set *fileline_fn to elf_nodebug value in case of | |
699 | missing debug info anymore. | |
700 | ||
cc2bfdc7 | 701 | 2016-02-06 John David Anglin <danglin@gcc.gnu.org> |
702 | ||
703 | * mmap.c (MAP_FAILED): Define if not defined. | |
704 | ||
f1717362 | 705 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
706 | ||
707 | Update copyright years. | |
708 | ||
b767924b | 709 | 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi> |
710 | ||
86d786c3 | 711 | * configure.ac: Specify that DJGPP do not have mmap |
712 | even when sys/mman.h exists. | |
b767924b | 713 | * configure: Regenerate |
714 | ||
ab861c80 | 715 | 2015-12-09 John David Anglin <danglin@gcc.gnu.org> |
716 | ||
86d786c3 | 717 | PR libgfortran/68115 |
ab861c80 | 718 | * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. |
719 | * configure: Regenerate. | |
720 | * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call | |
721 | to void. | |
722 | ||
d93fbda6 | 723 | 2015-09-17 Ian Lance Taylor <iant@google.com> |
724 | ||
725 | * posix.c (backtrace_open): Cast second argument of open() to int. | |
726 | ||
b7f8771c | 727 | 2015-09-11 Ian Lance Taylor <iant@google.com> |
728 | ||
729 | * Makefile.am (backtrace.lo): Depend on internal.h. | |
730 | (sort.lo, stest.lo): Add explicit dependencies. | |
731 | * Makefile.in: Rebuild. | |
732 | ||
576ea143 | 733 | 2015-09-09 Hans-Peter Nilsson <hp@axis.com> |
734 | ||
735 | * backtrace.c: #include <sys/types.h>. | |
736 | ||
61ee636a | 737 | 2015-09-08 Ian Lance Taylor <iant@google.com> |
738 | ||
739 | PR other/67457 | |
740 | * backtrace.c: #include "internal.h". | |
741 | (struct backtrace_data): Add can_alloc field. | |
742 | (unwind): If can_alloc is false, don't try to get file/line | |
743 | information. | |
744 | (backtrace_full): Set can_alloc field in bdata. | |
745 | * alloc.c (backtrace_alloc): Don't call error_callback if it is | |
746 | NULL. | |
747 | * mmap.c (backtrace_alloc): Likewise. | |
748 | * internal.h: Update comments for backtrace_alloc and | |
749 | backtrace_free. | |
750 | ||
37bab844 | 751 | 2015-09-08 Ian Lance Taylor <iant@google.com> |
752 | ||
753 | PR other/67457 | |
754 | * mmap.c (backtrace_alloc): Correct test for mmap failure. | |
755 | ||
b2d409ee | 756 | 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
757 | ||
758 | * configure.ac: For spu-*-* targets, set have_fcntl to no. | |
759 | * configure: Regenerate. | |
760 | ||
d0724418 | 761 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
762 | ||
763 | * configure.ac: Remove [disable-shared] argument to LT_INIT. | |
764 | Remove setting PIC_FLAG when building as target library. | |
765 | * configure: Regenerate. | |
766 | ||
697bc369 | 767 | 2015-08-26 Hans-Peter Nilsson <hp@axis.com> |
768 | ||
769 | * configure.ac: Only compile with -fPIC if the target | |
770 | supports it. | |
771 | * configure: Regenerate. | |
772 | ||
de04a87e | 773 | 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
774 | ||
775 | * configure.ac: Set have_mmap to no on spu-*-* targets. | |
776 | * configure: Regenerate. | |
777 | ||
8ae2112f | 778 | 2015-08-13 Ian Lance Taylor <iant@google.com> |
779 | ||
780 | * dwarf.c (read_function_entry): Add vec_inlined parameter. | |
781 | Change all callers. | |
782 | ||
6112970b | 783 | 2015-06-11 Martin Sebor <msebor@redhat.com> |
784 | ||
785 | PR sanitizer/65479 | |
786 | * dwarf.c (struct line): Add new field idx. | |
787 | (line_compare): Use it. | |
788 | (add_line): Set it. | |
789 | (read_line_info): Reset it. | |
790 | ||
48ee217e | 791 | 2015-05-29 Tristan Gingold <gingold@adacore.com> |
792 | ||
793 | * pecoff.c: New file. | |
794 | * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. | |
795 | * Makefile.in: Regenerate. | |
796 | * filetype.awk: Detect pecoff. | |
797 | * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. | |
798 | Add pecoff. | |
799 | * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is | |
800 | true. | |
801 | * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. | |
802 | * configure: Regenerate. | |
803 | * pecoff.c: New file. | |
804 | ||
2af09e95 | 805 | 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> |
806 | ||
807 | * Makefile.in: Regenerated with automake-1.11.6. | |
808 | * aclocal.m4: Likewise. | |
809 | * configure: Likewise. | |
810 | ||
a8b04833 | 811 | 2015-01-24 Matthias Klose <doko@ubuntu.com> |
812 | ||
813 | * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. | |
814 | * configure: Regenerate. | |
815 | ||
d353bf18 | 816 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
817 | ||
818 | Update copyright years. | |
819 | ||
4e8a08d4 | 820 | 2014-11-21 H.J. Lu <hongjiu.lu@intel.com> |
821 | ||
822 | PR bootstrap/63784 | |
823 | * configure: Regenerated. | |
824 | ||
863e76f9 | 825 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> |
826 | ||
827 | * ChangeLog.jit: New. | |
828 | ||
7c407808 | 829 | 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
830 | ||
831 | PR target/63610 | |
832 | * configure: Regenerate. | |
833 | ||
f62ce0c7 | 834 | 2014-10-23 Ian Lance Taylor <iant@google.com> |
835 | ||
836 | * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: | |
837 | Fix to return void *. | |
838 | ||
af436d54 | 839 | 2014-05-08 Ian Lance Taylor <iant@google.com> |
840 | ||
841 | * mmap.c (backtrace_free): If freeing a large aligned block of | |
842 | memory, call munmap rather than holding onto it. | |
843 | (backtrace_vector_grow): When growing a vector, double the number | |
844 | of pages requested. When releasing the old version of a grown | |
845 | vector, pass the correct size to backtrace_free. | |
846 | ||
30510c70 | 847 | 2014-03-07 Ian Lance Taylor <iant@google.com> |
848 | ||
849 | * sort.c (backtrace_qsort): Use middle element as pivot. | |
850 | ||
1329f160 | 851 | 2014-03-06 Ian Lance Taylor <iant@google.com> |
852 | ||
853 | * sort.c: New file. | |
854 | * stest.c: New file. | |
855 | * internal.h (backtrace_qsort): Declare. | |
856 | * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. | |
857 | (read_line_info, read_function_entry): Likewise. | |
858 | (read_function_info, build_dwarf_data): Likewise. | |
859 | * elf.c (elf_initialize_syminfo): Likewise. | |
860 | * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. | |
861 | (stest_SOURCES, stest_LDADD): Define. | |
862 | (check_PROGRAMS): Add stest. | |
863 | ||
2ee407b0 | 864 | 2014-02-07 Misty De Meo <misty@brew.sh> |
865 | ||
866 | PR target/58710 | |
867 | * configure.ac: Use AC_LINK_IFELSE in check for | |
868 | _Unwind_GetIPInfo. | |
869 | * configure: Regenerate. | |
870 | ||
225b76bf | 871 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
872 | ||
873 | Update copyright years | |
874 | ||
84ade58d | 875 | 2013-12-06 Jakub Jelinek <jakub@redhat.com> |
876 | ||
877 | * elf.c (ET_DYN): Undefine and define again. | |
878 | (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, | |
879 | return early -1 without closing the descriptor. | |
880 | (struct phdr_data): Add exe_descriptor. | |
881 | (phdr_callback): If pd->exe_descriptor is not -1, for very first | |
882 | call if dlpi_name is NULL just call elf_add with the exe_descriptor, | |
883 | otherwise backtrace_close the exe_descriptor if not -1. Adjust | |
884 | call to elf_add. | |
885 | (backtrace_initialize): Adjust call to elf_add. If it returns | |
886 | -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. | |
887 | ||
583d5f6b | 888 | 2013-12-05 Ian Lance Taylor <iant@google.com> |
889 | ||
890 | * alloc.c (backtrace_vector_finish): Add error_callback and data | |
891 | parameters. Call backtrace_vector_release. Return address base. | |
892 | * mmap.c (backtrace_vector_finish): Add error_callback and data | |
893 | parameters. Return address base. | |
894 | * dwarf.c (read_function_info): Get new address base from | |
895 | backtrace_vector_finish. | |
896 | * internal.h (backtrace_vector_finish): Update declaration. | |
897 | ||
881a0840 | 898 | 2013-11-27 Ian Lance Taylor <iant@google.com> |
899 | ||
900 | * dwarf.c (find_address_ranges): New static function, broken out | |
901 | of build_address_map. | |
902 | (build_address_map): Call it. | |
903 | * btest.c (check): Check for missing filename or function, rather | |
904 | than crashing. | |
905 | (f3): Check that enough frames were returned. | |
906 | ||
8aae250d | 907 | 2013-11-19 Jakub Jelinek <jakub@redhat.com> |
908 | ||
32ccb438 | 909 | * backtrace.h (backtrace_syminfo_callback): Add symsize argument. |
910 | * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as | |
911 | last argument. | |
912 | * btest.c (struct symdata): Add size field. | |
913 | (callback_three): Add symsize argument. Copy it to the data->size | |
914 | field. | |
915 | (f23): Set symdata.size to 0. | |
916 | (test5): Likewise. If sizeof (int) > 1, lookup address of | |
917 | ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size | |
918 | values. | |
919 | ||
8aae250d | 920 | * atomic.c: Include sys/types.h. |
921 | ||
bcafb4a8 | 922 | 2013-11-18 Ian Lance Taylor <iant@google.com> |
923 | ||
924 | * configure.ac: Check for support of __atomic extensions. | |
925 | * internal.h: Declare or #define atomic functions for use in | |
926 | backtrace code. | |
927 | * atomic.c: New file. | |
928 | * dwarf.c (dwarf_lookup_pc): Use atomic functions. | |
929 | (dwarf_fileline, backtrace_dwarf_add): Likewise. | |
930 | * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. | |
931 | (backtrace_initialize): Likewise. | |
932 | * fileline.c (fileline_initialize): Likewise. | |
933 | * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. | |
934 | * configure, config.h.in, Makefile.in: Rebuild. | |
935 | ||
bcddbfd5 | 936 | 2013-11-18 Jakub Jelinek <jakub@redhat.com> |
937 | ||
02dc92c7 | 938 | * elf.c (SHN_UNDEF): Define. |
939 | (elf_initialize_syminfo): Add base_address argument. Ignore symbols | |
940 | with st_shndx == SHN_UNDEF. Add base_address to address fields. | |
941 | (elf_add): Adjust caller. | |
942 | ||
bcddbfd5 | 943 | * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. |
944 | ||
b1a2c599 | 945 | 2013-11-16 Ian Lance Taylor <iant@google.com> |
946 | ||
947 | * backtrace.h (backtrace_create_state): Correct comment about | |
948 | threading. | |
949 | ||
d4cc0c47 | 950 | 2013-11-15 Ian Lance Taylor <iant@google.com> |
951 | ||
952 | * backtrace.h (backtrace_syminfo): Update comment and parameter | |
953 | name to take any address, not just a PC value. | |
954 | * elf.c (STT_OBJECT): Define. | |
955 | (elf_nosyms): Rename parameter pc to addr. | |
956 | (elf_symbol_search): Rename local variable pc to addr. | |
957 | (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. | |
958 | (elf_syminfo): Rename parameter pc to addr. | |
959 | * btest.c (global): New global variable. | |
960 | (test5): New test. | |
961 | (main): Call test5. | |
962 | ||
f9d655c9 | 963 | 2013-10-17 Ian Lance Taylor <iant@google.com> |
964 | ||
965 | * elf.c (elf_add): Don't get the wrong offsets if a debug section | |
966 | is missing. | |
967 | ||
2bd17377 | 968 | 2013-10-15 David Malcolm <dmalcolm@redhat.com> |
969 | ||
970 | * configure.ac: Add --enable-host-shared, setting up | |
971 | pre-existing PIC_FLAG variable within Makefile.am et al. | |
972 | * configure: Regenerate. | |
973 | ||
9613c003 | 974 | 2013-09-20 Alan Modra <amodra@gmail.com> |
975 | ||
976 | * configure: Regenerate. | |
977 | ||
64514244 | 978 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> |
979 | ||
980 | * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. | |
981 | ||
5d62aeb5 | 982 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> |
983 | ||
984 | * elf.c (backtrace_initialize): Pass elf_fileline_fn to | |
985 | dl_iterate_phdr callbacks. | |
986 | ||
db79a293 | 987 | 2013-03-25 Ian Lance Taylor <iant@google.com> |
988 | ||
989 | * alloc.c: #include <sys/types.h>. | |
990 | * mmap.c: Likewise. | |
991 | ||
c187f805 | 992 | 2013-01-31 Ian Lance Taylor <iant@google.com> |
993 | ||
994 | * dwarf.c (read_function_info): Permit fvec parameter to be NULL. | |
995 | (dwarf_lookup_pc): Don't use ddata->fvec if threaded. | |
996 | ||
c4e0613e | 997 | 2013-01-25 Jakub Jelinek <jakub@redhat.com> |
998 | ||
999 | PR other/56076 | |
1000 | * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir | |
1001 | attribute was not seen. | |
1002 | ||
feded019 | 1003 | 2013-01-16 Ian Lance Taylor <iant@google.com> |
1004 | ||
1005 | * dwarf.c (struct unit): Add filename and abs_filename fields. | |
1006 | (build_address_map): Set new fields when reading unit. | |
1007 | (dwarf_lookup_pc): If we don't find an entry in the line table, | |
1008 | just return the main file name. | |
1009 | ||
bb88d427 | 1010 | 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com> |
1011 | ||
1012 | Update copyright years. | |
1013 | ||
0fe62490 | 1014 | 2013-01-01 Ian Lance Taylor <iant@google.com> |
1015 | ||
1016 | PR bootstrap/54834 | |
1017 | * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I | |
1018 | $(MULTIBUILDTOP)/../../gcc/include. | |
1019 | * Makefile.in: Rebuild. | |
1020 | ||
a666b85b | 1021 | 2013-01-01 Ian Lance Taylor <iant@google.com> |
1022 | ||
1023 | PR other/55536 | |
1024 | * mmap.c (backtrace_alloc): Don't call sync functions if not | |
1025 | threaded. | |
1026 | (backtrace_free): Likewise. | |
1027 | ||
99c67164 | 1028 | 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1029 | ||
1030 | * mmapio.c: Define MAP_FAILED if not defined. | |
1031 | ||
a7ebc02e | 1032 | 2012-12-11 Jakub Jelinek <jakub@redhat.com> |
1033 | ||
1034 | PR bootstrap/54926 | |
1035 | * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. | |
1036 | * configure.ac: If --with-target-subdir, add -frandom-seed=$@ | |
1037 | to EXTRA_FLAGS unconditionally, otherwise check whether the compiler | |
1038 | accepts it. | |
1039 | * Makefile.in: Regenerated. | |
1040 | * configure: Regenerated. | |
1041 | ||
ebfe0e60 | 1042 | 2012-12-07 Jakub Jelinek <jakub@redhat.com> |
1043 | ||
1044 | PR bootstrap/54926 | |
1045 | * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. | |
1046 | * Makefile.in: Regenerated. | |
1047 | ||
d80b0ad4 | 1048 | 2012-11-20 Ian Lance Taylor <iant@google.com> |
1049 | ||
1050 | * dwarf.c (read_attribute): Always clear val. | |
1051 | ||
47b4f489 | 1052 | 2012-11-13 Ian Lance Taylor <iant@google.com> |
1053 | ||
1054 | PR other/55312 | |
1055 | * configure.ac: Only add -Werror if building a target library. | |
a666b85b | 1056 | * configure: Rebuild. |
47b4f489 | 1057 | |
686b3772 | 1058 | 2012-11-12 Ian Lance Taylor <iant@google.com> |
1059 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1060 | Gerald Pfeifer <gerald@pfeifer.com> | |
1061 | ||
1062 | * configure.ac: Check for getexecname. | |
1063 | * fileline.c: #include <errno.h>. Define getexecname if not | |
1064 | available. | |
1065 | (fileline_initialize): Try to find the executable in a few | |
1066 | different ways. | |
1067 | * print.c (error_callback): Only print the filename if it came | |
1068 | from the backtrace state. | |
1069 | * configure, config.h.in: Rebuild. | |
1070 | ||
bccc33a3 | 1071 | 2012-10-29 Ian Lance Taylor <iant@google.com> |
1072 | ||
1073 | * mmap.c (backtrace_vector_release): Correct last patch: add | |
1074 | aligned, not size. | |
1075 | ||
8bca4f13 | 1076 | 2012-10-29 Ian Lance Taylor <iant@google.com> |
1077 | ||
1078 | * mmap.c (backtrace_vector_release): Make sure freed block is | |
1079 | aligned on 8-byte boundary. | |
1080 | ||
b60ebf03 | 1081 | 2012-10-26 Ian Lance Taylor <iant@google.com> |
1082 | ||
1083 | PR other/55087 | |
1084 | * posix.c (backtrace_open): Add does_not_exist parameter. | |
1085 | * elf.c (phdr_callback): Do not warn if shared library could not | |
1086 | be opened. | |
1087 | * fileline.c (fileline_initialize): Update calls to | |
1088 | backtrace_open. | |
1089 | * internal.h (backtrace_open): Update declaration. | |
1090 | ||
a4a5a77a | 1091 | 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> |
1092 | ||
1093 | PR target/55061 | |
1094 | * configure.ac: Check for _Unwind_GetIPInfo function declaration. | |
1095 | * configure: Regenerate. | |
1096 | ||
ff2fe13c | 1097 | 2012-10-24 Ian Lance Taylor <iant@google.com> |
1098 | ||
1099 | PR target/55061 | |
1100 | * configure.ac: Check whether -funwind-tables option works. | |
1101 | * configure: Rebuild. | |
1102 | ||
90de4704 | 1103 | 2012-10-11 Ian Lance Taylor <iant@google.com> |
1104 | ||
1105 | * configure.ac: Do not use dl_iterate_phdr on Solaris 10. | |
1106 | * configure: Rebuild. | |
1107 | ||
f54077a5 | 1108 | 2012-10-10 Ian Lance Taylor <iant@google.com> |
1109 | ||
1110 | * elf.c: Rename all Elf typedefs to start with b_elf, and be all | |
1111 | lower case. | |
1112 | ||
fa45cf12 | 1113 | 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com> |
1114 | ||
1115 | * elf.c (elf_add_syminfo_data): Add casts to avoid warning. | |
1116 | ||
bbcd37bc | 1117 | 2012-10-09 Ian Lance Taylor <iant@google.com> |
1118 | ||
1119 | * dwarf.c (dwarf_fileline): Add cast to avoid warning. | |
1120 | (backtrace_dwarf_add): Likewise. | |
1121 | ||
1bfb5d87 | 1122 | 2012-10-09 Ian Lance Taylor <iant@google.com> |
1123 | ||
1124 | Add support for tracing through shared libraries. | |
1125 | * configure.ac: Check for link.h and dl_iterate_phdr. | |
1126 | * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef | |
1127 | ELF macros before #defining them. | |
1128 | (dl_phdr_info, dl_iterate_phdr): Define if system does not have | |
1129 | dl_iterate_phdr. | |
1130 | (struct elf_syminfo_data): Add next field. | |
1131 | (elf_initialize_syminfo): Initialize next field. | |
1132 | (elf_add_syminfo_data): New static function. | |
1133 | (elf_add): New static function, broken out of | |
1134 | backtrace_initialize. Call backtrace_dwarf_add instead of | |
1135 | backtrace_dwarf_initialize. | |
1136 | (struct phdr_data): Define. | |
1137 | (phdr_callback): New static function. | |
1138 | (backtrace_initialize): Call elf_add. | |
1139 | * dwarf.c (struct dwarf_data): Add next and base_address fields. | |
1140 | (add_unit_addr): Add base_address parameter. Change all callers. | |
1141 | (add_unit_ranges, build_address_map): Likewise. | |
1142 | (add_line): Add ddata parameter. Change all callers. | |
1143 | (read_line_program, add_function_range): Likewise. | |
1144 | (dwarf_lookup_pc): New static function, broken out of | |
1145 | dwarf_fileline. | |
1146 | (dwarf_fileline): Call dwarf_lookup_pc. | |
1147 | (build_dwarf_data): New static function. | |
1148 | (backtrace_dwarf_add): New function. | |
1149 | (backtrace_dwarf_initialize): Remove. | |
1150 | * internal.h (backtrace_dwarf_initialize): Don't declare. | |
1151 | (backtrace_dwarf_add): Declare. | |
1152 | * configure, config.h.in: Rebuild. | |
1153 | ||
fd88e799 | 1154 | 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com> |
1155 | ||
1156 | * btest.c (f23): Avoid uninitialized variable warning. | |
1bfb5d87 | 1157 | |
c08b21b7 | 1158 | 2012-10-04 Ian Lance Taylor <iant@google.com> |
1159 | ||
1160 | * dwarf.c: If the system header files do not declare strnlen, | |
1161 | provide our own version. | |
1162 | ||
68dd5473 | 1163 | 2012-10-03 Ian Lance Taylor <iant@google.com> |
1164 | ||
1165 | * dwarf.c (read_uleb128): Fix overflow test. | |
1166 | (read_sleb128): Likewise. | |
1167 | (build_address_map): Don't change unit_buf.start. | |
1168 | ||
536b8dd3 | 1169 | 2012-10-02 Uros Bizjak <ubizjak@gmail.com> |
1170 | ||
86385074 | 1171 | PR other/54761 |
1172 | * configure.ac (EXTRA_FLAGS): New. | |
536b8dd3 | 1173 | * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). |
86385074 | 1174 | * configure, Makefile.in: Regenerate. |
536b8dd3 | 1175 | |
babed505 | 1176 | 2012-09-29 Ian Lance Taylor <iant@google.com> |
1177 | ||
1178 | PR other/54749 | |
1179 | * fileline.c (fileline_initialize): Pass errnum as -1 when | |
1180 | reporting that we could not read executable information after a | |
1181 | previous failure. | |
1182 | ||
451b8929 | 1183 | 2012-09-27 Ian Lance Taylor <iant@google.com> |
1184 | ||
1185 | PR bootstrap/54732 | |
1186 | * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. | |
1187 | * Makefile.am: Add dependencies for all objects. | |
1188 | * configure, aclocal.m4, Makefile.in: Rebuild. | |
1189 | ||
12073816 | 1190 | 2012-09-27 Ian Lance Taylor <iant@google.com> |
1191 | ||
1192 | PR other/54726 | |
1193 | * elf.c (backtrace_initialize): Set *fileln_fn, not | |
1194 | state->fileln_fn. | |
1195 | ||
837eabff | 1196 | 2012-09-19 Ian Lance Taylor <iant@google.com> |
1197 | ||
1198 | * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled | |
1199 | as a target library. | |
1200 | * configure: Rebuild. | |
1201 | ||
b945b61c | 1202 | 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1203 | Ian Lance Taylor <iant@google.com> | |
1204 | ||
c9e63184 | 1205 | * configure.ac (GCC_HEADER_STDINT): Invoke. |
1206 | * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". | |
1207 | * btest.c: Don't include <stdint.h>. | |
1208 | * dwarf.c: Likewise. | |
1209 | * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. | |
b945b61c | 1210 | |
e9830854 | 1211 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1212 | ||
1213 | PR bootstrap/54623 | |
1214 | * Makefile.am (AM_CPPFLAGS): Define. | |
1215 | (AM_CFLAGS): Remove -I options. | |
1216 | * Makefile.in: Rebuild. | |
1217 | ||
7341e544 | 1218 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1219 | ||
1220 | * posix.c (O_BINARY): Define if not defined. | |
1221 | (backtrace_open): Pass O_BINARY to open. Only call fcntl if | |
1222 | HAVE_FCNTL is defined. | |
1223 | * configure.ac: Test for the fcntl function. | |
1224 | * configure, config.h.in: Rebuild. | |
1225 | ||
d48b4b14 | 1226 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1227 | ||
1228 | * btest.c (test1, test2, test3, test4): Add the unused attribute. | |
1229 | ||
249b4e85 | 1230 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1231 | ||
1232 | * dwarf.c: Correct test of HAVE_DECL_STRNLEN. | |
1233 | ||
30bd8e8b | 1234 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1235 | ||
1236 | * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. | |
1237 | * mmapio.c: Don't define _GNU_SOURCE. | |
1238 | * configure, config.h.in: Rebuild. | |
1239 | ||
5f7c240f | 1240 | 2012-09-18 Ian Lance Taylor <iant@google.com> |
1241 | ||
1242 | * configure.ac: Check whether strnlen is declared. | |
1243 | * dwarf.c: Declare strnlen if not declared. | |
1244 | * configure, config.h.in: Rebuild. | |
1245 | ||
08a2d161 | 1246 | 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1247 | ||
1248 | * fileline.c: Include <stdlib.h>. | |
1249 | * mmap.c: Likewise. | |
1250 | ||
49414838 | 1251 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
1252 | ||
1253 | PR bootstrap/54611 | |
1254 | * nounwind.c (backtrace_full): Rename from backtrace. Add state | |
1255 | parameter. | |
1256 | ||
39a0a26e | 1257 | 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com> |
1258 | ||
1259 | PR bootstrap/54611 | |
1260 | * nounwind.c (backtrace_simple): Add state parameter. | |
1261 | ||
03d628c3 | 1262 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
1263 | ||
1264 | PR bootstrap/54609 | |
1265 | * unknown.c (unknown_fileline): Add state parameter, remove | |
1266 | fileline_data parameter, name error_callback parameter. | |
1267 | (backtrace_initialize): Add state parameter. | |
1268 | ||
ecd3459e | 1269 | 2012-09-17 Ian Lance Taylor <iant@google.com> |
1270 | ||
1271 | * Initial implementation. | |
f1717362 | 1272 | \f |
fbd26352 | 1273 | Copyright (C) 2012-2019 Free Software Foundation, Inc. |
f1717362 | 1274 | |
1275 | Copying and distribution of this file, with or without modification, | |
1276 | are permitted in any medium without royalty provided the copyright | |
1277 | notice and this notice are preserved. |