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