1 2020-12-01 Chungyi Chi <demonic@csie.io>
3 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
5 2020-11-20 Tom Tromey <tromey@adacore.com>
7 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
10 2020-11-10 Tom Tromey <tromey@adacore.com>
13 * pathstuff.h: Move include block here...
14 * pathstuff.cc: ... from here.
16 2020-11-02 Tom Tromey <tom@tromey.com>
18 * pathstuff.h (get_standard_config_dir): Declare.
19 * pathstuff.cc (get_standard_config_dir): New function.
21 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
23 * common-exceptions.h: Fix indentation.
24 * event-loop.cc: Fix indentation.
25 * fileio.cc: Fix indentation.
26 * filestuff.cc: Fix indentation.
27 * gdb-dlfcn.cc: Fix indentation.
28 * gdb_string_view.h: Fix indentation.
29 * job-control.cc: Fix indentation.
30 * signals.cc: Fix indentation.
32 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
34 * common-debug.cc (debug_prefixed_printf): New.
35 * common-debug.h (debug_prefixed_printf): New declaration.
36 * event-loop.cc (event_loop_debug_printf_1): Remove.
37 * event-loop.h (event_loop_debug_printf_1): Remove.
38 (event_loop_debug_printf): Use debug_prefixed_printf.
39 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
41 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
43 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
45 * configure: Re-generate.
47 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
49 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
51 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53 * configure: Re-generate.
54 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
57 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
59 * configure: Re-generate.
60 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
63 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
65 * configure: Re-generate.
66 * ptrace.m4: Re-indent.
68 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
70 * aclocal.m4: Re-generate.
71 * configure: Re-generate.
72 * configure.ac: Remove AM_PROG_CC_STDC.
74 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
76 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
78 * configure: Re-generate.
80 2020-10-26 Pedro Alves <pedro@palves.net>
82 * eintr.h (handle_eintr): Replace Ret template parameter with
83 ErrorValType. Use it as type of the failure value. Deduce the
84 function's return type using decltype. Use lowercase for function
87 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
89 * Makefile.in: Re-generate.
90 * acinclude.m4: Update ptrace.m4 path.
91 * ptrace.m4: Move here.
93 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
95 * tdesc.h (allocate_target_description): Update return type.
97 2020-10-07 Tom Tromey <tromey@adacore.com>
99 * Makefile.in: Rebuild.
100 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
101 * search.h: New file.
102 * search.cc: New file.
104 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
106 * event-loop.h (debug_event_loop): New variable declaration.
107 (event_loop_debug_printf_1): New function declaration.
108 (event_loop_debug_printf): New macro.
109 * event-loop.cc (debug_event_loop): New variable.
110 (handle_file_event): Add debug print.
111 (event_loop_debug_printf_1): New function.
113 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
115 * common-debug.cc (debug_prefixed_vprintf): Move here.
116 * common-debug.h (debug_prefixed_vprintf): Move here.
118 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
120 * event-loop.h (add_file_handler): Add "name" parameter.
121 * event-loop.cc (struct file_handler) <name>: New field.
122 (create_file_handler): Add "name" parameter, assign it to file
124 (add_file_handler): Add "name" parameter.
126 2020-10-01 Kamil Rytarowski <n54@gmx.com>
128 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
130 2020-09-29 Pedro Alves <pedro@palves.net>
132 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
133 class instead of an alias template and adjust static_assert.
135 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
137 * event-loop.c (struct file_handler): Remove typedef, re-format.
139 2020-09-16 John Baldwin <jhb@FreeBSD.org>
141 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
142 * configure, config.in: Regenerate.
144 2020-09-14 Pedro Alves <pedro@palves.net>
146 * enum-flags.h: Include "traits.h".
147 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
149 (enum_underlying_type): Update comment.
150 (namespace enum_flags_detail): New. Move struct zero_type here.
151 (EnumIsUnsigned, EnumIsSigned): New.
152 (class enum_flags): Make most methods constexpr.
153 (operator&=, operator|=, operator^=): Take an enum_flags instead
154 of an enum_type. Make rvalue ref versions deleted.
155 (operator enum_type()): Delete.
156 (operator&, operator|, operator^, operator~): Delete, moved out of
159 (is_enum_flags_enum_type_t): Declare.
160 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
161 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
163 (operator~): Now constexpr and reimplemented.
164 (operator<<, operator>>): New deleted functions.
165 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
167 2020-09-14 Pedro Alves <pedro@palves.net>
169 * traits.h (struct nonesuch, struct detector, detected_or)
170 (detected_or_t, is_detected, detected_t, detected_or)
171 (detected_or_t, is_detected_exact, is_detected_convertible): New.
172 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
174 2020-09-10 Kamil Rytarowski <n54@gmx.com>
178 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
180 * selftest.h (run_tests): Change parameter to array_view.
181 * selftest.c (run_tests): Change parameter to array_view and use
184 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
186 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
187 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
189 * Makefile.in: Regenerate.
190 * configure, config.in: Regenerate.
192 2020-07-28 Tom de Vries <tdevries@suse.de>
195 * gdb_optional.h (class optional): Add volatile member to union
196 contaning m_dummy and m_item.
198 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
200 * tdesc.h (struct target_desc_deleter): Moved here
201 from gdb/target-descriptions.h, extend comment.
202 (target_desc_up): Likewise.
204 2020-06-30 Tom Tromey <tromey@adacore.com>
207 * gdb_string_view.h (basic_string_view::to_string): Remove.
208 (gdb::to_string): New function.
210 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
212 * tdesc.h (class print_xml_feature) <add_line>: Add
215 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
217 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
218 output content, and call indent as needed in all overloaded
220 (print_xml_feature::visit_post): Likewise.
221 (print_xml_feature::visit): Likewise.
222 (print_xml_feature::add_line): Two new overloaded functions.
223 * tdesc.h (print_xml_feature::indent): New member function.
224 (print_xml_feature::add_line): Two new overloaded member
226 (print_xml_feature::m_depth): New member variable.
228 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
230 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
232 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
233 (tdesc_compatible_info_up): New typedef.
234 (tdesc_compatible_info_list): Declare new function.
235 (tdesc_compatible_info_arch_name): Declare new function.
237 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
239 * common-utils.cc, common-utils.h (stringify_argv): Drop
240 now unused function stringify_argv
242 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
244 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
245 Adapt to take a gdb::array_view<char * const> parameter.
248 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
250 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
251 Adapt to handle zero args and return a std::string.
254 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
256 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
257 Move function here from gdb/infcmd.c, gdb/inferior.h
259 2020-05-14 Kevin Buettner <kevinb@redhat.com>
261 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
263 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
265 * common-regcache.h (regcache_read_pc_protected): New function
268 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
270 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
272 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
274 * common-defs.h: Include cstdlib.h.
276 2020-04-20 Tom Tromey <tromey@adacore.com>
278 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
279 Use initialization style. Don't call destroy.
280 * scoped_fd.h (class scoped_fd): Mark move constructor as
282 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
285 2020-04-13 Tom Tromey <tom@tromey.com>
287 * event-loop.c: Move comment. Remove obsolete comment.
289 2020-04-13 Tom Tromey <tom@tromey.com>
291 * event-loop.h: Move from ../gdb/.
292 * event-loop.cc: Move from ../gdb/.
294 2020-04-13 Tom Tromey <tom@tromey.com>
296 * errors.h (flush_streams): Declare.
298 2020-04-13 Tom Tromey <tom@tromey.com>
300 * gdb_select.h: Move from ../gdb/.
302 2020-04-13 Tom Tromey <tom@tromey.com>
304 * config.in, configure: Rebuild.
305 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
306 sys/select.h, and poll.
308 2020-03-31 Tom Tromey <tromey@adacore.com>
310 * btrace-common.cc (btrace_data_append): Conditionally call
313 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
315 * create-version.sh: Resolve issues highlighted by shellcheck.
317 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
319 * config.in: Re-generate.
320 * configure: Re-generate.
322 2020-03-17 Kamil Rytarowski <n54@gmx.com>
324 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
326 2020-03-12 Tom Tromey <tom@tromey.com>
328 * common-types.h: Remove GDBSERVER code.
329 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
330 * common-defs.h: Remove GDBSERVER code.
332 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
334 * selftest.m4: Moved from gdb/.
335 * acinclude.m4: Update path to selftest.m4.
337 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
339 * configure.ac: Don't source bfd/development.sh.
340 * common.m4: Source bfd/development.sh.
341 * configure: Re-generate.
343 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
345 * configure: Re-generate.
347 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
349 * configure: Re-generate.
350 * warning.m4: Enable -Wmissing-prototypes.
352 2020-03-08 Tom Tromey <tom@tromey.com>
354 * gdb_binary_search.h: Fix two typos.
356 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
358 * .dir-locals.el: New file.
360 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
362 * configure.ac: Added call development.sh.
363 * configure: Regenerate.
365 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367 * .gitattributes: New file.
369 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
371 * Makefile.in: Re-generate.
373 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
375 * gdb-dlfcn.h (gdb_dlopen): Update comment.
377 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
379 * configure: Regenerate.
381 2020-02-14 Tom Tromey <tom@tromey.com>
383 * common-defs.h: Change path to gnulib/config.h.
385 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
387 * Makefile.am: Rename source files from .c to .cc.
388 (CC, CFLAGS): Don't override.
389 (AM_CFLAGS): Rename to ...
390 (AM_CXXFLAGS): ... this.
391 * Makefile.in: Re-generate.
392 * %.c: Rename to %.cc.
394 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
396 * configure: Re-generate.
398 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
400 * warning.m4: Add -Wstrict-null-sentinel.
401 * configure: Re-generate.
403 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
405 * warning.m4: Move here, from gdb/warning.m4.
406 * acinclude.m4: Update warning.m4 path.
407 * Makefile.in: Re-generate.
409 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
411 * acinclude.m4: Include ../gdb/warning.m4.
412 * configure.ac: Use AM_GDB_WARNINGS.
413 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
414 * Makefile.in: Re-generate.
415 * configure: Re-generate.
417 2020-02-10 Tom de Vries <tdevries@suse.de>
419 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
421 2020-01-24 Christian Biesinger <cbiesinger@google.com>
423 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
424 version of pthread_setname_np.
426 2020-01-17 Pedro Alves <palves@redhat.com>
428 * Makefile.am: Append CXX_DIALECT to CXX.
429 * Makefile.in: Regenerate.
431 2020-01-17 Pedro Alves <palves@redhat.com>
433 * configure.ac: Generate config.h instead of support-config.h.
434 * common-defs.h: Include <gdbsupport/config.h> instead of
435 <gdbsupport/support-config.h>.
436 * Makefile.in: Regenerate.
437 * configure: Regenerate.
439 2020-01-14 Tom Tromey <tom@tromey.com>
441 * Makefile.in: Rebuild.
442 * Makefile.am (check-defines): New target.
443 * check-defines.el: New file.
445 2020-01-14 Tom Tromey <tom@tromey.com>
447 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
449 * common.m4 (GDB_AC_COMMON): Move many checks from
451 * acinclude.m4: Include bfd.m4, ptrace.m4.
453 2020-01-14 Tom Tromey <tom@tromey.com>
455 * common-defs.h: Add GDBSERVER case. Update includes.
456 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
457 Makefile.am, Makefile.in, README: New files.
458 * Moved from ../gdb/gdbsupport/