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