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