1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3 * configure: Re-generate.
4 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
7 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
9 * configure: Re-generate.
10 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
13 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
15 * configure: Re-generate.
16 * ptrace.m4: Re-indent.
18 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
20 * aclocal.m4: Re-generate.
21 * configure: Re-generate.
22 * configure.ac: Remove AM_PROG_CC_STDC.
24 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
26 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
28 * configure: Re-generate.
30 2020-10-26 Pedro Alves <pedro@palves.net>
32 * eintr.h (handle_eintr): Replace Ret template parameter with
33 ErrorValType. Use it as type of the failure value. Deduce the
34 function's return type using decltype. Use lowercase for function
37 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
39 * Makefile.in: Re-generate.
40 * acinclude.m4: Update ptrace.m4 path.
41 * ptrace.m4: Move here.
43 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
45 * tdesc.h (allocate_target_description): Update return type.
47 2020-10-07 Tom Tromey <tromey@adacore.com>
49 * Makefile.in: Rebuild.
50 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
52 * search.cc: New file.
54 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
56 * event-loop.h (debug_event_loop): New variable declaration.
57 (event_loop_debug_printf_1): New function declaration.
58 (event_loop_debug_printf): New macro.
59 * event-loop.cc (debug_event_loop): New variable.
60 (handle_file_event): Add debug print.
61 (event_loop_debug_printf_1): New function.
63 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
65 * common-debug.cc (debug_prefixed_vprintf): Move here.
66 * common-debug.h (debug_prefixed_vprintf): Move here.
68 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
70 * event-loop.h (add_file_handler): Add "name" parameter.
71 * event-loop.cc (struct file_handler) <name>: New field.
72 (create_file_handler): Add "name" parameter, assign it to file
74 (add_file_handler): Add "name" parameter.
76 2020-10-01 Kamil Rytarowski <n54@gmx.com>
78 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
80 2020-09-29 Pedro Alves <pedro@palves.net>
82 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
83 class instead of an alias template and adjust static_assert.
85 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
87 * event-loop.c (struct file_handler): Remove typedef, re-format.
89 2020-09-16 John Baldwin <jhb@FreeBSD.org>
91 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
92 * configure, config.in: Regenerate.
94 2020-09-14 Pedro Alves <pedro@palves.net>
96 * enum-flags.h: Include "traits.h".
97 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
99 (enum_underlying_type): Update comment.
100 (namespace enum_flags_detail): New. Move struct zero_type here.
101 (EnumIsUnsigned, EnumIsSigned): New.
102 (class enum_flags): Make most methods constexpr.
103 (operator&=, operator|=, operator^=): Take an enum_flags instead
104 of an enum_type. Make rvalue ref versions deleted.
105 (operator enum_type()): Delete.
106 (operator&, operator|, operator^, operator~): Delete, moved out of
109 (is_enum_flags_enum_type_t): Declare.
110 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
111 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
113 (operator~): Now constexpr and reimplemented.
114 (operator<<, operator>>): New deleted functions.
115 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
117 2020-09-14 Pedro Alves <pedro@palves.net>
119 * traits.h (struct nonesuch, struct detector, detected_or)
120 (detected_or_t, is_detected, detected_t, detected_or)
121 (detected_or_t, is_detected_exact, is_detected_convertible): New.
122 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
124 2020-09-10 Kamil Rytarowski <n54@gmx.com>
128 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
130 * selftest.h (run_tests): Change parameter to array_view.
131 * selftest.c (run_tests): Change parameter to array_view and use
134 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
136 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
137 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
139 * Makefile.in: Regenerate.
140 * configure, config.in: Regenerate.
142 2020-07-28 Tom de Vries <tdevries@suse.de>
145 * gdb_optional.h (class optional): Add volatile member to union
146 contaning m_dummy and m_item.
148 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
150 * tdesc.h (struct target_desc_deleter): Moved here
151 from gdb/target-descriptions.h, extend comment.
152 (target_desc_up): Likewise.
154 2020-06-30 Tom Tromey <tromey@adacore.com>
157 * gdb_string_view.h (basic_string_view::to_string): Remove.
158 (gdb::to_string): New function.
160 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
162 * tdesc.h (class print_xml_feature) <add_line>: Add
165 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
167 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
168 output content, and call indent as needed in all overloaded
170 (print_xml_feature::visit_post): Likewise.
171 (print_xml_feature::visit): Likewise.
172 (print_xml_feature::add_line): Two new overloaded functions.
173 * tdesc.h (print_xml_feature::indent): New member function.
174 (print_xml_feature::add_line): Two new overloaded member
176 (print_xml_feature::m_depth): New member variable.
178 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
180 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
182 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
183 (tdesc_compatible_info_up): New typedef.
184 (tdesc_compatible_info_list): Declare new function.
185 (tdesc_compatible_info_arch_name): Declare new function.
187 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
189 * common-utils.cc, common-utils.h (stringify_argv): Drop
190 now unused function stringify_argv
192 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
194 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
195 Adapt to take a gdb::array_view<char * const> parameter.
198 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
200 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
201 Adapt to handle zero args and return a std::string.
204 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
206 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
207 Move function here from gdb/infcmd.c, gdb/inferior.h
209 2020-05-14 Kevin Buettner <kevinb@redhat.com>
211 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
213 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215 * common-regcache.h (regcache_read_pc_protected): New function
218 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
222 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
224 * common-defs.h: Include cstdlib.h.
226 2020-04-20 Tom Tromey <tromey@adacore.com>
228 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
229 Use initialization style. Don't call destroy.
230 * scoped_fd.h (class scoped_fd): Mark move constructor as
232 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
235 2020-04-13 Tom Tromey <tom@tromey.com>
237 * event-loop.c: Move comment. Remove obsolete comment.
239 2020-04-13 Tom Tromey <tom@tromey.com>
241 * event-loop.h: Move from ../gdb/.
242 * event-loop.cc: Move from ../gdb/.
244 2020-04-13 Tom Tromey <tom@tromey.com>
246 * errors.h (flush_streams): Declare.
248 2020-04-13 Tom Tromey <tom@tromey.com>
250 * gdb_select.h: Move from ../gdb/.
252 2020-04-13 Tom Tromey <tom@tromey.com>
254 * config.in, configure: Rebuild.
255 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
256 sys/select.h, and poll.
258 2020-03-31 Tom Tromey <tromey@adacore.com>
260 * btrace-common.cc (btrace_data_append): Conditionally call
263 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
265 * create-version.sh: Resolve issues highlighted by shellcheck.
267 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
269 * config.in: Re-generate.
270 * configure: Re-generate.
272 2020-03-17 Kamil Rytarowski <n54@gmx.com>
274 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
276 2020-03-12 Tom Tromey <tom@tromey.com>
278 * common-types.h: Remove GDBSERVER code.
279 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
280 * common-defs.h: Remove GDBSERVER code.
282 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
284 * selftest.m4: Moved from gdb/.
285 * acinclude.m4: Update path to selftest.m4.
287 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
289 * configure.ac: Don't source bfd/development.sh.
290 * common.m4: Source bfd/development.sh.
291 * configure: Re-generate.
293 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
295 * configure: Re-generate.
297 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
299 * configure: Re-generate.
300 * warning.m4: Enable -Wmissing-prototypes.
302 2020-03-08 Tom Tromey <tom@tromey.com>
304 * gdb_binary_search.h: Fix two typos.
306 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
308 * .dir-locals.el: New file.
310 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
312 * configure.ac: Added call development.sh.
313 * configure: Regenerate.
315 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
317 * .gitattributes: New file.
319 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
321 * Makefile.in: Re-generate.
323 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
325 * gdb-dlfcn.h (gdb_dlopen): Update comment.
327 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
329 * configure: Regenerate.
331 2020-02-14 Tom Tromey <tom@tromey.com>
333 * common-defs.h: Change path to gnulib/config.h.
335 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
337 * Makefile.am: Rename source files from .c to .cc.
338 (CC, CFLAGS): Don't override.
339 (AM_CFLAGS): Rename to ...
340 (AM_CXXFLAGS): ... this.
341 * Makefile.in: Re-generate.
342 * %.c: Rename to %.cc.
344 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
346 * configure: Re-generate.
348 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
350 * warning.m4: Add -Wstrict-null-sentinel.
351 * configure: Re-generate.
353 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
355 * warning.m4: Move here, from gdb/warning.m4.
356 * acinclude.m4: Update warning.m4 path.
357 * Makefile.in: Re-generate.
359 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
361 * acinclude.m4: Include ../gdb/warning.m4.
362 * configure.ac: Use AM_GDB_WARNINGS.
363 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
364 * Makefile.in: Re-generate.
365 * configure: Re-generate.
367 2020-02-10 Tom de Vries <tdevries@suse.de>
369 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
371 2020-01-24 Christian Biesinger <cbiesinger@google.com>
373 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
374 version of pthread_setname_np.
376 2020-01-17 Pedro Alves <palves@redhat.com>
378 * Makefile.am: Append CXX_DIALECT to CXX.
379 * Makefile.in: Regenerate.
381 2020-01-17 Pedro Alves <palves@redhat.com>
383 * configure.ac: Generate config.h instead of support-config.h.
384 * common-defs.h: Include <gdbsupport/config.h> instead of
385 <gdbsupport/support-config.h>.
386 * Makefile.in: Regenerate.
387 * configure: Regenerate.
389 2020-01-14 Tom Tromey <tom@tromey.com>
391 * Makefile.in: Rebuild.
392 * Makefile.am (check-defines): New target.
393 * check-defines.el: New file.
395 2020-01-14 Tom Tromey <tom@tromey.com>
397 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
399 * common.m4 (GDB_AC_COMMON): Move many checks from
401 * acinclude.m4: Include bfd.m4, ptrace.m4.
403 2020-01-14 Tom Tromey <tom@tromey.com>
405 * common-defs.h: Add GDBSERVER case. Update includes.
406 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
407 Makefile.am, Makefile.in, README: New files.
408 * Moved from ../gdb/gdbsupport/