1 2020-09-29 Pedro Alves <pedro@palves.net>
3 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
4 class instead of an alias template and adjust static_assert.
6 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
8 * event-loop.c (struct file_handler): Remove typedef, re-format.
10 2020-09-16 John Baldwin <jhb@FreeBSD.org>
12 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
13 * configure, config.in: Regenerate.
15 2020-09-14 Pedro Alves <pedro@palves.net>
17 * enum-flags.h: Include "traits.h".
18 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
20 (enum_underlying_type): Update comment.
21 (namespace enum_flags_detail): New. Move struct zero_type here.
22 (EnumIsUnsigned, EnumIsSigned): New.
23 (class enum_flags): Make most methods constexpr.
24 (operator&=, operator|=, operator^=): Take an enum_flags instead
25 of an enum_type. Make rvalue ref versions deleted.
26 (operator enum_type()): Delete.
27 (operator&, operator|, operator^, operator~): Delete, moved out of
30 (is_enum_flags_enum_type_t): Declare.
31 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
32 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
34 (operator~): Now constexpr and reimplemented.
35 (operator<<, operator>>): New deleted functions.
36 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
38 2020-09-14 Pedro Alves <pedro@palves.net>
40 * traits.h (struct nonesuch, struct detector, detected_or)
41 (detected_or_t, is_detected, detected_t, detected_or)
42 (detected_or_t, is_detected_exact, is_detected_convertible): New.
43 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
45 2020-09-10 Kamil Rytarowski <n54@gmx.com>
49 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
51 * selftest.h (run_tests): Change parameter to array_view.
52 * selftest.c (run_tests): Change parameter to array_view and use
55 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
57 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
58 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
60 * Makefile.in: Regenerate.
61 * configure, config.in: Regenerate.
63 2020-07-28 Tom de Vries <tdevries@suse.de>
66 * gdb_optional.h (class optional): Add volatile member to union
67 contaning m_dummy and m_item.
69 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
71 * tdesc.h (struct target_desc_deleter): Moved here
72 from gdb/target-descriptions.h, extend comment.
73 (target_desc_up): Likewise.
75 2020-06-30 Tom Tromey <tromey@adacore.com>
78 * gdb_string_view.h (basic_string_view::to_string): Remove.
79 (gdb::to_string): New function.
81 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
83 * tdesc.h (class print_xml_feature) <add_line>: Add
86 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
88 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
89 output content, and call indent as needed in all overloaded
91 (print_xml_feature::visit_post): Likewise.
92 (print_xml_feature::visit): Likewise.
93 (print_xml_feature::add_line): Two new overloaded functions.
94 * tdesc.h (print_xml_feature::indent): New member function.
95 (print_xml_feature::add_line): Two new overloaded member
97 (print_xml_feature::m_depth): New member variable.
99 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
101 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
103 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
104 (tdesc_compatible_info_up): New typedef.
105 (tdesc_compatible_info_list): Declare new function.
106 (tdesc_compatible_info_arch_name): Declare new function.
108 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
110 * common-utils.cc, common-utils.h (stringify_argv): Drop
111 now unused function stringify_argv
113 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
115 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
116 Adapt to take a gdb::array_view<char * const> parameter.
119 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
121 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
122 Adapt to handle zero args and return a std::string.
125 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
127 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
128 Move function here from gdb/infcmd.c, gdb/inferior.h
130 2020-05-14 Kevin Buettner <kevinb@redhat.com>
132 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
134 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136 * common-regcache.h (regcache_read_pc_protected): New function
139 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
141 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
143 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
145 * common-defs.h: Include cstdlib.h.
147 2020-04-20 Tom Tromey <tromey@adacore.com>
149 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
150 Use initialization style. Don't call destroy.
151 * scoped_fd.h (class scoped_fd): Mark move constructor as
153 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
156 2020-04-13 Tom Tromey <tom@tromey.com>
158 * event-loop.c: Move comment. Remove obsolete comment.
160 2020-04-13 Tom Tromey <tom@tromey.com>
162 * event-loop.h: Move from ../gdb/.
163 * event-loop.cc: Move from ../gdb/.
165 2020-04-13 Tom Tromey <tom@tromey.com>
167 * errors.h (flush_streams): Declare.
169 2020-04-13 Tom Tromey <tom@tromey.com>
171 * gdb_select.h: Move from ../gdb/.
173 2020-04-13 Tom Tromey <tom@tromey.com>
175 * config.in, configure: Rebuild.
176 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
177 sys/select.h, and poll.
179 2020-03-31 Tom Tromey <tromey@adacore.com>
181 * btrace-common.cc (btrace_data_append): Conditionally call
184 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
186 * create-version.sh: Resolve issues highlighted by shellcheck.
188 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
190 * config.in: Re-generate.
191 * configure: Re-generate.
193 2020-03-17 Kamil Rytarowski <n54@gmx.com>
195 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
197 2020-03-12 Tom Tromey <tom@tromey.com>
199 * common-types.h: Remove GDBSERVER code.
200 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
201 * common-defs.h: Remove GDBSERVER code.
203 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
205 * selftest.m4: Moved from gdb/.
206 * acinclude.m4: Update path to selftest.m4.
208 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
210 * configure.ac: Don't source bfd/development.sh.
211 * common.m4: Source bfd/development.sh.
212 * configure: Re-generate.
214 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
216 * configure: Re-generate.
218 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
220 * configure: Re-generate.
221 * warning.m4: Enable -Wmissing-prototypes.
223 2020-03-08 Tom Tromey <tom@tromey.com>
225 * gdb_binary_search.h: Fix two typos.
227 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
229 * .dir-locals.el: New file.
231 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
233 * configure.ac: Added call development.sh.
234 * configure: Regenerate.
236 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
238 * .gitattributes: New file.
240 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
242 * Makefile.in: Re-generate.
244 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
246 * gdb-dlfcn.h (gdb_dlopen): Update comment.
248 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
250 * configure: Regenerate.
252 2020-02-14 Tom Tromey <tom@tromey.com>
254 * common-defs.h: Change path to gnulib/config.h.
256 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
258 * Makefile.am: Rename source files from .c to .cc.
259 (CC, CFLAGS): Don't override.
260 (AM_CFLAGS): Rename to ...
261 (AM_CXXFLAGS): ... this.
262 * Makefile.in: Re-generate.
263 * %.c: Rename to %.cc.
265 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
267 * configure: Re-generate.
269 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
271 * warning.m4: Add -Wstrict-null-sentinel.
272 * configure: Re-generate.
274 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
276 * warning.m4: Move here, from gdb/warning.m4.
277 * acinclude.m4: Update warning.m4 path.
278 * Makefile.in: Re-generate.
280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
282 * acinclude.m4: Include ../gdb/warning.m4.
283 * configure.ac: Use AM_GDB_WARNINGS.
284 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
285 * Makefile.in: Re-generate.
286 * configure: Re-generate.
288 2020-02-10 Tom de Vries <tdevries@suse.de>
290 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
292 2020-01-24 Christian Biesinger <cbiesinger@google.com>
294 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
295 version of pthread_setname_np.
297 2020-01-17 Pedro Alves <palves@redhat.com>
299 * Makefile.am: Append CXX_DIALECT to CXX.
300 * Makefile.in: Regenerate.
302 2020-01-17 Pedro Alves <palves@redhat.com>
304 * configure.ac: Generate config.h instead of support-config.h.
305 * common-defs.h: Include <gdbsupport/config.h> instead of
306 <gdbsupport/support-config.h>.
307 * Makefile.in: Regenerate.
308 * configure: Regenerate.
310 2020-01-14 Tom Tromey <tom@tromey.com>
312 * Makefile.in: Rebuild.
313 * Makefile.am (check-defines): New target.
314 * check-defines.el: New file.
316 2020-01-14 Tom Tromey <tom@tromey.com>
318 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
320 * common.m4 (GDB_AC_COMMON): Move many checks from
322 * acinclude.m4: Include bfd.m4, ptrace.m4.
324 2020-01-14 Tom Tromey <tom@tromey.com>
326 * common-defs.h: Add GDBSERVER case. Update includes.
327 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
328 Makefile.am, Makefile.in, README: New files.
329 * Moved from ../gdb/gdbsupport/