]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/ChangeLog
gdb: add missing test for completion of invalid /FMT strings
[thirdparty/binutils-gdb.git] / gdbsupport / ChangeLog
CommitLineData
4b186f88
MF
12021-01-06 Mike Frysinger <vapier@gentoo.org>
2
3 * common-utils.h (align_up): Fix typo in header comment.
4
3ec3145c
SM
52021-01-04 Simon Marchi <simon.marchi@efficios.com>
6
7 * common-debug.h (debug_print_depth): New.
8 (struct scoped_debug_start_end): New.
9 (scoped_debug_start_end): New.
10 (scoped_debug_enter_exit): New.
11 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
12
96648494
AB
132020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
16 'safe-ctype.h'.
17 (extract_string_maybe_quoted): Use safe-ctype function versions.
18 (is_digit_in_base): Likewise.
19 (digit_to_int): Likewise.
20 (strtoulst): Likewise.
21 (skip_spaces): Likewise.
22 (skip_to_space): Likewise.
23
74b773fc
SM
242020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * common-debug.h (debug_prefixed_printf_cond): New.
27 * event-loop.h (event_loop_debug_printf): Use
28 debug_prefixed_printf_cond.
29
60a7223f
AF
302020-12-08 Alexander Fedotov <alfedotov@gmail.com>
31
32 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
33 variable when running on Windows.
34
54e75f29
AB
352020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * tdesc.cc (print_xml_feature::visit): Print enum fields using
38 'evalue' syntax.
39
4f36e61b
CC
402020-12-01 Chungyi Chi <demonic@csie.io>
41
42 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
43
14f62a09
TT
442020-11-20 Tom Tromey <tromey@adacore.com>
45
46 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
47 errors.
48
6c51cf51
TT
492020-11-10 Tom Tromey <tromey@adacore.com>
50
51 PR build/26848:
52 * pathstuff.h: Move include block here...
53 * pathstuff.cc: ... from here.
54
8768c3e3
TT
552020-11-02 Tom Tromey <tom@tromey.com>
56
57 * pathstuff.h (get_standard_config_dir): Declare.
58 * pathstuff.cc (get_standard_config_dir): New function.
59
dda83cd7
SM
602020-11-02 Simon Marchi <simon.marchi@efficios.com>
61
62 * common-exceptions.h: Fix indentation.
63 * event-loop.cc: Fix indentation.
64 * fileio.cc: Fix indentation.
65 * filestuff.cc: Fix indentation.
66 * gdb-dlfcn.cc: Fix indentation.
67 * gdb_string_view.h: Fix indentation.
68 * job-control.cc: Fix indentation.
69 * signals.cc: Fix indentation.
70
17417fb0
SM
712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * common-debug.cc (debug_prefixed_printf): New.
74 * common-debug.h (debug_prefixed_printf): New declaration.
75 * event-loop.cc (event_loop_debug_printf_1): Remove.
76 * event-loop.h (event_loop_debug_printf_1): Remove.
77 (event_loop_debug_printf): Use debug_prefixed_printf.
78 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
79
b9442ec1
SM
802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
81
82 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
83 AC_LANG_PROGRAM.
84 * configure: Re-generate.
85
15dabc52
SM
862020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
89
864ca435
SM
902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * configure: Re-generate.
93 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
94 AC_LANG_PROGRAM.
95
5164c117
SM
962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * configure: Re-generate.
99 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
100 AC_LANG_PROGRAM.
101
b6fb30ed
SM
1022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * configure: Re-generate.
105 * ptrace.m4: Re-indent.
106
e41fda1d
SM
1072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * aclocal.m4: Re-generate.
110 * configure: Re-generate.
111 * configure.ac: Remove AM_PROG_CC_STDC.
112
91e1a0ed
SM
1132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
116 AC_CANONICAL_SYSTEM.
117 * configure: Re-generate.
118
d744f0f9
PA
1192020-10-26 Pedro Alves <pedro@palves.net>
120
121 * eintr.h (handle_eintr): Replace Ret template parameter with
122 ErrorValType. Use it as type of the failure value. Deduce the
123 function's return type using decltype. Use lowercase for function
124 parameter names.
125
006811bc
SM
1262020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * Makefile.in: Re-generate.
129 * acinclude.m4: Update ptrace.m4 path.
130 * ptrace.m4: Move here.
131
51a948fd
AB
1322020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * tdesc.h (allocate_target_description): Update return type.
135
4a72de73
TT
1362020-10-07 Tom Tromey <tromey@adacore.com>
137
138 * Makefile.in: Rebuild.
139 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
140 * search.h: New file.
141 * search.cc: New file.
142
6b01403b
SM
1432020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * event-loop.h (debug_event_loop): New variable declaration.
146 (event_loop_debug_printf_1): New function declaration.
147 (event_loop_debug_printf): New macro.
148 * event-loop.cc (debug_event_loop): New variable.
149 (handle_file_event): Add debug print.
150 (event_loop_debug_printf_1): New function.
151
ba988419
SM
1522020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * common-debug.cc (debug_prefixed_vprintf): Move here.
155 * common-debug.h (debug_prefixed_vprintf): Move here.
156
2554f6f5
SM
1572020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * event-loop.h (add_file_handler): Add "name" parameter.
160 * event-loop.cc (struct file_handler) <name>: New field.
161 (create_file_handler): Add "name" parameter, assign it to file
162 handler.
163 (add_file_handler): Add "name" parameter.
164
e2a2a24a
KR
1652020-10-01 Kamil Rytarowski <n54@gmx.com>
166
167 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
168
de38d64a
PA
1692020-09-29 Pedro Alves <pedro@palves.net>
170
171 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
172 class instead of an alias template and adjust static_assert.
173
29363cfa
SM
1742020-09-24 Simon Marchi <simon.marchi@efficios.com>
175
176 * event-loop.c (struct file_handler): Remove typedef, re-format.
177
e911c666
JB
1782020-09-16 John Baldwin <jhb@FreeBSD.org>
179
180 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
181 * configure, config.in: Regenerate.
182
04902b09
PA
1832020-09-14 Pedro Alves <pedro@palves.net>
184
185 * enum-flags.h: Include "traits.h".
186 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
187 structure.
188 (enum_underlying_type): Update comment.
189 (namespace enum_flags_detail): New. Move struct zero_type here.
190 (EnumIsUnsigned, EnumIsSigned): New.
191 (class enum_flags): Make most methods constexpr.
192 (operator&=, operator|=, operator^=): Take an enum_flags instead
193 of an enum_type. Make rvalue ref versions deleted.
194 (operator enum_type()): Delete.
195 (operator&, operator|, operator^, operator~): Delete, moved out of
196 class.
197 (raw()): New method.
198 (is_enum_flags_enum_type_t): Declare.
199 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
200 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
201 operators.
202 (operator~): Now constexpr and reimplemented.
203 (operator<<, operator>>): New deleted functions.
204 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
205
1945192c
PA
2062020-09-14 Pedro Alves <pedro@palves.net>
207
208 * traits.h (struct nonesuch, struct detector, detected_or)
209 (detected_or_t, is_detected, detected_t, detected_or)
210 (detected_or_t, is_detected_exact, is_detected_convertible): New.
211 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
212
48c9b433
KR
2132020-09-10 Kamil Rytarowski <n54@gmx.com>
214
215 * eintr.h: New file.
216
ece5bc8a
SM
2172020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * selftest.h (run_tests): Change parameter to array_view.
220 * selftest.c (run_tests): Change parameter to array_view and use
221 it.
222
c8693053
RO
2232020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
224
225 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
226 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
227 <sys/procfs.h>.
228 * Makefile.in: Regenerate.
229 * configure, config.in: Regenerate.
230
866b34a1
TV
2312020-07-28 Tom de Vries <tdevries@suse.de>
232
233 PR build/26281
234 * gdb_optional.h (class optional): Add volatile member to union
235 contaning m_dummy and m_item.
236
0e267416
AB
2372020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * tdesc.h (struct target_desc_deleter): Moved here
240 from gdb/target-descriptions.h, extend comment.
241 (target_desc_up): Likewise.
242
5ac58899
TT
2432020-06-30 Tom Tromey <tromey@adacore.com>
244
245 PR build/26183:
246 * gdb_string_view.h (basic_string_view::to_string): Remove.
247 (gdb::to_string): New function.
248
6db3031e
SM
2492020-06-27 Simon Marchi <simon.marchi@efficios.com>
250
251 * tdesc.h (class print_xml_feature) <add_line>: Add
252 ATTRIBUTE_PRINTF.
253
caa7fd04
AB
2542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
257 output content, and call indent as needed in all overloaded
258 variants.
259 (print_xml_feature::visit_post): Likewise.
260 (print_xml_feature::visit): Likewise.
261 (print_xml_feature::add_line): Two new overloaded functions.
262 * tdesc.h (print_xml_feature::indent): New member function.
263 (print_xml_feature::add_line): Two new overloaded member
264 functions.
265 (print_xml_feature::m_depth): New member variable.
266
fbf42f4e
AB
2672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
270 information.
271 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
272 (tdesc_compatible_info_up): New typedef.
273 (tdesc_compatible_info_list): Declare new function.
274 (tdesc_compatible_info_arch_name): Declare new function.
275
7dbfcd6f
MW
2762020-05-25 Michael Weghorn <m.weghorn@posteo.de>
277
278 * common-utils.cc, common-utils.h (stringify_argv): Drop
279 now unused function stringify_argv
280
8c4b5f3d
MW
2812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
282
283 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
284 Adapt to take a gdb::array_view<char * const> parameter.
285 Adapt call site.
286
c699004a
MW
2872020-05-25 Michael Weghorn <m.weghorn@posteo.de>
288
289 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
290 Adapt to handle zero args and return a std::string.
291 Adapt call site.
292
92651b1d
MW
2932020-05-25 Michael Weghorn <m.weghorn@posteo.de>
294
295 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
296 Move function here from gdb/infcmd.c, gdb/inferior.h
297
a51951c2
KB
2982020-05-14 Kevin Buettner <kevinb@redhat.com>
299
300 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
301
fc75c28b
TBA
3022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
303
304 * common-regcache.h (regcache_read_pc_protected): New function
305 declaration.
306
32d1f47a
TBA
3072020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
310
ff8885c3
SM
3112020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * common-defs.h: Include cstdlib.h.
314
0fa7617d
TT
3152020-04-20 Tom Tromey <tromey@adacore.com>
316
317 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
318 Use initialization style. Don't call destroy.
319 * scoped_fd.h (class scoped_fd): Mark move constructor as
320 noexcept.
321 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
322 noexcept.
323
7990abcc
TT
3242020-04-13 Tom Tromey <tom@tromey.com>
325
326 * event-loop.c: Move comment. Remove obsolete comment.
327
400b5eca
TT
3282020-04-13 Tom Tromey <tom@tromey.com>
329
330 * event-loop.h: Move from ../gdb/.
331 * event-loop.cc: Move from ../gdb/.
332
c1cd3163
TT
3332020-04-13 Tom Tromey <tom@tromey.com>
334
335 * errors.h (flush_streams): Declare.
336
06cc9596
TT
3372020-04-13 Tom Tromey <tom@tromey.com>
338
339 * gdb_select.h: Move from ../gdb/.
340
8ae8e197
TT
3412020-04-13 Tom Tromey <tom@tromey.com>
342
343 * config.in, configure: Rebuild.
344 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
345 sys/select.h, and poll.
346
af62665e
TT
3472020-03-31 Tom Tromey <tromey@adacore.com>
348
349 * btrace-common.cc (btrace_data_append): Conditionally call
350 memcpy.
351
8f2dae6a
AB
3522020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * create-version.sh: Resolve issues highlighted by shellcheck.
355
c884cc46
SM
3562020-03-20 Simon Marchi <simon.marchi@efficios.com>
357
358 * config.in: Re-generate.
359 * configure: Re-generate.
360
d3e2a5e8
KR
3612020-03-17 Kamil Rytarowski <n54@gmx.com>
362
363 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
364
21329136
TT
3652020-03-12 Tom Tromey <tom@tromey.com>
366
367 * common-types.h: Remove GDBSERVER code.
368 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
369 * common-defs.h: Remove GDBSERVER code.
370
272cd5a3
SM
3712020-03-12 Simon Marchi <simon.marchi@efficios.com>
372
373 * selftest.m4: Moved from gdb/.
374 * acinclude.m4: Update path to selftest.m4.
375
db6878ac
SM
3762020-03-12 Simon Marchi <simon.marchi@efficios.com>
377
378 * configure.ac: Don't source bfd/development.sh.
379 * common.m4: Source bfd/development.sh.
380 * configure: Re-generate.
381
4d696a5c
SM
3822020-03-12 Simon Marchi <simon.marchi@efficios.com>
383
384 * configure: Re-generate.
385
a0761e34
SM
3862020-03-11 Simon Marchi <simon.marchi@efficios.com>
387
388 * configure: Re-generate.
389 * warning.m4: Enable -Wmissing-prototypes.
390
e63ee24f
TT
3912020-03-08 Tom Tromey <tom@tromey.com>
392
393 * gdb_binary_search.h: Fix two typos.
394
20ea4a60
AB
3952020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * .dir-locals.el: New file.
398
3d1e5a43
VP
3992020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
400
401 * configure.ac: Added call development.sh.
402 * configure: Regenerate.
403
842806cb
TBA
4042020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
405
406 * .gitattributes: New file.
407
89725b0d
SM
4082020-03-03 Simon Marchi <simon.marchi@efficios.com>
409
410 * Makefile.in: Re-generate.
411
d7592e97
SDJ
4122020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
413
414 * gdb-dlfcn.h (gdb_dlopen): Update comment.
415
9f1528a1
AB
4162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * configure: Regenerate.
419
1a627e7e
TT
4202020-02-14 Tom Tromey <tom@tromey.com>
421
422 * common-defs.h: Change path to gnulib/config.h.
423
06b3c5bd
SM
4242020-02-13 Simon Marchi <simon.marchi@efficios.com>
425
426 * Makefile.am: Rename source files from .c to .cc.
427 (CC, CFLAGS): Don't override.
428 (AM_CFLAGS): Rename to ...
429 (AM_CXXFLAGS): ... this.
430 * Makefile.in: Re-generate.
431 * %.c: Rename to %.cc.
432
898e7f60
SM
4332020-02-11 Simon Marchi <simon.marchi@efficios.com>
434
435 * configure: Re-generate.
436
8ddd8e0e
SM
4372020-02-11 Simon Marchi <simon.marchi@efficios.com>
438
439 * warning.m4: Add -Wstrict-null-sentinel.
440 * configure: Re-generate.
441
58df732b
SM
4422020-02-11 Simon Marchi <simon.marchi@efficios.com>
443
444 * warning.m4: Move here, from gdb/warning.m4.
445 * acinclude.m4: Update warning.m4 path.
446 * Makefile.in: Re-generate.
447
629c2962
SM
4482020-02-11 Simon Marchi <simon.marchi@efficios.com>
449
450 * acinclude.m4: Include ../gdb/warning.m4.
451 * configure.ac: Use AM_GDB_WARNINGS.
452 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
453 * Makefile.in: Re-generate.
454 * configure: Re-generate.
455
85f0dd3c
TV
4562020-02-10 Tom de Vries <tdevries@suse.de>
457
458 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
459
43198d20
CB
4602020-01-24 Christian Biesinger <cbiesinger@google.com>
461
462 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
463 version of pthread_setname_np.
464
67b10306
PA
4652020-01-17 Pedro Alves <palves@redhat.com>
466
467 * Makefile.am: Append CXX_DIALECT to CXX.
468 * Makefile.in: Regenerate.
469
3684d331
PA
4702020-01-17 Pedro Alves <palves@redhat.com>
471
472 * configure.ac: Generate config.h instead of support-config.h.
473 * common-defs.h: Include <gdbsupport/config.h> instead of
474 <gdbsupport/support-config.h>.
475 * Makefile.in: Regenerate.
476 * configure: Regenerate.
477
0454ef42
TT
4782020-01-14 Tom Tromey <tom@tromey.com>
479
480 * Makefile.in: Rebuild.
481 * Makefile.am (check-defines): New target.
482 * check-defines.el: New file.
483
05ea2a05
TT
4842020-01-14 Tom Tromey <tom@tromey.com>
485
486 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
487 Rebuild.
488 * common.m4 (GDB_AC_COMMON): Move many checks from
489 gdb/configure.ac.
490 * acinclude.m4: Include bfd.m4, ptrace.m4.
491
01027315
TT
4922020-01-14 Tom Tromey <tom@tromey.com>
493
494 * common-defs.h: Add GDBSERVER case. Update includes.
495 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
496 Makefile.am, Makefile.in, README: New files.
497 * Moved from ../gdb/gdbsupport/