1 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3 * common-debug.cc (debug_prefixed_vprintf): Move here.
4 * common-debug.h (debug_prefixed_vprintf): Move here.
6 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
8 * event-loop.h (add_file_handler): Add "name" parameter.
9 * event-loop.cc (struct file_handler) <name>: New field.
10 (create_file_handler): Add "name" parameter, assign it to file
12 (add_file_handler): Add "name" parameter.
14 2020-10-01 Kamil Rytarowski <n54@gmx.com>
16 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
18 2020-09-29 Pedro Alves <pedro@palves.net>
20 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
21 class instead of an alias template and adjust static_assert.
23 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
25 * event-loop.c (struct file_handler): Remove typedef, re-format.
27 2020-09-16 John Baldwin <jhb@FreeBSD.org>
29 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
30 * configure, config.in: Regenerate.
32 2020-09-14 Pedro Alves <pedro@palves.net>
34 * enum-flags.h: Include "traits.h".
35 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
37 (enum_underlying_type): Update comment.
38 (namespace enum_flags_detail): New. Move struct zero_type here.
39 (EnumIsUnsigned, EnumIsSigned): New.
40 (class enum_flags): Make most methods constexpr.
41 (operator&=, operator|=, operator^=): Take an enum_flags instead
42 of an enum_type. Make rvalue ref versions deleted.
43 (operator enum_type()): Delete.
44 (operator&, operator|, operator^, operator~): Delete, moved out of
47 (is_enum_flags_enum_type_t): Declare.
48 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
49 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
51 (operator~): Now constexpr and reimplemented.
52 (operator<<, operator>>): New deleted functions.
53 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
55 2020-09-14 Pedro Alves <pedro@palves.net>
57 * traits.h (struct nonesuch, struct detector, detected_or)
58 (detected_or_t, is_detected, detected_t, detected_or)
59 (detected_or_t, is_detected_exact, is_detected_convertible): New.
60 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
62 2020-09-10 Kamil Rytarowski <n54@gmx.com>
66 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
68 * selftest.h (run_tests): Change parameter to array_view.
69 * selftest.c (run_tests): Change parameter to array_view and use
72 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
75 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
77 * Makefile.in: Regenerate.
78 * configure, config.in: Regenerate.
80 2020-07-28 Tom de Vries <tdevries@suse.de>
83 * gdb_optional.h (class optional): Add volatile member to union
84 contaning m_dummy and m_item.
86 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
88 * tdesc.h (struct target_desc_deleter): Moved here
89 from gdb/target-descriptions.h, extend comment.
90 (target_desc_up): Likewise.
92 2020-06-30 Tom Tromey <tromey@adacore.com>
95 * gdb_string_view.h (basic_string_view::to_string): Remove.
96 (gdb::to_string): New function.
98 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
100 * tdesc.h (class print_xml_feature) <add_line>: Add
103 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
105 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
106 output content, and call indent as needed in all overloaded
108 (print_xml_feature::visit_post): Likewise.
109 (print_xml_feature::visit): Likewise.
110 (print_xml_feature::add_line): Two new overloaded functions.
111 * tdesc.h (print_xml_feature::indent): New member function.
112 (print_xml_feature::add_line): Two new overloaded member
114 (print_xml_feature::m_depth): New member variable.
116 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
118 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
120 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
121 (tdesc_compatible_info_up): New typedef.
122 (tdesc_compatible_info_list): Declare new function.
123 (tdesc_compatible_info_arch_name): Declare new function.
125 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
127 * common-utils.cc, common-utils.h (stringify_argv): Drop
128 now unused function stringify_argv
130 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
132 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
133 Adapt to take a gdb::array_view<char * const> parameter.
136 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
138 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
139 Adapt to handle zero args and return a std::string.
142 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
144 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
145 Move function here from gdb/infcmd.c, gdb/inferior.h
147 2020-05-14 Kevin Buettner <kevinb@redhat.com>
149 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
151 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153 * common-regcache.h (regcache_read_pc_protected): New function
156 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
158 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
160 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
162 * common-defs.h: Include cstdlib.h.
164 2020-04-20 Tom Tromey <tromey@adacore.com>
166 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
167 Use initialization style. Don't call destroy.
168 * scoped_fd.h (class scoped_fd): Mark move constructor as
170 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
173 2020-04-13 Tom Tromey <tom@tromey.com>
175 * event-loop.c: Move comment. Remove obsolete comment.
177 2020-04-13 Tom Tromey <tom@tromey.com>
179 * event-loop.h: Move from ../gdb/.
180 * event-loop.cc: Move from ../gdb/.
182 2020-04-13 Tom Tromey <tom@tromey.com>
184 * errors.h (flush_streams): Declare.
186 2020-04-13 Tom Tromey <tom@tromey.com>
188 * gdb_select.h: Move from ../gdb/.
190 2020-04-13 Tom Tromey <tom@tromey.com>
192 * config.in, configure: Rebuild.
193 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
194 sys/select.h, and poll.
196 2020-03-31 Tom Tromey <tromey@adacore.com>
198 * btrace-common.cc (btrace_data_append): Conditionally call
201 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
203 * create-version.sh: Resolve issues highlighted by shellcheck.
205 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
207 * config.in: Re-generate.
208 * configure: Re-generate.
210 2020-03-17 Kamil Rytarowski <n54@gmx.com>
212 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
214 2020-03-12 Tom Tromey <tom@tromey.com>
216 * common-types.h: Remove GDBSERVER code.
217 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
218 * common-defs.h: Remove GDBSERVER code.
220 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
222 * selftest.m4: Moved from gdb/.
223 * acinclude.m4: Update path to selftest.m4.
225 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
227 * configure.ac: Don't source bfd/development.sh.
228 * common.m4: Source bfd/development.sh.
229 * configure: Re-generate.
231 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
233 * configure: Re-generate.
235 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
237 * configure: Re-generate.
238 * warning.m4: Enable -Wmissing-prototypes.
240 2020-03-08 Tom Tromey <tom@tromey.com>
242 * gdb_binary_search.h: Fix two typos.
244 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
246 * .dir-locals.el: New file.
248 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
250 * configure.ac: Added call development.sh.
251 * configure: Regenerate.
253 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255 * .gitattributes: New file.
257 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
259 * Makefile.in: Re-generate.
261 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
263 * gdb-dlfcn.h (gdb_dlopen): Update comment.
265 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
267 * configure: Regenerate.
269 2020-02-14 Tom Tromey <tom@tromey.com>
271 * common-defs.h: Change path to gnulib/config.h.
273 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
275 * Makefile.am: Rename source files from .c to .cc.
276 (CC, CFLAGS): Don't override.
277 (AM_CFLAGS): Rename to ...
278 (AM_CXXFLAGS): ... this.
279 * Makefile.in: Re-generate.
280 * %.c: Rename to %.cc.
282 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
284 * configure: Re-generate.
286 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
288 * warning.m4: Add -Wstrict-null-sentinel.
289 * configure: Re-generate.
291 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
293 * warning.m4: Move here, from gdb/warning.m4.
294 * acinclude.m4: Update warning.m4 path.
295 * Makefile.in: Re-generate.
297 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
299 * acinclude.m4: Include ../gdb/warning.m4.
300 * configure.ac: Use AM_GDB_WARNINGS.
301 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
302 * Makefile.in: Re-generate.
303 * configure: Re-generate.
305 2020-02-10 Tom de Vries <tdevries@suse.de>
307 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
309 2020-01-24 Christian Biesinger <cbiesinger@google.com>
311 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
312 version of pthread_setname_np.
314 2020-01-17 Pedro Alves <palves@redhat.com>
316 * Makefile.am: Append CXX_DIALECT to CXX.
317 * Makefile.in: Regenerate.
319 2020-01-17 Pedro Alves <palves@redhat.com>
321 * configure.ac: Generate config.h instead of support-config.h.
322 * common-defs.h: Include <gdbsupport/config.h> instead of
323 <gdbsupport/support-config.h>.
324 * Makefile.in: Regenerate.
325 * configure: Regenerate.
327 2020-01-14 Tom Tromey <tom@tromey.com>
329 * Makefile.in: Rebuild.
330 * Makefile.am (check-defines): New target.
331 * check-defines.el: New file.
333 2020-01-14 Tom Tromey <tom@tromey.com>
335 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
337 * common.m4 (GDB_AC_COMMON): Move many checks from
339 * acinclude.m4: Include bfd.m4, ptrace.m4.
341 2020-01-14 Tom Tromey <tom@tromey.com>
343 * common-defs.h: Add GDBSERVER case. Update includes.
344 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
345 Makefile.am, Makefile.in, README: New files.
346 * Moved from ../gdb/gdbsupport/