1 2021-07-30 Tom de Vries <tdevries@suse.de>
3 * common-defs.h (ATTRIBUTE_NONNULL): Disable.
5 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
7 * scoped_ignore_signal.h (struct scoped_ignore_signal)
8 <~scoped_ignore_signal>: Use sigtimedwait if HAVE_SIGTIMEDWAIT
9 is defined, else use sigpending + sigwait.
11 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
13 * common.m4 (GDB_AC_COMMON): Check for sigtimedwait.
14 * config.in, configure: Re-generate.
16 2021-06-17 Pedro Alves <pedro@palves.net>
18 * scoped_ignore_signal.h
19 (scoped_ignore_signal::scoped_ignore_signal)
20 [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of
21 changing the signal disposition for the whole process.
22 (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]:
23 Use sigtimedwait and sigprocmask to flush and unblock the signal.
25 2021-06-17 Pedro Alves <pedro@palves.net>
27 * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.
29 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
31 * .dir-locals.el: Set sentence-end-double-space for all modes, and
32 set brace-list-open to 0 for C and C++ modes.
34 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
36 * Makefile.in: Re-generate.
37 * config.in: Re-generate.
38 * configure: Re-generate.
40 2021-05-08 Pedro Alves <pedro@palves.net>
42 * common.m4 (personality test): Remove.
44 2021-04-30 Tom Tromey <tromey@adacore.com>
46 * thread-pool.cc (thread_pool::post_task): Update.
47 * thread-pool.h (class thread_pool) <post_task>: Take rvalue
48 reference to function.
50 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
51 Simon Marchi <simon.marchi@polymtl.ca>
53 * observable.h (class observable): Extend to allow specifying
54 dependencies between observers, keep vector holding observers
55 sorted so that dependencies are notified before observers
58 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
60 * observable.h (observer_debug_printf,
61 OBSERVER_SCOPED_DEBUG_START_END): New.
62 (class observable) <notify, attach>: Use them.
64 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
66 * common-debug.h (struct scoped_debug_start_end)
67 <scoped_debug_start_end>: Change start_msg/end_msg for
68 start_prefix/end_prefix. Add format string parameter and make
70 <~scoped_debug_start_end>: Adjust.
71 <m_end_msg>: Rename to...
72 <m_end_prefix>: ... this.
75 (scoped_debug_start_end): Make variadic.
76 (scoped_debug_enter_exit): Adjust.
78 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
80 * observable.h (class observable) <struct observer> <observer>:
83 <attach>: Add name parameter, update all callers.
85 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
87 * observable.h (class observable) <struct observer>: New.
88 <detach, notify>: Update.
89 <m_observers>: Change type to vector of observers.
91 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
93 * observable.h (observer_debug): Change to bool.
95 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
97 * common-debug.h: Include preprocessor.h.
99 2021-03-24 Luis Machado <luis.machado@linaro.org>
101 * rsp-low.cc (fromhex, hex2bin): Move to ...
102 * common-utils.cc: ... here.
103 (fromhex) Change error message text to not be RSP-specific.
104 * rsp-low.h (fromhex, hex2bin): Move to ...
105 * common-utils.h: ... here.
107 2021-03-21 Alan Modra <amodra@gmail.com>
109 * common-utils.h (startswith): Delete version now supplied by bfd.h.
111 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
113 * common-defs.h (ATTRIBUTE_PRINTF): Rename
114 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
115 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
116 free if this macro is defined.
118 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
120 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
122 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
123 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
125 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
127 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
128 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
131 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
134 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
135 find_gdb_home_config_file): Add empty string check.
137 2021-01-06 Mike Frysinger <vapier@gentoo.org>
139 * common-utils.h (align_up): Fix typo in header comment.
141 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
143 * common-debug.h (debug_print_depth): New.
144 (struct scoped_debug_start_end): New.
145 (scoped_debug_start_end): New.
146 (scoped_debug_enter_exit): New.
147 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
149 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
151 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
153 (extract_string_maybe_quoted): Use safe-ctype function versions.
154 (is_digit_in_base): Likewise.
155 (digit_to_int): Likewise.
156 (strtoulst): Likewise.
157 (skip_spaces): Likewise.
158 (skip_to_space): Likewise.
160 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
162 * common-debug.h (debug_prefixed_printf_cond): New.
163 * event-loop.h (event_loop_debug_printf): Use
164 debug_prefixed_printf_cond.
166 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
168 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
169 variable when running on Windows.
171 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
173 * tdesc.cc (print_xml_feature::visit): Print enum fields using
176 2020-12-01 Chungyi Chi <demonic@csie.io>
178 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
180 2020-11-20 Tom Tromey <tromey@adacore.com>
182 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
185 2020-11-10 Tom Tromey <tromey@adacore.com>
188 * pathstuff.h: Move include block here...
189 * pathstuff.cc: ... from here.
191 2020-11-02 Tom Tromey <tom@tromey.com>
193 * pathstuff.h (get_standard_config_dir): Declare.
194 * pathstuff.cc (get_standard_config_dir): New function.
196 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
198 * common-exceptions.h: Fix indentation.
199 * event-loop.cc: Fix indentation.
200 * fileio.cc: Fix indentation.
201 * filestuff.cc: Fix indentation.
202 * gdb-dlfcn.cc: Fix indentation.
203 * gdb_string_view.h: Fix indentation.
204 * job-control.cc: Fix indentation.
205 * signals.cc: Fix indentation.
207 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
209 * common-debug.cc (debug_prefixed_printf): New.
210 * common-debug.h (debug_prefixed_printf): New declaration.
211 * event-loop.cc (event_loop_debug_printf_1): Remove.
212 * event-loop.h (event_loop_debug_printf_1): Remove.
213 (event_loop_debug_printf): Use debug_prefixed_printf.
214 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
216 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
218 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
220 * configure: Re-generate.
222 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
224 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
226 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
228 * configure: Re-generate.
229 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
232 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
234 * configure: Re-generate.
235 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
238 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
240 * configure: Re-generate.
241 * ptrace.m4: Re-indent.
243 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
245 * aclocal.m4: Re-generate.
246 * configure: Re-generate.
247 * configure.ac: Remove AM_PROG_CC_STDC.
249 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
251 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
253 * configure: Re-generate.
255 2020-10-26 Pedro Alves <pedro@palves.net>
257 * eintr.h (handle_eintr): Replace Ret template parameter with
258 ErrorValType. Use it as type of the failure value. Deduce the
259 function's return type using decltype. Use lowercase for function
262 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
264 * Makefile.in: Re-generate.
265 * acinclude.m4: Update ptrace.m4 path.
266 * ptrace.m4: Move here.
268 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
270 * tdesc.h (allocate_target_description): Update return type.
272 2020-10-07 Tom Tromey <tromey@adacore.com>
274 * Makefile.in: Rebuild.
275 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
276 * search.h: New file.
277 * search.cc: New file.
279 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
281 * event-loop.h (debug_event_loop): New variable declaration.
282 (event_loop_debug_printf_1): New function declaration.
283 (event_loop_debug_printf): New macro.
284 * event-loop.cc (debug_event_loop): New variable.
285 (handle_file_event): Add debug print.
286 (event_loop_debug_printf_1): New function.
288 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
290 * common-debug.cc (debug_prefixed_vprintf): Move here.
291 * common-debug.h (debug_prefixed_vprintf): Move here.
293 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
295 * event-loop.h (add_file_handler): Add "name" parameter.
296 * event-loop.cc (struct file_handler) <name>: New field.
297 (create_file_handler): Add "name" parameter, assign it to file
299 (add_file_handler): Add "name" parameter.
301 2020-10-01 Kamil Rytarowski <n54@gmx.com>
303 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
305 2020-09-29 Pedro Alves <pedro@palves.net>
307 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
308 class instead of an alias template and adjust static_assert.
310 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
312 * event-loop.c (struct file_handler): Remove typedef, re-format.
314 2020-09-16 John Baldwin <jhb@FreeBSD.org>
316 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
317 * configure, config.in: Regenerate.
319 2020-09-14 Pedro Alves <pedro@palves.net>
321 * enum-flags.h: Include "traits.h".
322 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
324 (enum_underlying_type): Update comment.
325 (namespace enum_flags_detail): New. Move struct zero_type here.
326 (EnumIsUnsigned, EnumIsSigned): New.
327 (class enum_flags): Make most methods constexpr.
328 (operator&=, operator|=, operator^=): Take an enum_flags instead
329 of an enum_type. Make rvalue ref versions deleted.
330 (operator enum_type()): Delete.
331 (operator&, operator|, operator^, operator~): Delete, moved out of
334 (is_enum_flags_enum_type_t): Declare.
335 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
336 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
338 (operator~): Now constexpr and reimplemented.
339 (operator<<, operator>>): New deleted functions.
340 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
342 2020-09-14 Pedro Alves <pedro@palves.net>
344 * traits.h (struct nonesuch, struct detector, detected_or)
345 (detected_or_t, is_detected, detected_t, detected_or)
346 (detected_or_t, is_detected_exact, is_detected_convertible): New.
347 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
349 2020-09-10 Kamil Rytarowski <n54@gmx.com>
353 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
355 * selftest.h (run_tests): Change parameter to array_view.
356 * selftest.c (run_tests): Change parameter to array_view and use
359 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
362 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
364 * Makefile.in: Regenerate.
365 * configure, config.in: Regenerate.
367 2020-07-28 Tom de Vries <tdevries@suse.de>
370 * gdb_optional.h (class optional): Add volatile member to union
371 contaning m_dummy and m_item.
373 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
375 * tdesc.h (struct target_desc_deleter): Moved here
376 from gdb/target-descriptions.h, extend comment.
377 (target_desc_up): Likewise.
379 2020-06-30 Tom Tromey <tromey@adacore.com>
382 * gdb_string_view.h (basic_string_view::to_string): Remove.
383 (gdb::to_string): New function.
385 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
387 * tdesc.h (class print_xml_feature) <add_line>: Add
390 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
392 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
393 output content, and call indent as needed in all overloaded
395 (print_xml_feature::visit_post): Likewise.
396 (print_xml_feature::visit): Likewise.
397 (print_xml_feature::add_line): Two new overloaded functions.
398 * tdesc.h (print_xml_feature::indent): New member function.
399 (print_xml_feature::add_line): Two new overloaded member
401 (print_xml_feature::m_depth): New member variable.
403 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
405 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
407 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
408 (tdesc_compatible_info_up): New typedef.
409 (tdesc_compatible_info_list): Declare new function.
410 (tdesc_compatible_info_arch_name): Declare new function.
412 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
414 * common-utils.cc, common-utils.h (stringify_argv): Drop
415 now unused function stringify_argv
417 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
419 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
420 Adapt to take a gdb::array_view<char * const> parameter.
423 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
425 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
426 Adapt to handle zero args and return a std::string.
429 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
431 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
432 Move function here from gdb/infcmd.c, gdb/inferior.h
434 2020-05-14 Kevin Buettner <kevinb@redhat.com>
436 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
438 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
440 * common-regcache.h (regcache_read_pc_protected): New function
443 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
445 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
447 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
449 * common-defs.h: Include cstdlib.h.
451 2020-04-20 Tom Tromey <tromey@adacore.com>
453 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
454 Use initialization style. Don't call destroy.
455 * scoped_fd.h (class scoped_fd): Mark move constructor as
457 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
460 2020-04-13 Tom Tromey <tom@tromey.com>
462 * event-loop.c: Move comment. Remove obsolete comment.
464 2020-04-13 Tom Tromey <tom@tromey.com>
466 * event-loop.h: Move from ../gdb/.
467 * event-loop.cc: Move from ../gdb/.
469 2020-04-13 Tom Tromey <tom@tromey.com>
471 * errors.h (flush_streams): Declare.
473 2020-04-13 Tom Tromey <tom@tromey.com>
475 * gdb_select.h: Move from ../gdb/.
477 2020-04-13 Tom Tromey <tom@tromey.com>
479 * config.in, configure: Rebuild.
480 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
481 sys/select.h, and poll.
483 2020-03-31 Tom Tromey <tromey@adacore.com>
485 * btrace-common.cc (btrace_data_append): Conditionally call
488 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
490 * create-version.sh: Resolve issues highlighted by shellcheck.
492 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
494 * config.in: Re-generate.
495 * configure: Re-generate.
497 2020-03-17 Kamil Rytarowski <n54@gmx.com>
499 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
501 2020-03-12 Tom Tromey <tom@tromey.com>
503 * common-types.h: Remove GDBSERVER code.
504 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
505 * common-defs.h: Remove GDBSERVER code.
507 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
509 * selftest.m4: Moved from gdb/.
510 * acinclude.m4: Update path to selftest.m4.
512 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
514 * configure.ac: Don't source bfd/development.sh.
515 * common.m4: Source bfd/development.sh.
516 * configure: Re-generate.
518 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
520 * configure: Re-generate.
522 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
524 * configure: Re-generate.
525 * warning.m4: Enable -Wmissing-prototypes.
527 2020-03-08 Tom Tromey <tom@tromey.com>
529 * gdb_binary_search.h: Fix two typos.
531 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
533 * .dir-locals.el: New file.
535 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
537 * configure.ac: Added call development.sh.
538 * configure: Regenerate.
540 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542 * .gitattributes: New file.
544 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
546 * Makefile.in: Re-generate.
548 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
550 * gdb-dlfcn.h (gdb_dlopen): Update comment.
552 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
554 * configure: Regenerate.
556 2020-02-14 Tom Tromey <tom@tromey.com>
558 * common-defs.h: Change path to gnulib/config.h.
560 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
562 * Makefile.am: Rename source files from .c to .cc.
563 (CC, CFLAGS): Don't override.
564 (AM_CFLAGS): Rename to ...
565 (AM_CXXFLAGS): ... this.
566 * Makefile.in: Re-generate.
567 * %.c: Rename to %.cc.
569 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
571 * configure: Re-generate.
573 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
575 * warning.m4: Add -Wstrict-null-sentinel.
576 * configure: Re-generate.
578 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
580 * warning.m4: Move here, from gdb/warning.m4.
581 * acinclude.m4: Update warning.m4 path.
582 * Makefile.in: Re-generate.
584 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
586 * acinclude.m4: Include ../gdb/warning.m4.
587 * configure.ac: Use AM_GDB_WARNINGS.
588 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
589 * Makefile.in: Re-generate.
590 * configure: Re-generate.
592 2020-02-10 Tom de Vries <tdevries@suse.de>
594 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
596 2020-01-24 Christian Biesinger <cbiesinger@google.com>
598 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
599 version of pthread_setname_np.
601 2020-01-17 Pedro Alves <palves@redhat.com>
603 * Makefile.am: Append CXX_DIALECT to CXX.
604 * Makefile.in: Regenerate.
606 2020-01-17 Pedro Alves <palves@redhat.com>
608 * configure.ac: Generate config.h instead of support-config.h.
609 * common-defs.h: Include <gdbsupport/config.h> instead of
610 <gdbsupport/support-config.h>.
611 * Makefile.in: Regenerate.
612 * configure: Regenerate.
614 2020-01-14 Tom Tromey <tom@tromey.com>
616 * Makefile.in: Rebuild.
617 * Makefile.am (check-defines): New target.
618 * check-defines.el: New file.
620 2020-01-14 Tom Tromey <tom@tromey.com>
622 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
624 * common.m4 (GDB_AC_COMMON): Move many checks from
626 * acinclude.m4: Include bfd.m4, ptrace.m4.
628 2020-01-14 Tom Tromey <tom@tromey.com>
630 * common-defs.h: Add GDBSERVER case. Update includes.
631 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
632 Makefile.am, Makefile.in, README: New files.
633 * Moved from ../gdb/gdbsupport/