1 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
3 * observable.h (observer_debug_printf,
4 OBSERVER_SCOPED_DEBUG_START_END): New.
5 (class observable) <notify, attach>: Use them.
7 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
9 * common-debug.h (struct scoped_debug_start_end)
10 <scoped_debug_start_end>: Change start_msg/end_msg for
11 start_prefix/end_prefix. Add format string parameter and make
13 <~scoped_debug_start_end>: Adjust.
14 <m_end_msg>: Rename to...
15 <m_end_prefix>: ... this.
18 (scoped_debug_start_end): Make variadic.
19 (scoped_debug_enter_exit): Adjust.
21 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
23 * observable.h (class observable) <struct observer> <observer>:
26 <attach>: Add name parameter, update all callers.
28 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
30 * observable.h (class observable) <struct observer>: New.
31 <detach, notify>: Update.
32 <m_observers>: Change type to vector of observers.
34 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
36 * observable.h (observer_debug): Change to bool.
38 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
40 * common-debug.h: Include preprocessor.h.
42 2021-03-24 Luis Machado <luis.machado@linaro.org>
44 * rsp-low.cc (fromhex, hex2bin): Move to ...
45 * common-utils.cc: ... here.
46 (fromhex) Change error message text to not be RSP-specific.
47 * rsp-low.h (fromhex, hex2bin): Move to ...
48 * common-utils.h: ... here.
50 2021-03-21 Alan Modra <amodra@gmail.com>
52 * common-utils.h (startswith): Delete version now supplied by bfd.h.
54 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
56 * common-defs.h (ATTRIBUTE_PRINTF): Rename
57 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
58 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
59 free if this macro is defined.
61 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
63 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
65 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
66 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
68 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
70 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
71 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
74 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
77 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
78 find_gdb_home_config_file): Add empty string check.
80 2021-01-06 Mike Frysinger <vapier@gentoo.org>
82 * common-utils.h (align_up): Fix typo in header comment.
84 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
86 * common-debug.h (debug_print_depth): New.
87 (struct scoped_debug_start_end): New.
88 (scoped_debug_start_end): New.
89 (scoped_debug_enter_exit): New.
90 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
92 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
94 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
96 (extract_string_maybe_quoted): Use safe-ctype function versions.
97 (is_digit_in_base): Likewise.
98 (digit_to_int): Likewise.
99 (strtoulst): Likewise.
100 (skip_spaces): Likewise.
101 (skip_to_space): Likewise.
103 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
105 * common-debug.h (debug_prefixed_printf_cond): New.
106 * event-loop.h (event_loop_debug_printf): Use
107 debug_prefixed_printf_cond.
109 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
111 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
112 variable when running on Windows.
114 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
116 * tdesc.cc (print_xml_feature::visit): Print enum fields using
119 2020-12-01 Chungyi Chi <demonic@csie.io>
121 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
123 2020-11-20 Tom Tromey <tromey@adacore.com>
125 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
128 2020-11-10 Tom Tromey <tromey@adacore.com>
131 * pathstuff.h: Move include block here...
132 * pathstuff.cc: ... from here.
134 2020-11-02 Tom Tromey <tom@tromey.com>
136 * pathstuff.h (get_standard_config_dir): Declare.
137 * pathstuff.cc (get_standard_config_dir): New function.
139 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
141 * common-exceptions.h: Fix indentation.
142 * event-loop.cc: Fix indentation.
143 * fileio.cc: Fix indentation.
144 * filestuff.cc: Fix indentation.
145 * gdb-dlfcn.cc: Fix indentation.
146 * gdb_string_view.h: Fix indentation.
147 * job-control.cc: Fix indentation.
148 * signals.cc: Fix indentation.
150 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
152 * common-debug.cc (debug_prefixed_printf): New.
153 * common-debug.h (debug_prefixed_printf): New declaration.
154 * event-loop.cc (event_loop_debug_printf_1): Remove.
155 * event-loop.h (event_loop_debug_printf_1): Remove.
156 (event_loop_debug_printf): Use debug_prefixed_printf.
157 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
159 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
161 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
163 * configure: Re-generate.
165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
167 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
169 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
171 * configure: Re-generate.
172 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
177 * configure: Re-generate.
178 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
181 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
183 * configure: Re-generate.
184 * ptrace.m4: Re-indent.
186 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
188 * aclocal.m4: Re-generate.
189 * configure: Re-generate.
190 * configure.ac: Remove AM_PROG_CC_STDC.
192 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
194 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
196 * configure: Re-generate.
198 2020-10-26 Pedro Alves <pedro@palves.net>
200 * eintr.h (handle_eintr): Replace Ret template parameter with
201 ErrorValType. Use it as type of the failure value. Deduce the
202 function's return type using decltype. Use lowercase for function
205 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
207 * Makefile.in: Re-generate.
208 * acinclude.m4: Update ptrace.m4 path.
209 * ptrace.m4: Move here.
211 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
213 * tdesc.h (allocate_target_description): Update return type.
215 2020-10-07 Tom Tromey <tromey@adacore.com>
217 * Makefile.in: Rebuild.
218 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
219 * search.h: New file.
220 * search.cc: New file.
222 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
224 * event-loop.h (debug_event_loop): New variable declaration.
225 (event_loop_debug_printf_1): New function declaration.
226 (event_loop_debug_printf): New macro.
227 * event-loop.cc (debug_event_loop): New variable.
228 (handle_file_event): Add debug print.
229 (event_loop_debug_printf_1): New function.
231 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
233 * common-debug.cc (debug_prefixed_vprintf): Move here.
234 * common-debug.h (debug_prefixed_vprintf): Move here.
236 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
238 * event-loop.h (add_file_handler): Add "name" parameter.
239 * event-loop.cc (struct file_handler) <name>: New field.
240 (create_file_handler): Add "name" parameter, assign it to file
242 (add_file_handler): Add "name" parameter.
244 2020-10-01 Kamil Rytarowski <n54@gmx.com>
246 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
248 2020-09-29 Pedro Alves <pedro@palves.net>
250 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
251 class instead of an alias template and adjust static_assert.
253 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
255 * event-loop.c (struct file_handler): Remove typedef, re-format.
257 2020-09-16 John Baldwin <jhb@FreeBSD.org>
259 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
260 * configure, config.in: Regenerate.
262 2020-09-14 Pedro Alves <pedro@palves.net>
264 * enum-flags.h: Include "traits.h".
265 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
267 (enum_underlying_type): Update comment.
268 (namespace enum_flags_detail): New. Move struct zero_type here.
269 (EnumIsUnsigned, EnumIsSigned): New.
270 (class enum_flags): Make most methods constexpr.
271 (operator&=, operator|=, operator^=): Take an enum_flags instead
272 of an enum_type. Make rvalue ref versions deleted.
273 (operator enum_type()): Delete.
274 (operator&, operator|, operator^, operator~): Delete, moved out of
277 (is_enum_flags_enum_type_t): Declare.
278 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
279 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
281 (operator~): Now constexpr and reimplemented.
282 (operator<<, operator>>): New deleted functions.
283 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
285 2020-09-14 Pedro Alves <pedro@palves.net>
287 * traits.h (struct nonesuch, struct detector, detected_or)
288 (detected_or_t, is_detected, detected_t, detected_or)
289 (detected_or_t, is_detected_exact, is_detected_convertible): New.
290 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
296 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
298 * selftest.h (run_tests): Change parameter to array_view.
299 * selftest.c (run_tests): Change parameter to array_view and use
302 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
305 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
307 * Makefile.in: Regenerate.
308 * configure, config.in: Regenerate.
310 2020-07-28 Tom de Vries <tdevries@suse.de>
313 * gdb_optional.h (class optional): Add volatile member to union
314 contaning m_dummy and m_item.
316 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
318 * tdesc.h (struct target_desc_deleter): Moved here
319 from gdb/target-descriptions.h, extend comment.
320 (target_desc_up): Likewise.
322 2020-06-30 Tom Tromey <tromey@adacore.com>
325 * gdb_string_view.h (basic_string_view::to_string): Remove.
326 (gdb::to_string): New function.
328 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
330 * tdesc.h (class print_xml_feature) <add_line>: Add
333 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
335 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
336 output content, and call indent as needed in all overloaded
338 (print_xml_feature::visit_post): Likewise.
339 (print_xml_feature::visit): Likewise.
340 (print_xml_feature::add_line): Two new overloaded functions.
341 * tdesc.h (print_xml_feature::indent): New member function.
342 (print_xml_feature::add_line): Two new overloaded member
344 (print_xml_feature::m_depth): New member variable.
346 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
348 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
350 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
351 (tdesc_compatible_info_up): New typedef.
352 (tdesc_compatible_info_list): Declare new function.
353 (tdesc_compatible_info_arch_name): Declare new function.
355 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
357 * common-utils.cc, common-utils.h (stringify_argv): Drop
358 now unused function stringify_argv
360 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
362 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
363 Adapt to take a gdb::array_view<char * const> parameter.
366 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
368 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
369 Adapt to handle zero args and return a std::string.
372 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
374 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
375 Move function here from gdb/infcmd.c, gdb/inferior.h
377 2020-05-14 Kevin Buettner <kevinb@redhat.com>
379 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
381 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
383 * common-regcache.h (regcache_read_pc_protected): New function
386 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
388 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
390 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
392 * common-defs.h: Include cstdlib.h.
394 2020-04-20 Tom Tromey <tromey@adacore.com>
396 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
397 Use initialization style. Don't call destroy.
398 * scoped_fd.h (class scoped_fd): Mark move constructor as
400 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
403 2020-04-13 Tom Tromey <tom@tromey.com>
405 * event-loop.c: Move comment. Remove obsolete comment.
407 2020-04-13 Tom Tromey <tom@tromey.com>
409 * event-loop.h: Move from ../gdb/.
410 * event-loop.cc: Move from ../gdb/.
412 2020-04-13 Tom Tromey <tom@tromey.com>
414 * errors.h (flush_streams): Declare.
416 2020-04-13 Tom Tromey <tom@tromey.com>
418 * gdb_select.h: Move from ../gdb/.
420 2020-04-13 Tom Tromey <tom@tromey.com>
422 * config.in, configure: Rebuild.
423 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
424 sys/select.h, and poll.
426 2020-03-31 Tom Tromey <tromey@adacore.com>
428 * btrace-common.cc (btrace_data_append): Conditionally call
431 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
433 * create-version.sh: Resolve issues highlighted by shellcheck.
435 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
437 * config.in: Re-generate.
438 * configure: Re-generate.
440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
442 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
444 2020-03-12 Tom Tromey <tom@tromey.com>
446 * common-types.h: Remove GDBSERVER code.
447 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
448 * common-defs.h: Remove GDBSERVER code.
450 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
452 * selftest.m4: Moved from gdb/.
453 * acinclude.m4: Update path to selftest.m4.
455 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
457 * configure.ac: Don't source bfd/development.sh.
458 * common.m4: Source bfd/development.sh.
459 * configure: Re-generate.
461 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
463 * configure: Re-generate.
465 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
467 * configure: Re-generate.
468 * warning.m4: Enable -Wmissing-prototypes.
470 2020-03-08 Tom Tromey <tom@tromey.com>
472 * gdb_binary_search.h: Fix two typos.
474 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
476 * .dir-locals.el: New file.
478 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
480 * configure.ac: Added call development.sh.
481 * configure: Regenerate.
483 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
485 * .gitattributes: New file.
487 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
489 * Makefile.in: Re-generate.
491 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
493 * gdb-dlfcn.h (gdb_dlopen): Update comment.
495 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
497 * configure: Regenerate.
499 2020-02-14 Tom Tromey <tom@tromey.com>
501 * common-defs.h: Change path to gnulib/config.h.
503 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
505 * Makefile.am: Rename source files from .c to .cc.
506 (CC, CFLAGS): Don't override.
507 (AM_CFLAGS): Rename to ...
508 (AM_CXXFLAGS): ... this.
509 * Makefile.in: Re-generate.
510 * %.c: Rename to %.cc.
512 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
514 * configure: Re-generate.
516 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
518 * warning.m4: Add -Wstrict-null-sentinel.
519 * configure: Re-generate.
521 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
523 * warning.m4: Move here, from gdb/warning.m4.
524 * acinclude.m4: Update warning.m4 path.
525 * Makefile.in: Re-generate.
527 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
529 * acinclude.m4: Include ../gdb/warning.m4.
530 * configure.ac: Use AM_GDB_WARNINGS.
531 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
532 * Makefile.in: Re-generate.
533 * configure: Re-generate.
535 2020-02-10 Tom de Vries <tdevries@suse.de>
537 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
539 2020-01-24 Christian Biesinger <cbiesinger@google.com>
541 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
542 version of pthread_setname_np.
544 2020-01-17 Pedro Alves <palves@redhat.com>
546 * Makefile.am: Append CXX_DIALECT to CXX.
547 * Makefile.in: Regenerate.
549 2020-01-17 Pedro Alves <palves@redhat.com>
551 * configure.ac: Generate config.h instead of support-config.h.
552 * common-defs.h: Include <gdbsupport/config.h> instead of
553 <gdbsupport/support-config.h>.
554 * Makefile.in: Regenerate.
555 * configure: Regenerate.
557 2020-01-14 Tom Tromey <tom@tromey.com>
559 * Makefile.in: Rebuild.
560 * Makefile.am (check-defines): New target.
561 * check-defines.el: New file.
563 2020-01-14 Tom Tromey <tom@tromey.com>
565 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
567 * common.m4 (GDB_AC_COMMON): Move many checks from
569 * acinclude.m4: Include bfd.m4, ptrace.m4.
571 2020-01-14 Tom Tromey <tom@tromey.com>
573 * common-defs.h: Add GDBSERVER case. Update includes.
574 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
575 Makefile.am, Makefile.in, README: New files.
576 * Moved from ../gdb/gdbsupport/