1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3 * common-debug.cc (debug_prefixed_printf): New.
4 * common-debug.h (debug_prefixed_printf): New declaration.
5 * event-loop.cc (event_loop_debug_printf_1): Remove.
6 * event-loop.h (event_loop_debug_printf_1): Remove.
7 (event_loop_debug_printf): Use debug_prefixed_printf.
8 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
10 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
12 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
14 * configure: Re-generate.
16 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
18 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
20 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
22 * configure: Re-generate.
23 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
26 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
28 * configure: Re-generate.
29 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
32 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
34 * configure: Re-generate.
35 * ptrace.m4: Re-indent.
37 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
39 * aclocal.m4: Re-generate.
40 * configure: Re-generate.
41 * configure.ac: Remove AM_PROG_CC_STDC.
43 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
45 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
47 * configure: Re-generate.
49 2020-10-26 Pedro Alves <pedro@palves.net>
51 * eintr.h (handle_eintr): Replace Ret template parameter with
52 ErrorValType. Use it as type of the failure value. Deduce the
53 function's return type using decltype. Use lowercase for function
56 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
58 * Makefile.in: Re-generate.
59 * acinclude.m4: Update ptrace.m4 path.
60 * ptrace.m4: Move here.
62 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
64 * tdesc.h (allocate_target_description): Update return type.
66 2020-10-07 Tom Tromey <tromey@adacore.com>
68 * Makefile.in: Rebuild.
69 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
71 * search.cc: New file.
73 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
75 * event-loop.h (debug_event_loop): New variable declaration.
76 (event_loop_debug_printf_1): New function declaration.
77 (event_loop_debug_printf): New macro.
78 * event-loop.cc (debug_event_loop): New variable.
79 (handle_file_event): Add debug print.
80 (event_loop_debug_printf_1): New function.
82 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
84 * common-debug.cc (debug_prefixed_vprintf): Move here.
85 * common-debug.h (debug_prefixed_vprintf): Move here.
87 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
89 * event-loop.h (add_file_handler): Add "name" parameter.
90 * event-loop.cc (struct file_handler) <name>: New field.
91 (create_file_handler): Add "name" parameter, assign it to file
93 (add_file_handler): Add "name" parameter.
95 2020-10-01 Kamil Rytarowski <n54@gmx.com>
97 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
99 2020-09-29 Pedro Alves <pedro@palves.net>
101 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
102 class instead of an alias template and adjust static_assert.
104 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
106 * event-loop.c (struct file_handler): Remove typedef, re-format.
108 2020-09-16 John Baldwin <jhb@FreeBSD.org>
110 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
111 * configure, config.in: Regenerate.
113 2020-09-14 Pedro Alves <pedro@palves.net>
115 * enum-flags.h: Include "traits.h".
116 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
118 (enum_underlying_type): Update comment.
119 (namespace enum_flags_detail): New. Move struct zero_type here.
120 (EnumIsUnsigned, EnumIsSigned): New.
121 (class enum_flags): Make most methods constexpr.
122 (operator&=, operator|=, operator^=): Take an enum_flags instead
123 of an enum_type. Make rvalue ref versions deleted.
124 (operator enum_type()): Delete.
125 (operator&, operator|, operator^, operator~): Delete, moved out of
128 (is_enum_flags_enum_type_t): Declare.
129 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
130 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
132 (operator~): Now constexpr and reimplemented.
133 (operator<<, operator>>): New deleted functions.
134 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
136 2020-09-14 Pedro Alves <pedro@palves.net>
138 * traits.h (struct nonesuch, struct detector, detected_or)
139 (detected_or_t, is_detected, detected_t, detected_or)
140 (detected_or_t, is_detected_exact, is_detected_convertible): New.
141 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
143 2020-09-10 Kamil Rytarowski <n54@gmx.com>
147 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
149 * selftest.h (run_tests): Change parameter to array_view.
150 * selftest.c (run_tests): Change parameter to array_view and use
153 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
155 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
156 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
158 * Makefile.in: Regenerate.
159 * configure, config.in: Regenerate.
161 2020-07-28 Tom de Vries <tdevries@suse.de>
164 * gdb_optional.h (class optional): Add volatile member to union
165 contaning m_dummy and m_item.
167 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
169 * tdesc.h (struct target_desc_deleter): Moved here
170 from gdb/target-descriptions.h, extend comment.
171 (target_desc_up): Likewise.
173 2020-06-30 Tom Tromey <tromey@adacore.com>
176 * gdb_string_view.h (basic_string_view::to_string): Remove.
177 (gdb::to_string): New function.
179 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
181 * tdesc.h (class print_xml_feature) <add_line>: Add
184 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
186 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
187 output content, and call indent as needed in all overloaded
189 (print_xml_feature::visit_post): Likewise.
190 (print_xml_feature::visit): Likewise.
191 (print_xml_feature::add_line): Two new overloaded functions.
192 * tdesc.h (print_xml_feature::indent): New member function.
193 (print_xml_feature::add_line): Two new overloaded member
195 (print_xml_feature::m_depth): New member variable.
197 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
199 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
201 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
202 (tdesc_compatible_info_up): New typedef.
203 (tdesc_compatible_info_list): Declare new function.
204 (tdesc_compatible_info_arch_name): Declare new function.
206 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
208 * common-utils.cc, common-utils.h (stringify_argv): Drop
209 now unused function stringify_argv
211 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
213 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
214 Adapt to take a gdb::array_view<char * const> parameter.
217 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
219 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
220 Adapt to handle zero args and return a std::string.
223 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
225 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
226 Move function here from gdb/infcmd.c, gdb/inferior.h
228 2020-05-14 Kevin Buettner <kevinb@redhat.com>
230 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
232 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
234 * common-regcache.h (regcache_read_pc_protected): New function
237 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
239 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
241 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
243 * common-defs.h: Include cstdlib.h.
245 2020-04-20 Tom Tromey <tromey@adacore.com>
247 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
248 Use initialization style. Don't call destroy.
249 * scoped_fd.h (class scoped_fd): Mark move constructor as
251 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
254 2020-04-13 Tom Tromey <tom@tromey.com>
256 * event-loop.c: Move comment. Remove obsolete comment.
258 2020-04-13 Tom Tromey <tom@tromey.com>
260 * event-loop.h: Move from ../gdb/.
261 * event-loop.cc: Move from ../gdb/.
263 2020-04-13 Tom Tromey <tom@tromey.com>
265 * errors.h (flush_streams): Declare.
267 2020-04-13 Tom Tromey <tom@tromey.com>
269 * gdb_select.h: Move from ../gdb/.
271 2020-04-13 Tom Tromey <tom@tromey.com>
273 * config.in, configure: Rebuild.
274 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
275 sys/select.h, and poll.
277 2020-03-31 Tom Tromey <tromey@adacore.com>
279 * btrace-common.cc (btrace_data_append): Conditionally call
282 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
284 * create-version.sh: Resolve issues highlighted by shellcheck.
286 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
288 * config.in: Re-generate.
289 * configure: Re-generate.
291 2020-03-17 Kamil Rytarowski <n54@gmx.com>
293 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
295 2020-03-12 Tom Tromey <tom@tromey.com>
297 * common-types.h: Remove GDBSERVER code.
298 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
299 * common-defs.h: Remove GDBSERVER code.
301 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
303 * selftest.m4: Moved from gdb/.
304 * acinclude.m4: Update path to selftest.m4.
306 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
308 * configure.ac: Don't source bfd/development.sh.
309 * common.m4: Source bfd/development.sh.
310 * configure: Re-generate.
312 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
314 * configure: Re-generate.
316 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
318 * configure: Re-generate.
319 * warning.m4: Enable -Wmissing-prototypes.
321 2020-03-08 Tom Tromey <tom@tromey.com>
323 * gdb_binary_search.h: Fix two typos.
325 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
327 * .dir-locals.el: New file.
329 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
331 * configure.ac: Added call development.sh.
332 * configure: Regenerate.
334 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
336 * .gitattributes: New file.
338 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
340 * Makefile.in: Re-generate.
342 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
344 * gdb-dlfcn.h (gdb_dlopen): Update comment.
346 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
348 * configure: Regenerate.
350 2020-02-14 Tom Tromey <tom@tromey.com>
352 * common-defs.h: Change path to gnulib/config.h.
354 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
356 * Makefile.am: Rename source files from .c to .cc.
357 (CC, CFLAGS): Don't override.
358 (AM_CFLAGS): Rename to ...
359 (AM_CXXFLAGS): ... this.
360 * Makefile.in: Re-generate.
361 * %.c: Rename to %.cc.
363 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
365 * configure: Re-generate.
367 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
369 * warning.m4: Add -Wstrict-null-sentinel.
370 * configure: Re-generate.
372 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
374 * warning.m4: Move here, from gdb/warning.m4.
375 * acinclude.m4: Update warning.m4 path.
376 * Makefile.in: Re-generate.
378 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
380 * acinclude.m4: Include ../gdb/warning.m4.
381 * configure.ac: Use AM_GDB_WARNINGS.
382 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
383 * Makefile.in: Re-generate.
384 * configure: Re-generate.
386 2020-02-10 Tom de Vries <tdevries@suse.de>
388 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
390 2020-01-24 Christian Biesinger <cbiesinger@google.com>
392 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
393 version of pthread_setname_np.
395 2020-01-17 Pedro Alves <palves@redhat.com>
397 * Makefile.am: Append CXX_DIALECT to CXX.
398 * Makefile.in: Regenerate.
400 2020-01-17 Pedro Alves <palves@redhat.com>
402 * configure.ac: Generate config.h instead of support-config.h.
403 * common-defs.h: Include <gdbsupport/config.h> instead of
404 <gdbsupport/support-config.h>.
405 * Makefile.in: Regenerate.
406 * configure: Regenerate.
408 2020-01-14 Tom Tromey <tom@tromey.com>
410 * Makefile.in: Rebuild.
411 * Makefile.am (check-defines): New target.
412 * check-defines.el: New file.
414 2020-01-14 Tom Tromey <tom@tromey.com>
416 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
418 * common.m4 (GDB_AC_COMMON): Move many checks from
420 * acinclude.m4: Include bfd.m4, ptrace.m4.
422 2020-01-14 Tom Tromey <tom@tromey.com>
424 * common-defs.h: Add GDBSERVER case. Update includes.
425 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
426 Makefile.am, Makefile.in, README: New files.
427 * Moved from ../gdb/gdbsupport/