1 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
4 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
5 find_gdb_home_config_file): Add empty string check.
7 2021-01-06 Mike Frysinger <vapier@gentoo.org>
9 * common-utils.h (align_up): Fix typo in header comment.
11 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
13 * common-debug.h (debug_print_depth): New.
14 (struct scoped_debug_start_end): New.
15 (scoped_debug_start_end): New.
16 (scoped_debug_enter_exit): New.
17 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
19 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
21 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
23 (extract_string_maybe_quoted): Use safe-ctype function versions.
24 (is_digit_in_base): Likewise.
25 (digit_to_int): Likewise.
26 (strtoulst): Likewise.
27 (skip_spaces): Likewise.
28 (skip_to_space): Likewise.
30 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
32 * common-debug.h (debug_prefixed_printf_cond): New.
33 * event-loop.h (event_loop_debug_printf): Use
34 debug_prefixed_printf_cond.
36 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
38 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
39 variable when running on Windows.
41 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
43 * tdesc.cc (print_xml_feature::visit): Print enum fields using
46 2020-12-01 Chungyi Chi <demonic@csie.io>
48 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
50 2020-11-20 Tom Tromey <tromey@adacore.com>
52 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
55 2020-11-10 Tom Tromey <tromey@adacore.com>
58 * pathstuff.h: Move include block here...
59 * pathstuff.cc: ... from here.
61 2020-11-02 Tom Tromey <tom@tromey.com>
63 * pathstuff.h (get_standard_config_dir): Declare.
64 * pathstuff.cc (get_standard_config_dir): New function.
66 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
68 * common-exceptions.h: Fix indentation.
69 * event-loop.cc: Fix indentation.
70 * fileio.cc: Fix indentation.
71 * filestuff.cc: Fix indentation.
72 * gdb-dlfcn.cc: Fix indentation.
73 * gdb_string_view.h: Fix indentation.
74 * job-control.cc: Fix indentation.
75 * signals.cc: Fix indentation.
77 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
79 * common-debug.cc (debug_prefixed_printf): New.
80 * common-debug.h (debug_prefixed_printf): New declaration.
81 * event-loop.cc (event_loop_debug_printf_1): Remove.
82 * event-loop.h (event_loop_debug_printf_1): Remove.
83 (event_loop_debug_printf): Use debug_prefixed_printf.
84 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
86 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
88 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
90 * configure: Re-generate.
92 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
94 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
96 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
98 * configure: Re-generate.
99 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
102 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
104 * configure: Re-generate.
105 * ptrace.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: Re-indent.
113 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
115 * aclocal.m4: Re-generate.
116 * configure: Re-generate.
117 * configure.ac: Remove AM_PROG_CC_STDC.
119 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
121 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
123 * configure: Re-generate.
125 2020-10-26 Pedro Alves <pedro@palves.net>
127 * eintr.h (handle_eintr): Replace Ret template parameter with
128 ErrorValType. Use it as type of the failure value. Deduce the
129 function's return type using decltype. Use lowercase for function
132 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
134 * Makefile.in: Re-generate.
135 * acinclude.m4: Update ptrace.m4 path.
136 * ptrace.m4: Move here.
138 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
140 * tdesc.h (allocate_target_description): Update return type.
142 2020-10-07 Tom Tromey <tromey@adacore.com>
144 * Makefile.in: Rebuild.
145 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
146 * search.h: New file.
147 * search.cc: New file.
149 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
151 * event-loop.h (debug_event_loop): New variable declaration.
152 (event_loop_debug_printf_1): New function declaration.
153 (event_loop_debug_printf): New macro.
154 * event-loop.cc (debug_event_loop): New variable.
155 (handle_file_event): Add debug print.
156 (event_loop_debug_printf_1): New function.
158 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
160 * common-debug.cc (debug_prefixed_vprintf): Move here.
161 * common-debug.h (debug_prefixed_vprintf): Move here.
163 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
165 * event-loop.h (add_file_handler): Add "name" parameter.
166 * event-loop.cc (struct file_handler) <name>: New field.
167 (create_file_handler): Add "name" parameter, assign it to file
169 (add_file_handler): Add "name" parameter.
171 2020-10-01 Kamil Rytarowski <n54@gmx.com>
173 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
175 2020-09-29 Pedro Alves <pedro@palves.net>
177 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
178 class instead of an alias template and adjust static_assert.
180 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
182 * event-loop.c (struct file_handler): Remove typedef, re-format.
184 2020-09-16 John Baldwin <jhb@FreeBSD.org>
186 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
187 * configure, config.in: Regenerate.
189 2020-09-14 Pedro Alves <pedro@palves.net>
191 * enum-flags.h: Include "traits.h".
192 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
194 (enum_underlying_type): Update comment.
195 (namespace enum_flags_detail): New. Move struct zero_type here.
196 (EnumIsUnsigned, EnumIsSigned): New.
197 (class enum_flags): Make most methods constexpr.
198 (operator&=, operator|=, operator^=): Take an enum_flags instead
199 of an enum_type. Make rvalue ref versions deleted.
200 (operator enum_type()): Delete.
201 (operator&, operator|, operator^, operator~): Delete, moved out of
204 (is_enum_flags_enum_type_t): Declare.
205 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
206 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
208 (operator~): Now constexpr and reimplemented.
209 (operator<<, operator>>): New deleted functions.
210 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
212 2020-09-14 Pedro Alves <pedro@palves.net>
214 * traits.h (struct nonesuch, struct detector, detected_or)
215 (detected_or_t, is_detected, detected_t, detected_or)
216 (detected_or_t, is_detected_exact, is_detected_convertible): New.
217 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
219 2020-09-10 Kamil Rytarowski <n54@gmx.com>
223 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
225 * selftest.h (run_tests): Change parameter to array_view.
226 * selftest.c (run_tests): Change parameter to array_view and use
229 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
231 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
232 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
234 * Makefile.in: Regenerate.
235 * configure, config.in: Regenerate.
237 2020-07-28 Tom de Vries <tdevries@suse.de>
240 * gdb_optional.h (class optional): Add volatile member to union
241 contaning m_dummy and m_item.
243 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
245 * tdesc.h (struct target_desc_deleter): Moved here
246 from gdb/target-descriptions.h, extend comment.
247 (target_desc_up): Likewise.
249 2020-06-30 Tom Tromey <tromey@adacore.com>
252 * gdb_string_view.h (basic_string_view::to_string): Remove.
253 (gdb::to_string): New function.
255 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
257 * tdesc.h (class print_xml_feature) <add_line>: Add
260 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
262 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
263 output content, and call indent as needed in all overloaded
265 (print_xml_feature::visit_post): Likewise.
266 (print_xml_feature::visit): Likewise.
267 (print_xml_feature::add_line): Two new overloaded functions.
268 * tdesc.h (print_xml_feature::indent): New member function.
269 (print_xml_feature::add_line): Two new overloaded member
271 (print_xml_feature::m_depth): New member variable.
273 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
275 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
277 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
278 (tdesc_compatible_info_up): New typedef.
279 (tdesc_compatible_info_list): Declare new function.
280 (tdesc_compatible_info_arch_name): Declare new function.
282 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
284 * common-utils.cc, common-utils.h (stringify_argv): Drop
285 now unused function stringify_argv
287 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
289 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
290 Adapt to take a gdb::array_view<char * const> parameter.
293 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
295 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
296 Adapt to handle zero args and return a std::string.
299 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
301 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
302 Move function here from gdb/infcmd.c, gdb/inferior.h
304 2020-05-14 Kevin Buettner <kevinb@redhat.com>
306 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
308 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
310 * common-regcache.h (regcache_read_pc_protected): New function
313 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
317 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
319 * common-defs.h: Include cstdlib.h.
321 2020-04-20 Tom Tromey <tromey@adacore.com>
323 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
324 Use initialization style. Don't call destroy.
325 * scoped_fd.h (class scoped_fd): Mark move constructor as
327 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
330 2020-04-13 Tom Tromey <tom@tromey.com>
332 * event-loop.c: Move comment. Remove obsolete comment.
334 2020-04-13 Tom Tromey <tom@tromey.com>
336 * event-loop.h: Move from ../gdb/.
337 * event-loop.cc: Move from ../gdb/.
339 2020-04-13 Tom Tromey <tom@tromey.com>
341 * errors.h (flush_streams): Declare.
343 2020-04-13 Tom Tromey <tom@tromey.com>
345 * gdb_select.h: Move from ../gdb/.
347 2020-04-13 Tom Tromey <tom@tromey.com>
349 * config.in, configure: Rebuild.
350 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
351 sys/select.h, and poll.
353 2020-03-31 Tom Tromey <tromey@adacore.com>
355 * btrace-common.cc (btrace_data_append): Conditionally call
358 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
360 * create-version.sh: Resolve issues highlighted by shellcheck.
362 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
364 * config.in: Re-generate.
365 * configure: Re-generate.
367 2020-03-17 Kamil Rytarowski <n54@gmx.com>
369 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
371 2020-03-12 Tom Tromey <tom@tromey.com>
373 * common-types.h: Remove GDBSERVER code.
374 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
375 * common-defs.h: Remove GDBSERVER code.
377 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
379 * selftest.m4: Moved from gdb/.
380 * acinclude.m4: Update path to selftest.m4.
382 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
384 * configure.ac: Don't source bfd/development.sh.
385 * common.m4: Source bfd/development.sh.
386 * configure: Re-generate.
388 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
390 * configure: Re-generate.
392 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
394 * configure: Re-generate.
395 * warning.m4: Enable -Wmissing-prototypes.
397 2020-03-08 Tom Tromey <tom@tromey.com>
399 * gdb_binary_search.h: Fix two typos.
401 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
403 * .dir-locals.el: New file.
405 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
407 * configure.ac: Added call development.sh.
408 * configure: Regenerate.
410 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412 * .gitattributes: New file.
414 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
416 * Makefile.in: Re-generate.
418 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
420 * gdb-dlfcn.h (gdb_dlopen): Update comment.
422 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
424 * configure: Regenerate.
426 2020-02-14 Tom Tromey <tom@tromey.com>
428 * common-defs.h: Change path to gnulib/config.h.
430 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
432 * Makefile.am: Rename source files from .c to .cc.
433 (CC, CFLAGS): Don't override.
434 (AM_CFLAGS): Rename to ...
435 (AM_CXXFLAGS): ... this.
436 * Makefile.in: Re-generate.
437 * %.c: Rename to %.cc.
439 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
441 * configure: Re-generate.
443 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
445 * warning.m4: Add -Wstrict-null-sentinel.
446 * configure: Re-generate.
448 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
450 * warning.m4: Move here, from gdb/warning.m4.
451 * acinclude.m4: Update warning.m4 path.
452 * Makefile.in: Re-generate.
454 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
456 * acinclude.m4: Include ../gdb/warning.m4.
457 * configure.ac: Use AM_GDB_WARNINGS.
458 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
459 * Makefile.in: Re-generate.
460 * configure: Re-generate.
462 2020-02-10 Tom de Vries <tdevries@suse.de>
464 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
466 2020-01-24 Christian Biesinger <cbiesinger@google.com>
468 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
469 version of pthread_setname_np.
471 2020-01-17 Pedro Alves <palves@redhat.com>
473 * Makefile.am: Append CXX_DIALECT to CXX.
474 * Makefile.in: Regenerate.
476 2020-01-17 Pedro Alves <palves@redhat.com>
478 * configure.ac: Generate config.h instead of support-config.h.
479 * common-defs.h: Include <gdbsupport/config.h> instead of
480 <gdbsupport/support-config.h>.
481 * Makefile.in: Regenerate.
482 * configure: Regenerate.
484 2020-01-14 Tom Tromey <tom@tromey.com>
486 * Makefile.in: Rebuild.
487 * Makefile.am (check-defines): New target.
488 * check-defines.el: New file.
490 2020-01-14 Tom Tromey <tom@tromey.com>
492 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
494 * common.m4 (GDB_AC_COMMON): Move many checks from
496 * acinclude.m4: Include bfd.m4, ptrace.m4.
498 2020-01-14 Tom Tromey <tom@tromey.com>
500 * common-defs.h: Add GDBSERVER case. Update includes.
501 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
502 Makefile.am, Makefile.in, README: New files.
503 * Moved from ../gdb/gdbsupport/