1 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
3 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
5 (extract_string_maybe_quoted): Use safe-ctype function versions.
6 (is_digit_in_base): Likewise.
7 (digit_to_int): Likewise.
9 (skip_spaces): Likewise.
10 (skip_to_space): Likewise.
12 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
14 * common-debug.h (debug_prefixed_printf_cond): New.
15 * event-loop.h (event_loop_debug_printf): Use
16 debug_prefixed_printf_cond.
18 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
20 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
21 variable when running on Windows.
23 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
25 * tdesc.cc (print_xml_feature::visit): Print enum fields using
28 2020-12-01 Chungyi Chi <demonic@csie.io>
30 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
32 2020-11-20 Tom Tromey <tromey@adacore.com>
34 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
37 2020-11-10 Tom Tromey <tromey@adacore.com>
40 * pathstuff.h: Move include block here...
41 * pathstuff.cc: ... from here.
43 2020-11-02 Tom Tromey <tom@tromey.com>
45 * pathstuff.h (get_standard_config_dir): Declare.
46 * pathstuff.cc (get_standard_config_dir): New function.
48 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
50 * common-exceptions.h: Fix indentation.
51 * event-loop.cc: Fix indentation.
52 * fileio.cc: Fix indentation.
53 * filestuff.cc: Fix indentation.
54 * gdb-dlfcn.cc: Fix indentation.
55 * gdb_string_view.h: Fix indentation.
56 * job-control.cc: Fix indentation.
57 * signals.cc: Fix indentation.
59 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
61 * common-debug.cc (debug_prefixed_printf): New.
62 * common-debug.h (debug_prefixed_printf): New declaration.
63 * event-loop.cc (event_loop_debug_printf_1): Remove.
64 * event-loop.h (event_loop_debug_printf_1): Remove.
65 (event_loop_debug_printf): Use debug_prefixed_printf.
66 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
68 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
70 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
72 * configure: Re-generate.
74 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
76 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
78 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
80 * configure: Re-generate.
81 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
84 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
86 * configure: Re-generate.
87 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
90 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
92 * configure: Re-generate.
93 * ptrace.m4: Re-indent.
95 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
97 * aclocal.m4: Re-generate.
98 * configure: Re-generate.
99 * configure.ac: Remove AM_PROG_CC_STDC.
101 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
105 * configure: Re-generate.
107 2020-10-26 Pedro Alves <pedro@palves.net>
109 * eintr.h (handle_eintr): Replace Ret template parameter with
110 ErrorValType. Use it as type of the failure value. Deduce the
111 function's return type using decltype. Use lowercase for function
114 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
116 * Makefile.in: Re-generate.
117 * acinclude.m4: Update ptrace.m4 path.
118 * ptrace.m4: Move here.
120 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
122 * tdesc.h (allocate_target_description): Update return type.
124 2020-10-07 Tom Tromey <tromey@adacore.com>
126 * Makefile.in: Rebuild.
127 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
128 * search.h: New file.
129 * search.cc: New file.
131 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
133 * event-loop.h (debug_event_loop): New variable declaration.
134 (event_loop_debug_printf_1): New function declaration.
135 (event_loop_debug_printf): New macro.
136 * event-loop.cc (debug_event_loop): New variable.
137 (handle_file_event): Add debug print.
138 (event_loop_debug_printf_1): New function.
140 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
142 * common-debug.cc (debug_prefixed_vprintf): Move here.
143 * common-debug.h (debug_prefixed_vprintf): Move here.
145 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
147 * event-loop.h (add_file_handler): Add "name" parameter.
148 * event-loop.cc (struct file_handler) <name>: New field.
149 (create_file_handler): Add "name" parameter, assign it to file
151 (add_file_handler): Add "name" parameter.
153 2020-10-01 Kamil Rytarowski <n54@gmx.com>
155 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
157 2020-09-29 Pedro Alves <pedro@palves.net>
159 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
160 class instead of an alias template and adjust static_assert.
162 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
164 * event-loop.c (struct file_handler): Remove typedef, re-format.
166 2020-09-16 John Baldwin <jhb@FreeBSD.org>
168 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
169 * configure, config.in: Regenerate.
171 2020-09-14 Pedro Alves <pedro@palves.net>
173 * enum-flags.h: Include "traits.h".
174 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
176 (enum_underlying_type): Update comment.
177 (namespace enum_flags_detail): New. Move struct zero_type here.
178 (EnumIsUnsigned, EnumIsSigned): New.
179 (class enum_flags): Make most methods constexpr.
180 (operator&=, operator|=, operator^=): Take an enum_flags instead
181 of an enum_type. Make rvalue ref versions deleted.
182 (operator enum_type()): Delete.
183 (operator&, operator|, operator^, operator~): Delete, moved out of
186 (is_enum_flags_enum_type_t): Declare.
187 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
188 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
190 (operator~): Now constexpr and reimplemented.
191 (operator<<, operator>>): New deleted functions.
192 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
194 2020-09-14 Pedro Alves <pedro@palves.net>
196 * traits.h (struct nonesuch, struct detector, detected_or)
197 (detected_or_t, is_detected, detected_t, detected_or)
198 (detected_or_t, is_detected_exact, is_detected_convertible): New.
199 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
201 2020-09-10 Kamil Rytarowski <n54@gmx.com>
205 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
207 * selftest.h (run_tests): Change parameter to array_view.
208 * selftest.c (run_tests): Change parameter to array_view and use
211 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
213 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
214 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
216 * Makefile.in: Regenerate.
217 * configure, config.in: Regenerate.
219 2020-07-28 Tom de Vries <tdevries@suse.de>
222 * gdb_optional.h (class optional): Add volatile member to union
223 contaning m_dummy and m_item.
225 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
227 * tdesc.h (struct target_desc_deleter): Moved here
228 from gdb/target-descriptions.h, extend comment.
229 (target_desc_up): Likewise.
231 2020-06-30 Tom Tromey <tromey@adacore.com>
234 * gdb_string_view.h (basic_string_view::to_string): Remove.
235 (gdb::to_string): New function.
237 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
239 * tdesc.h (class print_xml_feature) <add_line>: Add
242 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
244 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
245 output content, and call indent as needed in all overloaded
247 (print_xml_feature::visit_post): Likewise.
248 (print_xml_feature::visit): Likewise.
249 (print_xml_feature::add_line): Two new overloaded functions.
250 * tdesc.h (print_xml_feature::indent): New member function.
251 (print_xml_feature::add_line): Two new overloaded member
253 (print_xml_feature::m_depth): New member variable.
255 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
257 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
259 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
260 (tdesc_compatible_info_up): New typedef.
261 (tdesc_compatible_info_list): Declare new function.
262 (tdesc_compatible_info_arch_name): Declare new function.
264 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
266 * common-utils.cc, common-utils.h (stringify_argv): Drop
267 now unused function stringify_argv
269 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
271 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
272 Adapt to take a gdb::array_view<char * const> parameter.
275 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
277 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
278 Adapt to handle zero args and return a std::string.
281 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
283 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
284 Move function here from gdb/infcmd.c, gdb/inferior.h
286 2020-05-14 Kevin Buettner <kevinb@redhat.com>
288 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
290 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292 * common-regcache.h (regcache_read_pc_protected): New function
295 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
299 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
301 * common-defs.h: Include cstdlib.h.
303 2020-04-20 Tom Tromey <tromey@adacore.com>
305 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
306 Use initialization style. Don't call destroy.
307 * scoped_fd.h (class scoped_fd): Mark move constructor as
309 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
312 2020-04-13 Tom Tromey <tom@tromey.com>
314 * event-loop.c: Move comment. Remove obsolete comment.
316 2020-04-13 Tom Tromey <tom@tromey.com>
318 * event-loop.h: Move from ../gdb/.
319 * event-loop.cc: Move from ../gdb/.
321 2020-04-13 Tom Tromey <tom@tromey.com>
323 * errors.h (flush_streams): Declare.
325 2020-04-13 Tom Tromey <tom@tromey.com>
327 * gdb_select.h: Move from ../gdb/.
329 2020-04-13 Tom Tromey <tom@tromey.com>
331 * config.in, configure: Rebuild.
332 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
333 sys/select.h, and poll.
335 2020-03-31 Tom Tromey <tromey@adacore.com>
337 * btrace-common.cc (btrace_data_append): Conditionally call
340 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
342 * create-version.sh: Resolve issues highlighted by shellcheck.
344 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
346 * config.in: Re-generate.
347 * configure: Re-generate.
349 2020-03-17 Kamil Rytarowski <n54@gmx.com>
351 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
353 2020-03-12 Tom Tromey <tom@tromey.com>
355 * common-types.h: Remove GDBSERVER code.
356 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
357 * common-defs.h: Remove GDBSERVER code.
359 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
361 * selftest.m4: Moved from gdb/.
362 * acinclude.m4: Update path to selftest.m4.
364 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
366 * configure.ac: Don't source bfd/development.sh.
367 * common.m4: Source bfd/development.sh.
368 * configure: Re-generate.
370 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
372 * configure: Re-generate.
374 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
376 * configure: Re-generate.
377 * warning.m4: Enable -Wmissing-prototypes.
379 2020-03-08 Tom Tromey <tom@tromey.com>
381 * gdb_binary_search.h: Fix two typos.
383 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
385 * .dir-locals.el: New file.
387 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
389 * configure.ac: Added call development.sh.
390 * configure: Regenerate.
392 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394 * .gitattributes: New file.
396 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
398 * Makefile.in: Re-generate.
400 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
402 * gdb-dlfcn.h (gdb_dlopen): Update comment.
404 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
406 * configure: Regenerate.
408 2020-02-14 Tom Tromey <tom@tromey.com>
410 * common-defs.h: Change path to gnulib/config.h.
412 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
414 * Makefile.am: Rename source files from .c to .cc.
415 (CC, CFLAGS): Don't override.
416 (AM_CFLAGS): Rename to ...
417 (AM_CXXFLAGS): ... this.
418 * Makefile.in: Re-generate.
419 * %.c: Rename to %.cc.
421 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
423 * configure: Re-generate.
425 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
427 * warning.m4: Add -Wstrict-null-sentinel.
428 * configure: Re-generate.
430 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
432 * warning.m4: Move here, from gdb/warning.m4.
433 * acinclude.m4: Update warning.m4 path.
434 * Makefile.in: Re-generate.
436 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
438 * acinclude.m4: Include ../gdb/warning.m4.
439 * configure.ac: Use AM_GDB_WARNINGS.
440 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
441 * Makefile.in: Re-generate.
442 * configure: Re-generate.
444 2020-02-10 Tom de Vries <tdevries@suse.de>
446 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
448 2020-01-24 Christian Biesinger <cbiesinger@google.com>
450 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
451 version of pthread_setname_np.
453 2020-01-17 Pedro Alves <palves@redhat.com>
455 * Makefile.am: Append CXX_DIALECT to CXX.
456 * Makefile.in: Regenerate.
458 2020-01-17 Pedro Alves <palves@redhat.com>
460 * configure.ac: Generate config.h instead of support-config.h.
461 * common-defs.h: Include <gdbsupport/config.h> instead of
462 <gdbsupport/support-config.h>.
463 * Makefile.in: Regenerate.
464 * configure: Regenerate.
466 2020-01-14 Tom Tromey <tom@tromey.com>
468 * Makefile.in: Rebuild.
469 * Makefile.am (check-defines): New target.
470 * check-defines.el: New file.
472 2020-01-14 Tom Tromey <tom@tromey.com>
474 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
476 * common.m4 (GDB_AC_COMMON): Move many checks from
478 * acinclude.m4: Include bfd.m4, ptrace.m4.
480 2020-01-14 Tom Tromey <tom@tromey.com>
482 * common-defs.h: Add GDBSERVER case. Update includes.
483 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
484 Makefile.am, Makefile.in, README: New files.
485 * Moved from ../gdb/gdbsupport/