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