1 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
3 * observable.h (class observable) <struct observer> <observer>:
6 <attach>: Add name parameter, update all callers.
8 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
10 * observable.h (class observable) <struct observer>: New.
11 <detach, notify>: Update.
12 <m_observers>: Change type to vector of observers.
14 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
16 * observable.h (observer_debug): Change to bool.
18 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
20 * common-debug.h: Include preprocessor.h.
22 2021-03-24 Luis Machado <luis.machado@linaro.org>
24 * rsp-low.cc (fromhex, hex2bin): Move to ...
25 * common-utils.cc: ... here.
26 (fromhex) Change error message text to not be RSP-specific.
27 * rsp-low.h (fromhex, hex2bin): Move to ...
28 * common-utils.h: ... here.
30 2021-03-21 Alan Modra <amodra@gmail.com>
32 * common-utils.h (startswith): Delete version now supplied by bfd.h.
34 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
36 * common-defs.h (ATTRIBUTE_PRINTF): Rename
37 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
38 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
39 free if this macro is defined.
41 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
43 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
45 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
46 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
48 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
50 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
51 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
54 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
57 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
58 find_gdb_home_config_file): Add empty string check.
60 2021-01-06 Mike Frysinger <vapier@gentoo.org>
62 * common-utils.h (align_up): Fix typo in header comment.
64 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
66 * common-debug.h (debug_print_depth): New.
67 (struct scoped_debug_start_end): New.
68 (scoped_debug_start_end): New.
69 (scoped_debug_enter_exit): New.
70 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
72 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
74 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
76 (extract_string_maybe_quoted): Use safe-ctype function versions.
77 (is_digit_in_base): Likewise.
78 (digit_to_int): Likewise.
79 (strtoulst): Likewise.
80 (skip_spaces): Likewise.
81 (skip_to_space): Likewise.
83 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
85 * common-debug.h (debug_prefixed_printf_cond): New.
86 * event-loop.h (event_loop_debug_printf): Use
87 debug_prefixed_printf_cond.
89 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
91 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
92 variable when running on Windows.
94 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
96 * tdesc.cc (print_xml_feature::visit): Print enum fields using
99 2020-12-01 Chungyi Chi <demonic@csie.io>
101 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
103 2020-11-20 Tom Tromey <tromey@adacore.com>
105 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
108 2020-11-10 Tom Tromey <tromey@adacore.com>
111 * pathstuff.h: Move include block here...
112 * pathstuff.cc: ... from here.
114 2020-11-02 Tom Tromey <tom@tromey.com>
116 * pathstuff.h (get_standard_config_dir): Declare.
117 * pathstuff.cc (get_standard_config_dir): New function.
119 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
121 * common-exceptions.h: Fix indentation.
122 * event-loop.cc: Fix indentation.
123 * fileio.cc: Fix indentation.
124 * filestuff.cc: Fix indentation.
125 * gdb-dlfcn.cc: Fix indentation.
126 * gdb_string_view.h: Fix indentation.
127 * job-control.cc: Fix indentation.
128 * signals.cc: Fix indentation.
130 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
132 * common-debug.cc (debug_prefixed_printf): New.
133 * common-debug.h (debug_prefixed_printf): New declaration.
134 * event-loop.cc (event_loop_debug_printf_1): Remove.
135 * event-loop.h (event_loop_debug_printf_1): Remove.
136 (event_loop_debug_printf): Use debug_prefixed_printf.
137 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
139 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
141 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
143 * configure: Re-generate.
145 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
147 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
149 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
151 * configure: Re-generate.
152 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
155 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
157 * configure: Re-generate.
158 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
161 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
163 * configure: Re-generate.
164 * ptrace.m4: Re-indent.
166 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
168 * aclocal.m4: Re-generate.
169 * configure: Re-generate.
170 * configure.ac: Remove AM_PROG_CC_STDC.
172 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
174 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
176 * configure: Re-generate.
178 2020-10-26 Pedro Alves <pedro@palves.net>
180 * eintr.h (handle_eintr): Replace Ret template parameter with
181 ErrorValType. Use it as type of the failure value. Deduce the
182 function's return type using decltype. Use lowercase for function
185 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
187 * Makefile.in: Re-generate.
188 * acinclude.m4: Update ptrace.m4 path.
189 * ptrace.m4: Move here.
191 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
193 * tdesc.h (allocate_target_description): Update return type.
195 2020-10-07 Tom Tromey <tromey@adacore.com>
197 * Makefile.in: Rebuild.
198 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
199 * search.h: New file.
200 * search.cc: New file.
202 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
204 * event-loop.h (debug_event_loop): New variable declaration.
205 (event_loop_debug_printf_1): New function declaration.
206 (event_loop_debug_printf): New macro.
207 * event-loop.cc (debug_event_loop): New variable.
208 (handle_file_event): Add debug print.
209 (event_loop_debug_printf_1): New function.
211 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
213 * common-debug.cc (debug_prefixed_vprintf): Move here.
214 * common-debug.h (debug_prefixed_vprintf): Move here.
216 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
218 * event-loop.h (add_file_handler): Add "name" parameter.
219 * event-loop.cc (struct file_handler) <name>: New field.
220 (create_file_handler): Add "name" parameter, assign it to file
222 (add_file_handler): Add "name" parameter.
224 2020-10-01 Kamil Rytarowski <n54@gmx.com>
226 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
228 2020-09-29 Pedro Alves <pedro@palves.net>
230 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
231 class instead of an alias template and adjust static_assert.
233 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
235 * event-loop.c (struct file_handler): Remove typedef, re-format.
237 2020-09-16 John Baldwin <jhb@FreeBSD.org>
239 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
240 * configure, config.in: Regenerate.
242 2020-09-14 Pedro Alves <pedro@palves.net>
244 * enum-flags.h: Include "traits.h".
245 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
247 (enum_underlying_type): Update comment.
248 (namespace enum_flags_detail): New. Move struct zero_type here.
249 (EnumIsUnsigned, EnumIsSigned): New.
250 (class enum_flags): Make most methods constexpr.
251 (operator&=, operator|=, operator^=): Take an enum_flags instead
252 of an enum_type. Make rvalue ref versions deleted.
253 (operator enum_type()): Delete.
254 (operator&, operator|, operator^, operator~): Delete, moved out of
257 (is_enum_flags_enum_type_t): Declare.
258 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
259 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
261 (operator~): Now constexpr and reimplemented.
262 (operator<<, operator>>): New deleted functions.
263 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
265 2020-09-14 Pedro Alves <pedro@palves.net>
267 * traits.h (struct nonesuch, struct detector, detected_or)
268 (detected_or_t, is_detected, detected_t, detected_or)
269 (detected_or_t, is_detected_exact, is_detected_convertible): New.
270 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
272 2020-09-10 Kamil Rytarowski <n54@gmx.com>
276 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
278 * selftest.h (run_tests): Change parameter to array_view.
279 * selftest.c (run_tests): Change parameter to array_view and use
282 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
284 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
285 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
287 * Makefile.in: Regenerate.
288 * configure, config.in: Regenerate.
290 2020-07-28 Tom de Vries <tdevries@suse.de>
293 * gdb_optional.h (class optional): Add volatile member to union
294 contaning m_dummy and m_item.
296 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
298 * tdesc.h (struct target_desc_deleter): Moved here
299 from gdb/target-descriptions.h, extend comment.
300 (target_desc_up): Likewise.
302 2020-06-30 Tom Tromey <tromey@adacore.com>
305 * gdb_string_view.h (basic_string_view::to_string): Remove.
306 (gdb::to_string): New function.
308 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
310 * tdesc.h (class print_xml_feature) <add_line>: Add
313 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
315 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
316 output content, and call indent as needed in all overloaded
318 (print_xml_feature::visit_post): Likewise.
319 (print_xml_feature::visit): Likewise.
320 (print_xml_feature::add_line): Two new overloaded functions.
321 * tdesc.h (print_xml_feature::indent): New member function.
322 (print_xml_feature::add_line): Two new overloaded member
324 (print_xml_feature::m_depth): New member variable.
326 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
328 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
330 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
331 (tdesc_compatible_info_up): New typedef.
332 (tdesc_compatible_info_list): Declare new function.
333 (tdesc_compatible_info_arch_name): Declare new function.
335 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
337 * common-utils.cc, common-utils.h (stringify_argv): Drop
338 now unused function stringify_argv
340 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
342 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
343 Adapt to take a gdb::array_view<char * const> parameter.
346 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
348 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
349 Adapt to handle zero args and return a std::string.
352 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
354 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
355 Move function here from gdb/infcmd.c, gdb/inferior.h
357 2020-05-14 Kevin Buettner <kevinb@redhat.com>
359 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
361 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363 * common-regcache.h (regcache_read_pc_protected): New function
366 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
370 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
372 * common-defs.h: Include cstdlib.h.
374 2020-04-20 Tom Tromey <tromey@adacore.com>
376 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
377 Use initialization style. Don't call destroy.
378 * scoped_fd.h (class scoped_fd): Mark move constructor as
380 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
383 2020-04-13 Tom Tromey <tom@tromey.com>
385 * event-loop.c: Move comment. Remove obsolete comment.
387 2020-04-13 Tom Tromey <tom@tromey.com>
389 * event-loop.h: Move from ../gdb/.
390 * event-loop.cc: Move from ../gdb/.
392 2020-04-13 Tom Tromey <tom@tromey.com>
394 * errors.h (flush_streams): Declare.
396 2020-04-13 Tom Tromey <tom@tromey.com>
398 * gdb_select.h: Move from ../gdb/.
400 2020-04-13 Tom Tromey <tom@tromey.com>
402 * config.in, configure: Rebuild.
403 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
404 sys/select.h, and poll.
406 2020-03-31 Tom Tromey <tromey@adacore.com>
408 * btrace-common.cc (btrace_data_append): Conditionally call
411 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
413 * create-version.sh: Resolve issues highlighted by shellcheck.
415 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
417 * config.in: Re-generate.
418 * configure: Re-generate.
420 2020-03-17 Kamil Rytarowski <n54@gmx.com>
422 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
424 2020-03-12 Tom Tromey <tom@tromey.com>
426 * common-types.h: Remove GDBSERVER code.
427 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
428 * common-defs.h: Remove GDBSERVER code.
430 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
432 * selftest.m4: Moved from gdb/.
433 * acinclude.m4: Update path to selftest.m4.
435 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
437 * configure.ac: Don't source bfd/development.sh.
438 * common.m4: Source bfd/development.sh.
439 * configure: Re-generate.
441 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
443 * configure: Re-generate.
445 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
447 * configure: Re-generate.
448 * warning.m4: Enable -Wmissing-prototypes.
450 2020-03-08 Tom Tromey <tom@tromey.com>
452 * gdb_binary_search.h: Fix two typos.
454 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
456 * .dir-locals.el: New file.
458 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
460 * configure.ac: Added call development.sh.
461 * configure: Regenerate.
463 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465 * .gitattributes: New file.
467 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
469 * Makefile.in: Re-generate.
471 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
473 * gdb-dlfcn.h (gdb_dlopen): Update comment.
475 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
477 * configure: Regenerate.
479 2020-02-14 Tom Tromey <tom@tromey.com>
481 * common-defs.h: Change path to gnulib/config.h.
483 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
485 * Makefile.am: Rename source files from .c to .cc.
486 (CC, CFLAGS): Don't override.
487 (AM_CFLAGS): Rename to ...
488 (AM_CXXFLAGS): ... this.
489 * Makefile.in: Re-generate.
490 * %.c: Rename to %.cc.
492 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
494 * configure: Re-generate.
496 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
498 * warning.m4: Add -Wstrict-null-sentinel.
499 * configure: Re-generate.
501 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
503 * warning.m4: Move here, from gdb/warning.m4.
504 * acinclude.m4: Update warning.m4 path.
505 * Makefile.in: Re-generate.
507 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
509 * acinclude.m4: Include ../gdb/warning.m4.
510 * configure.ac: Use AM_GDB_WARNINGS.
511 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
512 * Makefile.in: Re-generate.
513 * configure: Re-generate.
515 2020-02-10 Tom de Vries <tdevries@suse.de>
517 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
519 2020-01-24 Christian Biesinger <cbiesinger@google.com>
521 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
522 version of pthread_setname_np.
524 2020-01-17 Pedro Alves <palves@redhat.com>
526 * Makefile.am: Append CXX_DIALECT to CXX.
527 * Makefile.in: Regenerate.
529 2020-01-17 Pedro Alves <palves@redhat.com>
531 * configure.ac: Generate config.h instead of support-config.h.
532 * common-defs.h: Include <gdbsupport/config.h> instead of
533 <gdbsupport/support-config.h>.
534 * Makefile.in: Regenerate.
535 * configure: Regenerate.
537 2020-01-14 Tom Tromey <tom@tromey.com>
539 * Makefile.in: Rebuild.
540 * Makefile.am (check-defines): New target.
541 * check-defines.el: New file.
543 2020-01-14 Tom Tromey <tom@tromey.com>
545 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
547 * common.m4 (GDB_AC_COMMON): Move many checks from
549 * acinclude.m4: Include bfd.m4, ptrace.m4.
551 2020-01-14 Tom Tromey <tom@tromey.com>
553 * common-defs.h: Add GDBSERVER case. Update includes.
554 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
555 Makefile.am, Makefile.in, README: New files.
556 * Moved from ../gdb/gdbsupport/