1 2020-11-02 Tom Tromey <tom@tromey.com>
3 * pathstuff.h (get_standard_config_dir): Declare.
4 * pathstuff.cc (get_standard_config_dir): New function.
6 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
8 * common-exceptions.h: Fix indentation.
9 * event-loop.cc: Fix indentation.
10 * fileio.cc: Fix indentation.
11 * filestuff.cc: Fix indentation.
12 * gdb-dlfcn.cc: Fix indentation.
13 * gdb_string_view.h: Fix indentation.
14 * job-control.cc: Fix indentation.
15 * signals.cc: Fix indentation.
17 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
19 * common-debug.cc (debug_prefixed_printf): New.
20 * common-debug.h (debug_prefixed_printf): New declaration.
21 * event-loop.cc (event_loop_debug_printf_1): Remove.
22 * event-loop.h (event_loop_debug_printf_1): Remove.
23 (event_loop_debug_printf): Use debug_prefixed_printf.
24 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
26 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
28 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
30 * configure: Re-generate.
32 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
34 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
36 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
38 * configure: Re-generate.
39 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
42 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
44 * configure: Re-generate.
45 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
48 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
50 * configure: Re-generate.
51 * ptrace.m4: Re-indent.
53 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
55 * aclocal.m4: Re-generate.
56 * configure: Re-generate.
57 * configure.ac: Remove AM_PROG_CC_STDC.
59 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
61 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
63 * configure: Re-generate.
65 2020-10-26 Pedro Alves <pedro@palves.net>
67 * eintr.h (handle_eintr): Replace Ret template parameter with
68 ErrorValType. Use it as type of the failure value. Deduce the
69 function's return type using decltype. Use lowercase for function
72 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
74 * Makefile.in: Re-generate.
75 * acinclude.m4: Update ptrace.m4 path.
76 * ptrace.m4: Move here.
78 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
80 * tdesc.h (allocate_target_description): Update return type.
82 2020-10-07 Tom Tromey <tromey@adacore.com>
84 * Makefile.in: Rebuild.
85 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
87 * search.cc: New file.
89 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
91 * event-loop.h (debug_event_loop): New variable declaration.
92 (event_loop_debug_printf_1): New function declaration.
93 (event_loop_debug_printf): New macro.
94 * event-loop.cc (debug_event_loop): New variable.
95 (handle_file_event): Add debug print.
96 (event_loop_debug_printf_1): New function.
98 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
100 * common-debug.cc (debug_prefixed_vprintf): Move here.
101 * common-debug.h (debug_prefixed_vprintf): Move here.
103 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
105 * event-loop.h (add_file_handler): Add "name" parameter.
106 * event-loop.cc (struct file_handler) <name>: New field.
107 (create_file_handler): Add "name" parameter, assign it to file
109 (add_file_handler): Add "name" parameter.
111 2020-10-01 Kamil Rytarowski <n54@gmx.com>
113 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
115 2020-09-29 Pedro Alves <pedro@palves.net>
117 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
118 class instead of an alias template and adjust static_assert.
120 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
122 * event-loop.c (struct file_handler): Remove typedef, re-format.
124 2020-09-16 John Baldwin <jhb@FreeBSD.org>
126 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
127 * configure, config.in: Regenerate.
129 2020-09-14 Pedro Alves <pedro@palves.net>
131 * enum-flags.h: Include "traits.h".
132 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
134 (enum_underlying_type): Update comment.
135 (namespace enum_flags_detail): New. Move struct zero_type here.
136 (EnumIsUnsigned, EnumIsSigned): New.
137 (class enum_flags): Make most methods constexpr.
138 (operator&=, operator|=, operator^=): Take an enum_flags instead
139 of an enum_type. Make rvalue ref versions deleted.
140 (operator enum_type()): Delete.
141 (operator&, operator|, operator^, operator~): Delete, moved out of
144 (is_enum_flags_enum_type_t): Declare.
145 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
146 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
148 (operator~): Now constexpr and reimplemented.
149 (operator<<, operator>>): New deleted functions.
150 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
152 2020-09-14 Pedro Alves <pedro@palves.net>
154 * traits.h (struct nonesuch, struct detector, detected_or)
155 (detected_or_t, is_detected, detected_t, detected_or)
156 (detected_or_t, is_detected_exact, is_detected_convertible): New.
157 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
159 2020-09-10 Kamil Rytarowski <n54@gmx.com>
163 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
165 * selftest.h (run_tests): Change parameter to array_view.
166 * selftest.c (run_tests): Change parameter to array_view and use
169 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
171 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
172 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
174 * Makefile.in: Regenerate.
175 * configure, config.in: Regenerate.
177 2020-07-28 Tom de Vries <tdevries@suse.de>
180 * gdb_optional.h (class optional): Add volatile member to union
181 contaning m_dummy and m_item.
183 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
185 * tdesc.h (struct target_desc_deleter): Moved here
186 from gdb/target-descriptions.h, extend comment.
187 (target_desc_up): Likewise.
189 2020-06-30 Tom Tromey <tromey@adacore.com>
192 * gdb_string_view.h (basic_string_view::to_string): Remove.
193 (gdb::to_string): New function.
195 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
197 * tdesc.h (class print_xml_feature) <add_line>: Add
200 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
202 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
203 output content, and call indent as needed in all overloaded
205 (print_xml_feature::visit_post): Likewise.
206 (print_xml_feature::visit): Likewise.
207 (print_xml_feature::add_line): Two new overloaded functions.
208 * tdesc.h (print_xml_feature::indent): New member function.
209 (print_xml_feature::add_line): Two new overloaded member
211 (print_xml_feature::m_depth): New member variable.
213 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
215 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
217 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
218 (tdesc_compatible_info_up): New typedef.
219 (tdesc_compatible_info_list): Declare new function.
220 (tdesc_compatible_info_arch_name): Declare new function.
222 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
224 * common-utils.cc, common-utils.h (stringify_argv): Drop
225 now unused function stringify_argv
227 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
229 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
230 Adapt to take a gdb::array_view<char * const> parameter.
233 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
235 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
236 Adapt to handle zero args and return a std::string.
239 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
241 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
242 Move function here from gdb/infcmd.c, gdb/inferior.h
244 2020-05-14 Kevin Buettner <kevinb@redhat.com>
246 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
248 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250 * common-regcache.h (regcache_read_pc_protected): New function
253 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
257 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
259 * common-defs.h: Include cstdlib.h.
261 2020-04-20 Tom Tromey <tromey@adacore.com>
263 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
264 Use initialization style. Don't call destroy.
265 * scoped_fd.h (class scoped_fd): Mark move constructor as
267 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
270 2020-04-13 Tom Tromey <tom@tromey.com>
272 * event-loop.c: Move comment. Remove obsolete comment.
274 2020-04-13 Tom Tromey <tom@tromey.com>
276 * event-loop.h: Move from ../gdb/.
277 * event-loop.cc: Move from ../gdb/.
279 2020-04-13 Tom Tromey <tom@tromey.com>
281 * errors.h (flush_streams): Declare.
283 2020-04-13 Tom Tromey <tom@tromey.com>
285 * gdb_select.h: Move from ../gdb/.
287 2020-04-13 Tom Tromey <tom@tromey.com>
289 * config.in, configure: Rebuild.
290 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
291 sys/select.h, and poll.
293 2020-03-31 Tom Tromey <tromey@adacore.com>
295 * btrace-common.cc (btrace_data_append): Conditionally call
298 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
300 * create-version.sh: Resolve issues highlighted by shellcheck.
302 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
304 * config.in: Re-generate.
305 * configure: Re-generate.
307 2020-03-17 Kamil Rytarowski <n54@gmx.com>
309 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
311 2020-03-12 Tom Tromey <tom@tromey.com>
313 * common-types.h: Remove GDBSERVER code.
314 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
315 * common-defs.h: Remove GDBSERVER code.
317 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
319 * selftest.m4: Moved from gdb/.
320 * acinclude.m4: Update path to selftest.m4.
322 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
324 * configure.ac: Don't source bfd/development.sh.
325 * common.m4: Source bfd/development.sh.
326 * configure: Re-generate.
328 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
330 * configure: Re-generate.
332 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
334 * configure: Re-generate.
335 * warning.m4: Enable -Wmissing-prototypes.
337 2020-03-08 Tom Tromey <tom@tromey.com>
339 * gdb_binary_search.h: Fix two typos.
341 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
343 * .dir-locals.el: New file.
345 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
347 * configure.ac: Added call development.sh.
348 * configure: Regenerate.
350 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352 * .gitattributes: New file.
354 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
356 * Makefile.in: Re-generate.
358 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
360 * gdb-dlfcn.h (gdb_dlopen): Update comment.
362 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
364 * configure: Regenerate.
366 2020-02-14 Tom Tromey <tom@tromey.com>
368 * common-defs.h: Change path to gnulib/config.h.
370 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
372 * Makefile.am: Rename source files from .c to .cc.
373 (CC, CFLAGS): Don't override.
374 (AM_CFLAGS): Rename to ...
375 (AM_CXXFLAGS): ... this.
376 * Makefile.in: Re-generate.
377 * %.c: Rename to %.cc.
379 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
381 * configure: Re-generate.
383 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
385 * warning.m4: Add -Wstrict-null-sentinel.
386 * configure: Re-generate.
388 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
390 * warning.m4: Move here, from gdb/warning.m4.
391 * acinclude.m4: Update warning.m4 path.
392 * Makefile.in: Re-generate.
394 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
396 * acinclude.m4: Include ../gdb/warning.m4.
397 * configure.ac: Use AM_GDB_WARNINGS.
398 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
399 * Makefile.in: Re-generate.
400 * configure: Re-generate.
402 2020-02-10 Tom de Vries <tdevries@suse.de>
404 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
406 2020-01-24 Christian Biesinger <cbiesinger@google.com>
408 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
409 version of pthread_setname_np.
411 2020-01-17 Pedro Alves <palves@redhat.com>
413 * Makefile.am: Append CXX_DIALECT to CXX.
414 * Makefile.in: Regenerate.
416 2020-01-17 Pedro Alves <palves@redhat.com>
418 * configure.ac: Generate config.h instead of support-config.h.
419 * common-defs.h: Include <gdbsupport/config.h> instead of
420 <gdbsupport/support-config.h>.
421 * Makefile.in: Regenerate.
422 * configure: Regenerate.
424 2020-01-14 Tom Tromey <tom@tromey.com>
426 * Makefile.in: Rebuild.
427 * Makefile.am (check-defines): New target.
428 * check-defines.el: New file.
430 2020-01-14 Tom Tromey <tom@tromey.com>
432 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
434 * common.m4 (GDB_AC_COMMON): Move many checks from
436 * acinclude.m4: Include bfd.m4, ptrace.m4.
438 2020-01-14 Tom Tromey <tom@tromey.com>
440 * common-defs.h: Add GDBSERVER case. Update includes.
441 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
442 Makefile.am, Makefile.in, README: New files.
443 * Moved from ../gdb/gdbsupport/