1 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
3 * observable.h (class observable) <struct observer>: New.
4 <detach, notify>: Update.
5 <m_observers>: Change type to vector of observers.
7 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
9 * observable.h (observer_debug): Change to bool.
11 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
13 * common-debug.h: Include preprocessor.h.
15 2021-03-24 Luis Machado <luis.machado@linaro.org>
17 * rsp-low.cc (fromhex, hex2bin): Move to ...
18 * common-utils.cc: ... here.
19 (fromhex) Change error message text to not be RSP-specific.
20 * rsp-low.h (fromhex, hex2bin): Move to ...
21 * common-utils.h: ... here.
23 2021-03-21 Alan Modra <amodra@gmail.com>
25 * common-utils.h (startswith): Delete version now supplied by bfd.h.
27 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
29 * common-defs.h (ATTRIBUTE_PRINTF): Rename
30 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
31 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
32 free if this macro is defined.
34 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
36 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
38 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
39 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
41 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
43 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
44 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
47 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
50 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
51 find_gdb_home_config_file): Add empty string check.
53 2021-01-06 Mike Frysinger <vapier@gentoo.org>
55 * common-utils.h (align_up): Fix typo in header comment.
57 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
59 * common-debug.h (debug_print_depth): New.
60 (struct scoped_debug_start_end): New.
61 (scoped_debug_start_end): New.
62 (scoped_debug_enter_exit): New.
63 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
65 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
67 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
69 (extract_string_maybe_quoted): Use safe-ctype function versions.
70 (is_digit_in_base): Likewise.
71 (digit_to_int): Likewise.
72 (strtoulst): Likewise.
73 (skip_spaces): Likewise.
74 (skip_to_space): Likewise.
76 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
78 * common-debug.h (debug_prefixed_printf_cond): New.
79 * event-loop.h (event_loop_debug_printf): Use
80 debug_prefixed_printf_cond.
82 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
84 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
85 variable when running on Windows.
87 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
89 * tdesc.cc (print_xml_feature::visit): Print enum fields using
92 2020-12-01 Chungyi Chi <demonic@csie.io>
94 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
96 2020-11-20 Tom Tromey <tromey@adacore.com>
98 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
101 2020-11-10 Tom Tromey <tromey@adacore.com>
104 * pathstuff.h: Move include block here...
105 * pathstuff.cc: ... from here.
107 2020-11-02 Tom Tromey <tom@tromey.com>
109 * pathstuff.h (get_standard_config_dir): Declare.
110 * pathstuff.cc (get_standard_config_dir): New function.
112 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
114 * common-exceptions.h: Fix indentation.
115 * event-loop.cc: Fix indentation.
116 * fileio.cc: Fix indentation.
117 * filestuff.cc: Fix indentation.
118 * gdb-dlfcn.cc: Fix indentation.
119 * gdb_string_view.h: Fix indentation.
120 * job-control.cc: Fix indentation.
121 * signals.cc: Fix indentation.
123 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
125 * common-debug.cc (debug_prefixed_printf): New.
126 * common-debug.h (debug_prefixed_printf): New declaration.
127 * event-loop.cc (event_loop_debug_printf_1): Remove.
128 * event-loop.h (event_loop_debug_printf_1): Remove.
129 (event_loop_debug_printf): Use debug_prefixed_printf.
130 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
132 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
134 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
136 * configure: Re-generate.
138 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
140 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
142 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
144 * configure: Re-generate.
145 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
148 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
150 * configure: Re-generate.
151 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
154 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
156 * configure: Re-generate.
157 * ptrace.m4: Re-indent.
159 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
161 * aclocal.m4: Re-generate.
162 * configure: Re-generate.
163 * configure.ac: Remove AM_PROG_CC_STDC.
165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
167 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
169 * configure: Re-generate.
171 2020-10-26 Pedro Alves <pedro@palves.net>
173 * eintr.h (handle_eintr): Replace Ret template parameter with
174 ErrorValType. Use it as type of the failure value. Deduce the
175 function's return type using decltype. Use lowercase for function
178 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
180 * Makefile.in: Re-generate.
181 * acinclude.m4: Update ptrace.m4 path.
182 * ptrace.m4: Move here.
184 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
186 * tdesc.h (allocate_target_description): Update return type.
188 2020-10-07 Tom Tromey <tromey@adacore.com>
190 * Makefile.in: Rebuild.
191 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
192 * search.h: New file.
193 * search.cc: New file.
195 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
197 * event-loop.h (debug_event_loop): New variable declaration.
198 (event_loop_debug_printf_1): New function declaration.
199 (event_loop_debug_printf): New macro.
200 * event-loop.cc (debug_event_loop): New variable.
201 (handle_file_event): Add debug print.
202 (event_loop_debug_printf_1): New function.
204 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
206 * common-debug.cc (debug_prefixed_vprintf): Move here.
207 * common-debug.h (debug_prefixed_vprintf): Move here.
209 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
211 * event-loop.h (add_file_handler): Add "name" parameter.
212 * event-loop.cc (struct file_handler) <name>: New field.
213 (create_file_handler): Add "name" parameter, assign it to file
215 (add_file_handler): Add "name" parameter.
217 2020-10-01 Kamil Rytarowski <n54@gmx.com>
219 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
221 2020-09-29 Pedro Alves <pedro@palves.net>
223 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
224 class instead of an alias template and adjust static_assert.
226 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
228 * event-loop.c (struct file_handler): Remove typedef, re-format.
230 2020-09-16 John Baldwin <jhb@FreeBSD.org>
232 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
233 * configure, config.in: Regenerate.
235 2020-09-14 Pedro Alves <pedro@palves.net>
237 * enum-flags.h: Include "traits.h".
238 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
240 (enum_underlying_type): Update comment.
241 (namespace enum_flags_detail): New. Move struct zero_type here.
242 (EnumIsUnsigned, EnumIsSigned): New.
243 (class enum_flags): Make most methods constexpr.
244 (operator&=, operator|=, operator^=): Take an enum_flags instead
245 of an enum_type. Make rvalue ref versions deleted.
246 (operator enum_type()): Delete.
247 (operator&, operator|, operator^, operator~): Delete, moved out of
250 (is_enum_flags_enum_type_t): Declare.
251 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
252 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
254 (operator~): Now constexpr and reimplemented.
255 (operator<<, operator>>): New deleted functions.
256 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
258 2020-09-14 Pedro Alves <pedro@palves.net>
260 * traits.h (struct nonesuch, struct detector, detected_or)
261 (detected_or_t, is_detected, detected_t, detected_or)
262 (detected_or_t, is_detected_exact, is_detected_convertible): New.
263 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
265 2020-09-10 Kamil Rytarowski <n54@gmx.com>
269 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
271 * selftest.h (run_tests): Change parameter to array_view.
272 * selftest.c (run_tests): Change parameter to array_view and use
275 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
277 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
278 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
280 * Makefile.in: Regenerate.
281 * configure, config.in: Regenerate.
283 2020-07-28 Tom de Vries <tdevries@suse.de>
286 * gdb_optional.h (class optional): Add volatile member to union
287 contaning m_dummy and m_item.
289 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
291 * tdesc.h (struct target_desc_deleter): Moved here
292 from gdb/target-descriptions.h, extend comment.
293 (target_desc_up): Likewise.
295 2020-06-30 Tom Tromey <tromey@adacore.com>
298 * gdb_string_view.h (basic_string_view::to_string): Remove.
299 (gdb::to_string): New function.
301 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
303 * tdesc.h (class print_xml_feature) <add_line>: Add
306 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
308 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
309 output content, and call indent as needed in all overloaded
311 (print_xml_feature::visit_post): Likewise.
312 (print_xml_feature::visit): Likewise.
313 (print_xml_feature::add_line): Two new overloaded functions.
314 * tdesc.h (print_xml_feature::indent): New member function.
315 (print_xml_feature::add_line): Two new overloaded member
317 (print_xml_feature::m_depth): New member variable.
319 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
321 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
323 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
324 (tdesc_compatible_info_up): New typedef.
325 (tdesc_compatible_info_list): Declare new function.
326 (tdesc_compatible_info_arch_name): Declare new function.
328 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
330 * common-utils.cc, common-utils.h (stringify_argv): Drop
331 now unused function stringify_argv
333 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
335 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
336 Adapt to take a gdb::array_view<char * const> parameter.
339 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
341 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
342 Adapt to handle zero args and return a std::string.
345 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
347 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
348 Move function here from gdb/infcmd.c, gdb/inferior.h
350 2020-05-14 Kevin Buettner <kevinb@redhat.com>
352 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
354 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
356 * common-regcache.h (regcache_read_pc_protected): New function
359 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
363 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
365 * common-defs.h: Include cstdlib.h.
367 2020-04-20 Tom Tromey <tromey@adacore.com>
369 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
370 Use initialization style. Don't call destroy.
371 * scoped_fd.h (class scoped_fd): Mark move constructor as
373 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
376 2020-04-13 Tom Tromey <tom@tromey.com>
378 * event-loop.c: Move comment. Remove obsolete comment.
380 2020-04-13 Tom Tromey <tom@tromey.com>
382 * event-loop.h: Move from ../gdb/.
383 * event-loop.cc: Move from ../gdb/.
385 2020-04-13 Tom Tromey <tom@tromey.com>
387 * errors.h (flush_streams): Declare.
389 2020-04-13 Tom Tromey <tom@tromey.com>
391 * gdb_select.h: Move from ../gdb/.
393 2020-04-13 Tom Tromey <tom@tromey.com>
395 * config.in, configure: Rebuild.
396 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
397 sys/select.h, and poll.
399 2020-03-31 Tom Tromey <tromey@adacore.com>
401 * btrace-common.cc (btrace_data_append): Conditionally call
404 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
406 * create-version.sh: Resolve issues highlighted by shellcheck.
408 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
410 * config.in: Re-generate.
411 * configure: Re-generate.
413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
415 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
417 2020-03-12 Tom Tromey <tom@tromey.com>
419 * common-types.h: Remove GDBSERVER code.
420 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
421 * common-defs.h: Remove GDBSERVER code.
423 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
425 * selftest.m4: Moved from gdb/.
426 * acinclude.m4: Update path to selftest.m4.
428 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
430 * configure.ac: Don't source bfd/development.sh.
431 * common.m4: Source bfd/development.sh.
432 * configure: Re-generate.
434 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
436 * configure: Re-generate.
438 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
440 * configure: Re-generate.
441 * warning.m4: Enable -Wmissing-prototypes.
443 2020-03-08 Tom Tromey <tom@tromey.com>
445 * gdb_binary_search.h: Fix two typos.
447 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
449 * .dir-locals.el: New file.
451 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
453 * configure.ac: Added call development.sh.
454 * configure: Regenerate.
456 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
458 * .gitattributes: New file.
460 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
462 * Makefile.in: Re-generate.
464 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
466 * gdb-dlfcn.h (gdb_dlopen): Update comment.
468 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
470 * configure: Regenerate.
472 2020-02-14 Tom Tromey <tom@tromey.com>
474 * common-defs.h: Change path to gnulib/config.h.
476 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
478 * Makefile.am: Rename source files from .c to .cc.
479 (CC, CFLAGS): Don't override.
480 (AM_CFLAGS): Rename to ...
481 (AM_CXXFLAGS): ... this.
482 * Makefile.in: Re-generate.
483 * %.c: Rename to %.cc.
485 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
487 * configure: Re-generate.
489 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
491 * warning.m4: Add -Wstrict-null-sentinel.
492 * configure: Re-generate.
494 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
496 * warning.m4: Move here, from gdb/warning.m4.
497 * acinclude.m4: Update warning.m4 path.
498 * Makefile.in: Re-generate.
500 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
502 * acinclude.m4: Include ../gdb/warning.m4.
503 * configure.ac: Use AM_GDB_WARNINGS.
504 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
505 * Makefile.in: Re-generate.
506 * configure: Re-generate.
508 2020-02-10 Tom de Vries <tdevries@suse.de>
510 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
514 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
515 version of pthread_setname_np.
517 2020-01-17 Pedro Alves <palves@redhat.com>
519 * Makefile.am: Append CXX_DIALECT to CXX.
520 * Makefile.in: Regenerate.
522 2020-01-17 Pedro Alves <palves@redhat.com>
524 * configure.ac: Generate config.h instead of support-config.h.
525 * common-defs.h: Include <gdbsupport/config.h> instead of
526 <gdbsupport/support-config.h>.
527 * Makefile.in: Regenerate.
528 * configure: Regenerate.
530 2020-01-14 Tom Tromey <tom@tromey.com>
532 * Makefile.in: Rebuild.
533 * Makefile.am (check-defines): New target.
534 * check-defines.el: New file.
536 2020-01-14 Tom Tromey <tom@tromey.com>
538 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
540 * common.m4 (GDB_AC_COMMON): Move many checks from
542 * acinclude.m4: Include bfd.m4, ptrace.m4.
544 2020-01-14 Tom Tromey <tom@tromey.com>
546 * common-defs.h: Add GDBSERVER case. Update includes.
547 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
548 Makefile.am, Makefile.in, README: New files.
549 * Moved from ../gdb/gdbsupport/