Don't run personality syscall at configure time; don't check it at all
[deliverable/binutils-gdb.git] / gdbsupport / ChangeLog
1 2021-05-08 Pedro Alves <pedro@palves.net>
2
3 * common.m4 (personality test): Remove.
4
5 2021-04-30 Tom Tromey <tromey@adacore.com>
6
7 * thread-pool.cc (thread_pool::post_task): Update.
8 * thread-pool.h (class thread_pool) <post_task>: Take rvalue
9 reference to function.
10
11 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
12 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * observable.h (class observable): Extend to allow specifying
15 dependencies between observers, keep vector holding observers
16 sorted so that dependencies are notified before observers
17 depending on them.
18
19 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * observable.h (observer_debug_printf,
22 OBSERVER_SCOPED_DEBUG_START_END): New.
23 (class observable) <notify, attach>: Use them.
24
25 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * common-debug.h (struct scoped_debug_start_end)
28 <scoped_debug_start_end>: Change start_msg/end_msg for
29 start_prefix/end_prefix. Add format string parameter and make
30 variadic.
31 <~scoped_debug_start_end>: Adjust.
32 <m_end_msg>: Rename to...
33 <m_end_prefix>: ... this.
34 <m_with_format>: New.
35 <m_msg>: New.
36 (scoped_debug_start_end): Make variadic.
37 (scoped_debug_enter_exit): Adjust.
38
39 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * observable.h (class observable) <struct observer> <observer>:
42 Add name parameter.
43 <name>: New field.
44 <attach>: Add name parameter, update all callers.
45
46 2021-04-24 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * observable.h (class observable) <struct observer>: New.
49 <detach, notify>: Update.
50 <m_observers>: Change type to vector of observers.
51
52 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * observable.h (observer_debug): Change to bool.
55
56 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * common-debug.h: Include preprocessor.h.
59
60 2021-03-24 Luis Machado <luis.machado@linaro.org>
61
62 * rsp-low.cc (fromhex, hex2bin): Move to ...
63 * common-utils.cc: ... here.
64 (fromhex) Change error message text to not be RSP-specific.
65 * rsp-low.h (fromhex, hex2bin): Move to ...
66 * common-utils.h: ... here.
67
68 2021-03-21 Alan Modra <amodra@gmail.com>
69
70 * common-utils.h (startswith): Delete version now supplied by bfd.h.
71
72 2021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
73
74 * common-defs.h (ATTRIBUTE_PRINTF): Rename
75 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
76 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
77 free if this macro is defined.
78
79 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
80
81 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
82 implementation.
83 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
84 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
85
86 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
89 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
90 func.
91
92 2021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
93
94 PR gdb/27157
95 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
96 find_gdb_home_config_file): Add empty string check.
97
98 2021-01-06 Mike Frysinger <vapier@gentoo.org>
99
100 * common-utils.h (align_up): Fix typo in header comment.
101
102 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
103
104 * common-debug.h (debug_print_depth): New.
105 (struct scoped_debug_start_end): New.
106 (scoped_debug_start_end): New.
107 (scoped_debug_enter_exit): New.
108 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
109
110 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
113 'safe-ctype.h'.
114 (extract_string_maybe_quoted): Use safe-ctype function versions.
115 (is_digit_in_base): Likewise.
116 (digit_to_int): Likewise.
117 (strtoulst): Likewise.
118 (skip_spaces): Likewise.
119 (skip_to_space): Likewise.
120
121 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * common-debug.h (debug_prefixed_printf_cond): New.
124 * event-loop.h (event_loop_debug_printf): Use
125 debug_prefixed_printf_cond.
126
127 2020-12-08 Alexander Fedotov <alfedotov@gmail.com>
128
129 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
130 variable when running on Windows.
131
132 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * tdesc.cc (print_xml_feature::visit): Print enum fields using
135 'evalue' syntax.
136
137 2020-12-01 Chungyi Chi <demonic@csie.io>
138
139 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
140
141 2020-11-20 Tom Tromey <tromey@adacore.com>
142
143 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
144 errors.
145
146 2020-11-10 Tom Tromey <tromey@adacore.com>
147
148 PR build/26848:
149 * pathstuff.h: Move include block here...
150 * pathstuff.cc: ... from here.
151
152 2020-11-02 Tom Tromey <tom@tromey.com>
153
154 * pathstuff.h (get_standard_config_dir): Declare.
155 * pathstuff.cc (get_standard_config_dir): New function.
156
157 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
158
159 * common-exceptions.h: Fix indentation.
160 * event-loop.cc: Fix indentation.
161 * fileio.cc: Fix indentation.
162 * filestuff.cc: Fix indentation.
163 * gdb-dlfcn.cc: Fix indentation.
164 * gdb_string_view.h: Fix indentation.
165 * job-control.cc: Fix indentation.
166 * signals.cc: Fix indentation.
167
168 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * common-debug.cc (debug_prefixed_printf): New.
171 * common-debug.h (debug_prefixed_printf): New declaration.
172 * event-loop.cc (event_loop_debug_printf_1): Remove.
173 * event-loop.h (event_loop_debug_printf_1): Remove.
174 (event_loop_debug_printf): Use debug_prefixed_printf.
175 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
176
177 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
180 AC_LANG_PROGRAM.
181 * configure: Re-generate.
182
183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
186
187 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * configure: Re-generate.
190 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
191 AC_LANG_PROGRAM.
192
193 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * configure: Re-generate.
196 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
197 AC_LANG_PROGRAM.
198
199 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * configure: Re-generate.
202 * ptrace.m4: Re-indent.
203
204 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * aclocal.m4: Re-generate.
207 * configure: Re-generate.
208 * configure.ac: Remove AM_PROG_CC_STDC.
209
210 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
213 AC_CANONICAL_SYSTEM.
214 * configure: Re-generate.
215
216 2020-10-26 Pedro Alves <pedro@palves.net>
217
218 * eintr.h (handle_eintr): Replace Ret template parameter with
219 ErrorValType. Use it as type of the failure value. Deduce the
220 function's return type using decltype. Use lowercase for function
221 parameter names.
222
223 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * Makefile.in: Re-generate.
226 * acinclude.m4: Update ptrace.m4 path.
227 * ptrace.m4: Move here.
228
229 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
230
231 * tdesc.h (allocate_target_description): Update return type.
232
233 2020-10-07 Tom Tromey <tromey@adacore.com>
234
235 * Makefile.in: Rebuild.
236 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
237 * search.h: New file.
238 * search.cc: New file.
239
240 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * event-loop.h (debug_event_loop): New variable declaration.
243 (event_loop_debug_printf_1): New function declaration.
244 (event_loop_debug_printf): New macro.
245 * event-loop.cc (debug_event_loop): New variable.
246 (handle_file_event): Add debug print.
247 (event_loop_debug_printf_1): New function.
248
249 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * common-debug.cc (debug_prefixed_vprintf): Move here.
252 * common-debug.h (debug_prefixed_vprintf): Move here.
253
254 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * event-loop.h (add_file_handler): Add "name" parameter.
257 * event-loop.cc (struct file_handler) <name>: New field.
258 (create_file_handler): Add "name" parameter, assign it to file
259 handler.
260 (add_file_handler): Add "name" parameter.
261
262 2020-10-01 Kamil Rytarowski <n54@gmx.com>
263
264 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
265
266 2020-09-29 Pedro Alves <pedro@palves.net>
267
268 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
269 class instead of an alias template and adjust static_assert.
270
271 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
272
273 * event-loop.c (struct file_handler): Remove typedef, re-format.
274
275 2020-09-16 John Baldwin <jhb@FreeBSD.org>
276
277 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
278 * configure, config.in: Regenerate.
279
280 2020-09-14 Pedro Alves <pedro@palves.net>
281
282 * enum-flags.h: Include "traits.h".
283 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
284 structure.
285 (enum_underlying_type): Update comment.
286 (namespace enum_flags_detail): New. Move struct zero_type here.
287 (EnumIsUnsigned, EnumIsSigned): New.
288 (class enum_flags): Make most methods constexpr.
289 (operator&=, operator|=, operator^=): Take an enum_flags instead
290 of an enum_type. Make rvalue ref versions deleted.
291 (operator enum_type()): Delete.
292 (operator&, operator|, operator^, operator~): Delete, moved out of
293 class.
294 (raw()): New method.
295 (is_enum_flags_enum_type_t): Declare.
296 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
297 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
298 operators.
299 (operator~): Now constexpr and reimplemented.
300 (operator<<, operator>>): New deleted functions.
301 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
302
303 2020-09-14 Pedro Alves <pedro@palves.net>
304
305 * traits.h (struct nonesuch, struct detector, detected_or)
306 (detected_or_t, is_detected, detected_t, detected_or)
307 (detected_or_t, is_detected_exact, is_detected_convertible): New.
308 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
309
310 2020-09-10 Kamil Rytarowski <n54@gmx.com>
311
312 * eintr.h: New file.
313
314 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * selftest.h (run_tests): Change parameter to array_view.
317 * selftest.c (run_tests): Change parameter to array_view and use
318 it.
319
320 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321
322 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
323 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
324 <sys/procfs.h>.
325 * Makefile.in: Regenerate.
326 * configure, config.in: Regenerate.
327
328 2020-07-28 Tom de Vries <tdevries@suse.de>
329
330 PR build/26281
331 * gdb_optional.h (class optional): Add volatile member to union
332 contaning m_dummy and m_item.
333
334 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * tdesc.h (struct target_desc_deleter): Moved here
337 from gdb/target-descriptions.h, extend comment.
338 (target_desc_up): Likewise.
339
340 2020-06-30 Tom Tromey <tromey@adacore.com>
341
342 PR build/26183:
343 * gdb_string_view.h (basic_string_view::to_string): Remove.
344 (gdb::to_string): New function.
345
346 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
347
348 * tdesc.h (class print_xml_feature) <add_line>: Add
349 ATTRIBUTE_PRINTF.
350
351 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
354 output content, and call indent as needed in all overloaded
355 variants.
356 (print_xml_feature::visit_post): Likewise.
357 (print_xml_feature::visit): Likewise.
358 (print_xml_feature::add_line): Two new overloaded functions.
359 * tdesc.h (print_xml_feature::indent): New member function.
360 (print_xml_feature::add_line): Two new overloaded member
361 functions.
362 (print_xml_feature::m_depth): New member variable.
363
364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
367 information.
368 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
369 (tdesc_compatible_info_up): New typedef.
370 (tdesc_compatible_info_list): Declare new function.
371 (tdesc_compatible_info_arch_name): Declare new function.
372
373 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
374
375 * common-utils.cc, common-utils.h (stringify_argv): Drop
376 now unused function stringify_argv
377
378 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
379
380 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
381 Adapt to take a gdb::array_view<char * const> parameter.
382 Adapt call site.
383
384 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
385
386 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
387 Adapt to handle zero args and return a std::string.
388 Adapt call site.
389
390 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
391
392 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
393 Move function here from gdb/infcmd.c, gdb/inferior.h
394
395 2020-05-14 Kevin Buettner <kevinb@redhat.com>
396
397 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
398
399 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
400
401 * common-regcache.h (regcache_read_pc_protected): New function
402 declaration.
403
404 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
405
406 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
407
408 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * common-defs.h: Include cstdlib.h.
411
412 2020-04-20 Tom Tromey <tromey@adacore.com>
413
414 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
415 Use initialization style. Don't call destroy.
416 * scoped_fd.h (class scoped_fd): Mark move constructor as
417 noexcept.
418 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
419 noexcept.
420
421 2020-04-13 Tom Tromey <tom@tromey.com>
422
423 * event-loop.c: Move comment. Remove obsolete comment.
424
425 2020-04-13 Tom Tromey <tom@tromey.com>
426
427 * event-loop.h: Move from ../gdb/.
428 * event-loop.cc: Move from ../gdb/.
429
430 2020-04-13 Tom Tromey <tom@tromey.com>
431
432 * errors.h (flush_streams): Declare.
433
434 2020-04-13 Tom Tromey <tom@tromey.com>
435
436 * gdb_select.h: Move from ../gdb/.
437
438 2020-04-13 Tom Tromey <tom@tromey.com>
439
440 * config.in, configure: Rebuild.
441 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
442 sys/select.h, and poll.
443
444 2020-03-31 Tom Tromey <tromey@adacore.com>
445
446 * btrace-common.cc (btrace_data_append): Conditionally call
447 memcpy.
448
449 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * create-version.sh: Resolve issues highlighted by shellcheck.
452
453 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
454
455 * config.in: Re-generate.
456 * configure: Re-generate.
457
458 2020-03-17 Kamil Rytarowski <n54@gmx.com>
459
460 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
461
462 2020-03-12 Tom Tromey <tom@tromey.com>
463
464 * common-types.h: Remove GDBSERVER code.
465 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
466 * common-defs.h: Remove GDBSERVER code.
467
468 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
469
470 * selftest.m4: Moved from gdb/.
471 * acinclude.m4: Update path to selftest.m4.
472
473 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
474
475 * configure.ac: Don't source bfd/development.sh.
476 * common.m4: Source bfd/development.sh.
477 * configure: Re-generate.
478
479 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
480
481 * configure: Re-generate.
482
483 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
484
485 * configure: Re-generate.
486 * warning.m4: Enable -Wmissing-prototypes.
487
488 2020-03-08 Tom Tromey <tom@tromey.com>
489
490 * gdb_binary_search.h: Fix two typos.
491
492 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * .dir-locals.el: New file.
495
496 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
497
498 * configure.ac: Added call development.sh.
499 * configure: Regenerate.
500
501 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
502
503 * .gitattributes: New file.
504
505 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
506
507 * Makefile.in: Re-generate.
508
509 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
510
511 * gdb-dlfcn.h (gdb_dlopen): Update comment.
512
513 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * configure: Regenerate.
516
517 2020-02-14 Tom Tromey <tom@tromey.com>
518
519 * common-defs.h: Change path to gnulib/config.h.
520
521 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
522
523 * Makefile.am: Rename source files from .c to .cc.
524 (CC, CFLAGS): Don't override.
525 (AM_CFLAGS): Rename to ...
526 (AM_CXXFLAGS): ... this.
527 * Makefile.in: Re-generate.
528 * %.c: Rename to %.cc.
529
530 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
531
532 * configure: Re-generate.
533
534 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
535
536 * warning.m4: Add -Wstrict-null-sentinel.
537 * configure: Re-generate.
538
539 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
540
541 * warning.m4: Move here, from gdb/warning.m4.
542 * acinclude.m4: Update warning.m4 path.
543 * Makefile.in: Re-generate.
544
545 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
546
547 * acinclude.m4: Include ../gdb/warning.m4.
548 * configure.ac: Use AM_GDB_WARNINGS.
549 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
550 * Makefile.in: Re-generate.
551 * configure: Re-generate.
552
553 2020-02-10 Tom de Vries <tdevries@suse.de>
554
555 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
556
557 2020-01-24 Christian Biesinger <cbiesinger@google.com>
558
559 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
560 version of pthread_setname_np.
561
562 2020-01-17 Pedro Alves <palves@redhat.com>
563
564 * Makefile.am: Append CXX_DIALECT to CXX.
565 * Makefile.in: Regenerate.
566
567 2020-01-17 Pedro Alves <palves@redhat.com>
568
569 * configure.ac: Generate config.h instead of support-config.h.
570 * common-defs.h: Include <gdbsupport/config.h> instead of
571 <gdbsupport/support-config.h>.
572 * Makefile.in: Regenerate.
573 * configure: Regenerate.
574
575 2020-01-14 Tom Tromey <tom@tromey.com>
576
577 * Makefile.in: Rebuild.
578 * Makefile.am (check-defines): New target.
579 * check-defines.el: New file.
580
581 2020-01-14 Tom Tromey <tom@tromey.com>
582
583 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
584 Rebuild.
585 * common.m4 (GDB_AC_COMMON): Move many checks from
586 gdb/configure.ac.
587 * acinclude.m4: Include bfd.m4, ptrace.m4.
588
589 2020-01-14 Tom Tromey <tom@tromey.com>
590
591 * common-defs.h: Add GDBSERVER case. Update includes.
592 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
593 Makefile.am, Makefile.in, README: New files.
594 * Moved from ../gdb/gdbsupport/
This page took 0.057876 seconds and 4 git commands to generate.