configure.ac: Check for getexecname.
[gcc.git] / libbacktrace / ChangeLog
1 2012-11-12 Ian Lance Taylor <iant@google.com>
2 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 Gerald Pfeifer <gerald@pfeifer.com>
4
5 * configure.ac: Check for getexecname.
6 * fileline.c: #include <errno.h>. Define getexecname if not
7 available.
8 (fileline_initialize): Try to find the executable in a few
9 different ways.
10 * print.c (error_callback): Only print the filename if it came
11 from the backtrace state.
12 * configure, config.h.in: Rebuild.
13
14 2012-10-29 Ian Lance Taylor <iant@google.com>
15
16 * mmap.c (backtrace_vector_release): Correct last patch: add
17 aligned, not size.
18
19 2012-10-29 Ian Lance Taylor <iant@google.com>
20
21 * mmap.c (backtrace_vector_release): Make sure freed block is
22 aligned on 8-byte boundary.
23
24 2012-10-26 Ian Lance Taylor <iant@google.com>
25
26 PR other/55087
27 * posix.c (backtrace_open): Add does_not_exist parameter.
28 * elf.c (phdr_callback): Do not warn if shared library could not
29 be opened.
30 * fileline.c (fileline_initialize): Update calls to
31 backtrace_open.
32 * internal.h (backtrace_open): Update declaration.
33
34 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
35
36 PR target/55061
37 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
38 * configure: Regenerate.
39
40 2012-10-24 Ian Lance Taylor <iant@google.com>
41
42 PR target/55061
43 * configure.ac: Check whether -funwind-tables option works.
44 * configure: Rebuild.
45
46 2012-10-11 Ian Lance Taylor <iant@google.com>
47
48 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
49 * configure: Rebuild.
50
51 2012-10-10 Ian Lance Taylor <iant@google.com>
52
53 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
54 lower case.
55
56 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
57
58 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
59
60 2012-10-09 Ian Lance Taylor <iant@google.com>
61
62 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
63 (backtrace_dwarf_add): Likewise.
64
65 2012-10-09 Ian Lance Taylor <iant@google.com>
66
67 Add support for tracing through shared libraries.
68 * configure.ac: Check for link.h and dl_iterate_phdr.
69 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
70 ELF macros before #defining them.
71 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
72 dl_iterate_phdr.
73 (struct elf_syminfo_data): Add next field.
74 (elf_initialize_syminfo): Initialize next field.
75 (elf_add_syminfo_data): New static function.
76 (elf_add): New static function, broken out of
77 backtrace_initialize. Call backtrace_dwarf_add instead of
78 backtrace_dwarf_initialize.
79 (struct phdr_data): Define.
80 (phdr_callback): New static function.
81 (backtrace_initialize): Call elf_add.
82 * dwarf.c (struct dwarf_data): Add next and base_address fields.
83 (add_unit_addr): Add base_address parameter. Change all callers.
84 (add_unit_ranges, build_address_map): Likewise.
85 (add_line): Add ddata parameter. Change all callers.
86 (read_line_program, add_function_range): Likewise.
87 (dwarf_lookup_pc): New static function, broken out of
88 dwarf_fileline.
89 (dwarf_fileline): Call dwarf_lookup_pc.
90 (build_dwarf_data): New static function.
91 (backtrace_dwarf_add): New function.
92 (backtrace_dwarf_initialize): Remove.
93 * internal.h (backtrace_dwarf_initialize): Don't declare.
94 (backtrace_dwarf_add): Declare.
95 * configure, config.h.in: Rebuild.
96
97 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
98
99 * btest.c (f23): Avoid uninitialized variable warning.
100
101 2012-10-04 Ian Lance Taylor <iant@google.com>
102
103 * dwarf.c: If the system header files do not declare strnlen,
104 provide our own version.
105
106 2012-10-03 Ian Lance Taylor <iant@google.com>
107
108 * dwarf.c (read_uleb128): Fix overflow test.
109 (read_sleb128): Likewise.
110 (build_address_map): Don't change unit_buf.start.
111
112 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
113
114 PR other/54761
115 * configure.ac (EXTRA_FLAGS): New.
116 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
117 * configure, Makefile.in: Regenerate.
118
119 2012-09-29 Ian Lance Taylor <iant@google.com>
120
121 PR other/54749
122 * fileline.c (fileline_initialize): Pass errnum as -1 when
123 reporting that we could not read executable information after a
124 previous failure.
125
126 2012-09-27 Ian Lance Taylor <iant@google.com>
127
128 PR bootstrap/54732
129 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
130 * Makefile.am: Add dependencies for all objects.
131 * configure, aclocal.m4, Makefile.in: Rebuild.
132
133 2012-09-27 Ian Lance Taylor <iant@google.com>
134
135 PR other/54726
136 * elf.c (backtrace_initialize): Set *fileln_fn, not
137 state->fileln_fn.
138
139 2012-09-19 Ian Lance Taylor <iant@google.com>
140
141 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
142 as a target library.
143 * configure: Rebuild.
144
145 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
146 Ian Lance Taylor <iant@google.com>
147
148 * configure.ac (GCC_HEADER_STDINT): Invoke.
149 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
150 * btest.c: Don't include <stdint.h>.
151 * dwarf.c: Likewise.
152 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
153
154 2012-09-18 Ian Lance Taylor <iant@google.com>
155
156 PR bootstrap/54623
157 * Makefile.am (AM_CPPFLAGS): Define.
158 (AM_CFLAGS): Remove -I options.
159 * Makefile.in: Rebuild.
160
161 2012-09-18 Ian Lance Taylor <iant@google.com>
162
163 * posix.c (O_BINARY): Define if not defined.
164 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
165 HAVE_FCNTL is defined.
166 * configure.ac: Test for the fcntl function.
167 * configure, config.h.in: Rebuild.
168
169 2012-09-18 Ian Lance Taylor <iant@google.com>
170
171 * btest.c (test1, test2, test3, test4): Add the unused attribute.
172
173 2012-09-18 Ian Lance Taylor <iant@google.com>
174
175 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
176
177 2012-09-18 Ian Lance Taylor <iant@google.com>
178
179 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
180 * mmapio.c: Don't define _GNU_SOURCE.
181 * configure, config.h.in: Rebuild.
182
183 2012-09-18 Ian Lance Taylor <iant@google.com>
184
185 * configure.ac: Check whether strnlen is declared.
186 * dwarf.c: Declare strnlen if not declared.
187 * configure, config.h.in: Rebuild.
188
189 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * fileline.c: Include <stdlib.h>.
192 * mmap.c: Likewise.
193
194 2012-09-17 Ian Lance Taylor <iant@google.com>
195
196 PR bootstrap/54611
197 * nounwind.c (backtrace_full): Rename from backtrace. Add state
198 parameter.
199
200 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
201
202 PR bootstrap/54611
203 * nounwind.c (backtrace_simple): Add state parameter.
204
205 2012-09-17 Ian Lance Taylor <iant@google.com>
206
207 PR bootstrap/54609
208 * unknown.c (unknown_fileline): Add state parameter, remove
209 fileline_data parameter, name error_callback parameter.
210 (backtrace_initialize): Add state parameter.
211
212 2012-09-17 Ian Lance Taylor <iant@google.com>
213
214 * Initial implementation.