Improve gdb_tilde_expand logic.
[deliverable/binutils-gdb.git] / gdbsupport / ChangeLog
CommitLineData
d3ee35db
LS
12021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2
3 * gdb_tilde_expand.cc (gdb_tilde_expand): Improve
4 implementation.
5 (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand.
6 * gdb_tilde_expand.h (gdb_tilde_expand): Update description.
7
2189c312
SM
82021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * common-debug.h (debug_prefixed_printf_cond_nofunc): New.
11 * common-debug.c (debug_prefixed_vprintf): Handle a nullptr
12 func.
13
6abd4cf2
SM
142021-01-08 Simon Marchi <simon.marchi@polymtl.ca>
15
16 PR gdb/27157
17 * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir,
18 find_gdb_home_config_file): Add empty string check.
19
4b186f88
MF
202021-01-06 Mike Frysinger <vapier@gentoo.org>
21
22 * common-utils.h (align_up): Fix typo in header comment.
23
3ec3145c
SM
242021-01-04 Simon Marchi <simon.marchi@efficios.com>
25
26 * common-debug.h (debug_print_depth): New.
27 (struct scoped_debug_start_end): New.
28 (scoped_debug_start_end): New.
29 (scoped_debug_enter_exit): New.
30 * common-debug.cc (debug_prefixed_vprintf): Print indentation.
31
96648494
AB
322020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * gdbsupport/common-utils.cc: Change 'ctype.h' include to
35 'safe-ctype.h'.
36 (extract_string_maybe_quoted): Use safe-ctype function versions.
37 (is_digit_in_base): Likewise.
38 (digit_to_int): Likewise.
39 (strtoulst): Likewise.
40 (skip_spaces): Likewise.
41 (skip_to_space): Likewise.
42
74b773fc
SM
432020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * common-debug.h (debug_prefixed_printf_cond): New.
46 * event-loop.h (event_loop_debug_printf): Use
47 debug_prefixed_printf_cond.
48
60a7223f
AF
492020-12-08 Alexander Fedotov <alfedotov@gmail.com>
50
51 * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment
52 variable when running on Windows.
53
54e75f29
AB
542020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * tdesc.cc (print_xml_feature::visit): Print enum fields using
57 'evalue' syntax.
58
4f36e61b
CC
592020-12-01 Chungyi Chi <demonic@csie.io>
60
61 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
62
14f62a09
TT
632020-11-20 Tom Tromey <tromey@adacore.com>
64
65 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
66 errors.
67
6c51cf51
TT
682020-11-10 Tom Tromey <tromey@adacore.com>
69
70 PR build/26848:
71 * pathstuff.h: Move include block here...
72 * pathstuff.cc: ... from here.
73
8768c3e3
TT
742020-11-02 Tom Tromey <tom@tromey.com>
75
76 * pathstuff.h (get_standard_config_dir): Declare.
77 * pathstuff.cc (get_standard_config_dir): New function.
78
dda83cd7
SM
792020-11-02 Simon Marchi <simon.marchi@efficios.com>
80
81 * common-exceptions.h: Fix indentation.
82 * event-loop.cc: Fix indentation.
83 * fileio.cc: Fix indentation.
84 * filestuff.cc: Fix indentation.
85 * gdb-dlfcn.cc: Fix indentation.
86 * gdb_string_view.h: Fix indentation.
87 * job-control.cc: Fix indentation.
88 * signals.cc: Fix indentation.
89
17417fb0
SM
902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * common-debug.cc (debug_prefixed_printf): New.
93 * common-debug.h (debug_prefixed_printf): New declaration.
94 * event-loop.cc (event_loop_debug_printf_1): Remove.
95 * event-loop.h (event_loop_debug_printf_1): Remove.
96 (event_loop_debug_printf): Use debug_prefixed_printf.
97 (event_loop_ui_debug_printf): Use debug_prefixed_printf.
98
b9442ec1
SM
992020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
102 AC_LANG_PROGRAM.
103 * configure: Re-generate.
104
15dabc52
SM
1052020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
108
864ca435
SM
1092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * configure: Re-generate.
112 * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
113 AC_LANG_PROGRAM.
114
5164c117
SM
1152020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * configure: Re-generate.
118 * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
119 AC_LANG_PROGRAM.
120
b6fb30ed
SM
1212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * configure: Re-generate.
124 * ptrace.m4: Re-indent.
125
e41fda1d
SM
1262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * aclocal.m4: Re-generate.
129 * configure: Re-generate.
130 * configure.ac: Remove AM_PROG_CC_STDC.
131
91e1a0ed
SM
1322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
135 AC_CANONICAL_SYSTEM.
136 * configure: Re-generate.
137
d744f0f9
PA
1382020-10-26 Pedro Alves <pedro@palves.net>
139
140 * eintr.h (handle_eintr): Replace Ret template parameter with
141 ErrorValType. Use it as type of the failure value. Deduce the
142 function's return type using decltype. Use lowercase for function
143 parameter names.
144
006811bc
SM
1452020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * Makefile.in: Re-generate.
148 * acinclude.m4: Update ptrace.m4 path.
149 * ptrace.m4: Move here.
150
51a948fd
AB
1512020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * tdesc.h (allocate_target_description): Update return type.
154
4a72de73
TT
1552020-10-07 Tom Tromey <tromey@adacore.com>
156
157 * Makefile.in: Rebuild.
158 * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
159 * search.h: New file.
160 * search.cc: New file.
161
6b01403b
SM
1622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * event-loop.h (debug_event_loop): New variable declaration.
165 (event_loop_debug_printf_1): New function declaration.
166 (event_loop_debug_printf): New macro.
167 * event-loop.cc (debug_event_loop): New variable.
168 (handle_file_event): Add debug print.
169 (event_loop_debug_printf_1): New function.
170
ba988419
SM
1712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * common-debug.cc (debug_prefixed_vprintf): Move here.
174 * common-debug.h (debug_prefixed_vprintf): Move here.
175
2554f6f5
SM
1762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * event-loop.h (add_file_handler): Add "name" parameter.
179 * event-loop.cc (struct file_handler) <name>: New field.
180 (create_file_handler): Add "name" parameter, assign it to file
181 handler.
182 (add_file_handler): Add "name" parameter.
183
e2a2a24a
KR
1842020-10-01 Kamil Rytarowski <n54@gmx.com>
185
186 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
187
de38d64a
PA
1882020-09-29 Pedro Alves <pedro@palves.net>
189
190 * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template
191 class instead of an alias template and adjust static_assert.
192
29363cfa
SM
1932020-09-24 Simon Marchi <simon.marchi@efficios.com>
194
195 * event-loop.c (struct file_handler): Remove typedef, re-format.
196
e911c666
JB
1972020-09-16 John Baldwin <jhb@FreeBSD.org>
198
199 * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile().
200 * configure, config.in: Regenerate.
201
04902b09
PA
2022020-09-14 Pedro Alves <pedro@palves.net>
203
204 * enum-flags.h: Include "traits.h".
205 (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a
206 structure.
207 (enum_underlying_type): Update comment.
208 (namespace enum_flags_detail): New. Move struct zero_type here.
209 (EnumIsUnsigned, EnumIsSigned): New.
210 (class enum_flags): Make most methods constexpr.
211 (operator&=, operator|=, operator^=): Take an enum_flags instead
212 of an enum_type. Make rvalue ref versions deleted.
213 (operator enum_type()): Delete.
214 (operator&, operator|, operator^, operator~): Delete, moved out of
215 class.
216 (raw()): New method.
217 (is_enum_flags_enum_type_t): Declare.
218 (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN)
219 (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global
220 operators.
221 (operator~): Now constexpr and reimplemented.
222 (operator<<, operator>>): New deleted functions.
223 * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New.
224
1945192c
PA
2252020-09-14 Pedro Alves <pedro@palves.net>
226
227 * traits.h (struct nonesuch, struct detector, detected_or)
228 (detected_or_t, is_detected, detected_t, detected_or)
229 (detected_or_t, is_detected_exact, is_detected_convertible): New.
230 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
231
48c9b433
KR
2322020-09-10 Kamil Rytarowski <n54@gmx.com>
233
234 * eintr.h: New file.
235
ece5bc8a
SM
2362020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * selftest.h (run_tests): Change parameter to array_view.
239 * selftest.c (run_tests): Change parameter to array_view and use
240 it.
241
c8693053
RO
2422020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
243
244 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
245 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
246 <sys/procfs.h>.
247 * Makefile.in: Regenerate.
248 * configure, config.in: Regenerate.
249
866b34a1
TV
2502020-07-28 Tom de Vries <tdevries@suse.de>
251
252 PR build/26281
253 * gdb_optional.h (class optional): Add volatile member to union
254 contaning m_dummy and m_item.
255
0e267416
AB
2562020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * tdesc.h (struct target_desc_deleter): Moved here
259 from gdb/target-descriptions.h, extend comment.
260 (target_desc_up): Likewise.
261
5ac58899
TT
2622020-06-30 Tom Tromey <tromey@adacore.com>
263
264 PR build/26183:
265 * gdb_string_view.h (basic_string_view::to_string): Remove.
266 (gdb::to_string): New function.
267
6db3031e
SM
2682020-06-27 Simon Marchi <simon.marchi@efficios.com>
269
270 * tdesc.h (class print_xml_feature) <add_line>: Add
271 ATTRIBUTE_PRINTF.
272
caa7fd04
AB
2732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
276 output content, and call indent as needed in all overloaded
277 variants.
278 (print_xml_feature::visit_post): Likewise.
279 (print_xml_feature::visit): Likewise.
280 (print_xml_feature::add_line): Two new overloaded functions.
281 * tdesc.h (print_xml_feature::indent): New member function.
282 (print_xml_feature::add_line): Two new overloaded member
283 functions.
284 (print_xml_feature::m_depth): New member variable.
285
fbf42f4e
AB
2862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
289 information.
290 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
291 (tdesc_compatible_info_up): New typedef.
292 (tdesc_compatible_info_list): Declare new function.
293 (tdesc_compatible_info_arch_name): Declare new function.
294
7dbfcd6f
MW
2952020-05-25 Michael Weghorn <m.weghorn@posteo.de>
296
297 * common-utils.cc, common-utils.h (stringify_argv): Drop
298 now unused function stringify_argv
299
8c4b5f3d
MW
3002020-05-25 Michael Weghorn <m.weghorn@posteo.de>
301
302 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
303 Adapt to take a gdb::array_view<char * const> parameter.
304 Adapt call site.
305
c699004a
MW
3062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
307
308 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
309 Adapt to handle zero args and return a std::string.
310 Adapt call site.
311
92651b1d
MW
3122020-05-25 Michael Weghorn <m.weghorn@posteo.de>
313
314 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
315 Move function here from gdb/infcmd.c, gdb/inferior.h
316
a51951c2
KB
3172020-05-14 Kevin Buettner <kevinb@redhat.com>
318
319 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
320
fc75c28b
TBA
3212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
322
323 * common-regcache.h (regcache_read_pc_protected): New function
324 declaration.
325
32d1f47a
TBA
3262020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
327
328 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
329
ff8885c3
SM
3302020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * common-defs.h: Include cstdlib.h.
333
0fa7617d
TT
3342020-04-20 Tom Tromey <tromey@adacore.com>
335
336 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
337 Use initialization style. Don't call destroy.
338 * scoped_fd.h (class scoped_fd): Mark move constructor as
339 noexcept.
340 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
341 noexcept.
342
7990abcc
TT
3432020-04-13 Tom Tromey <tom@tromey.com>
344
345 * event-loop.c: Move comment. Remove obsolete comment.
346
400b5eca
TT
3472020-04-13 Tom Tromey <tom@tromey.com>
348
349 * event-loop.h: Move from ../gdb/.
350 * event-loop.cc: Move from ../gdb/.
351
c1cd3163
TT
3522020-04-13 Tom Tromey <tom@tromey.com>
353
354 * errors.h (flush_streams): Declare.
355
06cc9596
TT
3562020-04-13 Tom Tromey <tom@tromey.com>
357
358 * gdb_select.h: Move from ../gdb/.
359
8ae8e197
TT
3602020-04-13 Tom Tromey <tom@tromey.com>
361
362 * config.in, configure: Rebuild.
363 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
364 sys/select.h, and poll.
365
af62665e
TT
3662020-03-31 Tom Tromey <tromey@adacore.com>
367
368 * btrace-common.cc (btrace_data_append): Conditionally call
369 memcpy.
370
8f2dae6a
AB
3712020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * create-version.sh: Resolve issues highlighted by shellcheck.
374
c884cc46
SM
3752020-03-20 Simon Marchi <simon.marchi@efficios.com>
376
377 * config.in: Re-generate.
378 * configure: Re-generate.
379
d3e2a5e8
KR
3802020-03-17 Kamil Rytarowski <n54@gmx.com>
381
382 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
383
21329136
TT
3842020-03-12 Tom Tromey <tom@tromey.com>
385
386 * common-types.h: Remove GDBSERVER code.
387 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
388 * common-defs.h: Remove GDBSERVER code.
389
272cd5a3
SM
3902020-03-12 Simon Marchi <simon.marchi@efficios.com>
391
392 * selftest.m4: Moved from gdb/.
393 * acinclude.m4: Update path to selftest.m4.
394
db6878ac
SM
3952020-03-12 Simon Marchi <simon.marchi@efficios.com>
396
397 * configure.ac: Don't source bfd/development.sh.
398 * common.m4: Source bfd/development.sh.
399 * configure: Re-generate.
400
4d696a5c
SM
4012020-03-12 Simon Marchi <simon.marchi@efficios.com>
402
403 * configure: Re-generate.
404
a0761e34
SM
4052020-03-11 Simon Marchi <simon.marchi@efficios.com>
406
407 * configure: Re-generate.
408 * warning.m4: Enable -Wmissing-prototypes.
409
e63ee24f
TT
4102020-03-08 Tom Tromey <tom@tromey.com>
411
412 * gdb_binary_search.h: Fix two typos.
413
20ea4a60
AB
4142020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * .dir-locals.el: New file.
417
3d1e5a43
VP
4182020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
419
420 * configure.ac: Added call development.sh.
421 * configure: Regenerate.
422
842806cb
TBA
4232020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
424
425 * .gitattributes: New file.
426
89725b0d
SM
4272020-03-03 Simon Marchi <simon.marchi@efficios.com>
428
429 * Makefile.in: Re-generate.
430
d7592e97
SDJ
4312020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
432
433 * gdb-dlfcn.h (gdb_dlopen): Update comment.
434
9f1528a1
AB
4352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * configure: Regenerate.
438
1a627e7e
TT
4392020-02-14 Tom Tromey <tom@tromey.com>
440
441 * common-defs.h: Change path to gnulib/config.h.
442
06b3c5bd
SM
4432020-02-13 Simon Marchi <simon.marchi@efficios.com>
444
445 * Makefile.am: Rename source files from .c to .cc.
446 (CC, CFLAGS): Don't override.
447 (AM_CFLAGS): Rename to ...
448 (AM_CXXFLAGS): ... this.
449 * Makefile.in: Re-generate.
450 * %.c: Rename to %.cc.
451
898e7f60
SM
4522020-02-11 Simon Marchi <simon.marchi@efficios.com>
453
454 * configure: Re-generate.
455
8ddd8e0e
SM
4562020-02-11 Simon Marchi <simon.marchi@efficios.com>
457
458 * warning.m4: Add -Wstrict-null-sentinel.
459 * configure: Re-generate.
460
58df732b
SM
4612020-02-11 Simon Marchi <simon.marchi@efficios.com>
462
463 * warning.m4: Move here, from gdb/warning.m4.
464 * acinclude.m4: Update warning.m4 path.
465 * Makefile.in: Re-generate.
466
629c2962
SM
4672020-02-11 Simon Marchi <simon.marchi@efficios.com>
468
469 * acinclude.m4: Include ../gdb/warning.m4.
470 * configure.ac: Use AM_GDB_WARNINGS.
471 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
472 * Makefile.in: Re-generate.
473 * configure: Re-generate.
474
85f0dd3c
TV
4752020-02-10 Tom de Vries <tdevries@suse.de>
476
477 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
478
43198d20
CB
4792020-01-24 Christian Biesinger <cbiesinger@google.com>
480
481 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
482 version of pthread_setname_np.
483
67b10306
PA
4842020-01-17 Pedro Alves <palves@redhat.com>
485
486 * Makefile.am: Append CXX_DIALECT to CXX.
487 * Makefile.in: Regenerate.
488
3684d331
PA
4892020-01-17 Pedro Alves <palves@redhat.com>
490
491 * configure.ac: Generate config.h instead of support-config.h.
492 * common-defs.h: Include <gdbsupport/config.h> instead of
493 <gdbsupport/support-config.h>.
494 * Makefile.in: Regenerate.
495 * configure: Regenerate.
496
0454ef42
TT
4972020-01-14 Tom Tromey <tom@tromey.com>
498
499 * Makefile.in: Rebuild.
500 * Makefile.am (check-defines): New target.
501 * check-defines.el: New file.
502
05ea2a05
TT
5032020-01-14 Tom Tromey <tom@tromey.com>
504
505 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
506 Rebuild.
507 * common.m4 (GDB_AC_COMMON): Move many checks from
508 gdb/configure.ac.
509 * acinclude.m4: Include bfd.m4, ptrace.m4.
510
01027315
TT
5112020-01-14 Tom Tromey <tom@tromey.com>
512
513 * common-defs.h: Add GDBSERVER case. Update includes.
514 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
515 Makefile.am, Makefile.in, README: New files.
516 * Moved from ../gdb/gdbsupport/
This page took 0.097973 seconds and 4 git commands to generate.