1 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
3 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
4 variable when running on Windows.
6 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
8 * tdesc.cc (print_xml_feature::visit): Print enum fields using
11 2020-12-01 Chungyi Chi <demonic@csie.io>
13 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
15 2020-11-20 Tom Tromey <tromey@adacore.com>
17 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
20 2020-11-10 Tom Tromey <tromey@adacore.com>
23 * pathstuff.h: Move include block here...
24 * pathstuff.cc: ... from here.
26 2020-11-02 Tom Tromey <tom@tromey.com>
28 * pathstuff.h (get_standard_config_dir): Declare.
29 * pathstuff.cc (get_standard_config_dir): New function.
31 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
33 * common-exceptions.h: Fix indentation.
34 * event-loop.cc: Fix indentation.
35 * fileio.cc: Fix indentation.
36 * filestuff.cc: Fix indentation.
37 * gdb-dlfcn.cc: Fix indentation.
38 * gdb_string_view.h: Fix indentation.
39 * job-control.cc: Fix indentation.
40 * signals.cc: Fix indentation.
42 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
44 * common-debug.cc (debug_prefixed_printf): New.
45 * common-debug.h (debug_prefixed_printf): New declaration.
46 * event-loop.cc (event_loop_debug_printf_1): Remove.
47 * event-loop.h (event_loop_debug_printf_1): Remove.
48 (event_loop_debug_printf): Use debug_prefixed_printf.
49 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
51 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
55 * configure: Re-generate.
57 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
59 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
61 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
63 * configure: Re-generate.
64 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
67 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
69 * configure: Re-generate.
70 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
73 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
75 * configure: Re-generate.
76 * ptrace.m4: Re-indent.
78 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
80 * aclocal.m4: Re-generate.
81 * configure: Re-generate.
82 * configure.ac: Remove AM_PROG_CC_STDC.
84 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
86 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
88 * configure: Re-generate.
90 2020-10-26 Pedro Alves <pedro@palves.net>
92 * eintr.h (handle_eintr): Replace Ret template parameter with
93 ErrorValType. Use it as type of the failure value. Deduce the
94 function's return type using decltype. Use lowercase for function
97 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
99 * Makefile.in: Re-generate.
100 * acinclude.m4: Update ptrace.m4 path.
101 * ptrace.m4: Move here.
103 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
105 * tdesc.h (allocate_target_description): Update return type.
107 2020-10-07 Tom Tromey <tromey@adacore.com>
109 * Makefile.in: Rebuild.
110 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
111 * search.h: New file.
112 * search.cc: New file.
114 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
116 * event-loop.h (debug_event_loop): New variable declaration.
117 (event_loop_debug_printf_1): New function declaration.
118 (event_loop_debug_printf): New macro.
119 * event-loop.cc (debug_event_loop): New variable.
120 (handle_file_event): Add debug print.
121 (event_loop_debug_printf_1): New function.
123 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
125 * common-debug.cc (debug_prefixed_vprintf): Move here.
126 * common-debug.h (debug_prefixed_vprintf): Move here.
128 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
130 * event-loop.h (add_file_handler): Add "name" parameter.
131 * event-loop.cc (struct file_handler) <name>: New field.
132 (create_file_handler): Add "name" parameter, assign it to file
134 (add_file_handler): Add "name" parameter.
136 2020-10-01 Kamil Rytarowski <n54@gmx.com>
138 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
140 2020-09-29 Pedro Alves <pedro@palves.net>
142 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
143 class instead of an alias template and adjust static_assert.
145 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
147 * event-loop.c (struct file_handler): Remove typedef, re-format.
149 2020-09-16 John Baldwin <jhb@FreeBSD.org>
151 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
152 * configure, config.in: Regenerate.
154 2020-09-14 Pedro Alves <pedro@palves.net>
156 * enum-flags.h: Include "traits.h".
157 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
159 (enum_underlying_type): Update comment.
160 (namespace enum_flags_detail): New. Move struct zero_type here.
161 (EnumIsUnsigned, EnumIsSigned): New.
162 (class enum_flags): Make most methods constexpr.
163 (operator&=, operator|=, operator^=): Take an enum_flags instead
164 of an enum_type. Make rvalue ref versions deleted.
165 (operator enum_type()): Delete.
166 (operator&, operator|, operator^, operator~): Delete, moved out of
169 (is_enum_flags_enum_type_t): Declare.
170 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
171 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
173 (operator~): Now constexpr and reimplemented.
174 (operator<<, operator>>): New deleted functions.
175 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
177 2020-09-14 Pedro Alves <pedro@palves.net>
179 * traits.h (struct nonesuch, struct detector, detected_or)
180 (detected_or_t, is_detected, detected_t, detected_or)
181 (detected_or_t, is_detected_exact, is_detected_convertible): New.
182 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
184 2020-09-10 Kamil Rytarowski <n54@gmx.com>
188 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
190 * selftest.h (run_tests): Change parameter to array_view.
191 * selftest.c (run_tests): Change parameter to array_view and use
194 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
196 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
197 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
199 * Makefile.in: Regenerate.
200 * configure, config.in: Regenerate.
202 2020-07-28 Tom de Vries <tdevries@suse.de>
205 * gdb_optional.h (class optional): Add volatile member to union
206 contaning m_dummy and m_item.
208 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
210 * tdesc.h (struct target_desc_deleter): Moved here
211 from gdb/target-descriptions.h, extend comment.
212 (target_desc_up): Likewise.
214 2020-06-30 Tom Tromey <tromey@adacore.com>
217 * gdb_string_view.h (basic_string_view::to_string): Remove.
218 (gdb::to_string): New function.
220 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
222 * tdesc.h (class print_xml_feature) <add_line>: Add
225 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
227 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
228 output content, and call indent as needed in all overloaded
230 (print_xml_feature::visit_post): Likewise.
231 (print_xml_feature::visit): Likewise.
232 (print_xml_feature::add_line): Two new overloaded functions.
233 * tdesc.h (print_xml_feature::indent): New member function.
234 (print_xml_feature::add_line): Two new overloaded member
236 (print_xml_feature::m_depth): New member variable.
238 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
240 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
242 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
243 (tdesc_compatible_info_up): New typedef.
244 (tdesc_compatible_info_list): Declare new function.
245 (tdesc_compatible_info_arch_name): Declare new function.
247 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
249 * common-utils.cc, common-utils.h (stringify_argv): Drop
250 now unused function stringify_argv
252 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
254 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
255 Adapt to take a gdb::array_view<char * const> parameter.
258 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
260 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
261 Adapt to handle zero args and return a std::string.
264 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
266 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
267 Move function here from gdb/infcmd.c, gdb/inferior.h
269 2020-05-14 Kevin Buettner <kevinb@redhat.com>
271 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
273 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
275 * common-regcache.h (regcache_read_pc_protected): New function
278 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
280 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
282 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
284 * common-defs.h: Include cstdlib.h.
286 2020-04-20 Tom Tromey <tromey@adacore.com>
288 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
289 Use initialization style. Don't call destroy.
290 * scoped_fd.h (class scoped_fd): Mark move constructor as
292 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
295 2020-04-13 Tom Tromey <tom@tromey.com>
297 * event-loop.c: Move comment. Remove obsolete comment.
299 2020-04-13 Tom Tromey <tom@tromey.com>
301 * event-loop.h: Move from ../gdb/.
302 * event-loop.cc: Move from ../gdb/.
304 2020-04-13 Tom Tromey <tom@tromey.com>
306 * errors.h (flush_streams): Declare.
308 2020-04-13 Tom Tromey <tom@tromey.com>
310 * gdb_select.h: Move from ../gdb/.
312 2020-04-13 Tom Tromey <tom@tromey.com>
314 * config.in, configure: Rebuild.
315 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
316 sys/select.h, and poll.
318 2020-03-31 Tom Tromey <tromey@adacore.com>
320 * btrace-common.cc (btrace_data_append): Conditionally call
323 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
325 * create-version.sh: Resolve issues highlighted by shellcheck.
327 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
329 * config.in: Re-generate.
330 * configure: Re-generate.
332 2020-03-17 Kamil Rytarowski <n54@gmx.com>
334 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
336 2020-03-12 Tom Tromey <tom@tromey.com>
338 * common-types.h: Remove GDBSERVER code.
339 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
340 * common-defs.h: Remove GDBSERVER code.
342 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
344 * selftest.m4: Moved from gdb/.
345 * acinclude.m4: Update path to selftest.m4.
347 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
349 * configure.ac: Don't source bfd/development.sh.
350 * common.m4: Source bfd/development.sh.
351 * configure: Re-generate.
353 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
355 * configure: Re-generate.
357 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
359 * configure: Re-generate.
360 * warning.m4: Enable -Wmissing-prototypes.
362 2020-03-08 Tom Tromey <tom@tromey.com>
364 * gdb_binary_search.h: Fix two typos.
366 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
368 * .dir-locals.el: New file.
370 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
372 * configure.ac: Added call development.sh.
373 * configure: Regenerate.
375 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377 * .gitattributes: New file.
379 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
381 * Makefile.in: Re-generate.
383 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
385 * gdb-dlfcn.h (gdb_dlopen): Update comment.
387 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
389 * configure: Regenerate.
391 2020-02-14 Tom Tromey <tom@tromey.com>
393 * common-defs.h: Change path to gnulib/config.h.
395 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
397 * Makefile.am: Rename source files from .c to .cc.
398 (CC, CFLAGS): Don't override.
399 (AM_CFLAGS): Rename to ...
400 (AM_CXXFLAGS): ... this.
401 * Makefile.in: Re-generate.
402 * %.c: Rename to %.cc.
404 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
406 * configure: Re-generate.
408 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
410 * warning.m4: Add -Wstrict-null-sentinel.
411 * configure: Re-generate.
413 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
415 * warning.m4: Move here, from gdb/warning.m4.
416 * acinclude.m4: Update warning.m4 path.
417 * Makefile.in: Re-generate.
419 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
421 * acinclude.m4: Include ../gdb/warning.m4.
422 * configure.ac: Use AM_GDB_WARNINGS.
423 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
424 * Makefile.in: Re-generate.
425 * configure: Re-generate.
427 2020-02-10 Tom de Vries <tdevries@suse.de>
429 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
431 2020-01-24 Christian Biesinger <cbiesinger@google.com>
433 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
434 version of pthread_setname_np.
436 2020-01-17 Pedro Alves <palves@redhat.com>
438 * Makefile.am: Append CXX_DIALECT to CXX.
439 * Makefile.in: Regenerate.
441 2020-01-17 Pedro Alves <palves@redhat.com>
443 * configure.ac: Generate config.h instead of support-config.h.
444 * common-defs.h: Include <gdbsupport/config.h> instead of
445 <gdbsupport/support-config.h>.
446 * Makefile.in: Regenerate.
447 * configure: Regenerate.
449 2020-01-14 Tom Tromey <tom@tromey.com>
451 * Makefile.in: Rebuild.
452 * Makefile.am (check-defines): New target.
453 * check-defines.el: New file.
455 2020-01-14 Tom Tromey <tom@tromey.com>
457 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
459 * common.m4 (GDB_AC_COMMON): Move many checks from
461 * acinclude.m4: Include bfd.m4, ptrace.m4.
463 2020-01-14 Tom Tromey <tom@tromey.com>
465 * common-defs.h: Add GDBSERVER case. Update includes.
466 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
467 Makefile.am, Makefile.in, README: New files.
468 * Moved from ../gdb/gdbsupport/