]>
Commit | Line | Data |
---|---|---|
edf64cd2 NC |
1 | 2023-01-12 Nick Clifton <nickc@redhat.com> |
2 | ||
3 | * Makefile.am (CLEANFILES): Import patch from upstream to prevent | |
4 | allocafail.sh from being removed when running 'make clean'. | |
5 | ||
b431e7a3 AM |
6 | 2021-11-12 Martin Liska <mliska@suse.cz> |
7 | ||
8 | PR libbacktrace/103167 | |
9 | * elf.c (elf_uncompress_lzma_block): Cast to unsigned int. | |
10 | (elf_uncompress_lzma): Likewise. | |
11 | * xztest.c (test_samples): memcpy only if v > 0. | |
12 | ||
13 | 2021-10-22 Martin Liska <mliska@suse.cz> | |
14 | ||
15 | PR testsuite/102742 | |
16 | * btest.c (MIN_DESCRIPTOR): New. | |
17 | (MAX_DESCRIPTOR): Likewise. | |
18 | (check_available_files): Likewise. | |
19 | (check_open_files): Check only file descriptors that | |
20 | were not available at the entry. | |
21 | (main): Call check_available_files. | |
22 | ||
63a4b106 AB |
23 | 2021-08-13 Sergei Trofimovich <siarheit@google.com> |
24 | ||
25 | * install-debuginfo-for-buildid.sh.in: Force non-localized readelf | |
26 | output with LANG=C. | |
27 | ||
28 | 2021-06-28 Clément Chigot <clement.chigot@atos.net> | |
29 | ||
30 | * xcoff.c (SSUBTYP_DWRNGES): New define. | |
31 | (xcoff_add): Use correct XCOFF DWARF section subtype | |
32 | for DEBUG_RANGES. Remove lineoff workaround. | |
33 | Adjust base_address. | |
34 | (xcoff_initialize_syminfo): Adapt to new base_address. | |
35 | (xcoff_lookup_pc): Likewise. | |
36 | (xcoff_initialize_fileline): Likewise. | |
37 | ||
38 | 2021-05-03 H.J. Lu <hjl.tools@gmail.com> | |
39 | ||
40 | PR bootstrap/99703 | |
41 | * configure: Regenerated. | |
42 | ||
43 | 2021-03-03 Ian Lance Taylor <iant@golang.org> | |
44 | ||
45 | * dwarf.c (read_line_program): Don't special case file 0. | |
46 | (read_function_entry): Likewise. | |
47 | ||
48 | 2021-03-02 Ian Lance Taylor <iant@golang.org> | |
49 | ||
50 | PR libbacktrace/98818 | |
51 | * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all | |
52 | callers. | |
53 | * backtrace.h: Update backtrace_error_callback comment. | |
54 | ||
55 | 2021-02-12 Ian Lance Taylor <iant@golang.org> | |
56 | ||
57 | * configure.ac: Check for objcopy --add-gnu-debuglink by using | |
58 | objcopy --help. | |
59 | * configure: Regenerate | |
60 | ||
61 | 2021-01-18 Ian Lance Taylor <iant@golang.org> | |
62 | ||
63 | * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info. | |
64 | * Makefile.in: Regenerate. | |
65 | * configure: Regenerate. | |
66 | ||
67 | 2021-01-18 Ian Lance Taylor <iant@golang.org> | |
68 | ||
69 | PR debug/98716 | |
70 | * dwarf.c (read_v2_paths): Allocate zero entry for dirs and | |
71 | filenames. | |
72 | (read_line_program): Remove parameter u, change caller. Don't | |
73 | subtract one from dirs and filenames index. | |
74 | (read_function_entry): Don't subtract one from filenames index. | |
75 | ||
76 | 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
77 | ||
78 | * configure: Re-generate. | |
79 | ||
80 | 2020-12-05 Iain Sandoe <iain@sandoe.co.uk> | |
81 | ||
82 | PR target/97865 | |
83 | * configure: Regenerate. | |
84 | ||
85 | 2020-12-02 Ian Lance Taylor <iant@golang.org> | |
86 | ||
87 | * dwarf.c (resolve_string): Use > rather than >= to check whether | |
88 | string index extends past buffer. | |
89 | (resolve_addr_index): Similarly for address index. | |
90 | ||
91 | 2020-11-29 John David Anglin <danglin@gcc.gnu.org> | |
92 | ||
93 | * configure: Regenerate. | |
94 | ||
95 | 2020-10-20 Ian Lance Taylor <iant@golang.org> | |
96 | ||
97 | * internal.h (ATTRIBUTE_FALLTHROUGH): Define. | |
98 | * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH. | |
99 | ||
100 | 2020-09-28 Ian Lance Taylor <iant@golang.org> | |
101 | ||
102 | PR libbacktrace/97082 | |
103 | * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL. | |
104 | * Makefile.in: Regenerate. | |
105 | ||
106 | 2020-09-28 Ian Lance Taylor <iant@golang.org> | |
107 | ||
108 | PR libbacktrace/97227 | |
109 | * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL. | |
110 | * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL. | |
111 | * configure: Regenerate. | |
112 | * Makefile.in: Regenerate. | |
113 | ||
114 | 2020-09-23 Ian Lance Taylor <iant@golang.org> | |
115 | ||
116 | * dwarf.c (report_inlined_functions): Handle PC == -1 and PC == | |
117 | p->low. | |
118 | (dwarf_lookup_pc): Likewise. | |
119 | ||
120 | 2020-09-17 Ian Lance Taylor <iant@golang.org> | |
121 | ||
122 | PR libbacktrace/97080 | |
123 | * fileline.c (backtrace_syminfo_to_full_callback): New function. | |
124 | (backtrace_syminfo_to_full_error_callback): New function. | |
125 | * elf.c (elf_nodebug): Call syminfo_fn if possible. | |
126 | * internal.h (struct backtrace_call_full): Define. | |
127 | (backtrace_syminfo_to_full_callback): Declare. | |
128 | (backtrace_syminfo_to_full_error_callback): Declare. | |
129 | * mtest.c (f3): Only check all[i] if data.index permits. | |
130 | ||
131 | 2020-09-16 Iain Sandoe <iain@sandoe.co.uk> | |
132 | ||
133 | * macho.c (MACH_O_CPU_TYPE_PPC): New. | |
134 | (MACH_O_CPU_TYPE_PPC64): New. | |
135 | Add compile-tests for powerpc to the Mach-O variants. | |
136 | ||
137 | 2020-09-14 Ian Lance Taylor <iant@golang.org> | |
138 | ||
139 | PR libbacktrace/93608 | |
140 | Add support for MiniDebugInfo. | |
141 | * elf.c (struct elf_view): Define. Replace most uses of | |
142 | backtrace_view with elf_view. | |
143 | (elf_get_view): New static functions. Replace most calls of | |
144 | backtrace_get_view with elf_get_view. | |
145 | (elf_release_view): New static functions. Replace most calls of | |
146 | backtrace_release_view with elf_release_view. | |
147 | (elf_uncompress_failed): Rename from elf_zlib_failed. Change all | |
148 | callers. | |
149 | (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define. | |
150 | (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define. | |
151 | (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define. | |
152 | (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define. | |
153 | (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define. | |
154 | (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define. | |
155 | (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define. | |
156 | (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define. | |
157 | (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define. | |
158 | (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define. | |
159 | (LZMA_PROB_DIST_ALIGN_LEN): Define. | |
160 | (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define. | |
161 | (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define. | |
162 | (LZMA_PROB_MATCH_LEN_LOW_LEN): Define. | |
163 | (LZMA_PROB_MATCH_LEN_MID_LEN): Define. | |
164 | (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define. | |
165 | (LZMA_PROB_REP_LEN_CHOICE_LEN): Define. | |
166 | (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define. | |
167 | (LZMA_PROB_REP_LEN_LOW_LEN): Define. | |
168 | (LZMA_PROB_REP_LEN_MID_LEN): Define. | |
169 | (LZMA_PROB_REP_LEN_HIGH_LEN): Define. | |
170 | (LZMA_PROB_LITERAL_LEN): Define. | |
171 | (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define. | |
172 | (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define. | |
173 | (LZMA_PROB_IS_REP2_OFFSET): Define. | |
174 | (LZMA_PROB_IS_REP0_LONG_OFFSET): Define. | |
175 | (LZMA_PROB_DIST_SLOT_OFFSET): Define. | |
176 | (LZMA_PROB_DIST_SPECIAL_OFFSET): Define. | |
177 | (LZMA_PROB_DIST_ALIGN_OFFSET): Define. | |
178 | (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define. | |
179 | (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define. | |
180 | (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define. | |
181 | (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define. | |
182 | (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define. | |
183 | (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define. | |
184 | (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define. | |
185 | (LZMA_PROB_REP_LEN_LOW_OFFSET): Define. | |
186 | (LZMA_PROB_REP_LEN_MID_OFFSET): Define. | |
187 | (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define. | |
188 | (LZMA_PROB_LITERAL_OFFSET): Define. | |
189 | (LZMA_PROB_TOTAL_COUNT): Define. | |
190 | (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define. | |
191 | (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define. | |
192 | (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define. | |
193 | (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define. | |
194 | (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define. | |
195 | (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define. | |
196 | (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define. | |
197 | (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define. | |
198 | (elf_lzma_varint): New static function. | |
199 | (elf_lzma_range_normalize): New static function. | |
200 | (elf_lzma_bit, elf_lzma_integer): New static functions. | |
201 | (elf_lzma_reverse_integer): New static function. | |
202 | (elf_lzma_len, elf_uncompress_lzma_block): New static functions. | |
203 | (elf_uncompress_lzma): New static function. | |
204 | (backtrace_uncompress_lzma): New function. | |
205 | (elf_add): Add memory and memory_size parameters. Change all | |
206 | callers. Look for .gnu_debugdata section, and, if found, | |
207 | decompress it and use it for symbols and debug info. Permit the | |
208 | descriptor parameter to be -1. | |
209 | * internal.h (backtrace_uncompress_lzma): Declare. | |
210 | * mtest.c: New file. | |
211 | * xztest.c: New file. | |
212 | * configure.ac: Check for nm, xz, and comm programs. Check for | |
213 | liblzma library. | |
214 | (HAVE_MINIDEBUG): Define. | |
215 | * Makefile.am (mtest_SOURCES): Define. | |
216 | (mtest_CFLAGS, mtest_LDADD): Define. | |
217 | (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG. | |
218 | (%_minidebug): New pattern rule, if HAVE_MINIDEBUG. | |
219 | (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define. | |
220 | (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define | |
221 | (xztest_alloc_LDADD): Define. | |
222 | (BUILDTESTS): Add mtest, xztest, xztest_alloc. | |
223 | (CLEANFILES): Add files created by minidebug pattern. | |
224 | (btest.lo): Correct INCDIR reference. | |
225 | (mtest.lo, xztest.lo, ztest.lo): New targets. | |
226 | * configure: Regenerate. | |
227 | * config.h.in: Regenerate. | |
228 | * Makefile.in: Regenerate. | |
229 | ||
230 | 2020-09-09 Ian Lance Taylor <iant@golang.org> | |
231 | ||
232 | * pecoff.c (coff_initialize_syminfo): Add is_64 parameter. | |
233 | (coff_add): Determine and pass is_64. | |
234 | ||
235 | 2020-09-09 Ian Lance Taylor <iant@golang.org> | |
236 | ||
237 | PR libbacktrace/96973 | |
238 | * fileline.c (macho_get_executable_path): New static function. | |
239 | (fileline_initialize): Call macho_get_executable_path. | |
240 | ||
241 | 2020-09-09 Ian Lance Taylor <iant@golang.org> | |
242 | ||
243 | * dwarf.c (function_addrs_search): Compare against the next entry | |
244 | low address, not the high address. | |
245 | (unit_addrs_search): Likewise. | |
246 | (build_address_map): Add a trailing unit_addrs. | |
247 | (read_function_entry): Add a trailing function_addrs. | |
248 | (read_function_info): Likewise. | |
249 | (report_inlined_functions): Search backward for function_addrs | |
250 | match. | |
251 | (dwarf_lookup_pc): Search backward for unit_addrs and | |
252 | function_addrs matches. | |
253 | ||
254 | 2020-09-08 Ian Lance Taylor <iant@golang.org> | |
255 | ||
256 | * simple.c (simple_unwind): Correct comment spelling. | |
257 | ||
258 | 2020-09-08 Ian Lance Taylor <iant@golang.org> | |
259 | ||
260 | * macho.c (macho_add_dsym): Make space for '/' in dsym. Use | |
261 | correct length when freeing diralc. | |
262 | ||
263 | 2020-09-08 Ian Lance Taylor <iant@golang.org> | |
264 | ||
265 | PR libbacktrace/96973 | |
266 | * macho.c (macho_add_fat): Correctly swap 32-bit file offset. | |
267 | ||
268 | 2020-09-08 Ian Lance Taylor <iant@golang.org> | |
269 | ||
270 | PR libbacktrace/96971 | |
271 | * filetype.awk: Only match magic number at start of line. | |
272 | ||
273 | 2020-08-24 Ian Lance Taylor <iant@golang.org> | |
274 | ||
275 | * macho.c (MACH_O_MH_MAGIC_FAT_64): Define. | |
276 | (MACH_O_MH_CIGAM_FAT_64): Define. | |
277 | (struct macho_fat_arch_64): Define. | |
278 | (macho_add_fat): Add and use is_64 parameter. | |
279 | (macho_add): Recognize 64-bit fat files. | |
280 | ||
281 | 2020-07-30 H.J. Lu <hjl.tools@gmail.com> | |
282 | ||
283 | PR bootstrap/96202 | |
284 | * configure: Regenerated. | |
285 | ||
286 | 2020-07-08 Ian Lance Taylor <iant@golang.org> | |
287 | ||
288 | * configure.ac: Test linker support for DWARF5 | |
289 | * configure: Regenerate | |
290 | ||
291 | 2020-05-29 H.J. Lu <hjl.tools@gmail.com> | |
292 | ||
293 | PR bootstrap/95413 | |
294 | * configure: Regenerated. | |
295 | ||
296 | 2020-05-15 H.J. Lu <hongjiu.lu@intel.com> | |
297 | ||
298 | PR bootstrap/95147 | |
299 | * configure: Regenerated. | |
300 | ||
301 | 2020-05-14 H.J. Lu <hongjiu.lu@intel.com> | |
302 | ||
303 | * configure: Regenerated. | |
304 | ||
305 | 2020-05-13 Ian Lance Taylor <iant@golang.org> | |
306 | ||
307 | * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED. | |
308 | ||
309 | 2020-05-13 Ian Lance Taylor <iant@golang.org> | |
310 | ||
311 | PR go/95061 | |
312 | * posix.c (backtrace_open): Treat EACCESS like ENOENT. | |
313 | ||
314 | 2020-05-12 H.J. Lu <hongjiu.lu@intel.com> | |
315 | ||
316 | * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS). | |
317 | * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and | |
318 | AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't | |
319 | enabled. | |
320 | * Makefile.in: Regenerated. | |
321 | * configure: Likewise. | |
322 | ||
323 | 2020-05-11 Ian Lance Taylor <iant@golang.org> | |
324 | ||
325 | PR libbacktrace/95012 | |
326 | * configure.ac: Check for getpagesize declaration. | |
327 | * mmap.c: Declare getpagesize if necessary. | |
328 | * mmapio.c: Likewise. | |
329 | * configure: Regenerate. | |
330 | * config.h.in: Regenerate. | |
331 | * Makefile.in: Regenerate. | |
332 | ||
333 | 2020-05-09 Roland McGrath <mcgrathr@google.com> | |
334 | ||
335 | * elf.c (elf_add): Bail early if there are no section headers at all. | |
336 | ||
337 | 2020-05-09 Ian Lance Taylor <iant@golang.org> | |
338 | ||
339 | * elf.c (elf_add): Don't free strtab if an error occurs after | |
340 | recording symbol information. | |
341 | ||
342 | 2020-05-09 Ian Lance Taylor <iant@golang.org> | |
343 | ||
344 | PR libbacktrace/88745 | |
345 | * macho.c: New file. | |
346 | * filetype.awk: Recognize Mach-O files. | |
347 | * Makefile.am (FORMAT_FILES): Add macho.c. | |
348 | (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL. | |
349 | (%.dSYM): New pattern target. | |
350 | (test_macho_SOURCES, test_macho_CFLAGS): New targets. | |
351 | (test_macho_LDADD): New target. | |
352 | (BUILDTESTS): Add test_macho. | |
353 | (macho.lo): Add dependencies. | |
354 | * configure.ac: Recognize macho file type. Check for | |
355 | mach-o/dyld.h. Don't try to run objcopy if we don't find it. | |
356 | Look for dsymutil and define a HAVE_DSYMUTIL conditional. | |
357 | * Makefile.in: Regenerate. | |
358 | * configure: Regenerate. | |
359 | * config.h.in: Regenerate. | |
360 | ||
361 | 2020-05-09 Ian Lance Taylor <iant@golang.org> | |
362 | ||
363 | * read.c (backtrace_get_view): Support short read. | |
364 | ||
365 | 2020-05-09 Ian Lance Taylor <iant@golang.org> | |
366 | ||
367 | * elf.c (elf_add): If debug sections are very large or far apart, | |
368 | read them individually rather than as a single view. | |
369 | ||
370 | 2020-05-08 Ian Lance Taylor <iant@golang.org> | |
371 | ||
372 | * fileline.c (sysctl_exec_name): New static function. | |
373 | (sysctl_exec_name1): New macro or static function. | |
374 | (sysctl_exec_name2): Likewise. | |
375 | (fileline_initialize): Try sysctl_exec_name[12]. | |
376 | * configure.ac: Check for sysctl args to fetch executable name. | |
377 | * configure: Regenerate. | |
378 | * config.h.in: Regenerate. | |
379 | ||
380 | 2020-02-15 Ian Lance Taylor <iant@golang.org> | |
381 | ||
382 | * ztest.c (test_large): Update file to current libgo test file. | |
383 | ||
384 | 2020-02-03 Ian Lance Taylor <iant@golang.org> | |
385 | ||
386 | * Makefile.am (libbacktrace_TEST_CFLAGS): Define. | |
387 | (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS). | |
388 | (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise. | |
389 | (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise. | |
390 | (test_unknown_CFLAGS, unittest_CFLAGS): Likewise. | |
391 | (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise. | |
392 | (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise. | |
393 | (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise. | |
394 | (stest_alloc_CFLAGS): Likewise. | |
395 | * Makefile.in: Regenerate. | |
396 | * ztest.c (error_callback_compress): Mark vdata unused. | |
397 | (test_large): Add casts to avoid warnings. | |
398 | ||
399 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> | |
400 | ||
401 | Update copyright years. | |
402 | ||
403 | 2019-12-13 Ian Lance Taylor <iant@golang.org> | |
404 | ||
405 | Add DWARF 5 support. | |
406 | * dwarf.c (struct attr): Add val field. | |
407 | (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX, | |
408 | ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX. | |
409 | (struct line_header): Add addrsize field. | |
410 | (struct line_header_format): Define. | |
411 | (struct unit): Add str_offsets_base, addr_base, and rnglists_base | |
412 | fields. | |
413 | (read_uint24): New static function. | |
414 | (read_attribute): Add implicit_val parameter. Replace dwarf_str | |
415 | and dwarf_str_size parameters with dwarf_sections parameter. Add | |
416 | support for new DWARF 5 forms. Change all callers. | |
417 | (resolve_string): New static function. | |
418 | (resolve_addr_index): Likewise. | |
419 | (read_abbrevs): Support DW_FORM_implicit_const. | |
420 | (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index, | |
421 | and ranges_is_index fields. | |
422 | (update_pcrange): Support DWARF 5 encodings. | |
423 | (add_high_low_range): New static function, split out of | |
424 | add_ranges. | |
425 | (add_ranges_from_ranges): Likewise. | |
426 | (add_ranges_from_rnglists): New static function. | |
427 | (add_ranges): Just call new helper functions. | |
428 | (find_address_ranges): Use resolve_string for strings, after | |
429 | reading all attributes. Handle new DWARF 5 attributes. | |
430 | (build_address_map): Support DWARF 5 compilation units. | |
431 | (read_v2_paths): New static function, split out of | |
432 | read_line_header. | |
433 | (read_lnct): New static function. | |
434 | (read_line_header_format_entries): Likewise. | |
435 | (read_line_header): Add ddata parameter. Support DWARF 5 line | |
436 | headers. Call new helper functions. Change all callers. | |
437 | (read_line_program): Use addrsize from line program header. Don't | |
438 | special case directory index 0 for DWARF 5. | |
439 | (read_referenced_name): Use resolve_string. | |
440 | (read_function_entry): Handle DWARF 5 encodings. Use | |
441 | resolve_string. | |
442 | * internal.h (enum dwarf_section): Add DEBUG_ADDR, | |
443 | DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS. | |
444 | * elf.c (dwarf_section_names): Add new section names. | |
445 | * pecoff.c (dwarf_section_names): Likewise. | |
446 | * xcoff.c (xcoff_add): Clear dwarf_sections before setting | |
447 | fields. | |
448 | * configure.ac: Define HAVE_DWARF5 automake conditional. | |
449 | * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5. | |
450 | (dwarf5_CFLAGS, dwarf5_LDADD): Likewise. | |
451 | (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise. | |
452 | (dwarf5_alloc_LDADD): Likewise. | |
453 | (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5. | |
454 | (CLEANFILES, clean-local): Define. | |
455 | ||
456 | 2019-12-08 Ian Lance Taylor <iant@golang.org> | |
457 | ||
458 | * dwarf.c (struct pcrange): Define. | |
459 | (update_pcrange, add_ranges): New static functions. | |
460 | (add_unit_addr): Change signature to work with add_ranges. Don't | |
461 | add base_address here. | |
462 | (add_unit_ranges): Remove. | |
463 | (find_address_ranges): Replace str/ranges parameters with | |
464 | dwarf_sections. Use update_pcrange and add_ranges. Change all | |
465 | callers. | |
466 | (add_function_range): Change signature to work with add_ranges. | |
467 | Don't add base_address here. | |
468 | (add_function_ranges): Remove. | |
469 | (read_function_entry): Use update_pcrange and add_ranges. | |
470 | ||
471 | 2019-12-04 Ian Lance Taylor <iant@golang.org> | |
472 | ||
473 | * edtest.c (test1): Add noclone attribute. | |
474 | ||
475 | 2019-12-04 Ian Lance Taylor <iant@golang.org> | |
476 | ||
477 | * internal.h (enum dwarf_section): Define. | |
478 | (struct dwarf_sections): Define. | |
479 | (backtrace_dwarf_add): Update declaration to replace specific | |
480 | section parameters with dwarf_sections parameter. | |
481 | * dwarf.c (struct dwarf_data): Replace specific section fields | |
482 | with dwarf_sections field. | |
483 | (read_attribute): Use dwarf_sections with altlink. | |
484 | (build_address_map): Replace specific section parameters with | |
485 | dwarf_sections parameter. Change all callers. | |
486 | (read_line_info): Use dwarf_sections with ddata. | |
487 | (read_referenced_name): Likewise. | |
488 | (add_function_ranges): Likewise. | |
489 | (read_function_entry): Likewise. | |
490 | (read_function_info): Likewise. | |
491 | (build_dwarf_data): Replace specific section parameters with | |
492 | dwarf_sections parameter. Change all callers. | |
493 | (backtrace_dwarf_add): Likewise. | |
494 | * elf.c (enum debug_section): Remove. | |
495 | (dwarf_section_names): Remove .zdebug names. | |
496 | (elf_add): Track zsections separately. Build dwarf_sections. | |
497 | * pecoff.c (enum debug_section): Remove. | |
498 | (struct debug_section_info): Remove data field. | |
499 | (coff_add): Build dwarf_sections. | |
500 | * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx | |
501 | references with DEBUG_xxx references. | |
502 | (xcoff_add): Build dwarf_sections. | |
503 | ||
504 | 2019-09-27 Maciej W. Rozycki <macro@wdc.com> | |
505 | ||
506 | * configure: Regenerate. | |
507 | ||
508 | 2019-09-26 Ian Lance Taylor <iant@golang.org> | |
509 | ||
510 | PR libbacktrace/91908 | |
511 | * pecoff.c (backtrace_initialize): Explicitly cast unchecked | |
512 | __sync_bool_compare_and_swap to void. | |
513 | * xcoff.c (backtrace_initialize): Likewise. | |
514 | ||
515 | 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com> | |
516 | ||
517 | * configure.ac: Remove references to spu. | |
518 | * configure: Regenerate. | |
519 | ||
520 | 2019-05-24 Clement Chigot <clement.chigot@atos.net> | |
521 | ||
522 | * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and | |
523 | test_elf_64. | |
524 | * Makefile.in: Regenerate. | |
525 | ||
526 | 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
527 | ||
528 | * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* | |
529 | handling. | |
530 | * configure: Regenerate. | |
531 | ||
532 | 2019-03-11 Ian Lance Taylor <iant@golang.org> | |
533 | ||
534 | PR libbacktrace/89669 | |
535 | * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if | |
536 | HAVE_ELF. | |
537 | * Makefile.in: Regenerate. | |
538 | ||
539 | 2019-02-26 Tom de Vries <tdevries@suse.de> | |
540 | ||
541 | * btest.c (test5): Allow global.* as minimal symbol name for global. | |
542 | ||
543 | 2019-02-26 Tom de Vries <tdevries@suse.de> | |
544 | ||
545 | * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ. | |
546 | * Makefile.in: Regenerate. | |
547 | ||
548 | 2019-02-12 Tom de Vries <tdevries@suse.de> | |
549 | ||
550 | PR libbacktrace/81983 | |
551 | * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0. | |
552 | ||
553 | 2019-02-10 Tom de Vries <tdevries@suse.de> | |
554 | ||
555 | * Makefile.am (BUILDTESTS): Add btest_lto. | |
556 | * Makefile.in: Regenerate. | |
557 | * btest.c (test1, f2, f3, test3, f22, f23): Declare with | |
558 | __attribute__((noclone)). | |
559 | ||
560 | 2019-02-08 Tom de Vries <tdevries@suse.de> | |
561 | ||
562 | * backtrace.c (backtrace_full): Declare with __attribute__((noinline)). | |
563 | * print.c (backtrace_print): Same. | |
564 | * simple.c (backtrace_simple): Same. | |
565 | ||
566 | 2019-02-08 Tom de Vries <tdevries@suse.de> | |
567 | ||
568 | PR libbacktrace/78063 | |
569 | * dwarf.c (build_address_map): Keep all parsed units. | |
570 | (read_referenced_name_from_attr): Handle DW_FORM_ref_addr. | |
571 | ||
572 | 2019-01-31 Tom de Vries <tdevries@suse.de> | |
573 | ||
574 | PR libbacktrace/89136 | |
575 | * elf.c (elf_add): Read build-id if with_buildid_data. Fix | |
576 | 'debugaltlink_name_len =+ 1'. | |
577 | ||
578 | 2019-01-29 Tom de Vries <tdevries@suse.de> | |
579 | ||
580 | * install-debuginfo-for-buildid.sh.in: New script. | |
581 | * Makefile.am (check_PROGRAMS): Add b2test and b3test. | |
582 | (TESTS): Add b2test_buildid and b3test_dwz_buildid. | |
583 | * Makefile.in: Regenerate. | |
584 | * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL. | |
585 | (READELF): Set with AC_CHECK_PROG. | |
586 | (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES. | |
587 | * configure: Regenerate. | |
588 | * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ... | |
589 | (elf_open_debugfile_by_buildid): ... here. | |
590 | ||
591 | 2019-01-29 Tom de Vries <tdevries@suse.de> | |
592 | ||
593 | * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for | |
594 | allocfail. | |
595 | (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS. | |
596 | (check_PROGRAMS): Add BUILDTESTS. | |
597 | * Makefile.in: Regenerate. | |
598 | ||
599 | 2019-01-28 Tom de Vries <tdevries@suse.de> | |
600 | ||
601 | * Makefile.am (xcoff_%.c): Generate sed result into temporary file. | |
602 | Use $< to access prerequisite. | |
603 | * Makefile.in: Regenerate. | |
604 | ||
605 | 2019-01-25 Nathan Sidwell <nathan@acm.org> | |
606 | ||
607 | * elf.c (elf_add): Pass "" filename to recursive call with | |
608 | separated debug. | |
609 | ||
610 | 2019-01-25 Tom de Vries <tdevries@suse.de> | |
611 | ||
612 | * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with | |
613 | filename == "". | |
614 | * Makefile.am (TESTS): Add btest_dwz_gnudebuglink. | |
615 | * Makefile.in: Regenerate. | |
616 | ||
617 | 2019-01-25 Tom de Vries <tdevries@suse.de> | |
618 | ||
619 | * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule. | |
620 | (TESTS): Rename dtest to btest_gnudebuglink. | |
621 | * Makefile.in: Regenerate. | |
622 | ||
623 | 2019-01-23 Tom de Vries <tdevries@suse.de> | |
624 | ||
625 | * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields. | |
626 | (units_search, find_unit): Use size_t for offset. | |
627 | (build_address_map): Use size_t for unit_offset. | |
628 | ||
629 | 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com> | |
630 | ||
631 | * allocfail.c (main): Increase portability of printf statement. | |
632 | ||
633 | 2019-01-18 Ian Lance Taylor <iant@golang.org> | |
634 | ||
635 | PR libbacktrace/88890 | |
636 | * mmapio.c (backtrace_get_view): Change size parameter to | |
637 | uint64_t. Check that value fits in size_t. | |
638 | * read.c (backtrace_get_view): Likewise. | |
639 | * internal.h (backtrace_get_view): Update declaration. | |
640 | * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view. | |
641 | ||
642 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
643 | ||
644 | PR libbacktrace/82857 | |
645 | * configure.ac (DWZ): Set with AC_CHECK_PROG. | |
646 | (HAVE_DWZ): Set with AM_CONDITIONAL. | |
647 | * configure: Regenerate. | |
648 | * Makefile.am (TESTS): Add btest_dwz. | |
649 | * Makefile.in: Regenerate. | |
650 | ||
651 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
652 | ||
653 | PR libbacktrace/82857 | |
654 | * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO. | |
655 | (read_attribute): Handle DW_FORM_GNU_ref_alt using | |
656 | ATTR_VAL_REF_ALT_INFO. | |
657 | (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt. | |
658 | ||
659 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
660 | ||
661 | * dwarf.c (struct unit): Add low_offset and high_offset fields. | |
662 | (struct unit_vector): New type. | |
663 | (struct dwarf_data): Add units and units_counts fields. | |
664 | (find_unit): New function. | |
665 | (find_address_ranges): Add and handle unit_tag parameter. | |
666 | (build_address_map): Add and handle units_vec parameter. | |
667 | (build_dwarf_data): Pass units_vec to build_address_map. Store resulting | |
668 | units vector. | |
669 | ||
670 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
671 | ||
672 | PR libbacktrace/82857 | |
673 | * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt | |
674 | using altlink. | |
675 | ||
676 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
677 | ||
678 | * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE. | |
679 | (read_attribute): Add altlink parameter. Handle missing altlink for | |
680 | DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt. | |
681 | (find_address_ranges, build_address_map, build_dwarf_data): Add and | |
682 | handle altlink parameter. | |
683 | (read_referenced_name, read_function_entry): Add argument to | |
684 | read_attribute call. | |
685 | ||
686 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
687 | ||
688 | * dwarf.c (struct dwarf_data): Add altlink field. | |
689 | (backtrace_dwarf_add): Add and handle fileline_altlink parameter. | |
690 | * elf.c (elf_add): Add argument to backtrace_dwarf_add call. | |
691 | (phdr_callback, backtrace_initialize): Add argument to elf_add calls. | |
692 | * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter. | |
693 | * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. | |
694 | * xcoff.c (xcoff_add): Same. | |
695 | ||
696 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
697 | ||
698 | * internal.h (backtrace_dwarf_add): Add fileline_entry parameter. | |
699 | * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter. | |
700 | * elf.c (elf_add): Add and handle fileline_entry parameter. Add | |
701 | argument to backtrace_dwarf_add call. | |
702 | (phdr_callback, backtrace_initialize): Add argument to elf_add calls. | |
703 | * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. | |
704 | * xcoff.c (xcoff_add): Same. | |
705 | ||
706 | 2019-01-17 Tom de Vries <tdevries@suse.de> | |
707 | ||
708 | * elf.c (elf_add): Add and handle with_buildid_data and | |
709 | with_buildid_size parameters. Handle .gnu_debugaltlink section. | |
710 | (phdr_callback, backtrace_initialize): Add arguments to elf_add calls. | |
711 | ||
712 | 2019-01-16 Tom de Vries <tdevries@suse.de> | |
713 | ||
714 | * dwarf.c (read_referenced_name_from_attr): New function. Factor out | |
715 | of ... | |
716 | (read_referenced_name): ... here, and ... | |
717 | (read_function_entry): ... here. | |
718 | ||
719 | 2019-01-16 Tom de Vries <tdevries@suse.de> | |
720 | ||
721 | * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any | |
722 | name. | |
723 | (read_function_entry): Same. Don't allow name found via | |
724 | DW_AT_abstract_origin or case DW_AT_specification to override linkage | |
725 | name. | |
726 | ||
727 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> | |
728 | ||
729 | PR other/16615 | |
730 | ||
731 | * backtrace.h: Mechanically replace "can not" with "cannot". | |
732 | ||
733 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> | |
734 | ||
735 | Update copyright years. | |
736 | ||
737 | 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com> | |
738 | ||
739 | * Makefile.am (xcoff_%.c): Use an actual newline instead of \n | |
740 | in sed pattern. | |
741 | * Makefile.in: Regenerate. | |
742 | ||
743 | 2018-12-28 Tom de Vries <tdevries@suse.de> | |
744 | ||
745 | * dwarf.c (build_address_map): Reuse unused units. | |
746 | ||
747 | 2018-12-28 Tom de Vries <tdevries@suse.de> | |
748 | ||
749 | * dwarf.c (build_address_map): Simplify by removing local variable | |
750 | abbrevs. | |
751 | ||
752 | 2018-12-28 Ian Lance Taylor <iant@golang.org> | |
753 | Tom de Vries <tdevries@suse.de> | |
754 | ||
755 | PR libbacktrace/88063 | |
756 | * dwarf.c (free_unit_addrs_vector): Remove. | |
757 | (build_address_map): Keep track of allocated units in vector. Free | |
758 | allocated units and corresponding abbrevs upon failure. Remove now | |
759 | redundant call to free_unit_addrs_vector. Free addrs vector upon | |
760 | failure. Free allocated unit vector. | |
761 | ||
762 | 2018-12-28 Tom de Vries <tdevries@suse.de> | |
763 | ||
764 | * dwarf.c (build_address_map): Free addrs vector upon failure. | |
765 | ||
766 | 2018-12-14 Tom de Vries <tdevries@suse.de> | |
767 | ||
768 | PR testsuite/88491 | |
769 | * allocfail.sh: Remove "set -o pipefail". | |
770 | ||
771 | 2018-12-12 Tom de Vries <tdevries@suse.de> | |
772 | ||
773 | * Makefile.am (TESTS): Add allocfail.sh. | |
774 | (check_PROGRAMS): Add allocfail. | |
775 | * Makefile.in: Regenerate. | |
776 | * instrumented_alloc.c: New file. Redefine malloc and realloc. | |
777 | Include alloc.c. | |
778 | * allocfail.c: New file. | |
779 | * allocfail.sh: New file. | |
780 | ||
781 | 2018-11-30 Tom de Vries <tdevries@suse.de> | |
782 | ||
783 | * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32, | |
784 | test_xcoff_64, test_pecoff and test_unknown. | |
785 | * Makefile.in: Regenerate. | |
786 | * test_format.c: New file. | |
787 | ||
788 | 2018-11-30 Tom de Vries <tdevries@suse.de> | |
789 | ||
790 | * Makefile.am : Add _with_alloc version for each test in | |
791 | check_PROGRAMS. | |
792 | * Makefile.in: Regenerate. | |
793 | ||
794 | 2018-11-30 Tom de Vries <tdevries@suse.de> | |
795 | ||
796 | * internal.h (backtrace_vector_free): New static inline fuction, | |
797 | factored out of ... | |
798 | * dwarf.c (read_line_info): ... here. | |
799 | ||
800 | 2018-11-28 Tom de Vries <tdevries@suse.de> | |
801 | ||
802 | * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation | |
803 | failure. | |
804 | ||
805 | 2018-11-27 Tom de Vries <tdevries@suse.de> | |
806 | ||
807 | * mmap.c (backtrace_vector_release): Same. | |
808 | * unittest.c (test1): Add check. | |
809 | ||
810 | 2018-11-27 Tom de Vries <tdevries@suse.de> | |
811 | ||
812 | * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free | |
813 | instead of realloc. | |
814 | * Makefile.am (check_PROGRAMS): Add unittest. | |
815 | * Makefile.in: Regenerate. | |
816 | * unittest.c: New file. | |
817 | ||
818 | 2018-11-22 Tom de Vries <tdevries@suse.de> | |
819 | ||
820 | * dwarf.c (read_initial_length): Factor out of ... | |
821 | (build_address_map, read_line_info): ... here. | |
822 | ||
823 | 2018-11-21 Tom de Vries <tdevries@suse.de> | |
824 | ||
825 | * dwarf.c (read_string): Factor out of ... | |
826 | (read_attribute, read_line_header, read_line_program): ... here. | |
827 | ||
828 | 2018-10-31 Joseph Myers <joseph@codesourcery.com> | |
829 | ||
830 | PR bootstrap/82856 | |
831 | * Makefile.am: Include multilib.am. | |
832 | * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. | |
833 | * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. | |
834 | ||
835 | 2018-10-05 Ian Lance Taylor <iant@golang.org> | |
836 | ||
837 | PR libbacktrace/87529 | |
838 | * backtrace.h: Document that backtrace_create_state should be | |
839 | called only once. | |
840 | ||
841 | 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org> | |
842 | ||
843 | * configure.ac: Move define of HAVE_ZLIB into check for -lz. | |
844 | * Makefile.in: Regenerate. | |
845 | * config.h.in: Likewise. | |
846 | * configure: Likewise. | |
847 | ||
848 | 2018-08-01 Tony Reix <tony.reix@atos.net> | |
849 | ||
850 | * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove. | |
851 | (struct xcoff_func, struct xcoff_func_vector): New structs. | |
852 | (xcoff_syminfo): Drop leading dot from symbol name. | |
853 | (xcoff_line_compare, xcoff_line_search): Remove. | |
854 | (xcoff_func_compare, xcoff_func_search): New static functions. | |
855 | (xcoff_lookup_pc): Search function table. | |
856 | (xcoff_add_line, xcoff_process_linenos): Remove. | |
857 | (xcoff_initialize_fileline): Build function table. | |
858 | ||
859 | 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com> | |
860 | ||
861 | PR other/86198 | |
862 | * elf.c (elf_add): Increase ".note.gnu.build-id" section size | |
863 | checking up to 36 bytes. | |
864 | ||
865 | 2018-04-24 H.J. Lu <hongjiu.lu@intel.com> | |
866 | ||
867 | * configure: Regenerated. | |
868 | ||
869 | 2018-04-19 Jakub Jelinek <jakub@redhat.com> | |
870 | ||
871 | * configure: Regenerated. | |
872 | ||
873 | 2018-04-17 Ian Lance Taylor <iant@golang.org> | |
874 | ||
875 | * backtrace.c: Revert last two changes. Don't call mmap | |
876 | directly. | |
877 | ||
878 | 2018-04-17 Ian Lance Taylor <iant@golang.org> | |
879 | ||
880 | * backtrace.c: Include backtrace-supported.h before checking | |
881 | BACKTRACE_USES_MALLOC. | |
882 | ||
883 | 2018-04-17 Ian Lance Taylor <iant@golang.org> | |
884 | ||
885 | * backtrace.c (backtrace_full): When testing whether we can | |
886 | allocate memory, call mmap directly, and munmap the memory. | |
887 | ||
888 | 2018-04-04 Jakub Jelinek <jakub@redhat.com> | |
889 | ||
890 | PR other/85161 | |
891 | * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for | |
892 | big endian, only use 32-bit loads if endianity macros are predefined | |
893 | and indicate big or little endian. | |
894 | ||
895 | 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> | |
896 | ||
897 | PR target/84148 | |
898 | * configure: Regenerate. | |
899 | ||
900 | 2018-02-15 Jakub Jelinek <jakub@redhat.com> | |
901 | ||
902 | PR other/82368 | |
903 | * elf.c (SHT_PROGBITS): Undefine and define. | |
904 | ||
905 | 2018-02-14 Jakub Jelinek <jakub@redhat.com> | |
906 | ||
907 | PR other/82368 | |
908 | * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define. | |
909 | (struct elf_ppc64_opd_data): New type. | |
910 | (elf_initialize_syminfo): Add opd argument, handle symbols | |
911 | pointing into the PowerPC64 ELFv1 .opd section. | |
912 | (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer | |
913 | to structure with .opd data to elf_initialize_syminfo. | |
914 | ||
915 | 2018-01-31 Ian Lance Taylor <iant@golang.org> | |
916 | ||
917 | * elf.c (elf_add): Close descriptor if we use a debugfile. | |
918 | * btest.c (check_open_files): New static function. | |
919 | (main): Call check_open_files. | |
920 | ||
921 | 2018-01-25 Ian Lance Taylor <iant@golang.org> | |
922 | ||
923 | * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the | |
924 | desired CRC is zero. | |
925 | (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo. | |
926 | ||
927 | 2018-01-25 Ian Lance Taylor <iant@golang.org> | |
928 | ||
929 | * pecoff.c (coff_add): Only release syms_view if it is valid. | |
930 | ||
931 | 2018-01-25 Ian Lance Taylor <iant@golang.org> | |
932 | ||
933 | * pecoff.c (coff_add): Another memcpy -> coff_read4 fix. | |
934 | ||
935 | 2018-01-24 Ian Lance Taylor <iant@golang.org> | |
936 | ||
937 | * pecoff.c (coff_add): Use coff_read4, not memcpy. | |
938 | ||
939 | 2018-01-24 Ian Lance Taylor <iant@golang.org> | |
940 | ||
941 | PR other/68239 | |
942 | * mmap.c (backtrace_free_locked): Don't put more than 16 entries | |
943 | on the free list. | |
944 | ||
945 | 2018-01-19 Tony Reix <tony.reix@atos.net> | |
946 | ||
947 | * xcoff.c (xcoff_incl_compare): New function. | |
948 | (xcoff_incl_search): New function. | |
949 | (xcoff_process_linenos): Use bsearch to find include file. | |
950 | (xcoff_initialize_fileline): Sort include file information. | |
951 | ||
952 | 2018-01-16 Ian Lance Taylor <iant@golang.org> | |
953 | ||
954 | * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be | |
955 | 288. | |
956 | (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to | |
957 | elf_zlib_inflate_table. Generate elf_zlib_default_dist_table. | |
958 | (elf_zlib_default_table): Update. | |
959 | (elf_zlib_default_dist_table): New static array. | |
960 | (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table | |
961 | for block type 1. | |
962 | * ztest.c (struct zlib_test): Add uncompressed_len. | |
963 | (tests): Initialize uncompressed_len field. Add new test case. | |
964 | (test_samples): Use uncompressed_len field. | |
965 | ||
966 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> | |
967 | ||
968 | Update copyright years. | |
969 | ||
970 | 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> | |
971 | ||
972 | * configure.ac: Add CET_FLAGS to EXTRA_FLAGS. | |
973 | * aclocal.m4: Regenerate. | |
974 | * Makefile.in: Likewise. | |
975 | * configure: Likewise. | |
976 | ||
977 | 2017-10-06 Ian Lance Taylor <iant@golang.org> | |
978 | ||
979 | * ztest.c (test_large): Pass unsigned long *, not size_t *, to | |
980 | zlib uncompress function. | |
981 | ||
982 | 2017-10-05 Ian Lance Taylor <iant@golang.org> | |
983 | ||
984 | * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *. | |
985 | Read a four byte integer. | |
986 | (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit | |
987 | boundary before ever calling elf_zlib_fetch. | |
988 | * ztest.c (test_large): Simplify print statements a bit. | |
989 | ||
990 | 2017-10-02 Ian Lance Taylor <iant@golang.org> | |
991 | ||
992 | * ztest.c: #include <errno.h>. | |
993 | (TEST_TIMING): Don't define, don't test. | |
994 | (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME. | |
995 | (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise. | |
996 | (ZLIB_CLOCK_GETTIME_ARG): Define. | |
997 | * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK. | |
998 | * Makefile.am: Likewise. | |
999 | * configure, Makefile.in: Rebuild. | |
1000 | ||
1001 | 2017-10-02 Thomas Schwinge <thomas@codesourcery.com> | |
1002 | ||
1003 | PR other/67165 | |
1004 | * Makefile.am: Append the content of clock_gettime_link to | |
1005 | ztest_LDADD. | |
1006 | * configure.ac: Test for the case that clock_gettime is in librt. | |
1007 | * Makefile.in: Regenerate. | |
1008 | * configure: Likewise. | |
1009 | ||
1010 | PR other/67165 | |
1011 | * configure.ac: Check for clock_gettime. | |
1012 | * config.h.in: Regenerate. | |
1013 | * configure: Likewise. | |
1014 | * ztest.c (average_time, test_large): Conditionalize test timing | |
1015 | on clock_gettime availability. | |
1016 | ||
1017 | 2017-09-29 Tony Reix <tony.reix@atos.net> | |
1018 | ||
1019 | * xcoff.c: Initial support for DWARF debug sections in XCOFF. | |
1020 | (STYP_DWARF, SSUBTYP_DW*): Define. | |
1021 | (enum dwarf_section): Define. | |
1022 | (struct dwsect_info): Define. | |
1023 | (xcoff_add): Look for DWARF sections, pass them to | |
1024 | backtrace_dwarf_add. | |
1025 | ||
1026 | 2017-09-28 Ian Lance Taylor <iant@golang.org> | |
1027 | ||
1028 | PR other/67165 | |
1029 | * elf.c (__builtin_prefetch): Define if not __GNUC__. | |
1030 | (unlikely): Define. | |
1031 | (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define. | |
1032 | (b_elf_chdr): Define type. | |
1033 | (enum debug_section): Add ZDEBUG_xxx values. | |
1034 | (debug_section_names): Add names for new sections. | |
1035 | (struct debug_section_info): Add compressed field. | |
1036 | (elf_zlib_failed, elf_zlib_fetch): New static functions. | |
1037 | (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define. | |
1038 | (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define. | |
1039 | (HUFFMAN_SECONDARY_SHIFT): Define. | |
1040 | (ZDEBUG_TABLE_SIZE): Define. | |
1041 | (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define. | |
1042 | (final_next_secondary): New static variable if | |
1043 | BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE. | |
1044 | (elf_zlib_inflate_table): New static function. | |
1045 | (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main | |
1046 | function to produce fixed Huffman table. | |
1047 | (elf_zlib_default_table): New static variable. | |
1048 | (elf_zlib_inflate): New static function. | |
1049 | (elf_zlib_verify_checksum): Likewise. | |
1050 | (elf_zlib_inflate_and_verify): Likewise. | |
1051 | (elf_uncompress_zdebug): Likewise. | |
1052 | (elf_uncompress_chdr): Likewise. | |
1053 | (backtrace_uncompress_zdebug): New extern function. | |
1054 | (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug | |
1055 | sections, and uncompress them. | |
1056 | * internal.h (backtrace_compress_zdebug): Declare. | |
1057 | * ztest.c: New file. | |
1058 | * configure.ac: Check for -lz and check whether the linker | |
1059 | supports --compress-debug-sections. | |
1060 | * Makefile.am (ztest_SOURCES): New variable. | |
1061 | (ztest_CFLAGS, ztest_LDADD): New variables. | |
1062 | (check_PROGRAMS): Add ztest. | |
1063 | (ctestg_SOURCES): New variable. | |
1064 | (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables. | |
1065 | (ctesta_SOURCES): New variable. | |
1066 | (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables. | |
1067 | (check_PROGRAMS): Add ctestg and ctesta. | |
1068 | * configure, config.h.in, Makefile.in: Rebuild. | |
1069 | ||
1070 | 2017-09-22 Ian Lance Taylor <iant@golang.org> | |
1071 | ||
1072 | PR sanitizer/77631 | |
1073 | * configure.ac: Check for lstat and readlink. | |
1074 | * elf.c (lstat, readlink): Provide dummy versions if real versions | |
1075 | are not available. | |
1076 | * configure, config.h.in: Rebuild. | |
1077 | ||
1078 | 2017-09-21 Ian Lance Taylor <iant@google.com> | |
1079 | ||
1080 | PR go/82284 | |
1081 | * elf.c (backtrace_initialize): Set pd.exe_filename. | |
1082 | ||
1083 | 2017-09-20 Ian Lance Taylor <iant@golang.org> | |
1084 | Denis Khalikov <d.khalikov@partner.samsung.com> | |
1085 | ||
1086 | PR sanitizer/77631 | |
1087 | Support for external debug info. | |
1088 | * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. | |
1089 | (S_ISLNK): Define if not defined. | |
1090 | (xstrnlen): Define if strnlen is not available. | |
1091 | (b_elf_note): Define type. | |
1092 | (NT_GNU_BUILD_ID): Define macro. | |
1093 | (elf_crc32, elf_crc32_file): New static functions. | |
1094 | (elf_is_symlink, elf_readlink): New static functions. | |
1095 | (elf_open_debugfile_by_buildid): New static function. | |
1096 | (elf_try_debugfile): New static function. | |
1097 | (elf_find_debugfile_by_debuglink): New static function. | |
1098 | (elf_open_debugfile_by_debuglink): New static function. | |
1099 | (elf_add): Add filename and debuginfo parameters. Adjust all | |
1100 | callers. Look for external debug info notes, and try to fetch | |
1101 | debug info from external file. | |
1102 | (struct phdr_data): Add exe_filename field. | |
1103 | (phdr_callback): Pass filename to elf_add. | |
1104 | (backtrace_initialize): Add filename parameter. | |
1105 | * internal.h (backtrace_initialize): Add filename parameter. | |
1106 | * fileline.c (fileline_initialize): Pass filename to | |
1107 | backtrace_initialize. | |
1108 | * pecoff.c (fileline_initialize): Add unused filename parameter. | |
1109 | * unknown.c (fileline_initialize): Likewise. | |
1110 | * xcoff.c (fileline_initialize): Likewise. | |
1111 | * configure.ac: Check for objcopy --add-gnu-debuglink. | |
1112 | * Makefile.am (dtest): New test target. | |
1113 | * configure, Makefile.in: Rebuild. | |
1114 | ||
1115 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> | |
1116 | ||
1117 | PR other/81096 | |
1118 | * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS) | |
1119 | * Makefile.in: Regenerate. | |
1120 | ||
1121 | 2017-09-12 Steve Ellcey <sellcey@cavium.com> | |
1122 | ||
1123 | PR other/81096 | |
1124 | * libbacktrace/Makefile.in | |
1125 | (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS) | |
1126 | ||
1127 | 2017-08-02 David Edelsohn <dje.gcc@gmail.com> | |
1128 | ||
1129 | PR bootstrap/81638 | |
1130 | * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. | |
1131 | ||
1132 | 2017-07-28 Tony Reix <tony.reix@atos.net> | |
1133 | ||
1134 | * xcoff.c: Don't leak a file descriptor if an archive is malformed. | |
1135 | ||
1136 | 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1137 | ||
1138 | * fileline.c (fileline_initialize): Print pid_t as long. | |
1139 | ||
1140 | 2017-07-26 Tony Reix <tony.reix@atos.net> | |
1141 | ||
1142 | * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. | |
1143 | * filetype.awk: Separate AIX XCOFF32 and XCOFF64. | |
1144 | * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats. | |
1145 | * configure, config.h.in: Regenerate. | |
1146 | ||
1147 | 2017-07-21 Tony Reix <tony.reix@atos.net> | |
1148 | ||
1149 | * filetype.awk: Add AIX XCOFF type detection. | |
1150 | * configure.ac: Recognize xcoff format. | |
1151 | * Makefile.am (FORMAT_FILES): Add xcoff.c. | |
1152 | * fileline.c: Include <unistd.h>. | |
1153 | (fileline_initialize): Add case for AIX procfs. | |
1154 | * xcoff.c: New file. | |
1155 | * configure, Makefile.in: Rebuild. | |
1156 | ||
1157 | 2017-06-21 Richard Biener <rguenther@suse.de> | |
1158 | ||
1159 | * configure.ac: Add AC_SYS_LARGEFILE. | |
1160 | * config.h.in: Regenerate. | |
1161 | * configure: Likewise. | |
1162 | ||
1163 | 2017-06-11 Ian Lance Taylor <iant@golang.org> | |
1164 | ||
1165 | * elf.c (backtrace_initialize): Always set *fileline_fn. | |
1166 | * ttest.c: New file. | |
1167 | * btest.c: Move support functions into testlib.c. Change calls to | |
1168 | check to pass file name. | |
1169 | * testlib.c: New file, copied from (part of) btest.c. | |
1170 | * testlib.h: New file, declarations for testlib.c. | |
1171 | * edtest.c: Use testlib.h and testlib.c. | |
1172 | * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional. | |
1173 | * Makefile.am (btest_SOURCES): Add testlib.c. | |
1174 | (edtest_SOURCES): Likewise. | |
1175 | (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD. | |
1176 | (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define. | |
1177 | * configure, Makefile.in: Rebuild. | |
1178 | ||
1179 | 2017-05-19 Than McIntosh <thanm@google.com> | |
1180 | ||
1181 | * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. | |
1182 | (read_line_header): Don't allocate dirs if dirs_count == 0. | |
1183 | * edtest.c: New file. | |
1184 | * edtest2.c: New file. | |
1185 | * Makefile.am (edtest_SOURCES, edtest_LDADD): Define. | |
1186 | (check_PROGRAMS): Add edtest. | |
1187 | (edtest2_build.c, gen_edtest2_build): New targets. | |
1188 | * Makefile.in: Rebuild. | |
1189 | ||
1190 | 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk> | |
1191 | ||
1192 | * btest.c (test5): Replace #ifdef guard with 'unused' attribute | |
1193 | to fix compile warning when BACKTRACE_SUPPORTED isn't defined. | |
1194 | ||
1195 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> | |
1196 | ||
1197 | Update copyright years. | |
1198 | ||
1199 | 2016-11-15 Matthias Klose <doko@ubuntu.com> | |
1200 | ||
1201 | * configure: Regenerate. | |
1202 | ||
1203 | 2016-09-11 Carlos Liam <carlos@aarzee.me> | |
1204 | ||
1205 | * all: Remove meaningless trailing whitespace. | |
1206 | ||
1207 | 2016-05-18 Uros Bizjak <ubizjak@gmail.com> | |
1208 | ||
1209 | PR target/71161 | |
1210 | * elf.c (phdr_callback) [__i386__]: Add | |
1211 | __attribute__((__force_align_arg_pointer__)). | |
1212 | ||
1213 | 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> | |
1214 | ||
1215 | * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to | |
1216 | avoid possible crash. | |
1217 | (elf_add): Don't set *fileline_fn to elf_nodebug value in case of | |
1218 | missing debug info anymore. | |
1219 | ||
1220 | 2016-02-06 John David Anglin <danglin@gcc.gnu.org> | |
1221 | ||
1222 | * mmap.c (MAP_FAILED): Define if not defined. | |
1223 | ||
1224 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> | |
1225 | ||
1226 | Update copyright years. | |
1227 | ||
1228 | 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi> | |
1229 | ||
1230 | * configure.ac: Specify that DJGPP do not have mmap | |
1231 | even when sys/mman.h exists. | |
1232 | * configure: Regenerate | |
1233 | ||
1234 | 2015-12-09 John David Anglin <danglin@gcc.gnu.org> | |
1235 | ||
1236 | PR libgfortran/68115 | |
1237 | * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. | |
1238 | * configure: Regenerate. | |
1239 | * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call | |
1240 | to void. | |
1241 | ||
1242 | 2015-09-17 Ian Lance Taylor <iant@google.com> | |
1243 | ||
1244 | * posix.c (backtrace_open): Cast second argument of open() to int. | |
1245 | ||
1246 | 2015-09-11 Ian Lance Taylor <iant@google.com> | |
1247 | ||
1248 | * Makefile.am (backtrace.lo): Depend on internal.h. | |
1249 | (sort.lo, stest.lo): Add explicit dependencies. | |
1250 | * Makefile.in: Rebuild. | |
1251 | ||
1252 | 2015-09-09 Hans-Peter Nilsson <hp@axis.com> | |
1253 | ||
1254 | * backtrace.c: #include <sys/types.h>. | |
1255 | ||
1256 | 2015-09-08 Ian Lance Taylor <iant@google.com> | |
1257 | ||
1258 | PR other/67457 | |
1259 | * backtrace.c: #include "internal.h". | |
1260 | (struct backtrace_data): Add can_alloc field. | |
1261 | (unwind): If can_alloc is false, don't try to get file/line | |
1262 | information. | |
1263 | (backtrace_full): Set can_alloc field in bdata. | |
1264 | * alloc.c (backtrace_alloc): Don't call error_callback if it is | |
1265 | NULL. | |
1266 | * mmap.c (backtrace_alloc): Likewise. | |
1267 | * internal.h: Update comments for backtrace_alloc and | |
1268 | backtrace_free. | |
1269 | ||
1270 | 2015-09-08 Ian Lance Taylor <iant@google.com> | |
1271 | ||
1272 | PR other/67457 | |
1273 | * mmap.c (backtrace_alloc): Correct test for mmap failure. | |
1274 | ||
1275 | 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> | |
1276 | ||
1277 | * configure.ac: For spu-*-* targets, set have_fcntl to no. | |
1278 | * configure: Regenerate. | |
1279 | ||
1280 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> | |
1281 | ||
1282 | * configure.ac: Remove [disable-shared] argument to LT_INIT. | |
1283 | Remove setting PIC_FLAG when building as target library. | |
1284 | * configure: Regenerate. | |
1285 | ||
1286 | 2015-08-26 Hans-Peter Nilsson <hp@axis.com> | |
1287 | ||
1288 | * configure.ac: Only compile with -fPIC if the target | |
1289 | supports it. | |
1290 | * configure: Regenerate. | |
1291 | ||
1292 | 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> | |
1293 | ||
1294 | * configure.ac: Set have_mmap to no on spu-*-* targets. | |
1295 | * configure: Regenerate. | |
1296 | ||
1297 | 2015-08-13 Ian Lance Taylor <iant@google.com> | |
1298 | ||
1299 | * dwarf.c (read_function_entry): Add vec_inlined parameter. | |
1300 | Change all callers. | |
1301 | ||
1302 | 2015-06-11 Martin Sebor <msebor@redhat.com> | |
1303 | ||
1304 | PR sanitizer/65479 | |
1305 | * dwarf.c (struct line): Add new field idx. | |
1306 | (line_compare): Use it. | |
1307 | (add_line): Set it. | |
1308 | (read_line_info): Reset it. | |
1309 | ||
1310 | 2015-05-29 Tristan Gingold <gingold@adacore.com> | |
1311 | ||
1312 | * pecoff.c: New file. | |
1313 | * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. | |
1314 | * Makefile.in: Regenerate. | |
1315 | * filetype.awk: Detect pecoff. | |
1316 | * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. | |
1317 | Add pecoff. | |
1318 | * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is | |
1319 | true. | |
1320 | * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. | |
1321 | * configure: Regenerate. | |
1322 | * pecoff.c: New file. | |
1323 | ||
1324 | 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | |
1325 | ||
1326 | * Makefile.in: Regenerated with automake-1.11.6. | |
1327 | * aclocal.m4: Likewise. | |
1328 | * configure: Likewise. | |
1329 | ||
1330 | 2015-01-24 Matthias Klose <doko@ubuntu.com> | |
1331 | ||
1332 | * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. | |
1333 | * configure: Regenerate. | |
1334 | ||
1335 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> | |
1336 | ||
1337 | Update copyright years. | |
1338 | ||
1339 | 2014-11-21 H.J. Lu <hongjiu.lu@intel.com> | |
1340 | ||
1341 | PR bootstrap/63784 | |
1342 | * configure: Regenerated. | |
1343 | ||
1344 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> | |
1345 | ||
1346 | * ChangeLog.jit: New. | |
1347 | ||
1348 | 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | |
1349 | ||
1350 | PR target/63610 | |
1351 | * configure: Regenerate. | |
1352 | ||
1353 | 2014-10-23 Ian Lance Taylor <iant@google.com> | |
1354 | ||
1355 | * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: | |
1356 | Fix to return void *. | |
1357 | ||
1358 | 2014-05-08 Ian Lance Taylor <iant@google.com> | |
1359 | ||
1360 | * mmap.c (backtrace_free): If freeing a large aligned block of | |
1361 | memory, call munmap rather than holding onto it. | |
1362 | (backtrace_vector_grow): When growing a vector, double the number | |
1363 | of pages requested. When releasing the old version of a grown | |
1364 | vector, pass the correct size to backtrace_free. | |
1365 | ||
1366 | 2014-03-07 Ian Lance Taylor <iant@google.com> | |
1367 | ||
1368 | * sort.c (backtrace_qsort): Use middle element as pivot. | |
1369 | ||
1370 | 2014-03-06 Ian Lance Taylor <iant@google.com> | |
1371 | ||
1372 | * sort.c: New file. | |
1373 | * stest.c: New file. | |
1374 | * internal.h (backtrace_qsort): Declare. | |
1375 | * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. | |
1376 | (read_line_info, read_function_entry): Likewise. | |
1377 | (read_function_info, build_dwarf_data): Likewise. | |
1378 | * elf.c (elf_initialize_syminfo): Likewise. | |
1379 | * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. | |
1380 | (stest_SOURCES, stest_LDADD): Define. | |
1381 | (check_PROGRAMS): Add stest. | |
1382 | ||
1383 | 2014-02-07 Misty De Meo <misty@brew.sh> | |
1384 | ||
1385 | PR target/58710 | |
1386 | * configure.ac: Use AC_LINK_IFELSE in check for | |
1387 | _Unwind_GetIPInfo. | |
1388 | * configure: Regenerate. | |
1389 | ||
1390 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> | |
1391 | ||
1392 | Update copyright years | |
1393 | ||
1394 | 2013-12-06 Jakub Jelinek <jakub@redhat.com> | |
1395 | ||
1396 | * elf.c (ET_DYN): Undefine and define again. | |
1397 | (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, | |
1398 | return early -1 without closing the descriptor. | |
1399 | (struct phdr_data): Add exe_descriptor. | |
1400 | (phdr_callback): If pd->exe_descriptor is not -1, for very first | |
1401 | call if dlpi_name is NULL just call elf_add with the exe_descriptor, | |
1402 | otherwise backtrace_close the exe_descriptor if not -1. Adjust | |
1403 | call to elf_add. | |
1404 | (backtrace_initialize): Adjust call to elf_add. If it returns | |
1405 | -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. | |
1406 | ||
1407 | 2013-12-05 Ian Lance Taylor <iant@google.com> | |
1408 | ||
1409 | * alloc.c (backtrace_vector_finish): Add error_callback and data | |
1410 | parameters. Call backtrace_vector_release. Return address base. | |
1411 | * mmap.c (backtrace_vector_finish): Add error_callback and data | |
1412 | parameters. Return address base. | |
1413 | * dwarf.c (read_function_info): Get new address base from | |
1414 | backtrace_vector_finish. | |
1415 | * internal.h (backtrace_vector_finish): Update declaration. | |
1416 | ||
1417 | 2013-11-27 Ian Lance Taylor <iant@google.com> | |
1418 | ||
1419 | * dwarf.c (find_address_ranges): New static function, broken out | |
1420 | of build_address_map. | |
1421 | (build_address_map): Call it. | |
1422 | * btest.c (check): Check for missing filename or function, rather | |
1423 | than crashing. | |
1424 | (f3): Check that enough frames were returned. | |
1425 | ||
1426 | 2013-11-19 Jakub Jelinek <jakub@redhat.com> | |
1427 | ||
1428 | * backtrace.h (backtrace_syminfo_callback): Add symsize argument. | |
1429 | * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as | |
1430 | last argument. | |
1431 | * btest.c (struct symdata): Add size field. | |
1432 | (callback_three): Add symsize argument. Copy it to the data->size | |
1433 | field. | |
1434 | (f23): Set symdata.size to 0. | |
1435 | (test5): Likewise. If sizeof (int) > 1, lookup address of | |
1436 | ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size | |
1437 | values. | |
1438 | ||
1439 | * atomic.c: Include sys/types.h. | |
1440 | ||
1441 | 2013-11-18 Ian Lance Taylor <iant@google.com> | |
1442 | ||
1443 | * configure.ac: Check for support of __atomic extensions. | |
1444 | * internal.h: Declare or #define atomic functions for use in | |
1445 | backtrace code. | |
1446 | * atomic.c: New file. | |
1447 | * dwarf.c (dwarf_lookup_pc): Use atomic functions. | |
1448 | (dwarf_fileline, backtrace_dwarf_add): Likewise. | |
1449 | * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. | |
1450 | (backtrace_initialize): Likewise. | |
1451 | * fileline.c (fileline_initialize): Likewise. | |
1452 | * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. | |
1453 | * configure, config.h.in, Makefile.in: Rebuild. | |
1454 | ||
1455 | 2013-11-18 Jakub Jelinek <jakub@redhat.com> | |
1456 | ||
1457 | * elf.c (SHN_UNDEF): Define. | |
1458 | (elf_initialize_syminfo): Add base_address argument. Ignore symbols | |
1459 | with st_shndx == SHN_UNDEF. Add base_address to address fields. | |
1460 | (elf_add): Adjust caller. | |
1461 | ||
1462 | * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. | |
1463 | ||
1464 | 2013-11-16 Ian Lance Taylor <iant@google.com> | |
1465 | ||
1466 | * backtrace.h (backtrace_create_state): Correct comment about | |
1467 | threading. | |
1468 | ||
1469 | 2013-11-15 Ian Lance Taylor <iant@google.com> | |
1470 | ||
1471 | * backtrace.h (backtrace_syminfo): Update comment and parameter | |
1472 | name to take any address, not just a PC value. | |
1473 | * elf.c (STT_OBJECT): Define. | |
1474 | (elf_nosyms): Rename parameter pc to addr. | |
1475 | (elf_symbol_search): Rename local variable pc to addr. | |
1476 | (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. | |
1477 | (elf_syminfo): Rename parameter pc to addr. | |
1478 | * btest.c (global): New global variable. | |
1479 | (test5): New test. | |
1480 | (main): Call test5. | |
1481 | ||
1482 | 2013-10-17 Ian Lance Taylor <iant@google.com> | |
1483 | ||
1484 | * elf.c (elf_add): Don't get the wrong offsets if a debug section | |
1485 | is missing. | |
1486 | ||
1487 | 2013-10-15 David Malcolm <dmalcolm@redhat.com> | |
1488 | ||
1489 | * configure.ac: Add --enable-host-shared, setting up | |
1490 | pre-existing PIC_FLAG variable within Makefile.am et al. | |
1491 | * configure: Regenerate. | |
1492 | ||
1493 | 2013-09-20 Alan Modra <amodra@gmail.com> | |
1494 | ||
1495 | * configure: Regenerate. | |
1496 | ||
1497 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> | |
1498 | ||
1499 | * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. | |
1500 | ||
1501 | 2013-07-23 Alexander Monakov <amonakov@ispras.ru> | |
1502 | ||
1503 | * elf.c (backtrace_initialize): Pass elf_fileline_fn to | |
1504 | dl_iterate_phdr callbacks. | |
1505 | ||
1506 | 2013-03-25 Ian Lance Taylor <iant@google.com> | |
1507 | ||
1508 | * alloc.c: #include <sys/types.h>. | |
1509 | * mmap.c: Likewise. | |
1510 | ||
1511 | 2013-01-31 Ian Lance Taylor <iant@google.com> | |
1512 | ||
1513 | * dwarf.c (read_function_info): Permit fvec parameter to be NULL. | |
1514 | (dwarf_lookup_pc): Don't use ddata->fvec if threaded. | |
1515 | ||
1516 | 2013-01-25 Jakub Jelinek <jakub@redhat.com> | |
1517 | ||
1518 | PR other/56076 | |
1519 | * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir | |
1520 | attribute was not seen. | |
1521 | ||
1522 | 2013-01-16 Ian Lance Taylor <iant@google.com> | |
1523 | ||
1524 | * dwarf.c (struct unit): Add filename and abs_filename fields. | |
1525 | (build_address_map): Set new fields when reading unit. | |
1526 | (dwarf_lookup_pc): If we don't find an entry in the line table, | |
1527 | just return the main file name. | |
1528 | ||
1529 | 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com> | |
1530 | ||
1531 | Update copyright years. | |
1532 | ||
1533 | 2013-01-01 Ian Lance Taylor <iant@google.com> | |
1534 | ||
1535 | PR bootstrap/54834 | |
1536 | * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I | |
1537 | $(MULTIBUILDTOP)/../../gcc/include. | |
1538 | * Makefile.in: Rebuild. | |
1539 | ||
1540 | 2013-01-01 Ian Lance Taylor <iant@google.com> | |
1541 | ||
1542 | PR other/55536 | |
1543 | * mmap.c (backtrace_alloc): Don't call sync functions if not | |
1544 | threaded. | |
1545 | (backtrace_free): Likewise. | |
1546 | ||
1547 | 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
1548 | ||
1549 | * mmapio.c: Define MAP_FAILED if not defined. | |
1550 | ||
1551 | 2012-12-11 Jakub Jelinek <jakub@redhat.com> | |
1552 | ||
1553 | PR bootstrap/54926 | |
1554 | * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. | |
1555 | * configure.ac: If --with-target-subdir, add -frandom-seed=$@ | |
1556 | to EXTRA_FLAGS unconditionally, otherwise check whether the compiler | |
1557 | accepts it. | |
1558 | * Makefile.in: Regenerated. | |
1559 | * configure: Regenerated. | |
1560 | ||
1561 | 2012-12-07 Jakub Jelinek <jakub@redhat.com> | |
1562 | ||
1563 | PR bootstrap/54926 | |
1564 | * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. | |
1565 | * Makefile.in: Regenerated. | |
1566 | ||
1567 | 2012-11-20 Ian Lance Taylor <iant@google.com> | |
1568 | ||
1569 | * dwarf.c (read_attribute): Always clear val. | |
1570 | ||
1571 | 2012-11-13 Ian Lance Taylor <iant@google.com> | |
1572 | ||
1573 | PR other/55312 | |
1574 | * configure.ac: Only add -Werror if building a target library. | |
1575 | * configure: Rebuild. | |
1576 | ||
1577 | 2012-11-12 Ian Lance Taylor <iant@google.com> | |
1578 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1579 | Gerald Pfeifer <gerald@pfeifer.com> | |
1580 | ||
1581 | * configure.ac: Check for getexecname. | |
1582 | * fileline.c: #include <errno.h>. Define getexecname if not | |
1583 | available. | |
1584 | (fileline_initialize): Try to find the executable in a few | |
1585 | different ways. | |
1586 | * print.c (error_callback): Only print the filename if it came | |
1587 | from the backtrace state. | |
1588 | * configure, config.h.in: Rebuild. | |
1589 | ||
1590 | 2012-10-29 Ian Lance Taylor <iant@google.com> | |
1591 | ||
1592 | * mmap.c (backtrace_vector_release): Correct last patch: add | |
1593 | aligned, not size. | |
1594 | ||
1595 | 2012-10-29 Ian Lance Taylor <iant@google.com> | |
1596 | ||
1597 | * mmap.c (backtrace_vector_release): Make sure freed block is | |
1598 | aligned on 8-byte boundary. | |
1599 | ||
1600 | 2012-10-26 Ian Lance Taylor <iant@google.com> | |
1601 | ||
1602 | PR other/55087 | |
1603 | * posix.c (backtrace_open): Add does_not_exist parameter. | |
1604 | * elf.c (phdr_callback): Do not warn if shared library could not | |
1605 | be opened. | |
1606 | * fileline.c (fileline_initialize): Update calls to | |
1607 | backtrace_open. | |
1608 | * internal.h (backtrace_open): Update declaration. | |
1609 | ||
1610 | 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> | |
1611 | ||
1612 | PR target/55061 | |
1613 | * configure.ac: Check for _Unwind_GetIPInfo function declaration. | |
1614 | * configure: Regenerate. | |
1615 | ||
1616 | 2012-10-24 Ian Lance Taylor <iant@google.com> | |
1617 | ||
1618 | PR target/55061 | |
1619 | * configure.ac: Check whether -funwind-tables option works. | |
1620 | * configure: Rebuild. | |
1621 | ||
1622 | 2012-10-11 Ian Lance Taylor <iant@google.com> | |
1623 | ||
1624 | * configure.ac: Do not use dl_iterate_phdr on Solaris 10. | |
1625 | * configure: Rebuild. | |
1626 | ||
1627 | 2012-10-10 Ian Lance Taylor <iant@google.com> | |
1628 | ||
1629 | * elf.c: Rename all Elf typedefs to start with b_elf, and be all | |
1630 | lower case. | |
1631 | ||
1632 | 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com> | |
1633 | ||
1634 | * elf.c (elf_add_syminfo_data): Add casts to avoid warning. | |
1635 | ||
1636 | 2012-10-09 Ian Lance Taylor <iant@google.com> | |
1637 | ||
1638 | * dwarf.c (dwarf_fileline): Add cast to avoid warning. | |
1639 | (backtrace_dwarf_add): Likewise. | |
1640 | ||
1641 | 2012-10-09 Ian Lance Taylor <iant@google.com> | |
1642 | ||
1643 | Add support for tracing through shared libraries. | |
1644 | * configure.ac: Check for link.h and dl_iterate_phdr. | |
1645 | * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef | |
1646 | ELF macros before #defining them. | |
1647 | (dl_phdr_info, dl_iterate_phdr): Define if system does not have | |
1648 | dl_iterate_phdr. | |
1649 | (struct elf_syminfo_data): Add next field. | |
1650 | (elf_initialize_syminfo): Initialize next field. | |
1651 | (elf_add_syminfo_data): New static function. | |
1652 | (elf_add): New static function, broken out of | |
1653 | backtrace_initialize. Call backtrace_dwarf_add instead of | |
1654 | backtrace_dwarf_initialize. | |
1655 | (struct phdr_data): Define. | |
1656 | (phdr_callback): New static function. | |
1657 | (backtrace_initialize): Call elf_add. | |
1658 | * dwarf.c (struct dwarf_data): Add next and base_address fields. | |
1659 | (add_unit_addr): Add base_address parameter. Change all callers. | |
1660 | (add_unit_ranges, build_address_map): Likewise. | |
1661 | (add_line): Add ddata parameter. Change all callers. | |
1662 | (read_line_program, add_function_range): Likewise. | |
1663 | (dwarf_lookup_pc): New static function, broken out of | |
1664 | dwarf_fileline. | |
1665 | (dwarf_fileline): Call dwarf_lookup_pc. | |
1666 | (build_dwarf_data): New static function. | |
1667 | (backtrace_dwarf_add): New function. | |
1668 | (backtrace_dwarf_initialize): Remove. | |
1669 | * internal.h (backtrace_dwarf_initialize): Don't declare. | |
1670 | (backtrace_dwarf_add): Declare. | |
1671 | * configure, config.h.in: Rebuild. | |
1672 | ||
1673 | 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com> | |
1674 | ||
1675 | * btest.c (f23): Avoid uninitialized variable warning. | |
1676 | ||
1677 | 2012-10-04 Ian Lance Taylor <iant@google.com> | |
1678 | ||
1679 | * dwarf.c: If the system header files do not declare strnlen, | |
1680 | provide our own version. | |
1681 | ||
1682 | 2012-10-03 Ian Lance Taylor <iant@google.com> | |
1683 | ||
1684 | * dwarf.c (read_uleb128): Fix overflow test. | |
1685 | (read_sleb128): Likewise. | |
1686 | (build_address_map): Don't change unit_buf.start. | |
1687 | ||
1688 | 2012-10-02 Uros Bizjak <ubizjak@gmail.com> | |
1689 | ||
1690 | PR other/54761 | |
1691 | * configure.ac (EXTRA_FLAGS): New. | |
1692 | * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). | |
1693 | * configure, Makefile.in: Regenerate. | |
1694 | ||
1695 | 2012-09-29 Ian Lance Taylor <iant@google.com> | |
1696 | ||
1697 | PR other/54749 | |
1698 | * fileline.c (fileline_initialize): Pass errnum as -1 when | |
1699 | reporting that we could not read executable information after a | |
1700 | previous failure. | |
1701 | ||
1702 | 2012-09-27 Ian Lance Taylor <iant@google.com> | |
1703 | ||
1704 | PR bootstrap/54732 | |
1705 | * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. | |
1706 | * Makefile.am: Add dependencies for all objects. | |
1707 | * configure, aclocal.m4, Makefile.in: Rebuild. | |
1708 | ||
1709 | 2012-09-27 Ian Lance Taylor <iant@google.com> | |
1710 | ||
1711 | PR other/54726 | |
1712 | * elf.c (backtrace_initialize): Set *fileln_fn, not | |
1713 | state->fileln_fn. | |
1714 | ||
1715 | 2012-09-19 Ian Lance Taylor <iant@google.com> | |
1716 | ||
1717 | * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled | |
1718 | as a target library. | |
1719 | * configure: Rebuild. | |
1720 | ||
1721 | 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1722 | Ian Lance Taylor <iant@google.com> | |
1723 | ||
1724 | * configure.ac (GCC_HEADER_STDINT): Invoke. | |
1725 | * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". | |
1726 | * btest.c: Don't include <stdint.h>. | |
1727 | * dwarf.c: Likewise. | |
1728 | * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. | |
1729 | ||
1730 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1731 | ||
1732 | PR bootstrap/54623 | |
1733 | * Makefile.am (AM_CPPFLAGS): Define. | |
1734 | (AM_CFLAGS): Remove -I options. | |
1735 | * Makefile.in: Rebuild. | |
1736 | ||
1737 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1738 | ||
1739 | * posix.c (O_BINARY): Define if not defined. | |
1740 | (backtrace_open): Pass O_BINARY to open. Only call fcntl if | |
1741 | HAVE_FCNTL is defined. | |
1742 | * configure.ac: Test for the fcntl function. | |
1743 | * configure, config.h.in: Rebuild. | |
1744 | ||
1745 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1746 | ||
1747 | * btest.c (test1, test2, test3, test4): Add the unused attribute. | |
1748 | ||
1749 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1750 | ||
1751 | * dwarf.c: Correct test of HAVE_DECL_STRNLEN. | |
1752 | ||
1753 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1754 | ||
1755 | * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. | |
1756 | * mmapio.c: Don't define _GNU_SOURCE. | |
1757 | * configure, config.h.in: Rebuild. | |
1758 | ||
1759 | 2012-09-18 Ian Lance Taylor <iant@google.com> | |
1760 | ||
1761 | * configure.ac: Check whether strnlen is declared. | |
1762 | * dwarf.c: Declare strnlen if not declared. | |
1763 | * configure, config.h.in: Rebuild. | |
1764 | ||
1765 | 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
1766 | ||
1767 | * fileline.c: Include <stdlib.h>. | |
1768 | * mmap.c: Likewise. | |
1769 | ||
1770 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
1771 | ||
1772 | PR bootstrap/54611 | |
1773 | * nounwind.c (backtrace_full): Rename from backtrace. Add state | |
1774 | parameter. | |
1775 | ||
1776 | 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com> | |
1777 | ||
1778 | PR bootstrap/54611 | |
1779 | * nounwind.c (backtrace_simple): Add state parameter. | |
1780 | ||
1781 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
1782 | ||
1783 | PR bootstrap/54609 | |
1784 | * unknown.c (unknown_fileline): Add state parameter, remove | |
1785 | fileline_data parameter, name error_callback parameter. | |
1786 | (backtrace_initialize): Add state parameter. | |
1787 | ||
1788 | 2012-09-17 Ian Lance Taylor <iant@google.com> | |
1789 | ||
1790 | * Initial implementation. | |
1791 | \f | |
1792 | Copyright (C) 2012-2021 Free Software Foundation, Inc. | |
1793 | ||
1794 | Copying and distribution of this file, with or without modification, | |
1795 | are permitted in any medium without royalty provided the copyright | |
1796 | notice and this notice are preserved. |