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