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