]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
re PR translation/52289 (translatable string typo: "must not be have")
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
afeba5cb
RS
12014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2
3 Update copyright years
4
0284b52e
JJ
52013-12-06 Jakub Jelinek <jakub@redhat.com>
6
7 * elf.c (ET_DYN): Undefine and define again.
8 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
9 return early -1 without closing the descriptor.
10 (struct phdr_data): Add exe_descriptor.
11 (phdr_callback): If pd->exe_descriptor is not -1, for very first
12 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
13 otherwise backtrace_close the exe_descriptor if not -1. Adjust
14 call to elf_add.
15 (backtrace_initialize): Adjust call to elf_add. If it returns
16 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
17
bfd74f22
ILT
182013-12-05 Ian Lance Taylor <iant@google.com>
19
20 * alloc.c (backtrace_vector_finish): Add error_callback and data
21 parameters. Call backtrace_vector_release. Return address base.
22 * mmap.c (backtrace_vector_finish): Add error_callback and data
23 parameters. Return address base.
24 * dwarf.c (read_function_info): Get new address base from
25 backtrace_vector_finish.
26 * internal.h (backtrace_vector_finish): Update declaration.
27
b8ddd61b
ILT
282013-11-27 Ian Lance Taylor <iant@google.com>
29
30 * dwarf.c (find_address_ranges): New static function, broken out
31 of build_address_map.
32 (build_address_map): Call it.
33 * btest.c (check): Check for missing filename or function, rather
34 than crashing.
35 (f3): Check that enough frames were returned.
36
64856e1e
JJ
372013-11-19 Jakub Jelinek <jakub@redhat.com>
38
1f96a712
JJ
39 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
40 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
41 last argument.
42 * btest.c (struct symdata): Add size field.
43 (callback_three): Add symsize argument. Copy it to the data->size
44 field.
45 (f23): Set symdata.size to 0.
46 (test5): Likewise. If sizeof (int) > 1, lookup address of
47 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
48 values.
49
64856e1e
JJ
50 * atomic.c: Include sys/types.h.
51
49579c7e
ILT
522013-11-18 Ian Lance Taylor <iant@google.com>
53
54 * configure.ac: Check for support of __atomic extensions.
55 * internal.h: Declare or #define atomic functions for use in
56 backtrace code.
57 * atomic.c: New file.
58 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
59 (dwarf_fileline, backtrace_dwarf_add): Likewise.
60 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
61 (backtrace_initialize): Likewise.
62 * fileline.c (fileline_initialize): Likewise.
63 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
64 * configure, config.h.in, Makefile.in: Rebuild.
65
582f5a2d
JJ
662013-11-18 Jakub Jelinek <jakub@redhat.com>
67
f1857815
JJ
68 * elf.c (SHN_UNDEF): Define.
69 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
70 with st_shndx == SHN_UNDEF. Add base_address to address fields.
71 (elf_add): Adjust caller.
72
582f5a2d
JJ
73 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
74
25e6253e
ILT
752013-11-16 Ian Lance Taylor <iant@google.com>
76
77 * backtrace.h (backtrace_create_state): Correct comment about
78 threading.
79
cfa658e4
ILT
802013-11-15 Ian Lance Taylor <iant@google.com>
81
82 * backtrace.h (backtrace_syminfo): Update comment and parameter
83 name to take any address, not just a PC value.
84 * elf.c (STT_OBJECT): Define.
85 (elf_nosyms): Rename parameter pc to addr.
86 (elf_symbol_search): Rename local variable pc to addr.
87 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
88 (elf_syminfo): Rename parameter pc to addr.
89 * btest.c (global): New global variable.
90 (test5): New test.
91 (main): Call test5.
92
6c084a5b
ILT
932013-10-17 Ian Lance Taylor <iant@google.com>
94
95 * elf.c (elf_add): Don't get the wrong offsets if a debug section
96 is missing.
97
459260ec
DM
982013-10-15 David Malcolm <dmalcolm@redhat.com>
99
100 * configure.ac: Add --enable-host-shared, setting up
101 pre-existing PIC_FLAG variable within Makefile.am et al.
102 * configure: Regenerate.
103
3cbe17f7
AM
1042013-09-20 Alan Modra <amodra@gmail.com>
105
106 * configure: Regenerate.
107
78625ce6
AM
1082013-07-23 Alexander Monakov <amonakov@ispras.ru>
109
110 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
111
0153887c
AM
1122013-07-23 Alexander Monakov <amonakov@ispras.ru>
113
114 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
115 dl_iterate_phdr callbacks.
116
85d8c21e
ILT
1172013-03-25 Ian Lance Taylor <iant@google.com>
118
119 * alloc.c: #include <sys/types.h>.
120 * mmap.c: Likewise.
121
38811401
ILT
1222013-01-31 Ian Lance Taylor <iant@google.com>
123
124 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
125 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
126
1e678aed
JJ
1272013-01-25 Jakub Jelinek <jakub@redhat.com>
128
129 PR other/56076
130 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
131 attribute was not seen.
132
6b514c53
ILT
1332013-01-16 Ian Lance Taylor <iant@google.com>
134
135 * dwarf.c (struct unit): Add filename and abs_filename fields.
136 (build_address_map): Set new fields when reading unit.
137 (dwarf_lookup_pc): If we don't find an entry in the line table,
138 just return the main file name.
139
f8a7e1a4
RS
1402013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
141
142 Update copyright years.
143
c3de1960
ILT
1442013-01-01 Ian Lance Taylor <iant@google.com>
145
146 PR bootstrap/54834
147 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
148 $(MULTIBUILDTOP)/../../gcc/include.
149 * Makefile.in: Rebuild.
150
2a5195d9
ILT
1512013-01-01 Ian Lance Taylor <iant@google.com>
152
153 PR other/55536
154 * mmap.c (backtrace_alloc): Don't call sync functions if not
155 threaded.
156 (backtrace_free): Likewise.
157
85619b6f
JDA
1582012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
159
160 * mmapio.c: Define MAP_FAILED if not defined.
161
36a58fb3
JJ
1622012-12-11 Jakub Jelinek <jakub@redhat.com>
163
164 PR bootstrap/54926
165 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
166 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
167 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
168 accepts it.
169 * Makefile.in: Regenerated.
170 * configure: Regenerated.
171
a58dfde0
JJ
1722012-12-07 Jakub Jelinek <jakub@redhat.com>
173
174 PR bootstrap/54926
175 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
176 * Makefile.in: Regenerated.
177
b20ade36
ILT
1782012-11-20 Ian Lance Taylor <iant@google.com>
179
180 * dwarf.c (read_attribute): Always clear val.
181
73c3ed27
ILT
1822012-11-13 Ian Lance Taylor <iant@google.com>
183
184 PR other/55312
185 * configure.ac: Only add -Werror if building a target library.
2a5195d9 186 * configure: Rebuild.
73c3ed27 187
33521509
ILT
1882012-11-12 Ian Lance Taylor <iant@google.com>
189 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190 Gerald Pfeifer <gerald@pfeifer.com>
191
192 * configure.ac: Check for getexecname.
193 * fileline.c: #include <errno.h>. Define getexecname if not
194 available.
195 (fileline_initialize): Try to find the executable in a few
196 different ways.
197 * print.c (error_callback): Only print the filename if it came
198 from the backtrace state.
199 * configure, config.h.in: Rebuild.
200
8fe91dea
ILT
2012012-10-29 Ian Lance Taylor <iant@google.com>
202
203 * mmap.c (backtrace_vector_release): Correct last patch: add
204 aligned, not size.
205
8277de34
ILT
2062012-10-29 Ian Lance Taylor <iant@google.com>
207
208 * mmap.c (backtrace_vector_release): Make sure freed block is
209 aligned on 8-byte boundary.
210
73f41491
ILT
2112012-10-26 Ian Lance Taylor <iant@google.com>
212
213 PR other/55087
214 * posix.c (backtrace_open): Add does_not_exist parameter.
215 * elf.c (phdr_callback): Do not warn if shared library could not
216 be opened.
217 * fileline.c (fileline_initialize): Update calls to
218 backtrace_open.
219 * internal.h (backtrace_open): Update declaration.
220
385710cf
JH
2212012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
222
223 PR target/55061
224 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
225 * configure: Regenerate.
226
32061319
ILT
2272012-10-24 Ian Lance Taylor <iant@google.com>
228
229 PR target/55061
230 * configure.ac: Check whether -funwind-tables option works.
231 * configure: Rebuild.
232
5551b12c
ILT
2332012-10-11 Ian Lance Taylor <iant@google.com>
234
235 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
236 * configure: Rebuild.
237
40d15b5b
ILT
2382012-10-10 Ian Lance Taylor <iant@google.com>
239
240 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
241 lower case.
242
74f80620
HPN
2432012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
244
245 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
246
ce8aa074
ILT
2472012-10-09 Ian Lance Taylor <iant@google.com>
248
249 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
250 (backtrace_dwarf_add): Likewise.
251
e561a992
ILT
2522012-10-09 Ian Lance Taylor <iant@google.com>
253
254 Add support for tracing through shared libraries.
255 * configure.ac: Check for link.h and dl_iterate_phdr.
256 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
257 ELF macros before #defining them.
258 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
259 dl_iterate_phdr.
260 (struct elf_syminfo_data): Add next field.
261 (elf_initialize_syminfo): Initialize next field.
262 (elf_add_syminfo_data): New static function.
263 (elf_add): New static function, broken out of
264 backtrace_initialize. Call backtrace_dwarf_add instead of
265 backtrace_dwarf_initialize.
266 (struct phdr_data): Define.
267 (phdr_callback): New static function.
268 (backtrace_initialize): Call elf_add.
269 * dwarf.c (struct dwarf_data): Add next and base_address fields.
270 (add_unit_addr): Add base_address parameter. Change all callers.
271 (add_unit_ranges, build_address_map): Likewise.
272 (add_line): Add ddata parameter. Change all callers.
273 (read_line_program, add_function_range): Likewise.
274 (dwarf_lookup_pc): New static function, broken out of
275 dwarf_fileline.
276 (dwarf_fileline): Call dwarf_lookup_pc.
277 (build_dwarf_data): New static function.
278 (backtrace_dwarf_add): New function.
279 (backtrace_dwarf_initialize): Remove.
280 * internal.h (backtrace_dwarf_initialize): Don't declare.
281 (backtrace_dwarf_add): Declare.
282 * configure, config.h.in: Rebuild.
283
068ef6d1
GP
2842012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
285
286 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 287
244e2d9c
ILT
2882012-10-04 Ian Lance Taylor <iant@google.com>
289
290 * dwarf.c: If the system header files do not declare strnlen,
291 provide our own version.
292
be4ba8ae
ILT
2932012-10-03 Ian Lance Taylor <iant@google.com>
294
295 * dwarf.c (read_uleb128): Fix overflow test.
296 (read_sleb128): Likewise.
297 (build_address_map): Don't change unit_buf.start.
298
56195009
UB
2992012-10-02 Uros Bizjak <ubizjak@gmail.com>
300
faf86a02
UB
301 PR other/54761
302 * configure.ac (EXTRA_FLAGS): New.
56195009 303 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 304 * configure, Makefile.in: Regenerate.
56195009 305
8a447b3d
ILT
3062012-09-29 Ian Lance Taylor <iant@google.com>
307
308 PR other/54749
309 * fileline.c (fileline_initialize): Pass errnum as -1 when
310 reporting that we could not read executable information after a
311 previous failure.
312
af710874
ILT
3132012-09-27 Ian Lance Taylor <iant@google.com>
314
315 PR bootstrap/54732
316 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
317 * Makefile.am: Add dependencies for all objects.
318 * configure, aclocal.m4, Makefile.in: Rebuild.
319
588f4f8f
ILT
3202012-09-27 Ian Lance Taylor <iant@google.com>
321
322 PR other/54726
323 * elf.c (backtrace_initialize): Set *fileln_fn, not
324 state->fileln_fn.
325
64b89453
ILT
3262012-09-19 Ian Lance Taylor <iant@google.com>
327
328 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
329 as a target library.
330 * configure: Rebuild.
331
76850556
RO
3322012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333 Ian Lance Taylor <iant@google.com>
334
335 * configure.ac (GCC_HEADER_STDINT): Invoke.
336 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
337 * btest.c: Don't include <stdint.h>.
338 * dwarf.c: Likewise.
339 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
340
9425c00b
ILT
3412012-09-18 Ian Lance Taylor <iant@google.com>
342
343 PR bootstrap/54623
344 * Makefile.am (AM_CPPFLAGS): Define.
345 (AM_CFLAGS): Remove -I options.
346 * Makefile.in: Rebuild.
347
3319ef17
ILT
3482012-09-18 Ian Lance Taylor <iant@google.com>
349
350 * posix.c (O_BINARY): Define if not defined.
351 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
352 HAVE_FCNTL is defined.
353 * configure.ac: Test for the fcntl function.
354 * configure, config.h.in: Rebuild.
355
bd3e497d
ILT
3562012-09-18 Ian Lance Taylor <iant@google.com>
357
358 * btest.c (test1, test2, test3, test4): Add the unused attribute.
359
30e15876
ILT
3602012-09-18 Ian Lance Taylor <iant@google.com>
361
362 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
363
d4c059d5
ILT
3642012-09-18 Ian Lance Taylor <iant@google.com>
365
366 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
367 * mmapio.c: Don't define _GNU_SOURCE.
368 * configure, config.h.in: Rebuild.
369
772a71a9
ILT
3702012-09-18 Ian Lance Taylor <iant@google.com>
371
372 * configure.ac: Check whether strnlen is declared.
373 * dwarf.c: Declare strnlen if not declared.
374 * configure, config.h.in: Rebuild.
375
c0558468
RO
3762012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
377
378 * fileline.c: Include <stdlib.h>.
379 * mmap.c: Likewise.
380
c5812e0b
ILT
3812012-09-17 Ian Lance Taylor <iant@google.com>
382
383 PR bootstrap/54611
384 * nounwind.c (backtrace_full): Rename from backtrace. Add state
385 parameter.
386
e8f4008a
GP
3872012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
388
389 PR bootstrap/54611
390 * nounwind.c (backtrace_simple): Add state parameter.
391
f588eb27
ILT
3922012-09-17 Ian Lance Taylor <iant@google.com>
393
394 PR bootstrap/54609
395 * unknown.c (unknown_fileline): Add state parameter, remove
396 fileline_data parameter, name error_callback parameter.
397 (backtrace_initialize): Add state parameter.
398
eff02e4f
ILT
3992012-09-17 Ian Lance Taylor <iant@google.com>
400
401 * Initial implementation.