]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/ChangeLog
Fix type of .persistent.bss section
[thirdparty/binutils-gdb.git] / gdbsupport / ChangeLog
CommitLineData
48136e00
LM
12021-03-24 Luis Machado <luis.machado@linaro.org>
2
3 * rsp-low.cc (fromhex, hex2bin): Move to ...
4 * common-utils.cc: ... here.
5 (fromhex) Change error message text to not be RSP-specific.
6 * rsp-low.h (fromhex, hex2bin): Move to ...
7 * common-utils.h: ... here.
8
e9338841
AM
92021-03-21 Alan Modra <amodra@gmail.com>
10
11 * common-utils.h (startswith): Delete version now supplied by bfd.h.
12
9c9d63b1
PM
132021-02-05 Paul E. Murphy <murphy@linux.ibm.com>
14
15 * common-defs.h (ATTRIBUTE_PRINTF): Rename
16 _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
17 * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling
18 free if this macro is defined.
19
d3ee35db
LS
202021-01-23 Lancelot SIX <lsix@lancelotsix.com>
21
22 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
23 implementation.
24 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
25 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
26
2189c312
SM
272021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
30 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
31 func.
32
6abd4cf2
SM
332021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
34
35 PR gdb/27157
36 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
37 find_gdb_home_config_file): Add empty string check.
38
4b186f88
MF
392021-01-06 Mike Frysinger <vapier@gentoo.org>
40
41 * common-utils.h (align_up): Fix typo in header comment.
42
3ec3145c
SM
432021-01-04 Simon Marchi <simon.marchi@efficios.com>
44
45 * common-debug.h (debug_print_depth): New.
46 (struct scoped_debug_start_end): New.
47 (scoped_debug_start_end): New.
48 (scoped_debug_enter_exit): New.
49 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
50
96648494
AB
512020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
54 'safe-ctype.h'.
55 (extract_string_maybe_quoted): Use safe-ctype function versions.
56 (is_digit_in_base): Likewise.
57 (digit_to_int): Likewise.
58 (strtoulst): Likewise.
59 (skip_spaces): Likewise.
60 (skip_to_space): Likewise.
61
74b773fc
SM
622020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * common-debug.h (debug_prefixed_printf_cond): New.
65 * event-loop.h (event_loop_debug_printf): Use
66 debug_prefixed_printf_cond.
67
60a7223f
AF
682020-12-08 Alexander Fedotov <alfedotov@gmail.com>
69
70 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
71 variable when running on Windows.
72
54e75f29
AB
732020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 * tdesc.cc (print_xml_feature::visit): Print enum fields using
76 'evalue' syntax.
77
4f36e61b
CC
782020-12-01 Chungyi Chi <demonic@csie.io>
79
80 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
81
14f62a09
TT
822020-11-20 Tom Tromey <tromey@adacore.com>
83
84 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
85 errors.
86
6c51cf51
TT
872020-11-10 Tom Tromey <tromey@adacore.com>
88
89 PR build/26848:
90 * pathstuff.h: Move include block here...
91 * pathstuff.cc: ... from here.
92
8768c3e3
TT
932020-11-02 Tom Tromey <tom@tromey.com>
94
95 * pathstuff.h (get_standard_config_dir): Declare.
96 * pathstuff.cc (get_standard_config_dir): New function.
97
dda83cd7
SM
982020-11-02 Simon Marchi <simon.marchi@efficios.com>
99
100 * common-exceptions.h: Fix indentation.
101 * event-loop.cc: Fix indentation.
102 * fileio.cc: Fix indentation.
103 * filestuff.cc: Fix indentation.
104 * gdb-dlfcn.cc: Fix indentation.
105 * gdb_string_view.h: Fix indentation.
106 * job-control.cc: Fix indentation.
107 * signals.cc: Fix indentation.
108
17417fb0
SM
1092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * common-debug.cc (debug_prefixed_printf): New.
112 * common-debug.h (debug_prefixed_printf): New declaration.
113 * event-loop.cc (event_loop_debug_printf_1): Remove.
114 * event-loop.h (event_loop_debug_printf_1): Remove.
115 (event_loop_debug_printf): Use debug_prefixed_printf.
116 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
117
b9442ec1
SM
1182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
121 AC_LANG_PROGRAM.
122 * configure: Re-generate.
123
15dabc52
SM
1242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
127
864ca435
SM
1282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * configure: Re-generate.
131 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
132 AC_LANG_PROGRAM.
133
5164c117
SM
1342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * configure: Re-generate.
137 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
138 AC_LANG_PROGRAM.
139
b6fb30ed
SM
1402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * configure: Re-generate.
143 * ptrace.m4: Re-indent.
144
e41fda1d
SM
1452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * aclocal.m4: Re-generate.
148 * configure: Re-generate.
149 * configure.ac: Remove AM_PROG_CC_STDC.
150
91e1a0ed
SM
1512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
154 AC_CANONICAL_SYSTEM.
155 * configure: Re-generate.
156
d744f0f9
PA
1572020-10-26 Pedro Alves <pedro@palves.net>
158
159 * eintr.h (handle_eintr): Replace Ret template parameter with
160 ErrorValType. Use it as type of the failure value. Deduce the
161 function's return type using decltype. Use lowercase for function
162 parameter names.
163
006811bc
SM
1642020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * Makefile.in: Re-generate.
167 * acinclude.m4: Update ptrace.m4 path.
168 * ptrace.m4: Move here.
169
51a948fd
AB
1702020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * tdesc.h (allocate_target_description): Update return type.
173
4a72de73
TT
1742020-10-07 Tom Tromey <tromey@adacore.com>
175
176 * Makefile.in: Rebuild.
177 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
178 * search.h: New file.
179 * search.cc: New file.
180
6b01403b
SM
1812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * event-loop.h (debug_event_loop): New variable declaration.
184 (event_loop_debug_printf_1): New function declaration.
185 (event_loop_debug_printf): New macro.
186 * event-loop.cc (debug_event_loop): New variable.
187 (handle_file_event): Add debug print.
188 (event_loop_debug_printf_1): New function.
189
ba988419
SM
1902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * common-debug.cc (debug_prefixed_vprintf): Move here.
193 * common-debug.h (debug_prefixed_vprintf): Move here.
194
2554f6f5
SM
1952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
196
197 * event-loop.h (add_file_handler): Add "name" parameter.
198 * event-loop.cc (struct file_handler) <name>: New field.
199 (create_file_handler): Add "name" parameter, assign it to file
200 handler.
201 (add_file_handler): Add "name" parameter.
202
e2a2a24a
KR
2032020-10-01 Kamil Rytarowski <n54@gmx.com>
204
205 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
206
de38d64a
PA
2072020-09-29 Pedro Alves <pedro@palves.net>
208
209 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
210 class instead of an alias template and adjust static_assert.
211
29363cfa
SM
2122020-09-24 Simon Marchi <simon.marchi@efficios.com>
213
214 * event-loop.c (struct file_handler): Remove typedef, re-format.
215
e911c666
JB
2162020-09-16 John Baldwin <jhb@FreeBSD.org>
217
218 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
219 * configure, config.in: Regenerate.
220
04902b09
PA
2212020-09-14 Pedro Alves <pedro@palves.net>
222
223 * enum-flags.h: Include "traits.h".
224 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
225 structure.
226 (enum_underlying_type): Update comment.
227 (namespace enum_flags_detail): New. Move struct zero_type here.
228 (EnumIsUnsigned, EnumIsSigned): New.
229 (class enum_flags): Make most methods constexpr.
230 (operator&=, operator|=, operator^=): Take an enum_flags instead
231 of an enum_type. Make rvalue ref versions deleted.
232 (operator enum_type()): Delete.
233 (operator&, operator|, operator^, operator~): Delete, moved out of
234 class.
235 (raw()): New method.
236 (is_enum_flags_enum_type_t): Declare.
237 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
238 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
239 operators.
240 (operator~): Now constexpr and reimplemented.
241 (operator<<, operator>>): New deleted functions.
242 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
243
1945192c
PA
2442020-09-14 Pedro Alves <pedro@palves.net>
245
246 * traits.h (struct nonesuch, struct detector, detected_or)
247 (detected_or_t, is_detected, detected_t, detected_or)
248 (detected_or_t, is_detected_exact, is_detected_convertible): New.
249 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
250
48c9b433
KR
2512020-09-10 Kamil Rytarowski <n54@gmx.com>
252
253 * eintr.h: New file.
254
ece5bc8a
SM
2552020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * selftest.h (run_tests): Change parameter to array_view.
258 * selftest.c (run_tests): Change parameter to array_view and use
259 it.
260
c8693053
RO
2612020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
262
263 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
264 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
265 <sys/procfs.h>.
266 * Makefile.in: Regenerate.
267 * configure, config.in: Regenerate.
268
866b34a1
TV
2692020-07-28 Tom de Vries <tdevries@suse.de>
270
271 PR build/26281
272 * gdb_optional.h (class optional): Add volatile member to union
273 contaning m_dummy and m_item.
274
0e267416
AB
2752020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * tdesc.h (struct target_desc_deleter): Moved here
278 from gdb/target-descriptions.h, extend comment.
279 (target_desc_up): Likewise.
280
5ac58899
TT
2812020-06-30 Tom Tromey <tromey@adacore.com>
282
283 PR build/26183:
284 * gdb_string_view.h (basic_string_view::to_string): Remove.
285 (gdb::to_string): New function.
286
6db3031e
SM
2872020-06-27 Simon Marchi <simon.marchi@efficios.com>
288
289 * tdesc.h (class print_xml_feature) <add_line>: Add
290 ATTRIBUTE_PRINTF.
291
caa7fd04
AB
2922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
295 output content, and call indent as needed in all overloaded
296 variants.
297 (print_xml_feature::visit_post): Likewise.
298 (print_xml_feature::visit): Likewise.
299 (print_xml_feature::add_line): Two new overloaded functions.
300 * tdesc.h (print_xml_feature::indent): New member function.
301 (print_xml_feature::add_line): Two new overloaded member
302 functions.
303 (print_xml_feature::m_depth): New member variable.
304
fbf42f4e
AB
3052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
308 information.
309 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
310 (tdesc_compatible_info_up): New typedef.
311 (tdesc_compatible_info_list): Declare new function.
312 (tdesc_compatible_info_arch_name): Declare new function.
313
7dbfcd6f
MW
3142020-05-25 Michael Weghorn <m.weghorn@posteo.de>
315
316 * common-utils.cc, common-utils.h (stringify_argv): Drop
317 now unused function stringify_argv
318
8c4b5f3d
MW
3192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
320
321 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
322 Adapt to take a gdb::array_view<char * const> parameter.
323 Adapt call site.
324
c699004a
MW
3252020-05-25 Michael Weghorn <m.weghorn@posteo.de>
326
327 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
328 Adapt to handle zero args and return a std::string.
329 Adapt call site.
330
92651b1d
MW
3312020-05-25 Michael Weghorn <m.weghorn@posteo.de>
332
333 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
334 Move function here from gdb/infcmd.c, gdb/inferior.h
335
a51951c2
KB
3362020-05-14 Kevin Buettner <kevinb@redhat.com>
337
338 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
339
fc75c28b
TBA
3402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
341
342 * common-regcache.h (regcache_read_pc_protected): New function
343 declaration.
344
32d1f47a
TBA
3452020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
348
ff8885c3
SM
3492020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * common-defs.h: Include cstdlib.h.
352
0fa7617d
TT
3532020-04-20 Tom Tromey <tromey@adacore.com>
354
355 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
356 Use initialization style. Don't call destroy.
357 * scoped_fd.h (class scoped_fd): Mark move constructor as
358 noexcept.
359 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
360 noexcept.
361
7990abcc
TT
3622020-04-13 Tom Tromey <tom@tromey.com>
363
364 * event-loop.c: Move comment. Remove obsolete comment.
365
400b5eca
TT
3662020-04-13 Tom Tromey <tom@tromey.com>
367
368 * event-loop.h: Move from ../gdb/.
369 * event-loop.cc: Move from ../gdb/.
370
c1cd3163
TT
3712020-04-13 Tom Tromey <tom@tromey.com>
372
373 * errors.h (flush_streams): Declare.
374
06cc9596
TT
3752020-04-13 Tom Tromey <tom@tromey.com>
376
377 * gdb_select.h: Move from ../gdb/.
378
8ae8e197
TT
3792020-04-13 Tom Tromey <tom@tromey.com>
380
381 * config.in, configure: Rebuild.
382 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
383 sys/select.h, and poll.
384
af62665e
TT
3852020-03-31 Tom Tromey <tromey@adacore.com>
386
387 * btrace-common.cc (btrace_data_append): Conditionally call
388 memcpy.
389
8f2dae6a
AB
3902020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * create-version.sh: Resolve issues highlighted by shellcheck.
393
c884cc46
SM
3942020-03-20 Simon Marchi <simon.marchi@efficios.com>
395
396 * config.in: Re-generate.
397 * configure: Re-generate.
398
d3e2a5e8
KR
3992020-03-17 Kamil Rytarowski <n54@gmx.com>
400
401 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
402
21329136
TT
4032020-03-12 Tom Tromey <tom@tromey.com>
404
405 * common-types.h: Remove GDBSERVER code.
406 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
407 * common-defs.h: Remove GDBSERVER code.
408
272cd5a3
SM
4092020-03-12 Simon Marchi <simon.marchi@efficios.com>
410
411 * selftest.m4: Moved from gdb/.
412 * acinclude.m4: Update path to selftest.m4.
413
db6878ac
SM
4142020-03-12 Simon Marchi <simon.marchi@efficios.com>
415
416 * configure.ac: Don't source bfd/development.sh.
417 * common.m4: Source bfd/development.sh.
418 * configure: Re-generate.
419
4d696a5c
SM
4202020-03-12 Simon Marchi <simon.marchi@efficios.com>
421
422 * configure: Re-generate.
423
a0761e34
SM
4242020-03-11 Simon Marchi <simon.marchi@efficios.com>
425
426 * configure: Re-generate.
427 * warning.m4: Enable -Wmissing-prototypes.
428
e63ee24f
TT
4292020-03-08 Tom Tromey <tom@tromey.com>
430
431 * gdb_binary_search.h: Fix two typos.
432
20ea4a60
AB
4332020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * .dir-locals.el: New file.
436
3d1e5a43
VP
4372020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
438
439 * configure.ac: Added call development.sh.
440 * configure: Regenerate.
441
842806cb
TBA
4422020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
443
444 * .gitattributes: New file.
445
89725b0d
SM
4462020-03-03 Simon Marchi <simon.marchi@efficios.com>
447
448 * Makefile.in: Re-generate.
449
d7592e97
SDJ
4502020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
451
452 * gdb-dlfcn.h (gdb_dlopen): Update comment.
453
9f1528a1
AB
4542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * configure: Regenerate.
457
1a627e7e
TT
4582020-02-14 Tom Tromey <tom@tromey.com>
459
460 * common-defs.h: Change path to gnulib/config.h.
461
06b3c5bd
SM
4622020-02-13 Simon Marchi <simon.marchi@efficios.com>
463
464 * Makefile.am: Rename source files from .c to .cc.
465 (CC, CFLAGS): Don't override.
466 (AM_CFLAGS): Rename to ...
467 (AM_CXXFLAGS): ... this.
468 * Makefile.in: Re-generate.
469 * %.c: Rename to %.cc.
470
898e7f60
SM
4712020-02-11 Simon Marchi <simon.marchi@efficios.com>
472
473 * configure: Re-generate.
474
8ddd8e0e
SM
4752020-02-11 Simon Marchi <simon.marchi@efficios.com>
476
477 * warning.m4: Add -Wstrict-null-sentinel.
478 * configure: Re-generate.
479
58df732b
SM
4802020-02-11 Simon Marchi <simon.marchi@efficios.com>
481
482 * warning.m4: Move here, from gdb/warning.m4.
483 * acinclude.m4: Update warning.m4 path.
484 * Makefile.in: Re-generate.
485
629c2962
SM
4862020-02-11 Simon Marchi <simon.marchi@efficios.com>
487
488 * acinclude.m4: Include ../gdb/warning.m4.
489 * configure.ac: Use AM_GDB_WARNINGS.
490 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
491 * Makefile.in: Re-generate.
492 * configure: Re-generate.
493
85f0dd3c
TV
4942020-02-10 Tom de Vries <tdevries@suse.de>
495
496 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
497
43198d20
CB
4982020-01-24 Christian Biesinger <cbiesinger@google.com>
499
500 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
501 version of pthread_setname_np.
502
67b10306
PA
5032020-01-17 Pedro Alves <palves@redhat.com>
504
505 * Makefile.am: Append CXX_DIALECT to CXX.
506 * Makefile.in: Regenerate.
507
3684d331
PA
5082020-01-17 Pedro Alves <palves@redhat.com>
509
510 * configure.ac: Generate config.h instead of support-config.h.
511 * common-defs.h: Include <gdbsupport/config.h> instead of
512 <gdbsupport/support-config.h>.
513 * Makefile.in: Regenerate.
514 * configure: Regenerate.
515
0454ef42
TT
5162020-01-14 Tom Tromey <tom@tromey.com>
517
518 * Makefile.in: Rebuild.
519 * Makefile.am (check-defines): New target.
520 * check-defines.el: New file.
521
05ea2a05
TT
5222020-01-14 Tom Tromey <tom@tromey.com>
523
524 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
525 Rebuild.
526 * common.m4 (GDB_AC_COMMON): Move many checks from
527 gdb/configure.ac.
528 * acinclude.m4: Include bfd.m4, ptrace.m4.
529
01027315
TT
5302020-01-14 Tom Tromey <tom@tromey.com>
531
532 * common-defs.h: Add GDBSERVER case. Update includes.
533 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
534 Makefile.am, Makefile.in, README: New files.
535 * Moved from ../gdb/gdbsupport/