1 2021-01-06 Mike Frysinger <vapier@gentoo.org>
3 * common-utils.h (align_up): Fix typo in header comment.
5 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7 * common-debug.h (debug_print_depth): New.
8 (struct scoped_debug_start_end): New.
9 (scoped_debug_start_end): New.
10 (scoped_debug_enter_exit): New.
11 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
13 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
15 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
17 (extract_string_maybe_quoted): Use safe-ctype function versions.
18 (is_digit_in_base): Likewise.
19 (digit_to_int): Likewise.
20 (strtoulst): Likewise.
21 (skip_spaces): Likewise.
22 (skip_to_space): Likewise.
24 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
26 * common-debug.h (debug_prefixed_printf_cond): New.
27 * event-loop.h (event_loop_debug_printf): Use
28 debug_prefixed_printf_cond.
30 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
32 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
33 variable when running on Windows.
35 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
37 * tdesc.cc (print_xml_feature::visit): Print enum fields using
40 2020-12-01 Chungyi Chi <demonic@csie.io>
42 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
44 2020-11-20 Tom Tromey <tromey@adacore.com>
46 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
49 2020-11-10 Tom Tromey <tromey@adacore.com>
52 * pathstuff.h: Move include block here...
53 * pathstuff.cc: ... from here.
55 2020-11-02 Tom Tromey <tom@tromey.com>
57 * pathstuff.h (get_standard_config_dir): Declare.
58 * pathstuff.cc (get_standard_config_dir): New function.
60 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
62 * common-exceptions.h: Fix indentation.
63 * event-loop.cc: Fix indentation.
64 * fileio.cc: Fix indentation.
65 * filestuff.cc: Fix indentation.
66 * gdb-dlfcn.cc: Fix indentation.
67 * gdb_string_view.h: Fix indentation.
68 * job-control.cc: Fix indentation.
69 * signals.cc: Fix indentation.
71 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
73 * common-debug.cc (debug_prefixed_printf): New.
74 * common-debug.h (debug_prefixed_printf): New declaration.
75 * event-loop.cc (event_loop_debug_printf_1): Remove.
76 * event-loop.h (event_loop_debug_printf_1): Remove.
77 (event_loop_debug_printf): Use debug_prefixed_printf.
78 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
80 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
82 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
84 * configure: Re-generate.
86 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
88 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
90 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
92 * configure: Re-generate.
93 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
96 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
98 * configure: Re-generate.
99 * ptrace.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: Re-indent.
107 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
109 * aclocal.m4: Re-generate.
110 * configure: Re-generate.
111 * configure.ac: Remove AM_PROG_CC_STDC.
113 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
115 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
117 * configure: Re-generate.
119 2020-10-26 Pedro Alves <pedro@palves.net>
121 * eintr.h (handle_eintr): Replace Ret template parameter with
122 ErrorValType. Use it as type of the failure value. Deduce the
123 function's return type using decltype. Use lowercase for function
126 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
128 * Makefile.in: Re-generate.
129 * acinclude.m4: Update ptrace.m4 path.
130 * ptrace.m4: Move here.
132 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
134 * tdesc.h (allocate_target_description): Update return type.
136 2020-10-07 Tom Tromey <tromey@adacore.com>
138 * Makefile.in: Rebuild.
139 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
140 * search.h: New file.
141 * search.cc: New file.
143 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
145 * event-loop.h (debug_event_loop): New variable declaration.
146 (event_loop_debug_printf_1): New function declaration.
147 (event_loop_debug_printf): New macro.
148 * event-loop.cc (debug_event_loop): New variable.
149 (handle_file_event): Add debug print.
150 (event_loop_debug_printf_1): New function.
152 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
154 * common-debug.cc (debug_prefixed_vprintf): Move here.
155 * common-debug.h (debug_prefixed_vprintf): Move here.
157 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
159 * event-loop.h (add_file_handler): Add "name" parameter.
160 * event-loop.cc (struct file_handler) <name>: New field.
161 (create_file_handler): Add "name" parameter, assign it to file
163 (add_file_handler): Add "name" parameter.
165 2020-10-01 Kamil Rytarowski <n54@gmx.com>
167 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
169 2020-09-29 Pedro Alves <pedro@palves.net>
171 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
172 class instead of an alias template and adjust static_assert.
174 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
176 * event-loop.c (struct file_handler): Remove typedef, re-format.
178 2020-09-16 John Baldwin <jhb@FreeBSD.org>
180 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
181 * configure, config.in: Regenerate.
183 2020-09-14 Pedro Alves <pedro@palves.net>
185 * enum-flags.h: Include "traits.h".
186 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
188 (enum_underlying_type): Update comment.
189 (namespace enum_flags_detail): New. Move struct zero_type here.
190 (EnumIsUnsigned, EnumIsSigned): New.
191 (class enum_flags): Make most methods constexpr.
192 (operator&=, operator|=, operator^=): Take an enum_flags instead
193 of an enum_type. Make rvalue ref versions deleted.
194 (operator enum_type()): Delete.
195 (operator&, operator|, operator^, operator~): Delete, moved out of
198 (is_enum_flags_enum_type_t): Declare.
199 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
200 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
202 (operator~): Now constexpr and reimplemented.
203 (operator<<, operator>>): New deleted functions.
204 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
206 2020-09-14 Pedro Alves <pedro@palves.net>
208 * traits.h (struct nonesuch, struct detector, detected_or)
209 (detected_or_t, is_detected, detected_t, detected_or)
210 (detected_or_t, is_detected_exact, is_detected_convertible): New.
211 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
213 2020-09-10 Kamil Rytarowski <n54@gmx.com>
217 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
219 * selftest.h (run_tests): Change parameter to array_view.
220 * selftest.c (run_tests): Change parameter to array_view and use
223 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
226 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
228 * Makefile.in: Regenerate.
229 * configure, config.in: Regenerate.
231 2020-07-28 Tom de Vries <tdevries@suse.de>
234 * gdb_optional.h (class optional): Add volatile member to union
235 contaning m_dummy and m_item.
237 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
239 * tdesc.h (struct target_desc_deleter): Moved here
240 from gdb/target-descriptions.h, extend comment.
241 (target_desc_up): Likewise.
243 2020-06-30 Tom Tromey <tromey@adacore.com>
246 * gdb_string_view.h (basic_string_view::to_string): Remove.
247 (gdb::to_string): New function.
249 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
251 * tdesc.h (class print_xml_feature) <add_line>: Add
254 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
256 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
257 output content, and call indent as needed in all overloaded
259 (print_xml_feature::visit_post): Likewise.
260 (print_xml_feature::visit): Likewise.
261 (print_xml_feature::add_line): Two new overloaded functions.
262 * tdesc.h (print_xml_feature::indent): New member function.
263 (print_xml_feature::add_line): Two new overloaded member
265 (print_xml_feature::m_depth): New member variable.
267 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
269 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
271 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
272 (tdesc_compatible_info_up): New typedef.
273 (tdesc_compatible_info_list): Declare new function.
274 (tdesc_compatible_info_arch_name): Declare new function.
276 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
278 * common-utils.cc, common-utils.h (stringify_argv): Drop
279 now unused function stringify_argv
281 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
283 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
284 Adapt to take a gdb::array_view<char * const> parameter.
287 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
289 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
290 Adapt to handle zero args and return a std::string.
293 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
295 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
296 Move function here from gdb/infcmd.c, gdb/inferior.h
298 2020-05-14 Kevin Buettner <kevinb@redhat.com>
300 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
302 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304 * common-regcache.h (regcache_read_pc_protected): New function
307 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
311 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
313 * common-defs.h: Include cstdlib.h.
315 2020-04-20 Tom Tromey <tromey@adacore.com>
317 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
318 Use initialization style. Don't call destroy.
319 * scoped_fd.h (class scoped_fd): Mark move constructor as
321 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
324 2020-04-13 Tom Tromey <tom@tromey.com>
326 * event-loop.c: Move comment. Remove obsolete comment.
328 2020-04-13 Tom Tromey <tom@tromey.com>
330 * event-loop.h: Move from ../gdb/.
331 * event-loop.cc: Move from ../gdb/.
333 2020-04-13 Tom Tromey <tom@tromey.com>
335 * errors.h (flush_streams): Declare.
337 2020-04-13 Tom Tromey <tom@tromey.com>
339 * gdb_select.h: Move from ../gdb/.
341 2020-04-13 Tom Tromey <tom@tromey.com>
343 * config.in, configure: Rebuild.
344 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
345 sys/select.h, and poll.
347 2020-03-31 Tom Tromey <tromey@adacore.com>
349 * btrace-common.cc (btrace_data_append): Conditionally call
352 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
354 * create-version.sh: Resolve issues highlighted by shellcheck.
356 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
358 * config.in: Re-generate.
359 * configure: Re-generate.
361 2020-03-17 Kamil Rytarowski <n54@gmx.com>
363 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
365 2020-03-12 Tom Tromey <tom@tromey.com>
367 * common-types.h: Remove GDBSERVER code.
368 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
369 * common-defs.h: Remove GDBSERVER code.
371 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
373 * selftest.m4: Moved from gdb/.
374 * acinclude.m4: Update path to selftest.m4.
376 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
378 * configure.ac: Don't source bfd/development.sh.
379 * common.m4: Source bfd/development.sh.
380 * configure: Re-generate.
382 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
384 * configure: Re-generate.
386 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
388 * configure: Re-generate.
389 * warning.m4: Enable -Wmissing-prototypes.
391 2020-03-08 Tom Tromey <tom@tromey.com>
393 * gdb_binary_search.h: Fix two typos.
395 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
397 * .dir-locals.el: New file.
399 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
401 * configure.ac: Added call development.sh.
402 * configure: Regenerate.
404 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406 * .gitattributes: New file.
408 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
410 * Makefile.in: Re-generate.
412 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
414 * gdb-dlfcn.h (gdb_dlopen): Update comment.
416 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
418 * configure: Regenerate.
420 2020-02-14 Tom Tromey <tom@tromey.com>
422 * common-defs.h: Change path to gnulib/config.h.
424 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
426 * Makefile.am: Rename source files from .c to .cc.
427 (CC, CFLAGS): Don't override.
428 (AM_CFLAGS): Rename to ...
429 (AM_CXXFLAGS): ... this.
430 * Makefile.in: Re-generate.
431 * %.c: Rename to %.cc.
433 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
435 * configure: Re-generate.
437 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
439 * warning.m4: Add -Wstrict-null-sentinel.
440 * configure: Re-generate.
442 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
444 * warning.m4: Move here, from gdb/warning.m4.
445 * acinclude.m4: Update warning.m4 path.
446 * Makefile.in: Re-generate.
448 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
450 * acinclude.m4: Include ../gdb/warning.m4.
451 * configure.ac: Use AM_GDB_WARNINGS.
452 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
453 * Makefile.in: Re-generate.
454 * configure: Re-generate.
456 2020-02-10 Tom de Vries <tdevries@suse.de>
458 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
460 2020-01-24 Christian Biesinger <cbiesinger@google.com>
462 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
463 version of pthread_setname_np.
465 2020-01-17 Pedro Alves <palves@redhat.com>
467 * Makefile.am: Append CXX_DIALECT to CXX.
468 * Makefile.in: Regenerate.
470 2020-01-17 Pedro Alves <palves@redhat.com>
472 * configure.ac: Generate config.h instead of support-config.h.
473 * common-defs.h: Include <gdbsupport/config.h> instead of
474 <gdbsupport/support-config.h>.
475 * Makefile.in: Regenerate.
476 * configure: Regenerate.
478 2020-01-14 Tom Tromey <tom@tromey.com>
480 * Makefile.in: Rebuild.
481 * Makefile.am (check-defines): New target.
482 * check-defines.el: New file.
484 2020-01-14 Tom Tromey <tom@tromey.com>
486 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
488 * common.m4 (GDB_AC_COMMON): Move many checks from
490 * acinclude.m4: Include bfd.m4, ptrace.m4.
492 2020-01-14 Tom Tromey <tom@tromey.com>
494 * common-defs.h: Add GDBSERVER case. Update includes.
495 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
496 Makefile.am, Makefile.in, README: New files.
497 * Moved from ../gdb/gdbsupport/