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