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