]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
Always use PIC option with -shared in libtool
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
a699d672
L
12014-11-21 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR bootstrap/63784
4 * configure: Regenerated.
5
35485da9
DM
62014-11-11 David Malcolm <dmalcolm@redhat.com>
7
8 * ChangeLog.jit: New.
9
ebf6d33b
FXC
102014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11
12 PR target/63610
13 * configure: Regenerate.
14
c96601d2
ILT
152014-10-23 Ian Lance Taylor <iant@google.com>
16
17 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
18 Fix to return void *.
19
d573fd89
ILT
202014-05-08 Ian Lance Taylor <iant@google.com>
21
22 * mmap.c (backtrace_free): If freeing a large aligned block of
23 memory, call munmap rather than holding onto it.
24 (backtrace_vector_grow): When growing a vector, double the number
25 of pages requested. When releasing the old version of a grown
26 vector, pass the correct size to backtrace_free.
27
dbe20842
ILT
282014-03-07 Ian Lance Taylor <iant@google.com>
29
30 * sort.c (backtrace_qsort): Use middle element as pivot.
31
c5604b48
ILT
322014-03-06 Ian Lance Taylor <iant@google.com>
33
34 * sort.c: New file.
35 * stest.c: New file.
36 * internal.h (backtrace_qsort): Declare.
37 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
38 (read_line_info, read_function_entry): Likewise.
39 (read_function_info, build_dwarf_data): Likewise.
40 * elf.c (elf_initialize_syminfo): Likewise.
41 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
42 (stest_SOURCES, stest_LDADD): Define.
43 (check_PROGRAMS): Add stest.
44
63fefb4b
MDM
452014-02-07 Misty De Meo <misty@brew.sh>
46
47 PR target/58710
48 * configure.ac: Use AC_LINK_IFELSE in check for
49 _Unwind_GetIPInfo.
50 * configure: Regenerate.
51
afeba5cb
RS
522014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
53
54 Update copyright years
55
0284b52e
JJ
562013-12-06 Jakub Jelinek <jakub@redhat.com>
57
58 * elf.c (ET_DYN): Undefine and define again.
59 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
60 return early -1 without closing the descriptor.
61 (struct phdr_data): Add exe_descriptor.
62 (phdr_callback): If pd->exe_descriptor is not -1, for very first
63 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
64 otherwise backtrace_close the exe_descriptor if not -1. Adjust
65 call to elf_add.
66 (backtrace_initialize): Adjust call to elf_add. If it returns
67 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
68
bfd74f22
ILT
692013-12-05 Ian Lance Taylor <iant@google.com>
70
71 * alloc.c (backtrace_vector_finish): Add error_callback and data
72 parameters. Call backtrace_vector_release. Return address base.
73 * mmap.c (backtrace_vector_finish): Add error_callback and data
74 parameters. Return address base.
75 * dwarf.c (read_function_info): Get new address base from
76 backtrace_vector_finish.
77 * internal.h (backtrace_vector_finish): Update declaration.
78
b8ddd61b
ILT
792013-11-27 Ian Lance Taylor <iant@google.com>
80
81 * dwarf.c (find_address_ranges): New static function, broken out
82 of build_address_map.
83 (build_address_map): Call it.
84 * btest.c (check): Check for missing filename or function, rather
85 than crashing.
86 (f3): Check that enough frames were returned.
87
64856e1e
JJ
882013-11-19 Jakub Jelinek <jakub@redhat.com>
89
1f96a712
JJ
90 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
91 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
92 last argument.
93 * btest.c (struct symdata): Add size field.
94 (callback_three): Add symsize argument. Copy it to the data->size
95 field.
96 (f23): Set symdata.size to 0.
97 (test5): Likewise. If sizeof (int) > 1, lookup address of
98 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
99 values.
100
64856e1e
JJ
101 * atomic.c: Include sys/types.h.
102
49579c7e
ILT
1032013-11-18 Ian Lance Taylor <iant@google.com>
104
105 * configure.ac: Check for support of __atomic extensions.
106 * internal.h: Declare or #define atomic functions for use in
107 backtrace code.
108 * atomic.c: New file.
109 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
110 (dwarf_fileline, backtrace_dwarf_add): Likewise.
111 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
112 (backtrace_initialize): Likewise.
113 * fileline.c (fileline_initialize): Likewise.
114 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
115 * configure, config.h.in, Makefile.in: Rebuild.
116
582f5a2d
JJ
1172013-11-18 Jakub Jelinek <jakub@redhat.com>
118
f1857815
JJ
119 * elf.c (SHN_UNDEF): Define.
120 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
121 with st_shndx == SHN_UNDEF. Add base_address to address fields.
122 (elf_add): Adjust caller.
123
582f5a2d
JJ
124 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
125
25e6253e
ILT
1262013-11-16 Ian Lance Taylor <iant@google.com>
127
128 * backtrace.h (backtrace_create_state): Correct comment about
129 threading.
130
cfa658e4
ILT
1312013-11-15 Ian Lance Taylor <iant@google.com>
132
133 * backtrace.h (backtrace_syminfo): Update comment and parameter
134 name to take any address, not just a PC value.
135 * elf.c (STT_OBJECT): Define.
136 (elf_nosyms): Rename parameter pc to addr.
137 (elf_symbol_search): Rename local variable pc to addr.
138 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
139 (elf_syminfo): Rename parameter pc to addr.
140 * btest.c (global): New global variable.
141 (test5): New test.
142 (main): Call test5.
143
6c084a5b
ILT
1442013-10-17 Ian Lance Taylor <iant@google.com>
145
146 * elf.c (elf_add): Don't get the wrong offsets if a debug section
147 is missing.
148
459260ec
DM
1492013-10-15 David Malcolm <dmalcolm@redhat.com>
150
151 * configure.ac: Add --enable-host-shared, setting up
152 pre-existing PIC_FLAG variable within Makefile.am et al.
153 * configure: Regenerate.
154
3cbe17f7
AM
1552013-09-20 Alan Modra <amodra@gmail.com>
156
157 * configure: Regenerate.
158
78625ce6
AM
1592013-07-23 Alexander Monakov <amonakov@ispras.ru>
160
161 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
162
0153887c
AM
1632013-07-23 Alexander Monakov <amonakov@ispras.ru>
164
165 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
166 dl_iterate_phdr callbacks.
167
85d8c21e
ILT
1682013-03-25 Ian Lance Taylor <iant@google.com>
169
170 * alloc.c: #include <sys/types.h>.
171 * mmap.c: Likewise.
172
38811401
ILT
1732013-01-31 Ian Lance Taylor <iant@google.com>
174
175 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
176 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
177
1e678aed
JJ
1782013-01-25 Jakub Jelinek <jakub@redhat.com>
179
180 PR other/56076
181 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
182 attribute was not seen.
183
6b514c53
ILT
1842013-01-16 Ian Lance Taylor <iant@google.com>
185
186 * dwarf.c (struct unit): Add filename and abs_filename fields.
187 (build_address_map): Set new fields when reading unit.
188 (dwarf_lookup_pc): If we don't find an entry in the line table,
189 just return the main file name.
190
f8a7e1a4
RS
1912013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
192
193 Update copyright years.
194
c3de1960
ILT
1952013-01-01 Ian Lance Taylor <iant@google.com>
196
197 PR bootstrap/54834
198 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
199 $(MULTIBUILDTOP)/../../gcc/include.
200 * Makefile.in: Rebuild.
201
2a5195d9
ILT
2022013-01-01 Ian Lance Taylor <iant@google.com>
203
204 PR other/55536
205 * mmap.c (backtrace_alloc): Don't call sync functions if not
206 threaded.
207 (backtrace_free): Likewise.
208
85619b6f
JDA
2092012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
210
211 * mmapio.c: Define MAP_FAILED if not defined.
212
36a58fb3
JJ
2132012-12-11 Jakub Jelinek <jakub@redhat.com>
214
215 PR bootstrap/54926
216 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
217 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
218 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
219 accepts it.
220 * Makefile.in: Regenerated.
221 * configure: Regenerated.
222
a58dfde0
JJ
2232012-12-07 Jakub Jelinek <jakub@redhat.com>
224
225 PR bootstrap/54926
226 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
227 * Makefile.in: Regenerated.
228
b20ade36
ILT
2292012-11-20 Ian Lance Taylor <iant@google.com>
230
231 * dwarf.c (read_attribute): Always clear val.
232
73c3ed27
ILT
2332012-11-13 Ian Lance Taylor <iant@google.com>
234
235 PR other/55312
236 * configure.ac: Only add -Werror if building a target library.
2a5195d9 237 * configure: Rebuild.
73c3ed27 238
33521509
ILT
2392012-11-12 Ian Lance Taylor <iant@google.com>
240 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241 Gerald Pfeifer <gerald@pfeifer.com>
242
243 * configure.ac: Check for getexecname.
244 * fileline.c: #include <errno.h>. Define getexecname if not
245 available.
246 (fileline_initialize): Try to find the executable in a few
247 different ways.
248 * print.c (error_callback): Only print the filename if it came
249 from the backtrace state.
250 * configure, config.h.in: Rebuild.
251
8fe91dea
ILT
2522012-10-29 Ian Lance Taylor <iant@google.com>
253
254 * mmap.c (backtrace_vector_release): Correct last patch: add
255 aligned, not size.
256
8277de34
ILT
2572012-10-29 Ian Lance Taylor <iant@google.com>
258
259 * mmap.c (backtrace_vector_release): Make sure freed block is
260 aligned on 8-byte boundary.
261
73f41491
ILT
2622012-10-26 Ian Lance Taylor <iant@google.com>
263
264 PR other/55087
265 * posix.c (backtrace_open): Add does_not_exist parameter.
266 * elf.c (phdr_callback): Do not warn if shared library could not
267 be opened.
268 * fileline.c (fileline_initialize): Update calls to
269 backtrace_open.
270 * internal.h (backtrace_open): Update declaration.
271
385710cf
JH
2722012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
273
274 PR target/55061
275 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
276 * configure: Regenerate.
277
32061319
ILT
2782012-10-24 Ian Lance Taylor <iant@google.com>
279
280 PR target/55061
281 * configure.ac: Check whether -funwind-tables option works.
282 * configure: Rebuild.
283
5551b12c
ILT
2842012-10-11 Ian Lance Taylor <iant@google.com>
285
286 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
287 * configure: Rebuild.
288
40d15b5b
ILT
2892012-10-10 Ian Lance Taylor <iant@google.com>
290
291 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
292 lower case.
293
74f80620
HPN
2942012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
295
296 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
297
ce8aa074
ILT
2982012-10-09 Ian Lance Taylor <iant@google.com>
299
300 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
301 (backtrace_dwarf_add): Likewise.
302
e561a992
ILT
3032012-10-09 Ian Lance Taylor <iant@google.com>
304
305 Add support for tracing through shared libraries.
306 * configure.ac: Check for link.h and dl_iterate_phdr.
307 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
308 ELF macros before #defining them.
309 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
310 dl_iterate_phdr.
311 (struct elf_syminfo_data): Add next field.
312 (elf_initialize_syminfo): Initialize next field.
313 (elf_add_syminfo_data): New static function.
314 (elf_add): New static function, broken out of
315 backtrace_initialize. Call backtrace_dwarf_add instead of
316 backtrace_dwarf_initialize.
317 (struct phdr_data): Define.
318 (phdr_callback): New static function.
319 (backtrace_initialize): Call elf_add.
320 * dwarf.c (struct dwarf_data): Add next and base_address fields.
321 (add_unit_addr): Add base_address parameter. Change all callers.
322 (add_unit_ranges, build_address_map): Likewise.
323 (add_line): Add ddata parameter. Change all callers.
324 (read_line_program, add_function_range): Likewise.
325 (dwarf_lookup_pc): New static function, broken out of
326 dwarf_fileline.
327 (dwarf_fileline): Call dwarf_lookup_pc.
328 (build_dwarf_data): New static function.
329 (backtrace_dwarf_add): New function.
330 (backtrace_dwarf_initialize): Remove.
331 * internal.h (backtrace_dwarf_initialize): Don't declare.
332 (backtrace_dwarf_add): Declare.
333 * configure, config.h.in: Rebuild.
334
068ef6d1
GP
3352012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
336
337 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 338
244e2d9c
ILT
3392012-10-04 Ian Lance Taylor <iant@google.com>
340
341 * dwarf.c: If the system header files do not declare strnlen,
342 provide our own version.
343
be4ba8ae
ILT
3442012-10-03 Ian Lance Taylor <iant@google.com>
345
346 * dwarf.c (read_uleb128): Fix overflow test.
347 (read_sleb128): Likewise.
348 (build_address_map): Don't change unit_buf.start.
349
56195009
UB
3502012-10-02 Uros Bizjak <ubizjak@gmail.com>
351
faf86a02
UB
352 PR other/54761
353 * configure.ac (EXTRA_FLAGS): New.
56195009 354 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 355 * configure, Makefile.in: Regenerate.
56195009 356
8a447b3d
ILT
3572012-09-29 Ian Lance Taylor <iant@google.com>
358
359 PR other/54749
360 * fileline.c (fileline_initialize): Pass errnum as -1 when
361 reporting that we could not read executable information after a
362 previous failure.
363
af710874
ILT
3642012-09-27 Ian Lance Taylor <iant@google.com>
365
366 PR bootstrap/54732
367 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
368 * Makefile.am: Add dependencies for all objects.
369 * configure, aclocal.m4, Makefile.in: Rebuild.
370
588f4f8f
ILT
3712012-09-27 Ian Lance Taylor <iant@google.com>
372
373 PR other/54726
374 * elf.c (backtrace_initialize): Set *fileln_fn, not
375 state->fileln_fn.
376
64b89453
ILT
3772012-09-19 Ian Lance Taylor <iant@google.com>
378
379 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
380 as a target library.
381 * configure: Rebuild.
382
76850556
RO
3832012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
384 Ian Lance Taylor <iant@google.com>
385
386 * configure.ac (GCC_HEADER_STDINT): Invoke.
387 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
388 * btest.c: Don't include <stdint.h>.
389 * dwarf.c: Likewise.
390 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
391
9425c00b
ILT
3922012-09-18 Ian Lance Taylor <iant@google.com>
393
394 PR bootstrap/54623
395 * Makefile.am (AM_CPPFLAGS): Define.
396 (AM_CFLAGS): Remove -I options.
397 * Makefile.in: Rebuild.
398
3319ef17
ILT
3992012-09-18 Ian Lance Taylor <iant@google.com>
400
401 * posix.c (O_BINARY): Define if not defined.
402 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
403 HAVE_FCNTL is defined.
404 * configure.ac: Test for the fcntl function.
405 * configure, config.h.in: Rebuild.
406
bd3e497d
ILT
4072012-09-18 Ian Lance Taylor <iant@google.com>
408
409 * btest.c (test1, test2, test3, test4): Add the unused attribute.
410
30e15876
ILT
4112012-09-18 Ian Lance Taylor <iant@google.com>
412
413 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
414
d4c059d5
ILT
4152012-09-18 Ian Lance Taylor <iant@google.com>
416
417 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
418 * mmapio.c: Don't define _GNU_SOURCE.
419 * configure, config.h.in: Rebuild.
420
772a71a9
ILT
4212012-09-18 Ian Lance Taylor <iant@google.com>
422
423 * configure.ac: Check whether strnlen is declared.
424 * dwarf.c: Declare strnlen if not declared.
425 * configure, config.h.in: Rebuild.
426
c0558468
RO
4272012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428
429 * fileline.c: Include <stdlib.h>.
430 * mmap.c: Likewise.
431
c5812e0b
ILT
4322012-09-17 Ian Lance Taylor <iant@google.com>
433
434 PR bootstrap/54611
435 * nounwind.c (backtrace_full): Rename from backtrace. Add state
436 parameter.
437
e8f4008a
GP
4382012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
439
440 PR bootstrap/54611
441 * nounwind.c (backtrace_simple): Add state parameter.
442
f588eb27
ILT
4432012-09-17 Ian Lance Taylor <iant@google.com>
444
445 PR bootstrap/54609
446 * unknown.c (unknown_fileline): Add state parameter, remove
447 fileline_data parameter, name error_callback parameter.
448 (backtrace_initialize): Add state parameter.
449
eff02e4f
ILT
4502012-09-17 Ian Lance Taylor <iant@google.com>
451
452 * Initial implementation.