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