gdbsupport/tdesc: print enum fields using 'evalue' syntax
[binutils-gdb.git] / gdbsupport / ChangeLog
1 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * tdesc.cc (print_xml_feature::visit): Print enum fields using
4 'evalue' syntax.
5
6 2020-12-01 Chungyi Chi <demonic@csie.io>
7
8 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
9
10 2020-11-20 Tom Tromey <tromey@adacore.com>
11
12 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
13 errors.
14
15 2020-11-10 Tom Tromey <tromey@adacore.com>
16
17 PR build/26848:
18 * pathstuff.h: Move include block here...
19 * pathstuff.cc: ... from here.
20
21 2020-11-02 Tom Tromey <tom@tromey.com>
22
23 * pathstuff.h (get_standard_config_dir): Declare.
24 * pathstuff.cc (get_standard_config_dir): New function.
25
26 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
27
28 * common-exceptions.h: Fix indentation.
29 * event-loop.cc: Fix indentation.
30 * fileio.cc: Fix indentation.
31 * filestuff.cc: Fix indentation.
32 * gdb-dlfcn.cc: Fix indentation.
33 * gdb_string_view.h: Fix indentation.
34 * job-control.cc: Fix indentation.
35 * signals.cc: Fix indentation.
36
37 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * common-debug.cc (debug_prefixed_printf): New.
40 * common-debug.h (debug_prefixed_printf): New declaration.
41 * event-loop.cc (event_loop_debug_printf_1): Remove.
42 * event-loop.h (event_loop_debug_printf_1): Remove.
43 (event_loop_debug_printf): Use debug_prefixed_printf.
44 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
45
46 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
49 AC_LANG_PROGRAM.
50 * configure: Re-generate.
51
52 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
55
56 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * configure: Re-generate.
59 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
60 AC_LANG_PROGRAM.
61
62 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * configure: Re-generate.
65 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
66 AC_LANG_PROGRAM.
67
68 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * configure: Re-generate.
71 * ptrace.m4: Re-indent.
72
73 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * aclocal.m4: Re-generate.
76 * configure: Re-generate.
77 * configure.ac: Remove AM_PROG_CC_STDC.
78
79 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
82 AC_CANONICAL_SYSTEM.
83 * configure: Re-generate.
84
85 2020-10-26 Pedro Alves <pedro@palves.net>
86
87 * eintr.h (handle_eintr): Replace Ret template parameter with
88 ErrorValType. Use it as type of the failure value. Deduce the
89 function's return type using decltype. Use lowercase for function
90 parameter names.
91
92 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * Makefile.in: Re-generate.
95 * acinclude.m4: Update ptrace.m4 path.
96 * ptrace.m4: Move here.
97
98 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * tdesc.h (allocate_target_description): Update return type.
101
102 2020-10-07 Tom Tromey <tromey@adacore.com>
103
104 * Makefile.in: Rebuild.
105 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
106 * search.h: New file.
107 * search.cc: New file.
108
109 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * event-loop.h (debug_event_loop): New variable declaration.
112 (event_loop_debug_printf_1): New function declaration.
113 (event_loop_debug_printf): New macro.
114 * event-loop.cc (debug_event_loop): New variable.
115 (handle_file_event): Add debug print.
116 (event_loop_debug_printf_1): New function.
117
118 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * common-debug.cc (debug_prefixed_vprintf): Move here.
121 * common-debug.h (debug_prefixed_vprintf): Move here.
122
123 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * event-loop.h (add_file_handler): Add "name" parameter.
126 * event-loop.cc (struct file_handler) <name>: New field.
127 (create_file_handler): Add "name" parameter, assign it to file
128 handler.
129 (add_file_handler): Add "name" parameter.
130
131 2020-10-01 Kamil Rytarowski <n54@gmx.com>
132
133 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
134
135 2020-09-29 Pedro Alves <pedro@palves.net>
136
137 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
138 class instead of an alias template and adjust static_assert.
139
140 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
141
142 * event-loop.c (struct file_handler): Remove typedef, re-format.
143
144 2020-09-16 John Baldwin <jhb@FreeBSD.org>
145
146 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
147 * configure, config.in: Regenerate.
148
149 2020-09-14 Pedro Alves <pedro@palves.net>
150
151 * enum-flags.h: Include "traits.h".
152 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
153 structure.
154 (enum_underlying_type): Update comment.
155 (namespace enum_flags_detail): New. Move struct zero_type here.
156 (EnumIsUnsigned, EnumIsSigned): New.
157 (class enum_flags): Make most methods constexpr.
158 (operator&=, operator|=, operator^=): Take an enum_flags instead
159 of an enum_type. Make rvalue ref versions deleted.
160 (operator enum_type()): Delete.
161 (operator&, operator|, operator^, operator~): Delete, moved out of
162 class.
163 (raw()): New method.
164 (is_enum_flags_enum_type_t): Declare.
165 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
166 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
167 operators.
168 (operator~): Now constexpr and reimplemented.
169 (operator<<, operator>>): New deleted functions.
170 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
171
172 2020-09-14 Pedro Alves <pedro@palves.net>
173
174 * traits.h (struct nonesuch, struct detector, detected_or)
175 (detected_or_t, is_detected, detected_t, detected_or)
176 (detected_or_t, is_detected_exact, is_detected_convertible): New.
177 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
178
179 2020-09-10 Kamil Rytarowski <n54@gmx.com>
180
181 * eintr.h: New file.
182
183 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * selftest.h (run_tests): Change parameter to array_view.
186 * selftest.c (run_tests): Change parameter to array_view and use
187 it.
188
189 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
192 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
193 <sys/procfs.h>.
194 * Makefile.in: Regenerate.
195 * configure, config.in: Regenerate.
196
197 2020-07-28 Tom de Vries <tdevries@suse.de>
198
199 PR build/26281
200 * gdb_optional.h (class optional): Add volatile member to union
201 contaning m_dummy and m_item.
202
203 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * tdesc.h (struct target_desc_deleter): Moved here
206 from gdb/target-descriptions.h, extend comment.
207 (target_desc_up): Likewise.
208
209 2020-06-30 Tom Tromey <tromey@adacore.com>
210
211 PR build/26183:
212 * gdb_string_view.h (basic_string_view::to_string): Remove.
213 (gdb::to_string): New function.
214
215 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
216
217 * tdesc.h (class print_xml_feature) <add_line>: Add
218 ATTRIBUTE_PRINTF.
219
220 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
223 output content, and call indent as needed in all overloaded
224 variants.
225 (print_xml_feature::visit_post): Likewise.
226 (print_xml_feature::visit): Likewise.
227 (print_xml_feature::add_line): Two new overloaded functions.
228 * tdesc.h (print_xml_feature::indent): New member function.
229 (print_xml_feature::add_line): Two new overloaded member
230 functions.
231 (print_xml_feature::m_depth): New member variable.
232
233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
236 information.
237 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
238 (tdesc_compatible_info_up): New typedef.
239 (tdesc_compatible_info_list): Declare new function.
240 (tdesc_compatible_info_arch_name): Declare new function.
241
242 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
243
244 * common-utils.cc, common-utils.h (stringify_argv): Drop
245 now unused function stringify_argv
246
247 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
248
249 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
250 Adapt to take a gdb::array_view<char * const> parameter.
251 Adapt call site.
252
253 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
254
255 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
256 Adapt to handle zero args and return a std::string.
257 Adapt call site.
258
259 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
260
261 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
262 Move function here from gdb/infcmd.c, gdb/inferior.h
263
264 2020-05-14 Kevin Buettner <kevinb@redhat.com>
265
266 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
267
268 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
269
270 * common-regcache.h (regcache_read_pc_protected): New function
271 declaration.
272
273 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
274
275 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
276
277 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * common-defs.h: Include cstdlib.h.
280
281 2020-04-20 Tom Tromey <tromey@adacore.com>
282
283 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
284 Use initialization style. Don't call destroy.
285 * scoped_fd.h (class scoped_fd): Mark move constructor as
286 noexcept.
287 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
288 noexcept.
289
290 2020-04-13 Tom Tromey <tom@tromey.com>
291
292 * event-loop.c: Move comment. Remove obsolete comment.
293
294 2020-04-13 Tom Tromey <tom@tromey.com>
295
296 * event-loop.h: Move from ../gdb/.
297 * event-loop.cc: Move from ../gdb/.
298
299 2020-04-13 Tom Tromey <tom@tromey.com>
300
301 * errors.h (flush_streams): Declare.
302
303 2020-04-13 Tom Tromey <tom@tromey.com>
304
305 * gdb_select.h: Move from ../gdb/.
306
307 2020-04-13 Tom Tromey <tom@tromey.com>
308
309 * config.in, configure: Rebuild.
310 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
311 sys/select.h, and poll.
312
313 2020-03-31 Tom Tromey <tromey@adacore.com>
314
315 * btrace-common.cc (btrace_data_append): Conditionally call
316 memcpy.
317
318 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * create-version.sh: Resolve issues highlighted by shellcheck.
321
322 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
323
324 * config.in: Re-generate.
325 * configure: Re-generate.
326
327 2020-03-17 Kamil Rytarowski <n54@gmx.com>
328
329 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
330
331 2020-03-12 Tom Tromey <tom@tromey.com>
332
333 * common-types.h: Remove GDBSERVER code.
334 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
335 * common-defs.h: Remove GDBSERVER code.
336
337 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
338
339 * selftest.m4: Moved from gdb/.
340 * acinclude.m4: Update path to selftest.m4.
341
342 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
343
344 * configure.ac: Don't source bfd/development.sh.
345 * common.m4: Source bfd/development.sh.
346 * configure: Re-generate.
347
348 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
349
350 * configure: Re-generate.
351
352 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
353
354 * configure: Re-generate.
355 * warning.m4: Enable -Wmissing-prototypes.
356
357 2020-03-08 Tom Tromey <tom@tromey.com>
358
359 * gdb_binary_search.h: Fix two typos.
360
361 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * .dir-locals.el: New file.
364
365 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
366
367 * configure.ac: Added call development.sh.
368 * configure: Regenerate.
369
370 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * .gitattributes: New file.
373
374 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
375
376 * Makefile.in: Re-generate.
377
378 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
379
380 * gdb-dlfcn.h (gdb_dlopen): Update comment.
381
382 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * configure: Regenerate.
385
386 2020-02-14 Tom Tromey <tom@tromey.com>
387
388 * common-defs.h: Change path to gnulib/config.h.
389
390 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
391
392 * Makefile.am: Rename source files from .c to .cc.
393 (CC, CFLAGS): Don't override.
394 (AM_CFLAGS): Rename to ...
395 (AM_CXXFLAGS): ... this.
396 * Makefile.in: Re-generate.
397 * %.c: Rename to %.cc.
398
399 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
400
401 * configure: Re-generate.
402
403 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
404
405 * warning.m4: Add -Wstrict-null-sentinel.
406 * configure: Re-generate.
407
408 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
409
410 * warning.m4: Move here, from gdb/warning.m4.
411 * acinclude.m4: Update warning.m4 path.
412 * Makefile.in: Re-generate.
413
414 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
415
416 * acinclude.m4: Include ../gdb/warning.m4.
417 * configure.ac: Use AM_GDB_WARNINGS.
418 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
419 * Makefile.in: Re-generate.
420 * configure: Re-generate.
421
422 2020-02-10 Tom de Vries <tdevries@suse.de>
423
424 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
425
426 2020-01-24 Christian Biesinger <cbiesinger@google.com>
427
428 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
429 version of pthread_setname_np.
430
431 2020-01-17 Pedro Alves <palves@redhat.com>
432
433 * Makefile.am: Append CXX_DIALECT to CXX.
434 * Makefile.in: Regenerate.
435
436 2020-01-17 Pedro Alves <palves@redhat.com>
437
438 * configure.ac: Generate config.h instead of support-config.h.
439 * common-defs.h: Include <gdbsupport/config.h> instead of
440 <gdbsupport/support-config.h>.
441 * Makefile.in: Regenerate.
442 * configure: Regenerate.
443
444 2020-01-14 Tom Tromey <tom@tromey.com>
445
446 * Makefile.in: Rebuild.
447 * Makefile.am (check-defines): New target.
448 * check-defines.el: New file.
449
450 2020-01-14 Tom Tromey <tom@tromey.com>
451
452 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
453 Rebuild.
454 * common.m4 (GDB_AC_COMMON): Move many checks from
455 gdb/configure.ac.
456 * acinclude.m4: Include bfd.m4, ptrace.m4.
457
458 2020-01-14 Tom Tromey <tom@tromey.com>
459
460 * common-defs.h: Add GDBSERVER case. Update includes.
461 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
462 Makefile.am, Makefile.in, README: New files.
463 * Moved from ../gdb/gdbsupport/