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