gdb: remove file_handler typedef
[binutils-gdb.git] / gdbsupport / ChangeLog
1 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
2
3 * event-loop.c (struct file_handler): Remove typedef, re-format.
4
5 2020-09-16 John Baldwin <jhb@FreeBSD.org>
6
7 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
8 * configure, config.in: Regenerate.
9
10 2020-09-14 Pedro Alves <pedro@palves.net>
11
12 * enum-flags.h: Include "traits.h".
13 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
14 structure.
15 (enum_underlying_type): Update comment.
16 (namespace enum_flags_detail): New. Move struct zero_type here.
17 (EnumIsUnsigned, EnumIsSigned): New.
18 (class enum_flags): Make most methods constexpr.
19 (operator&=, operator|=, operator^=): Take an enum_flags instead
20 of an enum_type. Make rvalue ref versions deleted.
21 (operator enum_type()): Delete.
22 (operator&, operator|, operator^, operator~): Delete, moved out of
23 class.
24 (raw()): New method.
25 (is_enum_flags_enum_type_t): Declare.
26 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
27 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
28 operators.
29 (operator~): Now constexpr and reimplemented.
30 (operator<<, operator>>): New deleted functions.
31 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
32
33 2020-09-14 Pedro Alves <pedro@palves.net>
34
35 * traits.h (struct nonesuch, struct detector, detected_or)
36 (detected_or_t, is_detected, detected_t, detected_or)
37 (detected_or_t, is_detected_exact, is_detected_convertible): New.
38 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
39
40 2020-09-10 Kamil Rytarowski <n54@gmx.com>
41
42 * eintr.h: New file.
43
44 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * selftest.h (run_tests): Change parameter to array_view.
47 * selftest.c (run_tests): Change parameter to array_view and use
48 it.
49
50 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
51
52 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
53 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
54 <sys/procfs.h>.
55 * Makefile.in: Regenerate.
56 * configure, config.in: Regenerate.
57
58 2020-07-28 Tom de Vries <tdevries@suse.de>
59
60 PR build/26281
61 * gdb_optional.h (class optional): Add volatile member to union
62 contaning m_dummy and m_item.
63
64 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * tdesc.h (struct target_desc_deleter): Moved here
67 from gdb/target-descriptions.h, extend comment.
68 (target_desc_up): Likewise.
69
70 2020-06-30 Tom Tromey <tromey@adacore.com>
71
72 PR build/26183:
73 * gdb_string_view.h (basic_string_view::to_string): Remove.
74 (gdb::to_string): New function.
75
76 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
77
78 * tdesc.h (class print_xml_feature) <add_line>: Add
79 ATTRIBUTE_PRINTF.
80
81 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
84 output content, and call indent as needed in all overloaded
85 variants.
86 (print_xml_feature::visit_post): Likewise.
87 (print_xml_feature::visit): Likewise.
88 (print_xml_feature::add_line): Two new overloaded functions.
89 * tdesc.h (print_xml_feature::indent): New member function.
90 (print_xml_feature::add_line): Two new overloaded member
91 functions.
92 (print_xml_feature::m_depth): New member variable.
93
94 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
97 information.
98 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
99 (tdesc_compatible_info_up): New typedef.
100 (tdesc_compatible_info_list): Declare new function.
101 (tdesc_compatible_info_arch_name): Declare new function.
102
103 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
104
105 * common-utils.cc, common-utils.h (stringify_argv): Drop
106 now unused function stringify_argv
107
108 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
109
110 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
111 Adapt to take a gdb::array_view<char * const> parameter.
112 Adapt call site.
113
114 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
115
116 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
117 Adapt to handle zero args and return a std::string.
118 Adapt call site.
119
120 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
121
122 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
123 Move function here from gdb/infcmd.c, gdb/inferior.h
124
125 2020-05-14 Kevin Buettner <kevinb@redhat.com>
126
127 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
128
129 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
130
131 * common-regcache.h (regcache_read_pc_protected): New function
132 declaration.
133
134 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
135
136 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
137
138 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * common-defs.h: Include cstdlib.h.
141
142 2020-04-20 Tom Tromey <tromey@adacore.com>
143
144 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
145 Use initialization style. Don't call destroy.
146 * scoped_fd.h (class scoped_fd): Mark move constructor as
147 noexcept.
148 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
149 noexcept.
150
151 2020-04-13 Tom Tromey <tom@tromey.com>
152
153 * event-loop.c: Move comment. Remove obsolete comment.
154
155 2020-04-13 Tom Tromey <tom@tromey.com>
156
157 * event-loop.h: Move from ../gdb/.
158 * event-loop.cc: Move from ../gdb/.
159
160 2020-04-13 Tom Tromey <tom@tromey.com>
161
162 * errors.h (flush_streams): Declare.
163
164 2020-04-13 Tom Tromey <tom@tromey.com>
165
166 * gdb_select.h: Move from ../gdb/.
167
168 2020-04-13 Tom Tromey <tom@tromey.com>
169
170 * config.in, configure: Rebuild.
171 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
172 sys/select.h, and poll.
173
174 2020-03-31 Tom Tromey <tromey@adacore.com>
175
176 * btrace-common.cc (btrace_data_append): Conditionally call
177 memcpy.
178
179 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * create-version.sh: Resolve issues highlighted by shellcheck.
182
183 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
184
185 * config.in: Re-generate.
186 * configure: Re-generate.
187
188 2020-03-17 Kamil Rytarowski <n54@gmx.com>
189
190 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
191
192 2020-03-12 Tom Tromey <tom@tromey.com>
193
194 * common-types.h: Remove GDBSERVER code.
195 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
196 * common-defs.h: Remove GDBSERVER code.
197
198 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
199
200 * selftest.m4: Moved from gdb/.
201 * acinclude.m4: Update path to selftest.m4.
202
203 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
204
205 * configure.ac: Don't source bfd/development.sh.
206 * common.m4: Source bfd/development.sh.
207 * configure: Re-generate.
208
209 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
210
211 * configure: Re-generate.
212
213 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
214
215 * configure: Re-generate.
216 * warning.m4: Enable -Wmissing-prototypes.
217
218 2020-03-08 Tom Tromey <tom@tromey.com>
219
220 * gdb_binary_search.h: Fix two typos.
221
222 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * .dir-locals.el: New file.
225
226 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
227
228 * configure.ac: Added call development.sh.
229 * configure: Regenerate.
230
231 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232
233 * .gitattributes: New file.
234
235 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
236
237 * Makefile.in: Re-generate.
238
239 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
240
241 * gdb-dlfcn.h (gdb_dlopen): Update comment.
242
243 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * configure: Regenerate.
246
247 2020-02-14 Tom Tromey <tom@tromey.com>
248
249 * common-defs.h: Change path to gnulib/config.h.
250
251 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
252
253 * Makefile.am: Rename source files from .c to .cc.
254 (CC, CFLAGS): Don't override.
255 (AM_CFLAGS): Rename to ...
256 (AM_CXXFLAGS): ... this.
257 * Makefile.in: Re-generate.
258 * %.c: Rename to %.cc.
259
260 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
261
262 * configure: Re-generate.
263
264 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
265
266 * warning.m4: Add -Wstrict-null-sentinel.
267 * configure: Re-generate.
268
269 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
270
271 * warning.m4: Move here, from gdb/warning.m4.
272 * acinclude.m4: Update warning.m4 path.
273 * Makefile.in: Re-generate.
274
275 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
276
277 * acinclude.m4: Include ../gdb/warning.m4.
278 * configure.ac: Use AM_GDB_WARNINGS.
279 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
280 * Makefile.in: Re-generate.
281 * configure: Re-generate.
282
283 2020-02-10 Tom de Vries <tdevries@suse.de>
284
285 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
286
287 2020-01-24 Christian Biesinger <cbiesinger@google.com>
288
289 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
290 version of pthread_setname_np.
291
292 2020-01-17 Pedro Alves <palves@redhat.com>
293
294 * Makefile.am: Append CXX_DIALECT to CXX.
295 * Makefile.in: Regenerate.
296
297 2020-01-17 Pedro Alves <palves@redhat.com>
298
299 * configure.ac: Generate config.h instead of support-config.h.
300 * common-defs.h: Include <gdbsupport/config.h> instead of
301 <gdbsupport/support-config.h>.
302 * Makefile.in: Regenerate.
303 * configure: Regenerate.
304
305 2020-01-14 Tom Tromey <tom@tromey.com>
306
307 * Makefile.in: Rebuild.
308 * Makefile.am (check-defines): New target.
309 * check-defines.el: New file.
310
311 2020-01-14 Tom Tromey <tom@tromey.com>
312
313 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
314 Rebuild.
315 * common.m4 (GDB_AC_COMMON): Move many checks from
316 gdb/configure.ac.
317 * acinclude.m4: Include bfd.m4, ptrace.m4.
318
319 2020-01-14 Tom Tromey <tom@tromey.com>
320
321 * common-defs.h: Add GDBSERVER case. Update includes.
322 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
323 Makefile.am, Makefile.in, README: New files.
324 * Moved from ../gdb/gdbsupport/
325