1 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
4 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
7 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
10 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
11 find_gdb_home_config_file): Add empty string check.
13 2021-01-06 Mike Frysinger <vapier@gentoo.org>
15 * common-utils.h (align_up): Fix typo in header comment.
17 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
19 * common-debug.h (debug_print_depth): New.
20 (struct scoped_debug_start_end): New.
21 (scoped_debug_start_end): New.
22 (scoped_debug_enter_exit): New.
23 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
25 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
27 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
29 (extract_string_maybe_quoted): Use safe-ctype function versions.
30 (is_digit_in_base): Likewise.
31 (digit_to_int): Likewise.
32 (strtoulst): Likewise.
33 (skip_spaces): Likewise.
34 (skip_to_space): Likewise.
36 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
38 * common-debug.h (debug_prefixed_printf_cond): New.
39 * event-loop.h (event_loop_debug_printf): Use
40 debug_prefixed_printf_cond.
42 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
44 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
45 variable when running on Windows.
47 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
49 * tdesc.cc (print_xml_feature::visit): Print enum fields using
52 2020-12-01 Chungyi Chi <demonic@csie.io>
54 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
56 2020-11-20 Tom Tromey <tromey@adacore.com>
58 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
61 2020-11-10 Tom Tromey <tromey@adacore.com>
64 * pathstuff.h: Move include block here...
65 * pathstuff.cc: ... from here.
67 2020-11-02 Tom Tromey <tom@tromey.com>
69 * pathstuff.h (get_standard_config_dir): Declare.
70 * pathstuff.cc (get_standard_config_dir): New function.
72 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
74 * common-exceptions.h: Fix indentation.
75 * event-loop.cc: Fix indentation.
76 * fileio.cc: Fix indentation.
77 * filestuff.cc: Fix indentation.
78 * gdb-dlfcn.cc: Fix indentation.
79 * gdb_string_view.h: Fix indentation.
80 * job-control.cc: Fix indentation.
81 * signals.cc: Fix indentation.
83 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
85 * common-debug.cc (debug_prefixed_printf): New.
86 * common-debug.h (debug_prefixed_printf): New declaration.
87 * event-loop.cc (event_loop_debug_printf_1): Remove.
88 * event-loop.h (event_loop_debug_printf_1): Remove.
89 (event_loop_debug_printf): Use debug_prefixed_printf.
90 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
92 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
94 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
96 * configure: Re-generate.
98 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
100 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
102 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
104 * configure: Re-generate.
105 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
108 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
110 * configure: Re-generate.
111 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
114 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
116 * configure: Re-generate.
117 * ptrace.m4: Re-indent.
119 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
121 * aclocal.m4: Re-generate.
122 * configure: Re-generate.
123 * configure.ac: Remove AM_PROG_CC_STDC.
125 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
127 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
129 * configure: Re-generate.
131 2020-10-26 Pedro Alves <pedro@palves.net>
133 * eintr.h (handle_eintr): Replace Ret template parameter with
134 ErrorValType. Use it as type of the failure value. Deduce the
135 function's return type using decltype. Use lowercase for function
138 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
140 * Makefile.in: Re-generate.
141 * acinclude.m4: Update ptrace.m4 path.
142 * ptrace.m4: Move here.
144 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
146 * tdesc.h (allocate_target_description): Update return type.
148 2020-10-07 Tom Tromey <tromey@adacore.com>
150 * Makefile.in: Rebuild.
151 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
152 * search.h: New file.
153 * search.cc: New file.
155 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
157 * event-loop.h (debug_event_loop): New variable declaration.
158 (event_loop_debug_printf_1): New function declaration.
159 (event_loop_debug_printf): New macro.
160 * event-loop.cc (debug_event_loop): New variable.
161 (handle_file_event): Add debug print.
162 (event_loop_debug_printf_1): New function.
164 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
166 * common-debug.cc (debug_prefixed_vprintf): Move here.
167 * common-debug.h (debug_prefixed_vprintf): Move here.
169 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
171 * event-loop.h (add_file_handler): Add "name" parameter.
172 * event-loop.cc (struct file_handler) <name>: New field.
173 (create_file_handler): Add "name" parameter, assign it to file
175 (add_file_handler): Add "name" parameter.
177 2020-10-01 Kamil Rytarowski <n54@gmx.com>
179 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
181 2020-09-29 Pedro Alves <pedro@palves.net>
183 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
184 class instead of an alias template and adjust static_assert.
186 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
188 * event-loop.c (struct file_handler): Remove typedef, re-format.
190 2020-09-16 John Baldwin <jhb@FreeBSD.org>
192 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
193 * configure, config.in: Regenerate.
195 2020-09-14 Pedro Alves <pedro@palves.net>
197 * enum-flags.h: Include "traits.h".
198 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
200 (enum_underlying_type): Update comment.
201 (namespace enum_flags_detail): New. Move struct zero_type here.
202 (EnumIsUnsigned, EnumIsSigned): New.
203 (class enum_flags): Make most methods constexpr.
204 (operator&=, operator|=, operator^=): Take an enum_flags instead
205 of an enum_type. Make rvalue ref versions deleted.
206 (operator enum_type()): Delete.
207 (operator&, operator|, operator^, operator~): Delete, moved out of
210 (is_enum_flags_enum_type_t): Declare.
211 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
212 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
214 (operator~): Now constexpr and reimplemented.
215 (operator<<, operator>>): New deleted functions.
216 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
218 2020-09-14 Pedro Alves <pedro@palves.net>
220 * traits.h (struct nonesuch, struct detector, detected_or)
221 (detected_or_t, is_detected, detected_t, detected_or)
222 (detected_or_t, is_detected_exact, is_detected_convertible): New.
223 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
225 2020-09-10 Kamil Rytarowski <n54@gmx.com>
229 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
231 * selftest.h (run_tests): Change parameter to array_view.
232 * selftest.c (run_tests): Change parameter to array_view and use
235 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
238 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
240 * Makefile.in: Regenerate.
241 * configure, config.in: Regenerate.
243 2020-07-28 Tom de Vries <tdevries@suse.de>
246 * gdb_optional.h (class optional): Add volatile member to union
247 contaning m_dummy and m_item.
249 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
251 * tdesc.h (struct target_desc_deleter): Moved here
252 from gdb/target-descriptions.h, extend comment.
253 (target_desc_up): Likewise.
255 2020-06-30 Tom Tromey <tromey@adacore.com>
258 * gdb_string_view.h (basic_string_view::to_string): Remove.
259 (gdb::to_string): New function.
261 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
263 * tdesc.h (class print_xml_feature) <add_line>: Add
266 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
268 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
269 output content, and call indent as needed in all overloaded
271 (print_xml_feature::visit_post): Likewise.
272 (print_xml_feature::visit): Likewise.
273 (print_xml_feature::add_line): Two new overloaded functions.
274 * tdesc.h (print_xml_feature::indent): New member function.
275 (print_xml_feature::add_line): Two new overloaded member
277 (print_xml_feature::m_depth): New member variable.
279 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
281 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
283 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
284 (tdesc_compatible_info_up): New typedef.
285 (tdesc_compatible_info_list): Declare new function.
286 (tdesc_compatible_info_arch_name): Declare new function.
288 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
290 * common-utils.cc, common-utils.h (stringify_argv): Drop
291 now unused function stringify_argv
293 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
295 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
296 Adapt to take a gdb::array_view<char * const> parameter.
299 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
301 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
302 Adapt to handle zero args and return a std::string.
305 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
307 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
308 Move function here from gdb/infcmd.c, gdb/inferior.h
310 2020-05-14 Kevin Buettner <kevinb@redhat.com>
312 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
314 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
316 * common-regcache.h (regcache_read_pc_protected): New function
319 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
321 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
323 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
325 * common-defs.h: Include cstdlib.h.
327 2020-04-20 Tom Tromey <tromey@adacore.com>
329 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
330 Use initialization style. Don't call destroy.
331 * scoped_fd.h (class scoped_fd): Mark move constructor as
333 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
336 2020-04-13 Tom Tromey <tom@tromey.com>
338 * event-loop.c: Move comment. Remove obsolete comment.
340 2020-04-13 Tom Tromey <tom@tromey.com>
342 * event-loop.h: Move from ../gdb/.
343 * event-loop.cc: Move from ../gdb/.
345 2020-04-13 Tom Tromey <tom@tromey.com>
347 * errors.h (flush_streams): Declare.
349 2020-04-13 Tom Tromey <tom@tromey.com>
351 * gdb_select.h: Move from ../gdb/.
353 2020-04-13 Tom Tromey <tom@tromey.com>
355 * config.in, configure: Rebuild.
356 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
357 sys/select.h, and poll.
359 2020-03-31 Tom Tromey <tromey@adacore.com>
361 * btrace-common.cc (btrace_data_append): Conditionally call
364 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
366 * create-version.sh: Resolve issues highlighted by shellcheck.
368 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
370 * config.in: Re-generate.
371 * configure: Re-generate.
373 2020-03-17 Kamil Rytarowski <n54@gmx.com>
375 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
377 2020-03-12 Tom Tromey <tom@tromey.com>
379 * common-types.h: Remove GDBSERVER code.
380 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
381 * common-defs.h: Remove GDBSERVER code.
383 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
385 * selftest.m4: Moved from gdb/.
386 * acinclude.m4: Update path to selftest.m4.
388 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
390 * configure.ac: Don't source bfd/development.sh.
391 * common.m4: Source bfd/development.sh.
392 * configure: Re-generate.
394 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
396 * configure: Re-generate.
398 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
400 * configure: Re-generate.
401 * warning.m4: Enable -Wmissing-prototypes.
403 2020-03-08 Tom Tromey <tom@tromey.com>
405 * gdb_binary_search.h: Fix two typos.
407 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
409 * .dir-locals.el: New file.
411 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
413 * configure.ac: Added call development.sh.
414 * configure: Regenerate.
416 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
418 * .gitattributes: New file.
420 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
422 * Makefile.in: Re-generate.
424 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
426 * gdb-dlfcn.h (gdb_dlopen): Update comment.
428 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
430 * configure: Regenerate.
432 2020-02-14 Tom Tromey <tom@tromey.com>
434 * common-defs.h: Change path to gnulib/config.h.
436 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
438 * Makefile.am: Rename source files from .c to .cc.
439 (CC, CFLAGS): Don't override.
440 (AM_CFLAGS): Rename to ...
441 (AM_CXXFLAGS): ... this.
442 * Makefile.in: Re-generate.
443 * %.c: Rename to %.cc.
445 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
447 * configure: Re-generate.
449 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
451 * warning.m4: Add -Wstrict-null-sentinel.
452 * configure: Re-generate.
454 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
456 * warning.m4: Move here, from gdb/warning.m4.
457 * acinclude.m4: Update warning.m4 path.
458 * Makefile.in: Re-generate.
460 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
462 * acinclude.m4: Include ../gdb/warning.m4.
463 * configure.ac: Use AM_GDB_WARNINGS.
464 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
465 * Makefile.in: Re-generate.
466 * configure: Re-generate.
468 2020-02-10 Tom de Vries <tdevries@suse.de>
470 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
472 2020-01-24 Christian Biesinger <cbiesinger@google.com>
474 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
475 version of pthread_setname_np.
477 2020-01-17 Pedro Alves <palves@redhat.com>
479 * Makefile.am: Append CXX_DIALECT to CXX.
480 * Makefile.in: Regenerate.
482 2020-01-17 Pedro Alves <palves@redhat.com>
484 * configure.ac: Generate config.h instead of support-config.h.
485 * common-defs.h: Include <gdbsupport/config.h> instead of
486 <gdbsupport/support-config.h>.
487 * Makefile.in: Regenerate.
488 * configure: Regenerate.
490 2020-01-14 Tom Tromey <tom@tromey.com>
492 * Makefile.in: Rebuild.
493 * Makefile.am (check-defines): New target.
494 * check-defines.el: New file.
496 2020-01-14 Tom Tromey <tom@tromey.com>
498 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
500 * common.m4 (GDB_AC_COMMON): Move many checks from
502 * acinclude.m4: Include bfd.m4, ptrace.m4.
504 2020-01-14 Tom Tromey <tom@tromey.com>
506 * common-defs.h: Add GDBSERVER case. Update includes.
507 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
508 Makefile.am, Makefile.in, README: New files.
509 * Moved from ../gdb/gdbsupport/