4cac86fbe49746669bad6566a941dca04382b6c5
[deliverable/binutils-gdb.git] / gdbsupport / ChangeLog
1 2021-01-06 Mike Frysinger <vapier@gentoo.org>
2
3 * common-utils.h (align_up): Fix typo in header comment.
4
5 2021-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
13 2020-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
24 2020-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
30 2020-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
35 2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * tdesc.cc (print_xml_feature::visit): Print enum fields using
38 'evalue' syntax.
39
40 2020-12-01 Chungyi Chi <demonic@csie.io>
41
42 * tdesc.cc (print_xml_feature::visit): Print enum size attribute.
43
44 2020-11-20 Tom Tromey <tromey@adacore.com>
45
46 * thread-pool.cc (thread_pool::set_thread_count): Ignore system
47 errors.
48
49 2020-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
55 2020-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
60 2020-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
71 2020-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
80 2020-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
86 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK.
89
90 2020-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
96 2020-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
102 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * configure: Re-generate.
105 * ptrace.m4: Re-indent.
106
107 2020-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
113 2020-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
119 2020-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
126 2020-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
132 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 * tdesc.h (allocate_target_description): Update return type.
135
136 2020-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
143 2020-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
152 2020-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
157 2020-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
165 2020-10-01 Kamil Rytarowski <n54@gmx.com>
166
167 * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
168
169 2020-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
174 2020-09-24 Simon Marchi <simon.marchi@efficios.com>
175
176 * event-loop.c (struct file_handler): Remove typedef, re-format.
177
178 2020-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
183 2020-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
206 2020-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
213 2020-09-10 Kamil Rytarowski <n54@gmx.com>
214
215 * eintr.h: New file.
216
217 2020-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
223 2020-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
231 2020-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
237 2020-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
243 2020-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
249 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
250
251 * tdesc.h (class print_xml_feature) <add_line>: Add
252 ATTRIBUTE_PRINTF.
253
254 2020-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
267 2020-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
276 2020-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
281 2020-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
287 2020-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
293 2020-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
298 2020-05-14 Kevin Buettner <kevinb@redhat.com>
299
300 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
301
302 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
303
304 * common-regcache.h (regcache_read_pc_protected): New function
305 declaration.
306
307 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
310
311 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * common-defs.h: Include cstdlib.h.
314
315 2020-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
324 2020-04-13 Tom Tromey <tom@tromey.com>
325
326 * event-loop.c: Move comment. Remove obsolete comment.
327
328 2020-04-13 Tom Tromey <tom@tromey.com>
329
330 * event-loop.h: Move from ../gdb/.
331 * event-loop.cc: Move from ../gdb/.
332
333 2020-04-13 Tom Tromey <tom@tromey.com>
334
335 * errors.h (flush_streams): Declare.
336
337 2020-04-13 Tom Tromey <tom@tromey.com>
338
339 * gdb_select.h: Move from ../gdb/.
340
341 2020-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
347 2020-03-31 Tom Tromey <tromey@adacore.com>
348
349 * btrace-common.cc (btrace_data_append): Conditionally call
350 memcpy.
351
352 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * create-version.sh: Resolve issues highlighted by shellcheck.
355
356 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
357
358 * config.in: Re-generate.
359 * configure: Re-generate.
360
361 2020-03-17 Kamil Rytarowski <n54@gmx.com>
362
363 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
364
365 2020-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
371 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
372
373 * selftest.m4: Moved from gdb/.
374 * acinclude.m4: Update path to selftest.m4.
375
376 2020-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
382 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
383
384 * configure: Re-generate.
385
386 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
387
388 * configure: Re-generate.
389 * warning.m4: Enable -Wmissing-prototypes.
390
391 2020-03-08 Tom Tromey <tom@tromey.com>
392
393 * gdb_binary_search.h: Fix two typos.
394
395 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * .dir-locals.el: New file.
398
399 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
400
401 * configure.ac: Added call development.sh.
402 * configure: Regenerate.
403
404 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
405
406 * .gitattributes: New file.
407
408 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
409
410 * Makefile.in: Re-generate.
411
412 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
413
414 * gdb-dlfcn.h (gdb_dlopen): Update comment.
415
416 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * configure: Regenerate.
419
420 2020-02-14 Tom Tromey <tom@tromey.com>
421
422 * common-defs.h: Change path to gnulib/config.h.
423
424 2020-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
433 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
434
435 * configure: Re-generate.
436
437 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
438
439 * warning.m4: Add -Wstrict-null-sentinel.
440 * configure: Re-generate.
441
442 2020-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
448 2020-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
456 2020-02-10 Tom de Vries <tdevries@suse.de>
457
458 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
459
460 2020-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
465 2020-01-17 Pedro Alves <palves@redhat.com>
466
467 * Makefile.am: Append CXX_DIALECT to CXX.
468 * Makefile.in: Regenerate.
469
470 2020-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
478 2020-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
484 2020-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
492 2020-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/
This page took 0.041266 seconds and 3 git commands to generate.