Tweak gdbsupport/valid-expr.h for GCC 6, fix build
[binutils-gdb.git] / gdbsupport / ChangeLog
1 2020-09-29 Pedro Alves <pedro@palves.net>
2
3 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
4 class instead of an alias template and adjust static_assert.
5
6 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
7
8 * event-loop.c (struct file_handler): Remove typedef, re-format.
9
10 2020-09-16 John Baldwin <jhb@FreeBSD.org>
11
12 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
13 * configure, config.in: Regenerate.
14
15 2020-09-14 Pedro Alves <pedro@palves.net>
16
17 * enum-flags.h: Include "traits.h".
18 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
19 structure.
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
28 class.
29 (raw()): New method.
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
33 operators.
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.
37
38 2020-09-14 Pedro Alves <pedro@palves.net>
39
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.
44
45 2020-09-10 Kamil Rytarowski <n54@gmx.com>
46
47 * eintr.h: New file.
48
49 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * selftest.h (run_tests): Change parameter to array_view.
52 * selftest.c (run_tests): Change parameter to array_view and use
53 it.
54
55 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
56
57 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
58 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
59 <sys/procfs.h>.
60 * Makefile.in: Regenerate.
61 * configure, config.in: Regenerate.
62
63 2020-07-28 Tom de Vries <tdevries@suse.de>
64
65 PR build/26281
66 * gdb_optional.h (class optional): Add volatile member to union
67 contaning m_dummy and m_item.
68
69 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * tdesc.h (struct target_desc_deleter): Moved here
72 from gdb/target-descriptions.h, extend comment.
73 (target_desc_up): Likewise.
74
75 2020-06-30 Tom Tromey <tromey@adacore.com>
76
77 PR build/26183:
78 * gdb_string_view.h (basic_string_view::to_string): Remove.
79 (gdb::to_string): New function.
80
81 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
82
83 * tdesc.h (class print_xml_feature) <add_line>: Add
84 ATTRIBUTE_PRINTF.
85
86 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
89 output content, and call indent as needed in all overloaded
90 variants.
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
96 functions.
97 (print_xml_feature::m_depth): New member variable.
98
99 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
100
101 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
102 information.
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.
107
108 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
109
110 * common-utils.cc, common-utils.h (stringify_argv): Drop
111 now unused function stringify_argv
112
113 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
114
115 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
116 Adapt to take a gdb::array_view<char * const> parameter.
117 Adapt call site.
118
119 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
120
121 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
122 Adapt to handle zero args and return a std::string.
123 Adapt call site.
124
125 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
126
127 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
128 Move function here from gdb/infcmd.c, gdb/inferior.h
129
130 2020-05-14 Kevin Buettner <kevinb@redhat.com>
131
132 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
133
134 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
135
136 * common-regcache.h (regcache_read_pc_protected): New function
137 declaration.
138
139 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
140
141 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
142
143 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * common-defs.h: Include cstdlib.h.
146
147 2020-04-20 Tom Tromey <tromey@adacore.com>
148
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
152 noexcept.
153 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
154 noexcept.
155
156 2020-04-13 Tom Tromey <tom@tromey.com>
157
158 * event-loop.c: Move comment. Remove obsolete comment.
159
160 2020-04-13 Tom Tromey <tom@tromey.com>
161
162 * event-loop.h: Move from ../gdb/.
163 * event-loop.cc: Move from ../gdb/.
164
165 2020-04-13 Tom Tromey <tom@tromey.com>
166
167 * errors.h (flush_streams): Declare.
168
169 2020-04-13 Tom Tromey <tom@tromey.com>
170
171 * gdb_select.h: Move from ../gdb/.
172
173 2020-04-13 Tom Tromey <tom@tromey.com>
174
175 * config.in, configure: Rebuild.
176 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
177 sys/select.h, and poll.
178
179 2020-03-31 Tom Tromey <tromey@adacore.com>
180
181 * btrace-common.cc (btrace_data_append): Conditionally call
182 memcpy.
183
184 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * create-version.sh: Resolve issues highlighted by shellcheck.
187
188 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
189
190 * config.in: Re-generate.
191 * configure: Re-generate.
192
193 2020-03-17 Kamil Rytarowski <n54@gmx.com>
194
195 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
196
197 2020-03-12 Tom Tromey <tom@tromey.com>
198
199 * common-types.h: Remove GDBSERVER code.
200 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
201 * common-defs.h: Remove GDBSERVER code.
202
203 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
204
205 * selftest.m4: Moved from gdb/.
206 * acinclude.m4: Update path to selftest.m4.
207
208 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
209
210 * configure.ac: Don't source bfd/development.sh.
211 * common.m4: Source bfd/development.sh.
212 * configure: Re-generate.
213
214 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
215
216 * configure: Re-generate.
217
218 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
219
220 * configure: Re-generate.
221 * warning.m4: Enable -Wmissing-prototypes.
222
223 2020-03-08 Tom Tromey <tom@tromey.com>
224
225 * gdb_binary_search.h: Fix two typos.
226
227 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 * .dir-locals.el: New file.
230
231 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
232
233 * configure.ac: Added call development.sh.
234 * configure: Regenerate.
235
236 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
237
238 * .gitattributes: New file.
239
240 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
241
242 * Makefile.in: Re-generate.
243
244 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
245
246 * gdb-dlfcn.h (gdb_dlopen): Update comment.
247
248 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * configure: Regenerate.
251
252 2020-02-14 Tom Tromey <tom@tromey.com>
253
254 * common-defs.h: Change path to gnulib/config.h.
255
256 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
257
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.
264
265 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
266
267 * configure: Re-generate.
268
269 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
270
271 * warning.m4: Add -Wstrict-null-sentinel.
272 * configure: Re-generate.
273
274 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
275
276 * warning.m4: Move here, from gdb/warning.m4.
277 * acinclude.m4: Update warning.m4 path.
278 * Makefile.in: Re-generate.
279
280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
281
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.
287
288 2020-02-10 Tom de Vries <tdevries@suse.de>
289
290 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
291
292 2020-01-24 Christian Biesinger <cbiesinger@google.com>
293
294 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
295 version of pthread_setname_np.
296
297 2020-01-17 Pedro Alves <palves@redhat.com>
298
299 * Makefile.am: Append CXX_DIALECT to CXX.
300 * Makefile.in: Regenerate.
301
302 2020-01-17 Pedro Alves <palves@redhat.com>
303
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.
309
310 2020-01-14 Tom Tromey <tom@tromey.com>
311
312 * Makefile.in: Rebuild.
313 * Makefile.am (check-defines): New target.
314 * check-defines.el: New file.
315
316 2020-01-14 Tom Tromey <tom@tromey.com>
317
318 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
319 Rebuild.
320 * common.m4 (GDB_AC_COMMON): Move many checks from
321 gdb/configure.ac.
322 * acinclude.m4: Include bfd.m4, ptrace.m4.
323
324 2020-01-14 Tom Tromey <tom@tromey.com>
325
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/
330