1 2021-06-17 Pedro Alves <pedro@palves.net>
3 * scoped_ignore_signal.h
4 (scoped_ignore_signal::scoped_ignore_signal)
5 [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of
6 changing the signal disposition for the whole process.
7 (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]:
8 Use sigtimedwait and sigprocmask to flush and unblock the signal.
10 2021-06-17 Pedro Alves <pedro@palves.net>
12 * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.
14 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
16 * .dir-locals.el: Set sentence-end-double-space for all modes, and
17 set brace-list-open to 0 for C and C++ modes.
19 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
21 * Makefile.in: Re-generate.
22 * config.in: Re-generate.
23 * configure: Re-generate.
25 2021-05-08 Pedro Alves <pedro@palves.net>
27 * common.m4 (personality test): Remove.
29 2021-04-30 Tom Tromey <tromey@adacore.com>
31 * thread-pool.cc (thread_pool::post_task): Update.
32 * thread-pool.h (class thread_pool) <post_task>: Take rvalue
33 reference to function.
35 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
36 Simon Marchi <simon.marchi@polymtl.ca>
38 * observable.h (class observable): Extend to allow specifying
39 dependencies between observers, keep vector holding observers
40 sorted so that dependencies are notified before observers
43 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
45 * observable.h (observer_debug_printf,
46 OBSERVER_SCOPED_DEBUG_START_END): New.
47 (class observable) <notify, attach>: Use them.
49 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
51 * common-debug.h (struct scoped_debug_start_end)
52 <scoped_debug_start_end>: Change start_msg/end_msg for
53 start_prefix/end_prefix. Add format string parameter and make
55 <~scoped_debug_start_end>: Adjust.
56 <m_end_msg>: Rename to...
57 <m_end_prefix>: ... this.
60 (scoped_debug_start_end): Make variadic.
61 (scoped_debug_enter_exit): Adjust.
63 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
65 * observable.h (class observable) <struct observer> <observer>:
68 <attach>: Add name parameter, update all callers.
70 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
72 * observable.h (class observable) <struct observer>: New.
73 <detach, notify>: Update.
74 <m_observers>: Change type to vector of observers.
76 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
78 * observable.h (observer_debug): Change to bool.
80 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
82 * common-debug.h: Include preprocessor.h.
84 2021-03-24 Luis Machado <luis.machado@linaro.org>
86 * rsp-low.cc (fromhex, hex2bin): Move to ...
87 * common-utils.cc: ... here.
88 (fromhex) Change error message text to not be RSP-specific.
89 * rsp-low.h (fromhex, hex2bin): Move to ...
90 * common-utils.h: ... here.
92 2021-03-21 Alan Modra <amodra@gmail.com>
94 * common-utils.h (startswith): Delete version now supplied by bfd.h.
96 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
98 * common-defs.h (ATTRIBUTE_PRINTF): Rename
99 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
100 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
101 free if this macro is defined.
103 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
105 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
107 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
108 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
110 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
112 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
113 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
116 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
119 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
120 find_gdb_home_config_file): Add empty string check.
122 2021-01-06 Mike Frysinger <vapier@gentoo.org>
124 * common-utils.h (align_up): Fix typo in header comment.
126 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
128 * common-debug.h (debug_print_depth): New.
129 (struct scoped_debug_start_end): New.
130 (scoped_debug_start_end): New.
131 (scoped_debug_enter_exit): New.
132 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
134 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
136 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
138 (extract_string_maybe_quoted): Use safe-ctype function versions.
139 (is_digit_in_base): Likewise.
140 (digit_to_int): Likewise.
141 (strtoulst): Likewise.
142 (skip_spaces): Likewise.
143 (skip_to_space): Likewise.
145 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
147 * common-debug.h (debug_prefixed_printf_cond): New.
148 * event-loop.h (event_loop_debug_printf): Use
149 debug_prefixed_printf_cond.
151 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
153 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
154 variable when running on Windows.
156 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
158 * tdesc.cc (print_xml_feature::visit): Print enum fields using
161 2020-12-01 Chungyi Chi <demonic@csie.io>
163 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
165 2020-11-20 Tom Tromey <tromey@adacore.com>
167 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
170 2020-11-10 Tom Tromey <tromey@adacore.com>
173 * pathstuff.h: Move include block here...
174 * pathstuff.cc: ... from here.
176 2020-11-02 Tom Tromey <tom@tromey.com>
178 * pathstuff.h (get_standard_config_dir): Declare.
179 * pathstuff.cc (get_standard_config_dir): New function.
181 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
183 * common-exceptions.h: Fix indentation.
184 * event-loop.cc: Fix indentation.
185 * fileio.cc: Fix indentation.
186 * filestuff.cc: Fix indentation.
187 * gdb-dlfcn.cc: Fix indentation.
188 * gdb_string_view.h: Fix indentation.
189 * job-control.cc: Fix indentation.
190 * signals.cc: Fix indentation.
192 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
194 * common-debug.cc (debug_prefixed_printf): New.
195 * common-debug.h (debug_prefixed_printf): New declaration.
196 * event-loop.cc (event_loop_debug_printf_1): Remove.
197 * event-loop.h (event_loop_debug_printf_1): Remove.
198 (event_loop_debug_printf): Use debug_prefixed_printf.
199 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
201 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
203 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
205 * configure: Re-generate.
207 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
209 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
211 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
213 * configure: Re-generate.
214 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
217 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
219 * configure: Re-generate.
220 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
223 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
225 * configure: Re-generate.
226 * ptrace.m4: Re-indent.
228 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
230 * aclocal.m4: Re-generate.
231 * configure: Re-generate.
232 * configure.ac: Remove AM_PROG_CC_STDC.
234 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
236 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
238 * configure: Re-generate.
240 2020-10-26 Pedro Alves <pedro@palves.net>
242 * eintr.h (handle_eintr): Replace Ret template parameter with
243 ErrorValType. Use it as type of the failure value. Deduce the
244 function's return type using decltype. Use lowercase for function
247 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
249 * Makefile.in: Re-generate.
250 * acinclude.m4: Update ptrace.m4 path.
251 * ptrace.m4: Move here.
253 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
255 * tdesc.h (allocate_target_description): Update return type.
257 2020-10-07 Tom Tromey <tromey@adacore.com>
259 * Makefile.in: Rebuild.
260 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
261 * search.h: New file.
262 * search.cc: New file.
264 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
266 * event-loop.h (debug_event_loop): New variable declaration.
267 (event_loop_debug_printf_1): New function declaration.
268 (event_loop_debug_printf): New macro.
269 * event-loop.cc (debug_event_loop): New variable.
270 (handle_file_event): Add debug print.
271 (event_loop_debug_printf_1): New function.
273 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
275 * common-debug.cc (debug_prefixed_vprintf): Move here.
276 * common-debug.h (debug_prefixed_vprintf): Move here.
278 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
280 * event-loop.h (add_file_handler): Add "name" parameter.
281 * event-loop.cc (struct file_handler) <name>: New field.
282 (create_file_handler): Add "name" parameter, assign it to file
284 (add_file_handler): Add "name" parameter.
286 2020-10-01 Kamil Rytarowski <n54@gmx.com>
288 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
290 2020-09-29 Pedro Alves <pedro@palves.net>
292 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
293 class instead of an alias template and adjust static_assert.
295 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
297 * event-loop.c (struct file_handler): Remove typedef, re-format.
299 2020-09-16 John Baldwin <jhb@FreeBSD.org>
301 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
302 * configure, config.in: Regenerate.
304 2020-09-14 Pedro Alves <pedro@palves.net>
306 * enum-flags.h: Include "traits.h".
307 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
309 (enum_underlying_type): Update comment.
310 (namespace enum_flags_detail): New. Move struct zero_type here.
311 (EnumIsUnsigned, EnumIsSigned): New.
312 (class enum_flags): Make most methods constexpr.
313 (operator&=, operator|=, operator^=): Take an enum_flags instead
314 of an enum_type. Make rvalue ref versions deleted.
315 (operator enum_type()): Delete.
316 (operator&, operator|, operator^, operator~): Delete, moved out of
319 (is_enum_flags_enum_type_t): Declare.
320 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
321 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
323 (operator~): Now constexpr and reimplemented.
324 (operator<<, operator>>): New deleted functions.
325 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
327 2020-09-14 Pedro Alves <pedro@palves.net>
329 * traits.h (struct nonesuch, struct detector, detected_or)
330 (detected_or_t, is_detected, detected_t, detected_or)
331 (detected_or_t, is_detected_exact, is_detected_convertible): New.
332 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
334 2020-09-10 Kamil Rytarowski <n54@gmx.com>
338 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
340 * selftest.h (run_tests): Change parameter to array_view.
341 * selftest.c (run_tests): Change parameter to array_view and use
344 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
347 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
349 * Makefile.in: Regenerate.
350 * configure, config.in: Regenerate.
352 2020-07-28 Tom de Vries <tdevries@suse.de>
355 * gdb_optional.h (class optional): Add volatile member to union
356 contaning m_dummy and m_item.
358 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
360 * tdesc.h (struct target_desc_deleter): Moved here
361 from gdb/target-descriptions.h, extend comment.
362 (target_desc_up): Likewise.
364 2020-06-30 Tom Tromey <tromey@adacore.com>
367 * gdb_string_view.h (basic_string_view::to_string): Remove.
368 (gdb::to_string): New function.
370 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
372 * tdesc.h (class print_xml_feature) <add_line>: Add
375 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
377 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
378 output content, and call indent as needed in all overloaded
380 (print_xml_feature::visit_post): Likewise.
381 (print_xml_feature::visit): Likewise.
382 (print_xml_feature::add_line): Two new overloaded functions.
383 * tdesc.h (print_xml_feature::indent): New member function.
384 (print_xml_feature::add_line): Two new overloaded member
386 (print_xml_feature::m_depth): New member variable.
388 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
390 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
392 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
393 (tdesc_compatible_info_up): New typedef.
394 (tdesc_compatible_info_list): Declare new function.
395 (tdesc_compatible_info_arch_name): Declare new function.
397 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
399 * common-utils.cc, common-utils.h (stringify_argv): Drop
400 now unused function stringify_argv
402 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
404 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
405 Adapt to take a gdb::array_view<char * const> parameter.
408 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
410 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
411 Adapt to handle zero args and return a std::string.
414 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
416 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
417 Move function here from gdb/infcmd.c, gdb/inferior.h
419 2020-05-14 Kevin Buettner <kevinb@redhat.com>
421 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
423 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
425 * common-regcache.h (regcache_read_pc_protected): New function
428 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
432 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
434 * common-defs.h: Include cstdlib.h.
436 2020-04-20 Tom Tromey <tromey@adacore.com>
438 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
439 Use initialization style. Don't call destroy.
440 * scoped_fd.h (class scoped_fd): Mark move constructor as
442 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
445 2020-04-13 Tom Tromey <tom@tromey.com>
447 * event-loop.c: Move comment. Remove obsolete comment.
449 2020-04-13 Tom Tromey <tom@tromey.com>
451 * event-loop.h: Move from ../gdb/.
452 * event-loop.cc: Move from ../gdb/.
454 2020-04-13 Tom Tromey <tom@tromey.com>
456 * errors.h (flush_streams): Declare.
458 2020-04-13 Tom Tromey <tom@tromey.com>
460 * gdb_select.h: Move from ../gdb/.
462 2020-04-13 Tom Tromey <tom@tromey.com>
464 * config.in, configure: Rebuild.
465 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
466 sys/select.h, and poll.
468 2020-03-31 Tom Tromey <tromey@adacore.com>
470 * btrace-common.cc (btrace_data_append): Conditionally call
473 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
475 * create-version.sh: Resolve issues highlighted by shellcheck.
477 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
479 * config.in: Re-generate.
480 * configure: Re-generate.
482 2020-03-17 Kamil Rytarowski <n54@gmx.com>
484 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
486 2020-03-12 Tom Tromey <tom@tromey.com>
488 * common-types.h: Remove GDBSERVER code.
489 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
490 * common-defs.h: Remove GDBSERVER code.
492 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
494 * selftest.m4: Moved from gdb/.
495 * acinclude.m4: Update path to selftest.m4.
497 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
499 * configure.ac: Don't source bfd/development.sh.
500 * common.m4: Source bfd/development.sh.
501 * configure: Re-generate.
503 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
505 * configure: Re-generate.
507 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
509 * configure: Re-generate.
510 * warning.m4: Enable -Wmissing-prototypes.
512 2020-03-08 Tom Tromey <tom@tromey.com>
514 * gdb_binary_search.h: Fix two typos.
516 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
518 * .dir-locals.el: New file.
520 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
522 * configure.ac: Added call development.sh.
523 * configure: Regenerate.
525 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527 * .gitattributes: New file.
529 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
531 * Makefile.in: Re-generate.
533 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
535 * gdb-dlfcn.h (gdb_dlopen): Update comment.
537 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
539 * configure: Regenerate.
541 2020-02-14 Tom Tromey <tom@tromey.com>
543 * common-defs.h: Change path to gnulib/config.h.
545 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
547 * Makefile.am: Rename source files from .c to .cc.
548 (CC, CFLAGS): Don't override.
549 (AM_CFLAGS): Rename to ...
550 (AM_CXXFLAGS): ... this.
551 * Makefile.in: Re-generate.
552 * %.c: Rename to %.cc.
554 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
556 * configure: Re-generate.
558 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
560 * warning.m4: Add -Wstrict-null-sentinel.
561 * configure: Re-generate.
563 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
565 * warning.m4: Move here, from gdb/warning.m4.
566 * acinclude.m4: Update warning.m4 path.
567 * Makefile.in: Re-generate.
569 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
571 * acinclude.m4: Include ../gdb/warning.m4.
572 * configure.ac: Use AM_GDB_WARNINGS.
573 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
574 * Makefile.in: Re-generate.
575 * configure: Re-generate.
577 2020-02-10 Tom de Vries <tdevries@suse.de>
579 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
581 2020-01-24 Christian Biesinger <cbiesinger@google.com>
583 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
584 version of pthread_setname_np.
586 2020-01-17 Pedro Alves <palves@redhat.com>
588 * Makefile.am: Append CXX_DIALECT to CXX.
589 * Makefile.in: Regenerate.
591 2020-01-17 Pedro Alves <palves@redhat.com>
593 * configure.ac: Generate config.h instead of support-config.h.
594 * common-defs.h: Include <gdbsupport/config.h> instead of
595 <gdbsupport/support-config.h>.
596 * Makefile.in: Regenerate.
597 * configure: Regenerate.
599 2020-01-14 Tom Tromey <tom@tromey.com>
601 * Makefile.in: Rebuild.
602 * Makefile.am (check-defines): New target.
603 * check-defines.el: New file.
605 2020-01-14 Tom Tromey <tom@tromey.com>
607 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
609 * common.m4 (GDB_AC_COMMON): Move many checks from
611 * acinclude.m4: Include bfd.m4, ptrace.m4.
613 2020-01-14 Tom Tromey <tom@tromey.com>
615 * common-defs.h: Add GDBSERVER case. Update includes.
616 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
617 Makefile.am, Makefile.in, README: New files.
618 * Moved from ../gdb/gdbsupport/