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