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