]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/ChangeLog
sort.c: New file.
[thirdparty/gcc.git] / libbacktrace / ChangeLog
1 2014-03-06 Ian Lance Taylor <iant@google.com>
2
3 * sort.c: New file.
4 * stest.c: New file.
5 * internal.h (backtrace_qsort): Declare.
6 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
7 (read_line_info, read_function_entry): Likewise.
8 (read_function_info, build_dwarf_data): Likewise.
9 * elf.c (elf_initialize_syminfo): Likewise.
10 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
11 (stest_SOURCES, stest_LDADD): Define.
12 (check_PROGRAMS): Add stest.
13
14 2014-02-07 Misty De Meo <misty@brew.sh>
15
16 PR target/58710
17 * configure.ac: Use AC_LINK_IFELSE in check for
18 _Unwind_GetIPInfo.
19 * configure: Regenerate.
20
21 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22
23 Update copyright years
24
25 2013-12-06 Jakub Jelinek <jakub@redhat.com>
26
27 * elf.c (ET_DYN): Undefine and define again.
28 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
29 return early -1 without closing the descriptor.
30 (struct phdr_data): Add exe_descriptor.
31 (phdr_callback): If pd->exe_descriptor is not -1, for very first
32 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
33 otherwise backtrace_close the exe_descriptor if not -1. Adjust
34 call to elf_add.
35 (backtrace_initialize): Adjust call to elf_add. If it returns
36 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
37
38 2013-12-05 Ian Lance Taylor <iant@google.com>
39
40 * alloc.c (backtrace_vector_finish): Add error_callback and data
41 parameters. Call backtrace_vector_release. Return address base.
42 * mmap.c (backtrace_vector_finish): Add error_callback and data
43 parameters. Return address base.
44 * dwarf.c (read_function_info): Get new address base from
45 backtrace_vector_finish.
46 * internal.h (backtrace_vector_finish): Update declaration.
47
48 2013-11-27 Ian Lance Taylor <iant@google.com>
49
50 * dwarf.c (find_address_ranges): New static function, broken out
51 of build_address_map.
52 (build_address_map): Call it.
53 * btest.c (check): Check for missing filename or function, rather
54 than crashing.
55 (f3): Check that enough frames were returned.
56
57 2013-11-19 Jakub Jelinek <jakub@redhat.com>
58
59 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
60 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
61 last argument.
62 * btest.c (struct symdata): Add size field.
63 (callback_three): Add symsize argument. Copy it to the data->size
64 field.
65 (f23): Set symdata.size to 0.
66 (test5): Likewise. If sizeof (int) > 1, lookup address of
67 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
68 values.
69
70 * atomic.c: Include sys/types.h.
71
72 2013-11-18 Ian Lance Taylor <iant@google.com>
73
74 * configure.ac: Check for support of __atomic extensions.
75 * internal.h: Declare or #define atomic functions for use in
76 backtrace code.
77 * atomic.c: New file.
78 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
79 (dwarf_fileline, backtrace_dwarf_add): Likewise.
80 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
81 (backtrace_initialize): Likewise.
82 * fileline.c (fileline_initialize): Likewise.
83 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
84 * configure, config.h.in, Makefile.in: Rebuild.
85
86 2013-11-18 Jakub Jelinek <jakub@redhat.com>
87
88 * elf.c (SHN_UNDEF): Define.
89 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
90 with st_shndx == SHN_UNDEF. Add base_address to address fields.
91 (elf_add): Adjust caller.
92
93 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
94
95 2013-11-16 Ian Lance Taylor <iant@google.com>
96
97 * backtrace.h (backtrace_create_state): Correct comment about
98 threading.
99
100 2013-11-15 Ian Lance Taylor <iant@google.com>
101
102 * backtrace.h (backtrace_syminfo): Update comment and parameter
103 name to take any address, not just a PC value.
104 * elf.c (STT_OBJECT): Define.
105 (elf_nosyms): Rename parameter pc to addr.
106 (elf_symbol_search): Rename local variable pc to addr.
107 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
108 (elf_syminfo): Rename parameter pc to addr.
109 * btest.c (global): New global variable.
110 (test5): New test.
111 (main): Call test5.
112
113 2013-10-17 Ian Lance Taylor <iant@google.com>
114
115 * elf.c (elf_add): Don't get the wrong offsets if a debug section
116 is missing.
117
118 2013-10-15 David Malcolm <dmalcolm@redhat.com>
119
120 * configure.ac: Add --enable-host-shared, setting up
121 pre-existing PIC_FLAG variable within Makefile.am et al.
122 * configure: Regenerate.
123
124 2013-09-20 Alan Modra <amodra@gmail.com>
125
126 * configure: Regenerate.
127
128 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
129
130 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
131
132 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
133
134 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
135 dl_iterate_phdr callbacks.
136
137 2013-03-25 Ian Lance Taylor <iant@google.com>
138
139 * alloc.c: #include <sys/types.h>.
140 * mmap.c: Likewise.
141
142 2013-01-31 Ian Lance Taylor <iant@google.com>
143
144 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
145 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
146
147 2013-01-25 Jakub Jelinek <jakub@redhat.com>
148
149 PR other/56076
150 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
151 attribute was not seen.
152
153 2013-01-16 Ian Lance Taylor <iant@google.com>
154
155 * dwarf.c (struct unit): Add filename and abs_filename fields.
156 (build_address_map): Set new fields when reading unit.
157 (dwarf_lookup_pc): If we don't find an entry in the line table,
158 just return the main file name.
159
160 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
161
162 Update copyright years.
163
164 2013-01-01 Ian Lance Taylor <iant@google.com>
165
166 PR bootstrap/54834
167 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
168 $(MULTIBUILDTOP)/../../gcc/include.
169 * Makefile.in: Rebuild.
170
171 2013-01-01 Ian Lance Taylor <iant@google.com>
172
173 PR other/55536
174 * mmap.c (backtrace_alloc): Don't call sync functions if not
175 threaded.
176 (backtrace_free): Likewise.
177
178 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
179
180 * mmapio.c: Define MAP_FAILED if not defined.
181
182 2012-12-11 Jakub Jelinek <jakub@redhat.com>
183
184 PR bootstrap/54926
185 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
186 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
187 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
188 accepts it.
189 * Makefile.in: Regenerated.
190 * configure: Regenerated.
191
192 2012-12-07 Jakub Jelinek <jakub@redhat.com>
193
194 PR bootstrap/54926
195 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
196 * Makefile.in: Regenerated.
197
198 2012-11-20 Ian Lance Taylor <iant@google.com>
199
200 * dwarf.c (read_attribute): Always clear val.
201
202 2012-11-13 Ian Lance Taylor <iant@google.com>
203
204 PR other/55312
205 * configure.ac: Only add -Werror if building a target library.
206 * configure: Rebuild.
207
208 2012-11-12 Ian Lance Taylor <iant@google.com>
209 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210 Gerald Pfeifer <gerald@pfeifer.com>
211
212 * configure.ac: Check for getexecname.
213 * fileline.c: #include <errno.h>. Define getexecname if not
214 available.
215 (fileline_initialize): Try to find the executable in a few
216 different ways.
217 * print.c (error_callback): Only print the filename if it came
218 from the backtrace state.
219 * configure, config.h.in: Rebuild.
220
221 2012-10-29 Ian Lance Taylor <iant@google.com>
222
223 * mmap.c (backtrace_vector_release): Correct last patch: add
224 aligned, not size.
225
226 2012-10-29 Ian Lance Taylor <iant@google.com>
227
228 * mmap.c (backtrace_vector_release): Make sure freed block is
229 aligned on 8-byte boundary.
230
231 2012-10-26 Ian Lance Taylor <iant@google.com>
232
233 PR other/55087
234 * posix.c (backtrace_open): Add does_not_exist parameter.
235 * elf.c (phdr_callback): Do not warn if shared library could not
236 be opened.
237 * fileline.c (fileline_initialize): Update calls to
238 backtrace_open.
239 * internal.h (backtrace_open): Update declaration.
240
241 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
242
243 PR target/55061
244 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
245 * configure: Regenerate.
246
247 2012-10-24 Ian Lance Taylor <iant@google.com>
248
249 PR target/55061
250 * configure.ac: Check whether -funwind-tables option works.
251 * configure: Rebuild.
252
253 2012-10-11 Ian Lance Taylor <iant@google.com>
254
255 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
256 * configure: Rebuild.
257
258 2012-10-10 Ian Lance Taylor <iant@google.com>
259
260 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
261 lower case.
262
263 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
264
265 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
266
267 2012-10-09 Ian Lance Taylor <iant@google.com>
268
269 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
270 (backtrace_dwarf_add): Likewise.
271
272 2012-10-09 Ian Lance Taylor <iant@google.com>
273
274 Add support for tracing through shared libraries.
275 * configure.ac: Check for link.h and dl_iterate_phdr.
276 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
277 ELF macros before #defining them.
278 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
279 dl_iterate_phdr.
280 (struct elf_syminfo_data): Add next field.
281 (elf_initialize_syminfo): Initialize next field.
282 (elf_add_syminfo_data): New static function.
283 (elf_add): New static function, broken out of
284 backtrace_initialize. Call backtrace_dwarf_add instead of
285 backtrace_dwarf_initialize.
286 (struct phdr_data): Define.
287 (phdr_callback): New static function.
288 (backtrace_initialize): Call elf_add.
289 * dwarf.c (struct dwarf_data): Add next and base_address fields.
290 (add_unit_addr): Add base_address parameter. Change all callers.
291 (add_unit_ranges, build_address_map): Likewise.
292 (add_line): Add ddata parameter. Change all callers.
293 (read_line_program, add_function_range): Likewise.
294 (dwarf_lookup_pc): New static function, broken out of
295 dwarf_fileline.
296 (dwarf_fileline): Call dwarf_lookup_pc.
297 (build_dwarf_data): New static function.
298 (backtrace_dwarf_add): New function.
299 (backtrace_dwarf_initialize): Remove.
300 * internal.h (backtrace_dwarf_initialize): Don't declare.
301 (backtrace_dwarf_add): Declare.
302 * configure, config.h.in: Rebuild.
303
304 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
305
306 * btest.c (f23): Avoid uninitialized variable warning.
307
308 2012-10-04 Ian Lance Taylor <iant@google.com>
309
310 * dwarf.c: If the system header files do not declare strnlen,
311 provide our own version.
312
313 2012-10-03 Ian Lance Taylor <iant@google.com>
314
315 * dwarf.c (read_uleb128): Fix overflow test.
316 (read_sleb128): Likewise.
317 (build_address_map): Don't change unit_buf.start.
318
319 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
320
321 PR other/54761
322 * configure.ac (EXTRA_FLAGS): New.
323 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
324 * configure, Makefile.in: Regenerate.
325
326 2012-09-29 Ian Lance Taylor <iant@google.com>
327
328 PR other/54749
329 * fileline.c (fileline_initialize): Pass errnum as -1 when
330 reporting that we could not read executable information after a
331 previous failure.
332
333 2012-09-27 Ian Lance Taylor <iant@google.com>
334
335 PR bootstrap/54732
336 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
337 * Makefile.am: Add dependencies for all objects.
338 * configure, aclocal.m4, Makefile.in: Rebuild.
339
340 2012-09-27 Ian Lance Taylor <iant@google.com>
341
342 PR other/54726
343 * elf.c (backtrace_initialize): Set *fileln_fn, not
344 state->fileln_fn.
345
346 2012-09-19 Ian Lance Taylor <iant@google.com>
347
348 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
349 as a target library.
350 * configure: Rebuild.
351
352 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353 Ian Lance Taylor <iant@google.com>
354
355 * configure.ac (GCC_HEADER_STDINT): Invoke.
356 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
357 * btest.c: Don't include <stdint.h>.
358 * dwarf.c: Likewise.
359 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
360
361 2012-09-18 Ian Lance Taylor <iant@google.com>
362
363 PR bootstrap/54623
364 * Makefile.am (AM_CPPFLAGS): Define.
365 (AM_CFLAGS): Remove -I options.
366 * Makefile.in: Rebuild.
367
368 2012-09-18 Ian Lance Taylor <iant@google.com>
369
370 * posix.c (O_BINARY): Define if not defined.
371 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
372 HAVE_FCNTL is defined.
373 * configure.ac: Test for the fcntl function.
374 * configure, config.h.in: Rebuild.
375
376 2012-09-18 Ian Lance Taylor <iant@google.com>
377
378 * btest.c (test1, test2, test3, test4): Add the unused attribute.
379
380 2012-09-18 Ian Lance Taylor <iant@google.com>
381
382 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
383
384 2012-09-18 Ian Lance Taylor <iant@google.com>
385
386 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
387 * mmapio.c: Don't define _GNU_SOURCE.
388 * configure, config.h.in: Rebuild.
389
390 2012-09-18 Ian Lance Taylor <iant@google.com>
391
392 * configure.ac: Check whether strnlen is declared.
393 * dwarf.c: Declare strnlen if not declared.
394 * configure, config.h.in: Rebuild.
395
396 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397
398 * fileline.c: Include <stdlib.h>.
399 * mmap.c: Likewise.
400
401 2012-09-17 Ian Lance Taylor <iant@google.com>
402
403 PR bootstrap/54611
404 * nounwind.c (backtrace_full): Rename from backtrace. Add state
405 parameter.
406
407 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
408
409 PR bootstrap/54611
410 * nounwind.c (backtrace_simple): Add state parameter.
411
412 2012-09-17 Ian Lance Taylor <iant@google.com>
413
414 PR bootstrap/54609
415 * unknown.c (unknown_fileline): Add state parameter, remove
416 fileline_data parameter, name error_callback parameter.
417 (backtrace_initialize): Add state parameter.
418
419 2012-09-17 Ian Lance Taylor <iant@google.com>
420
421 * Initial implementation.