1 2020-11-20 Tom Tromey <tromey@adacore.com>
3 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
6 2020-11-10 Tom Tromey <tromey@adacore.com>
9 * pathstuff.h: Move include block here...
10 * pathstuff.cc: ... from here.
12 2020-11-02 Tom Tromey <tom@tromey.com>
14 * pathstuff.h (get_standard_config_dir): Declare.
15 * pathstuff.cc (get_standard_config_dir): New function.
17 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
19 * common-exceptions.h: Fix indentation.
20 * event-loop.cc: Fix indentation.
21 * fileio.cc: Fix indentation.
22 * filestuff.cc: Fix indentation.
23 * gdb-dlfcn.cc: Fix indentation.
24 * gdb_string_view.h: Fix indentation.
25 * job-control.cc: Fix indentation.
26 * signals.cc: Fix indentation.
28 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
30 * common-debug.cc (debug_prefixed_printf): New.
31 * common-debug.h (debug_prefixed_printf): New declaration.
32 * event-loop.cc (event_loop_debug_printf_1): Remove.
33 * event-loop.h (event_loop_debug_printf_1): Remove.
34 (event_loop_debug_printf): Use debug_prefixed_printf.
35 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
37 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
39 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
41 * configure: Re-generate.
43 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
45 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
47 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
49 * configure: Re-generate.
50 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
53 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
55 * configure: Re-generate.
56 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
59 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
61 * configure: Re-generate.
62 * ptrace.m4: Re-indent.
64 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
66 * aclocal.m4: Re-generate.
67 * configure: Re-generate.
68 * configure.ac: Remove AM_PROG_CC_STDC.
70 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
72 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
74 * configure: Re-generate.
76 2020-10-26 Pedro Alves <pedro@palves.net>
78 * eintr.h (handle_eintr): Replace Ret template parameter with
79 ErrorValType. Use it as type of the failure value. Deduce the
80 function's return type using decltype. Use lowercase for function
83 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
85 * Makefile.in: Re-generate.
86 * acinclude.m4: Update ptrace.m4 path.
87 * ptrace.m4: Move here.
89 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
91 * tdesc.h (allocate_target_description): Update return type.
93 2020-10-07 Tom Tromey <tromey@adacore.com>
95 * Makefile.in: Rebuild.
96 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
98 * search.cc: New file.
100 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
102 * event-loop.h (debug_event_loop): New variable declaration.
103 (event_loop_debug_printf_1): New function declaration.
104 (event_loop_debug_printf): New macro.
105 * event-loop.cc (debug_event_loop): New variable.
106 (handle_file_event): Add debug print.
107 (event_loop_debug_printf_1): New function.
109 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
111 * common-debug.cc (debug_prefixed_vprintf): Move here.
112 * common-debug.h (debug_prefixed_vprintf): Move here.
114 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
116 * event-loop.h (add_file_handler): Add "name" parameter.
117 * event-loop.cc (struct file_handler) <name>: New field.
118 (create_file_handler): Add "name" parameter, assign it to file
120 (add_file_handler): Add "name" parameter.
122 2020-10-01 Kamil Rytarowski <n54@gmx.com>
124 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
126 2020-09-29 Pedro Alves <pedro@palves.net>
128 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
129 class instead of an alias template and adjust static_assert.
131 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
133 * event-loop.c (struct file_handler): Remove typedef, re-format.
135 2020-09-16 John Baldwin <jhb@FreeBSD.org>
137 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
138 * configure, config.in: Regenerate.
140 2020-09-14 Pedro Alves <pedro@palves.net>
142 * enum-flags.h: Include "traits.h".
143 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
145 (enum_underlying_type): Update comment.
146 (namespace enum_flags_detail): New. Move struct zero_type here.
147 (EnumIsUnsigned, EnumIsSigned): New.
148 (class enum_flags): Make most methods constexpr.
149 (operator&=, operator|=, operator^=): Take an enum_flags instead
150 of an enum_type. Make rvalue ref versions deleted.
151 (operator enum_type()): Delete.
152 (operator&, operator|, operator^, operator~): Delete, moved out of
155 (is_enum_flags_enum_type_t): Declare.
156 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
157 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
159 (operator~): Now constexpr and reimplemented.
160 (operator<<, operator>>): New deleted functions.
161 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
163 2020-09-14 Pedro Alves <pedro@palves.net>
165 * traits.h (struct nonesuch, struct detector, detected_or)
166 (detected_or_t, is_detected, detected_t, detected_or)
167 (detected_or_t, is_detected_exact, is_detected_convertible): New.
168 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
170 2020-09-10 Kamil Rytarowski <n54@gmx.com>
174 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
176 * selftest.h (run_tests): Change parameter to array_view.
177 * selftest.c (run_tests): Change parameter to array_view and use
180 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
183 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
185 * Makefile.in: Regenerate.
186 * configure, config.in: Regenerate.
188 2020-07-28 Tom de Vries <tdevries@suse.de>
191 * gdb_optional.h (class optional): Add volatile member to union
192 contaning m_dummy and m_item.
194 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
196 * tdesc.h (struct target_desc_deleter): Moved here
197 from gdb/target-descriptions.h, extend comment.
198 (target_desc_up): Likewise.
200 2020-06-30 Tom Tromey <tromey@adacore.com>
203 * gdb_string_view.h (basic_string_view::to_string): Remove.
204 (gdb::to_string): New function.
206 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
208 * tdesc.h (class print_xml_feature) <add_line>: Add
211 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
213 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
214 output content, and call indent as needed in all overloaded
216 (print_xml_feature::visit_post): Likewise.
217 (print_xml_feature::visit): Likewise.
218 (print_xml_feature::add_line): Two new overloaded functions.
219 * tdesc.h (print_xml_feature::indent): New member function.
220 (print_xml_feature::add_line): Two new overloaded member
222 (print_xml_feature::m_depth): New member variable.
224 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
226 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
228 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
229 (tdesc_compatible_info_up): New typedef.
230 (tdesc_compatible_info_list): Declare new function.
231 (tdesc_compatible_info_arch_name): Declare new function.
233 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
235 * common-utils.cc, common-utils.h (stringify_argv): Drop
236 now unused function stringify_argv
238 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
240 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
241 Adapt to take a gdb::array_view<char * const> parameter.
244 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
246 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
247 Adapt to handle zero args and return a std::string.
250 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
252 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
253 Move function here from gdb/infcmd.c, gdb/inferior.h
255 2020-05-14 Kevin Buettner <kevinb@redhat.com>
257 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
259 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
261 * common-regcache.h (regcache_read_pc_protected): New function
264 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
266 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
268 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
270 * common-defs.h: Include cstdlib.h.
272 2020-04-20 Tom Tromey <tromey@adacore.com>
274 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
275 Use initialization style. Don't call destroy.
276 * scoped_fd.h (class scoped_fd): Mark move constructor as
278 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
281 2020-04-13 Tom Tromey <tom@tromey.com>
283 * event-loop.c: Move comment. Remove obsolete comment.
285 2020-04-13 Tom Tromey <tom@tromey.com>
287 * event-loop.h: Move from ../gdb/.
288 * event-loop.cc: Move from ../gdb/.
290 2020-04-13 Tom Tromey <tom@tromey.com>
292 * errors.h (flush_streams): Declare.
294 2020-04-13 Tom Tromey <tom@tromey.com>
296 * gdb_select.h: Move from ../gdb/.
298 2020-04-13 Tom Tromey <tom@tromey.com>
300 * config.in, configure: Rebuild.
301 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
302 sys/select.h, and poll.
304 2020-03-31 Tom Tromey <tromey@adacore.com>
306 * btrace-common.cc (btrace_data_append): Conditionally call
309 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
311 * create-version.sh: Resolve issues highlighted by shellcheck.
313 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
315 * config.in: Re-generate.
316 * configure: Re-generate.
318 2020-03-17 Kamil Rytarowski <n54@gmx.com>
320 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
322 2020-03-12 Tom Tromey <tom@tromey.com>
324 * common-types.h: Remove GDBSERVER code.
325 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
326 * common-defs.h: Remove GDBSERVER code.
328 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
330 * selftest.m4: Moved from gdb/.
331 * acinclude.m4: Update path to selftest.m4.
333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
335 * configure.ac: Don't source bfd/development.sh.
336 * common.m4: Source bfd/development.sh.
337 * configure: Re-generate.
339 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
341 * configure: Re-generate.
343 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
345 * configure: Re-generate.
346 * warning.m4: Enable -Wmissing-prototypes.
348 2020-03-08 Tom Tromey <tom@tromey.com>
350 * gdb_binary_search.h: Fix two typos.
352 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
354 * .dir-locals.el: New file.
356 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
358 * configure.ac: Added call development.sh.
359 * configure: Regenerate.
361 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363 * .gitattributes: New file.
365 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
367 * Makefile.in: Re-generate.
369 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
371 * gdb-dlfcn.h (gdb_dlopen): Update comment.
373 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
375 * configure: Regenerate.
377 2020-02-14 Tom Tromey <tom@tromey.com>
379 * common-defs.h: Change path to gnulib/config.h.
381 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
383 * Makefile.am: Rename source files from .c to .cc.
384 (CC, CFLAGS): Don't override.
385 (AM_CFLAGS): Rename to ...
386 (AM_CXXFLAGS): ... this.
387 * Makefile.in: Re-generate.
388 * %.c: Rename to %.cc.
390 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
392 * configure: Re-generate.
394 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
396 * warning.m4: Add -Wstrict-null-sentinel.
397 * configure: Re-generate.
399 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
401 * warning.m4: Move here, from gdb/warning.m4.
402 * acinclude.m4: Update warning.m4 path.
403 * Makefile.in: Re-generate.
405 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
407 * acinclude.m4: Include ../gdb/warning.m4.
408 * configure.ac: Use AM_GDB_WARNINGS.
409 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
410 * Makefile.in: Re-generate.
411 * configure: Re-generate.
413 2020-02-10 Tom de Vries <tdevries@suse.de>
415 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
417 2020-01-24 Christian Biesinger <cbiesinger@google.com>
419 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
420 version of pthread_setname_np.
422 2020-01-17 Pedro Alves <palves@redhat.com>
424 * Makefile.am: Append CXX_DIALECT to CXX.
425 * Makefile.in: Regenerate.
427 2020-01-17 Pedro Alves <palves@redhat.com>
429 * configure.ac: Generate config.h instead of support-config.h.
430 * common-defs.h: Include <gdbsupport/config.h> instead of
431 <gdbsupport/support-config.h>.
432 * Makefile.in: Regenerate.
433 * configure: Regenerate.
435 2020-01-14 Tom Tromey <tom@tromey.com>
437 * Makefile.in: Rebuild.
438 * Makefile.am (check-defines): New target.
439 * check-defines.el: New file.
441 2020-01-14 Tom Tromey <tom@tromey.com>
443 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
445 * common.m4 (GDB_AC_COMMON): Move many checks from
447 * acinclude.m4: Include bfd.m4, ptrace.m4.
449 2020-01-14 Tom Tromey <tom@tromey.com>
451 * common-defs.h: Add GDBSERVER case. Update includes.
452 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
453 Makefile.am, Makefile.in, README: New files.
454 * Moved from ../gdb/gdbsupport/