1 2021-10-04 Tom de Vries <tdevries@suse.de>
4 * configure: Regenerate.
6 2021-07-30 Tom de Vries <tdevries@suse.de>
8 * common-defs.h (ATTRIBUTE_NONNULL): Disable.
10 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
12 * scoped_ignore_signal.h (struct scoped_ignore_signal)
13 <~scoped_ignore_signal>: Use sigtimedwait if HAVE_SIGTIMEDWAIT
14 is defined, else use sigpending + sigwait.
16 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
18 * common.m4 (GDB_AC_COMMON): Check for sigtimedwait.
19 * config.in, configure: Re-generate.
21 2021-06-17 Pedro Alves <pedro@palves.net>
23 * scoped_ignore_signal.h
24 (scoped_ignore_signal::scoped_ignore_signal)
25 [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of
26 changing the signal disposition for the whole process.
27 (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]:
28 Use sigtimedwait and sigprocmask to flush and unblock the signal.
30 2021-06-17 Pedro Alves <pedro@palves.net>
32 * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.
34 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
36 * .dir-locals.el: Set sentence-end-double-space for all modes, and
37 set brace-list-open to 0 for C and C++ modes.
39 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
41 * Makefile.in: Re-generate.
42 * config.in: Re-generate.
43 * configure: Re-generate.
45 2021-05-08 Pedro Alves <pedro@palves.net>
47 * common.m4 (personality test): Remove.
49 2021-04-30 Tom Tromey <tromey@adacore.com>
51 * thread-pool.cc (thread_pool::post_task): Update.
52 * thread-pool.h (class thread_pool) <post_task>: Take rvalue
53 reference to function.
55 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
56 Simon Marchi <simon.marchi@polymtl.ca>
58 * observable.h (class observable): Extend to allow specifying
59 dependencies between observers, keep vector holding observers
60 sorted so that dependencies are notified before observers
63 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
65 * observable.h (observer_debug_printf,
66 OBSERVER_SCOPED_DEBUG_START_END): New.
67 (class observable) <notify, attach>: Use them.
69 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
71 * common-debug.h (struct scoped_debug_start_end)
72 <scoped_debug_start_end>: Change start_msg/end_msg for
73 start_prefix/end_prefix. Add format string parameter and make
75 <~scoped_debug_start_end>: Adjust.
76 <m_end_msg>: Rename to...
77 <m_end_prefix>: ... this.
80 (scoped_debug_start_end): Make variadic.
81 (scoped_debug_enter_exit): Adjust.
83 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
85 * observable.h (class observable) <struct observer> <observer>:
88 <attach>: Add name parameter, update all callers.
90 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
92 * observable.h (class observable) <struct observer>: New.
93 <detach, notify>: Update.
94 <m_observers>: Change type to vector of observers.
96 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
98 * observable.h (observer_debug): Change to bool.
100 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
102 * common-debug.h: Include preprocessor.h.
104 2021-03-24 Luis Machado <luis.machado@linaro.org>
106 * rsp-low.cc (fromhex, hex2bin): Move to ...
107 * common-utils.cc: ... here.
108 (fromhex) Change error message text to not be RSP-specific.
109 * rsp-low.h (fromhex, hex2bin): Move to ...
110 * common-utils.h: ... here.
112 2021-03-21 Alan Modra <amodra@gmail.com>
114 * common-utils.h (startswith): Delete version now supplied by bfd.h.
116 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
118 * common-defs.h (ATTRIBUTE_PRINTF): Rename
119 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
120 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
121 free if this macro is defined.
123 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
125 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
127 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
128 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
130 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
132 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
133 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
136 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
139 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
140 find_gdb_home_config_file): Add empty string check.
142 2021-01-06 Mike Frysinger <vapier@gentoo.org>
144 * common-utils.h (align_up): Fix typo in header comment.
146 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
148 * common-debug.h (debug_print_depth): New.
149 (struct scoped_debug_start_end): New.
150 (scoped_debug_start_end): New.
151 (scoped_debug_enter_exit): New.
152 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
154 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
156 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
158 (extract_string_maybe_quoted): Use safe-ctype function versions.
159 (is_digit_in_base): Likewise.
160 (digit_to_int): Likewise.
161 (strtoulst): Likewise.
162 (skip_spaces): Likewise.
163 (skip_to_space): Likewise.
165 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
167 * common-debug.h (debug_prefixed_printf_cond): New.
168 * event-loop.h (event_loop_debug_printf): Use
169 debug_prefixed_printf_cond.
171 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
173 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
174 variable when running on Windows.
176 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
178 * tdesc.cc (print_xml_feature::visit): Print enum fields using
181 2020-12-01 Chungyi Chi <demonic@csie.io>
183 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
185 2020-11-20 Tom Tromey <tromey@adacore.com>
187 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
190 2020-11-10 Tom Tromey <tromey@adacore.com>
193 * pathstuff.h: Move include block here...
194 * pathstuff.cc: ... from here.
196 2020-11-02 Tom Tromey <tom@tromey.com>
198 * pathstuff.h (get_standard_config_dir): Declare.
199 * pathstuff.cc (get_standard_config_dir): New function.
201 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
203 * common-exceptions.h: Fix indentation.
204 * event-loop.cc: Fix indentation.
205 * fileio.cc: Fix indentation.
206 * filestuff.cc: Fix indentation.
207 * gdb-dlfcn.cc: Fix indentation.
208 * gdb_string_view.h: Fix indentation.
209 * job-control.cc: Fix indentation.
210 * signals.cc: Fix indentation.
212 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
214 * common-debug.cc (debug_prefixed_printf): New.
215 * common-debug.h (debug_prefixed_printf): New declaration.
216 * event-loop.cc (event_loop_debug_printf_1): Remove.
217 * event-loop.h (event_loop_debug_printf_1): Remove.
218 (event_loop_debug_printf): Use debug_prefixed_printf.
219 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
221 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
223 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
225 * configure: Re-generate.
227 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
229 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
231 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
233 * configure: Re-generate.
234 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
237 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
239 * configure: Re-generate.
240 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
243 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
245 * configure: Re-generate.
246 * ptrace.m4: Re-indent.
248 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
250 * aclocal.m4: Re-generate.
251 * configure: Re-generate.
252 * configure.ac: Remove AM_PROG_CC_STDC.
254 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
256 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
258 * configure: Re-generate.
260 2020-10-26 Pedro Alves <pedro@palves.net>
262 * eintr.h (handle_eintr): Replace Ret template parameter with
263 ErrorValType. Use it as type of the failure value. Deduce the
264 function's return type using decltype. Use lowercase for function
267 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
269 * Makefile.in: Re-generate.
270 * acinclude.m4: Update ptrace.m4 path.
271 * ptrace.m4: Move here.
273 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
275 * tdesc.h (allocate_target_description): Update return type.
277 2020-10-07 Tom Tromey <tromey@adacore.com>
279 * Makefile.in: Rebuild.
280 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
281 * search.h: New file.
282 * search.cc: New file.
284 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
286 * event-loop.h (debug_event_loop): New variable declaration.
287 (event_loop_debug_printf_1): New function declaration.
288 (event_loop_debug_printf): New macro.
289 * event-loop.cc (debug_event_loop): New variable.
290 (handle_file_event): Add debug print.
291 (event_loop_debug_printf_1): New function.
293 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
295 * common-debug.cc (debug_prefixed_vprintf): Move here.
296 * common-debug.h (debug_prefixed_vprintf): Move here.
298 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
300 * event-loop.h (add_file_handler): Add "name" parameter.
301 * event-loop.cc (struct file_handler) <name>: New field.
302 (create_file_handler): Add "name" parameter, assign it to file
304 (add_file_handler): Add "name" parameter.
306 2020-10-01 Kamil Rytarowski <n54@gmx.com>
308 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
310 2020-09-29 Pedro Alves <pedro@palves.net>
312 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
313 class instead of an alias template and adjust static_assert.
315 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
317 * event-loop.c (struct file_handler): Remove typedef, re-format.
319 2020-09-16 John Baldwin <jhb@FreeBSD.org>
321 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
322 * configure, config.in: Regenerate.
324 2020-09-14 Pedro Alves <pedro@palves.net>
326 * enum-flags.h: Include "traits.h".
327 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
329 (enum_underlying_type): Update comment.
330 (namespace enum_flags_detail): New. Move struct zero_type here.
331 (EnumIsUnsigned, EnumIsSigned): New.
332 (class enum_flags): Make most methods constexpr.
333 (operator&=, operator|=, operator^=): Take an enum_flags instead
334 of an enum_type. Make rvalue ref versions deleted.
335 (operator enum_type()): Delete.
336 (operator&, operator|, operator^, operator~): Delete, moved out of
339 (is_enum_flags_enum_type_t): Declare.
340 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
341 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
343 (operator~): Now constexpr and reimplemented.
344 (operator<<, operator>>): New deleted functions.
345 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
347 2020-09-14 Pedro Alves <pedro@palves.net>
349 * traits.h (struct nonesuch, struct detector, detected_or)
350 (detected_or_t, is_detected, detected_t, detected_or)
351 (detected_or_t, is_detected_exact, is_detected_convertible): New.
352 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
354 2020-09-10 Kamil Rytarowski <n54@gmx.com>
358 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
360 * selftest.h (run_tests): Change parameter to array_view.
361 * selftest.c (run_tests): Change parameter to array_view and use
364 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
366 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
367 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
369 * Makefile.in: Regenerate.
370 * configure, config.in: Regenerate.
372 2020-07-28 Tom de Vries <tdevries@suse.de>
375 * gdb_optional.h (class optional): Add volatile member to union
376 contaning m_dummy and m_item.
378 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
380 * tdesc.h (struct target_desc_deleter): Moved here
381 from gdb/target-descriptions.h, extend comment.
382 (target_desc_up): Likewise.
384 2020-06-30 Tom Tromey <tromey@adacore.com>
387 * gdb_string_view.h (basic_string_view::to_string): Remove.
388 (gdb::to_string): New function.
390 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
392 * tdesc.h (class print_xml_feature) <add_line>: Add
395 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
397 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
398 output content, and call indent as needed in all overloaded
400 (print_xml_feature::visit_post): Likewise.
401 (print_xml_feature::visit): Likewise.
402 (print_xml_feature::add_line): Two new overloaded functions.
403 * tdesc.h (print_xml_feature::indent): New member function.
404 (print_xml_feature::add_line): Two new overloaded member
406 (print_xml_feature::m_depth): New member variable.
408 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
410 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
412 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
413 (tdesc_compatible_info_up): New typedef.
414 (tdesc_compatible_info_list): Declare new function.
415 (tdesc_compatible_info_arch_name): Declare new function.
417 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
419 * common-utils.cc, common-utils.h (stringify_argv): Drop
420 now unused function stringify_argv
422 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
424 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
425 Adapt to take a gdb::array_view<char * const> parameter.
428 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
430 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
431 Adapt to handle zero args and return a std::string.
434 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
436 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
437 Move function here from gdb/infcmd.c, gdb/inferior.h
439 2020-05-14 Kevin Buettner <kevinb@redhat.com>
441 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
443 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
445 * common-regcache.h (regcache_read_pc_protected): New function
448 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
452 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
454 * common-defs.h: Include cstdlib.h.
456 2020-04-20 Tom Tromey <tromey@adacore.com>
458 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
459 Use initialization style. Don't call destroy.
460 * scoped_fd.h (class scoped_fd): Mark move constructor as
462 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
465 2020-04-13 Tom Tromey <tom@tromey.com>
467 * event-loop.c: Move comment. Remove obsolete comment.
469 2020-04-13 Tom Tromey <tom@tromey.com>
471 * event-loop.h: Move from ../gdb/.
472 * event-loop.cc: Move from ../gdb/.
474 2020-04-13 Tom Tromey <tom@tromey.com>
476 * errors.h (flush_streams): Declare.
478 2020-04-13 Tom Tromey <tom@tromey.com>
480 * gdb_select.h: Move from ../gdb/.
482 2020-04-13 Tom Tromey <tom@tromey.com>
484 * config.in, configure: Rebuild.
485 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
486 sys/select.h, and poll.
488 2020-03-31 Tom Tromey <tromey@adacore.com>
490 * btrace-common.cc (btrace_data_append): Conditionally call
493 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
495 * create-version.sh: Resolve issues highlighted by shellcheck.
497 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
499 * config.in: Re-generate.
500 * configure: Re-generate.
502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
504 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
506 2020-03-12 Tom Tromey <tom@tromey.com>
508 * common-types.h: Remove GDBSERVER code.
509 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
510 * common-defs.h: Remove GDBSERVER code.
512 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
514 * selftest.m4: Moved from gdb/.
515 * acinclude.m4: Update path to selftest.m4.
517 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
519 * configure.ac: Don't source bfd/development.sh.
520 * common.m4: Source bfd/development.sh.
521 * configure: Re-generate.
523 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
525 * configure: Re-generate.
527 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
529 * configure: Re-generate.
530 * warning.m4: Enable -Wmissing-prototypes.
532 2020-03-08 Tom Tromey <tom@tromey.com>
534 * gdb_binary_search.h: Fix two typos.
536 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
538 * .dir-locals.el: New file.
540 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
542 * configure.ac: Added call development.sh.
543 * configure: Regenerate.
545 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547 * .gitattributes: New file.
549 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
551 * Makefile.in: Re-generate.
553 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
555 * gdb-dlfcn.h (gdb_dlopen): Update comment.
557 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
559 * configure: Regenerate.
561 2020-02-14 Tom Tromey <tom@tromey.com>
563 * common-defs.h: Change path to gnulib/config.h.
565 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
567 * Makefile.am: Rename source files from .c to .cc.
568 (CC, CFLAGS): Don't override.
569 (AM_CFLAGS): Rename to ...
570 (AM_CXXFLAGS): ... this.
571 * Makefile.in: Re-generate.
572 * %.c: Rename to %.cc.
574 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
576 * configure: Re-generate.
578 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
580 * warning.m4: Add -Wstrict-null-sentinel.
581 * configure: Re-generate.
583 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
585 * warning.m4: Move here, from gdb/warning.m4.
586 * acinclude.m4: Update warning.m4 path.
587 * Makefile.in: Re-generate.
589 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
591 * acinclude.m4: Include ../gdb/warning.m4.
592 * configure.ac: Use AM_GDB_WARNINGS.
593 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
594 * Makefile.in: Re-generate.
595 * configure: Re-generate.
597 2020-02-10 Tom de Vries <tdevries@suse.de>
599 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
601 2020-01-24 Christian Biesinger <cbiesinger@google.com>
603 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
604 version of pthread_setname_np.
606 2020-01-17 Pedro Alves <palves@redhat.com>
608 * Makefile.am: Append CXX_DIALECT to CXX.
609 * Makefile.in: Regenerate.
611 2020-01-17 Pedro Alves <palves@redhat.com>
613 * configure.ac: Generate config.h instead of support-config.h.
614 * common-defs.h: Include <gdbsupport/config.h> instead of
615 <gdbsupport/support-config.h>.
616 * Makefile.in: Regenerate.
617 * configure: Regenerate.
619 2020-01-14 Tom Tromey <tom@tromey.com>
621 * Makefile.in: Rebuild.
622 * Makefile.am (check-defines): New target.
623 * check-defines.el: New file.
625 2020-01-14 Tom Tromey <tom@tromey.com>
627 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
629 * common.m4 (GDB_AC_COMMON): Move many checks from
631 * acinclude.m4: Include bfd.m4, ptrace.m4.
633 2020-01-14 Tom Tromey <tom@tromey.com>
635 * common-defs.h: Add GDBSERVER case. Update includes.
636 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
637 Makefile.am, Makefile.in, README: New files.
638 * Moved from ../gdb/gdbsupport/