1 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3 * common.m4 (GDB_AC_COMMON): Check for sigtimedwait.
4 * config.in, configure: Re-generate.
6 2021-06-17 Pedro Alves <pedro@palves.net>
8 * scoped_ignore_signal.h
9 (scoped_ignore_signal::scoped_ignore_signal)
10 [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of
11 changing the signal disposition for the whole process.
12 (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]:
13 Use sigtimedwait and sigprocmask to flush and unblock the signal.
15 2021-06-17 Pedro Alves <pedro@palves.net>
17 * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.
19 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
21 * .dir-locals.el: Set sentence-end-double-space for all modes, and
22 set brace-list-open to 0 for C and C++ modes.
24 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
26 * Makefile.in: Re-generate.
27 * config.in: Re-generate.
28 * configure: Re-generate.
30 2021-05-08 Pedro Alves <pedro@palves.net>
32 * common.m4 (personality test): Remove.
34 2021-04-30 Tom Tromey <tromey@adacore.com>
36 * thread-pool.cc (thread_pool::post_task): Update.
37 * thread-pool.h (class thread_pool) <post_task>: Take rvalue
38 reference to function.
40 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
41 Simon Marchi <simon.marchi@polymtl.ca>
43 * observable.h (class observable): Extend to allow specifying
44 dependencies between observers, keep vector holding observers
45 sorted so that dependencies are notified before observers
48 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
50 * observable.h (observer_debug_printf,
51 OBSERVER_SCOPED_DEBUG_START_END): New.
52 (class observable) <notify, attach>: Use them.
54 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
56 * common-debug.h (struct scoped_debug_start_end)
57 <scoped_debug_start_end>: Change start_msg/end_msg for
58 start_prefix/end_prefix. Add format string parameter and make
60 <~scoped_debug_start_end>: Adjust.
61 <m_end_msg>: Rename to...
62 <m_end_prefix>: ... this.
65 (scoped_debug_start_end): Make variadic.
66 (scoped_debug_enter_exit): Adjust.
68 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
70 * observable.h (class observable) <struct observer> <observer>:
73 <attach>: Add name parameter, update all callers.
75 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
77 * observable.h (class observable) <struct observer>: New.
78 <detach, notify>: Update.
79 <m_observers>: Change type to vector of observers.
81 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
83 * observable.h (observer_debug): Change to bool.
85 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
87 * common-debug.h: Include preprocessor.h.
89 2021-03-24 Luis Machado <luis.machado@linaro.org>
91 * rsp-low.cc (fromhex, hex2bin): Move to ...
92 * common-utils.cc: ... here.
93 (fromhex) Change error message text to not be RSP-specific.
94 * rsp-low.h (fromhex, hex2bin): Move to ...
95 * common-utils.h: ... here.
97 2021-03-21 Alan Modra <amodra@gmail.com>
99 * common-utils.h (startswith): Delete version now supplied by bfd.h.
101 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
103 * common-defs.h (ATTRIBUTE_PRINTF): Rename
104 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
105 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
106 free if this macro is defined.
108 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
110 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
112 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
113 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
115 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
117 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
118 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
121 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
124 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
125 find_gdb_home_config_file): Add empty string check.
127 2021-01-06 Mike Frysinger <vapier@gentoo.org>
129 * common-utils.h (align_up): Fix typo in header comment.
131 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
133 * common-debug.h (debug_print_depth): New.
134 (struct scoped_debug_start_end): New.
135 (scoped_debug_start_end): New.
136 (scoped_debug_enter_exit): New.
137 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
139 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
141 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
143 (extract_string_maybe_quoted): Use safe-ctype function versions.
144 (is_digit_in_base): Likewise.
145 (digit_to_int): Likewise.
146 (strtoulst): Likewise.
147 (skip_spaces): Likewise.
148 (skip_to_space): Likewise.
150 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
152 * common-debug.h (debug_prefixed_printf_cond): New.
153 * event-loop.h (event_loop_debug_printf): Use
154 debug_prefixed_printf_cond.
156 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
158 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
159 variable when running on Windows.
161 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
163 * tdesc.cc (print_xml_feature::visit): Print enum fields using
166 2020-12-01 Chungyi Chi <demonic@csie.io>
168 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
170 2020-11-20 Tom Tromey <tromey@adacore.com>
172 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
175 2020-11-10 Tom Tromey <tromey@adacore.com>
178 * pathstuff.h: Move include block here...
179 * pathstuff.cc: ... from here.
181 2020-11-02 Tom Tromey <tom@tromey.com>
183 * pathstuff.h (get_standard_config_dir): Declare.
184 * pathstuff.cc (get_standard_config_dir): New function.
186 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
188 * common-exceptions.h: Fix indentation.
189 * event-loop.cc: Fix indentation.
190 * fileio.cc: Fix indentation.
191 * filestuff.cc: Fix indentation.
192 * gdb-dlfcn.cc: Fix indentation.
193 * gdb_string_view.h: Fix indentation.
194 * job-control.cc: Fix indentation.
195 * signals.cc: Fix indentation.
197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
199 * common-debug.cc (debug_prefixed_printf): New.
200 * common-debug.h (debug_prefixed_printf): New declaration.
201 * event-loop.cc (event_loop_debug_printf_1): Remove.
202 * event-loop.h (event_loop_debug_printf_1): Remove.
203 (event_loop_debug_printf): Use debug_prefixed_printf.
204 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
206 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
208 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
210 * configure: Re-generate.
212 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
214 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
216 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
218 * configure: Re-generate.
219 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
222 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
224 * configure: Re-generate.
225 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
228 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
230 * configure: Re-generate.
231 * ptrace.m4: Re-indent.
233 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
235 * aclocal.m4: Re-generate.
236 * configure: Re-generate.
237 * configure.ac: Remove AM_PROG_CC_STDC.
239 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
241 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
243 * configure: Re-generate.
245 2020-10-26 Pedro Alves <pedro@palves.net>
247 * eintr.h (handle_eintr): Replace Ret template parameter with
248 ErrorValType. Use it as type of the failure value. Deduce the
249 function's return type using decltype. Use lowercase for function
252 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
254 * Makefile.in: Re-generate.
255 * acinclude.m4: Update ptrace.m4 path.
256 * ptrace.m4: Move here.
258 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
260 * tdesc.h (allocate_target_description): Update return type.
262 2020-10-07 Tom Tromey <tromey@adacore.com>
264 * Makefile.in: Rebuild.
265 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
266 * search.h: New file.
267 * search.cc: New file.
269 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
271 * event-loop.h (debug_event_loop): New variable declaration.
272 (event_loop_debug_printf_1): New function declaration.
273 (event_loop_debug_printf): New macro.
274 * event-loop.cc (debug_event_loop): New variable.
275 (handle_file_event): Add debug print.
276 (event_loop_debug_printf_1): New function.
278 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
280 * common-debug.cc (debug_prefixed_vprintf): Move here.
281 * common-debug.h (debug_prefixed_vprintf): Move here.
283 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
285 * event-loop.h (add_file_handler): Add "name" parameter.
286 * event-loop.cc (struct file_handler) <name>: New field.
287 (create_file_handler): Add "name" parameter, assign it to file
289 (add_file_handler): Add "name" parameter.
291 2020-10-01 Kamil Rytarowski <n54@gmx.com>
293 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
295 2020-09-29 Pedro Alves <pedro@palves.net>
297 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
298 class instead of an alias template and adjust static_assert.
300 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
302 * event-loop.c (struct file_handler): Remove typedef, re-format.
304 2020-09-16 John Baldwin <jhb@FreeBSD.org>
306 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
307 * configure, config.in: Regenerate.
309 2020-09-14 Pedro Alves <pedro@palves.net>
311 * enum-flags.h: Include "traits.h".
312 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
314 (enum_underlying_type): Update comment.
315 (namespace enum_flags_detail): New. Move struct zero_type here.
316 (EnumIsUnsigned, EnumIsSigned): New.
317 (class enum_flags): Make most methods constexpr.
318 (operator&=, operator|=, operator^=): Take an enum_flags instead
319 of an enum_type. Make rvalue ref versions deleted.
320 (operator enum_type()): Delete.
321 (operator&, operator|, operator^, operator~): Delete, moved out of
324 (is_enum_flags_enum_type_t): Declare.
325 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
326 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
328 (operator~): Now constexpr and reimplemented.
329 (operator<<, operator>>): New deleted functions.
330 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
332 2020-09-14 Pedro Alves <pedro@palves.net>
334 * traits.h (struct nonesuch, struct detector, detected_or)
335 (detected_or_t, is_detected, detected_t, detected_or)
336 (detected_or_t, is_detected_exact, is_detected_convertible): New.
337 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
339 2020-09-10 Kamil Rytarowski <n54@gmx.com>
343 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
345 * selftest.h (run_tests): Change parameter to array_view.
346 * selftest.c (run_tests): Change parameter to array_view and use
349 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
352 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
354 * Makefile.in: Regenerate.
355 * configure, config.in: Regenerate.
357 2020-07-28 Tom de Vries <tdevries@suse.de>
360 * gdb_optional.h (class optional): Add volatile member to union
361 contaning m_dummy and m_item.
363 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
365 * tdesc.h (struct target_desc_deleter): Moved here
366 from gdb/target-descriptions.h, extend comment.
367 (target_desc_up): Likewise.
369 2020-06-30 Tom Tromey <tromey@adacore.com>
372 * gdb_string_view.h (basic_string_view::to_string): Remove.
373 (gdb::to_string): New function.
375 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
377 * tdesc.h (class print_xml_feature) <add_line>: Add
380 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
382 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
383 output content, and call indent as needed in all overloaded
385 (print_xml_feature::visit_post): Likewise.
386 (print_xml_feature::visit): Likewise.
387 (print_xml_feature::add_line): Two new overloaded functions.
388 * tdesc.h (print_xml_feature::indent): New member function.
389 (print_xml_feature::add_line): Two new overloaded member
391 (print_xml_feature::m_depth): New member variable.
393 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
395 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
397 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
398 (tdesc_compatible_info_up): New typedef.
399 (tdesc_compatible_info_list): Declare new function.
400 (tdesc_compatible_info_arch_name): Declare new function.
402 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
404 * common-utils.cc, common-utils.h (stringify_argv): Drop
405 now unused function stringify_argv
407 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
409 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
410 Adapt to take a gdb::array_view<char * const> parameter.
413 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
415 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
416 Adapt to handle zero args and return a std::string.
419 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
421 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
422 Move function here from gdb/infcmd.c, gdb/inferior.h
424 2020-05-14 Kevin Buettner <kevinb@redhat.com>
426 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
428 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430 * common-regcache.h (regcache_read_pc_protected): New function
433 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
435 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
437 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
439 * common-defs.h: Include cstdlib.h.
441 2020-04-20 Tom Tromey <tromey@adacore.com>
443 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
444 Use initialization style. Don't call destroy.
445 * scoped_fd.h (class scoped_fd): Mark move constructor as
447 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
450 2020-04-13 Tom Tromey <tom@tromey.com>
452 * event-loop.c: Move comment. Remove obsolete comment.
454 2020-04-13 Tom Tromey <tom@tromey.com>
456 * event-loop.h: Move from ../gdb/.
457 * event-loop.cc: Move from ../gdb/.
459 2020-04-13 Tom Tromey <tom@tromey.com>
461 * errors.h (flush_streams): Declare.
463 2020-04-13 Tom Tromey <tom@tromey.com>
465 * gdb_select.h: Move from ../gdb/.
467 2020-04-13 Tom Tromey <tom@tromey.com>
469 * config.in, configure: Rebuild.
470 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
471 sys/select.h, and poll.
473 2020-03-31 Tom Tromey <tromey@adacore.com>
475 * btrace-common.cc (btrace_data_append): Conditionally call
478 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
480 * create-version.sh: Resolve issues highlighted by shellcheck.
482 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
484 * config.in: Re-generate.
485 * configure: Re-generate.
487 2020-03-17 Kamil Rytarowski <n54@gmx.com>
489 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
491 2020-03-12 Tom Tromey <tom@tromey.com>
493 * common-types.h: Remove GDBSERVER code.
494 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
495 * common-defs.h: Remove GDBSERVER code.
497 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
499 * selftest.m4: Moved from gdb/.
500 * acinclude.m4: Update path to selftest.m4.
502 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
504 * configure.ac: Don't source bfd/development.sh.
505 * common.m4: Source bfd/development.sh.
506 * configure: Re-generate.
508 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
510 * configure: Re-generate.
512 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
514 * configure: Re-generate.
515 * warning.m4: Enable -Wmissing-prototypes.
517 2020-03-08 Tom Tromey <tom@tromey.com>
519 * gdb_binary_search.h: Fix two typos.
521 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
523 * .dir-locals.el: New file.
525 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
527 * configure.ac: Added call development.sh.
528 * configure: Regenerate.
530 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532 * .gitattributes: New file.
534 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
536 * Makefile.in: Re-generate.
538 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
540 * gdb-dlfcn.h (gdb_dlopen): Update comment.
542 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
544 * configure: Regenerate.
546 2020-02-14 Tom Tromey <tom@tromey.com>
548 * common-defs.h: Change path to gnulib/config.h.
550 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
552 * Makefile.am: Rename source files from .c to .cc.
553 (CC, CFLAGS): Don't override.
554 (AM_CFLAGS): Rename to ...
555 (AM_CXXFLAGS): ... this.
556 * Makefile.in: Re-generate.
557 * %.c: Rename to %.cc.
559 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
561 * configure: Re-generate.
563 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
565 * warning.m4: Add -Wstrict-null-sentinel.
566 * configure: Re-generate.
568 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
570 * warning.m4: Move here, from gdb/warning.m4.
571 * acinclude.m4: Update warning.m4 path.
572 * Makefile.in: Re-generate.
574 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
576 * acinclude.m4: Include ../gdb/warning.m4.
577 * configure.ac: Use AM_GDB_WARNINGS.
578 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
579 * Makefile.in: Re-generate.
580 * configure: Re-generate.
582 2020-02-10 Tom de Vries <tdevries@suse.de>
584 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
586 2020-01-24 Christian Biesinger <cbiesinger@google.com>
588 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
589 version of pthread_setname_np.
591 2020-01-17 Pedro Alves <palves@redhat.com>
593 * Makefile.am: Append CXX_DIALECT to CXX.
594 * Makefile.in: Regenerate.
596 2020-01-17 Pedro Alves <palves@redhat.com>
598 * configure.ac: Generate config.h instead of support-config.h.
599 * common-defs.h: Include <gdbsupport/config.h> instead of
600 <gdbsupport/support-config.h>.
601 * Makefile.in: Regenerate.
602 * configure: Regenerate.
604 2020-01-14 Tom Tromey <tom@tromey.com>
606 * Makefile.in: Rebuild.
607 * Makefile.am (check-defines): New target.
608 * check-defines.el: New file.
610 2020-01-14 Tom Tromey <tom@tromey.com>
612 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
614 * common.m4 (GDB_AC_COMMON): Move many checks from
616 * acinclude.m4: Include bfd.m4, ptrace.m4.
618 2020-01-14 Tom Tromey <tom@tromey.com>
620 * common-defs.h: Add GDBSERVER case. Update includes.
621 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
622 Makefile.am, Makefile.in, README: New files.
623 * Moved from ../gdb/gdbsupport/