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