4cf41fe0bc7cd1a810bfbea042337d14dfd798a0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
2
3 PR tui/26973
4 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
5 static locator win info.
6
7 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
8
9 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
10 program.
11
12 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
15 is always initialized.
16
17 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18
19 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
20 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
21
22 2020-11-25 Tom Tromey <tom@tromey.com>
23
24 * eval.c (evaluate_subexp_standard): Remove unnecessary
25 variables.
26
27 2020-11-25 Tom Tromey <tom@tromey.com>
28
29 * d-lang.c: Include parser-defs.h.
30 * rust-lang.c: Include parser-defs.h.
31 * c-lang.h: Do not include parser-defs.h.
32
33 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * regcache.h (struct cached_reg): Remove typedef.
36
37 2020-11-24 Joel Brobecker <brobecker@adacore.com>
38
39 * README: Fix the URL of the MPFR library.
40
41 2020-11-24 Joel Brobecker <brobecker@adacore.com>
42
43 * README: Document the --with-libgmp-prefix configure option.
44
45 2020-11-24 Joel Brobecker <brobecker@adacore.com>
46
47 * NEWS: Add entry documenting support for DWARF-based fixed
48 point types.
49
50 2020-11-24 Joel Brobecker <brobecker@adacore.com>
51
52 * NEWS: Document that building GDB now requires GMP.
53
54 2020-11-24 Joel Brobecker <brobecker@adacore.com>
55
56 * typeprint.c (print_type_scalar): Add handling of
57 TYPE_CODE_FIXED_POINT.
58
59 2020-11-24 Joel Brobecker <brobecker@adacore.com>
60
61 * valarith.c (fixed_point_binop): Replace the
62 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
63 users accordingly.
64
65 2020-11-24 Joel Brobecker <brobecker@adacore.com>
66
67 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
68 replacing fixed_point_scaling_factor. All callers updated
69 throughout this project.
70 (fixed_point_scaling_factor): Delete declaration.
71 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
72 fixed_point_scaling_factor. Adjust implementation accordingly.
73
74 2020-11-24 Joel Brobecker <brobecker@adacore.com>
75
76 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
77 replacing the fixed_point_type_base_type function. All callers
78 updated throughout this project.
79 (fixed_point_type_base_type): Remove declaration.
80 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
81 fixed_point_type_base_type. Adjust implementation accordingly.
82
83 2020-11-24 Joel Brobecker <brobecker@adacore.com>
84
85 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
86 New methods.
87 (INIT_FIXED_POINT_SPECIFIC): Adjust.
88 (TYPE_FIXED_POINT_INFO): Delete macro.
89 (allocate_fixed_point_type_info): Change return type to void.
90 * gdbtypes.c (copy_type_recursive): Replace the use of
91 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
92 (fixed_point_scaling_factor): Likewise.
93 (allocate_fixed_point_type_info): Change return type to void.
94 Adjust implementation accordingly.
95 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
96 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
97
98 2020-11-24 Joel Brobecker <brobecker@adacore.com>
99
100 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
101 into one single gdb::array_view parameter.
102 (gdb_mpz::write): Likewise.
103 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
104 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
105 into one single gdb::array_view parameter.
106 Adjust implementation accordingly.
107 (gdb_mpz::write): Likewise.
108 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
109 * unittests/gmp-utils-selftests.c: Adapt following changes above.
110 * valarith.c, valops.c, valprint.c, value.c: Likewise.
111
112 2020-11-24 Joel Brobecker <brobecker@adacore.com>
113
114 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
115 Change return type to std::string. Update all callers.
116 * gmp-utils.c (gmp_string_printf): Likewise.
117
118 2020-11-24 Joel Brobecker <brobecker@adacore.com>
119
120 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
121 instead of mpq_set_ui to initialize our GMP rational.
122
123 2020-11-23 Tom de Vries <tdevries@suse.de>
124
125 * debuginfod-support.c (debuginfod_source_query)
126 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
127
128 2020-11-21 Tom Tromey <tom@tromey.com>
129
130 * breakpoint.c (watchpoint_exp_is_const): Return bool.
131
132 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
135 Pass 2.0 to pow.
136 (gdb_mpz_write_all_from_small): Likewise.
137
138 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
141 of abs.
142
143 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
144
145 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
146 ctf_arc_open_by_name.
147
148 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
149
150 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
151 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
152
153 2020-11-20 Pedro Alves <pedro@palves.net>
154
155 * language.c (language_arch_info::lookup_primitive_type): Use
156 gdb::function_view instead of gdb::function.
157 (template language_lookup_primitive_type): Rename to ...
158 (language_lookup_primitive_type_1): ... this, and make static.
159 (language_lookup_primitive_type(const struct language_defn *,
160 struct gdbarch *, const char *): Make non-template.
161 (language_lookup_primitive_type(const struct language_defn *,
162 struct gdbarch *, std::function<bool (struct type *)>): Make
163 non-template and use gdb::function_view.
164 * language.h (language_arch_info::lookup_primitive_type): Use
165 gdb::function_view instead of std::function.
166 (language_lookup_primitive_type): No longer template.
167 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
168 lambda instead of a std::function.
169
170 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
171
172 PR tdep/26916
173 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
174 and STOCFH.
175
176 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
179
180 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
183 in `loop_cb` parameter.
184 * gdbarch.c: Re-generate.
185 * gdbarch.h: Re-generate.
186 * arch-utils.c (default_read_core_file_mappings): Remove `other`
187 parameter.
188 * arch-utils.h (default_read_core_file_mappings): Likewise.
189 * corelow.c (core_target::build_file_mappings): Likewise.
190 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
191 (linux_core_info_proc_mappings): Likewise.
192
193 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
196 * NEWS: Mention new options.
197 * f-array-walker.h: New file.
198 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
199 (repack_array_slices): New static global.
200 (show_repack_array_slices): New function.
201 (fortran_array_slicing_debug): New static global.
202 (show_fortran_array_slicing_debug): New function.
203 (value_f90_subarray): Delete.
204 (skip_undetermined_arglist): Delete.
205 (class fortran_array_repacker_base_impl): New class.
206 (class fortran_lazy_array_repacker_impl): New class.
207 (class fortran_array_repacker_impl): New class.
208 (fortran_value_subarray): Complete rewrite.
209 (set_fortran_list): New static global.
210 (show_fortran_list): Likewise.
211 (_initialize_f_language): Register new commands.
212 (fortran_adjust_dynamic_array_base_address_hack): New function.
213 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
214 Declare.
215 * f-valprint.c: Include 'f-array-walker.h'.
216 (class fortran_array_printer_impl): New class.
217 (f77_print_array_1): Delete.
218 (f77_print_array): Delete.
219 (fortran_print_array): New.
220 (f_value_print_inner): Update to call fortran_print_array.
221 * gdbtypes.c: Include 'f-lang.h'.
222 (resolve_dynamic_type_internal): Call
223 fortran_adjust_dynamic_array_base_address_hack.
224
225 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * breakpoint.c (struct watch_options): New struct.
228 (watch_option_defs): New static global.
229 (make_watch_options_def_group): New function.
230 (watch_maybe_just_location): Convert option parsing.
231 (watch_command_completer): New function.
232 (_initialize_breakpoint): Build help text using options mechanism.
233
234 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
237 (watch_command_1): Update parameter types. Convert locals to
238 bool.
239 (watch_command_wrapper): Change parameter type.
240 (watch_maybe_just_location): Change locals to bool.
241 (rwatch_command_wrapper): Update parameter type.
242 (awatch_command_wrapper): Update parameter type.
243 * breakpoint.h (watch_command_wrapper): Change parameter type.
244 (rwatch_command_wrapper): Update parameter type.
245 (awatch_command_wrapper): Update parameter type.
246 * eval.c (fetch_subexp_value): Change parameter type.
247 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
248 'false' not '0'.
249 * value.h (fetch_subexp_value): Change parameter type in
250 declaration.
251
252 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
255 skip_spaces.
256
257 2020-11-18 Keith Seitz <keiths@redhat.com>
258
259 * linux-tdep.c (dump_note_entry_p): Return true instead of
260 checking `filename'.
261
262 2020-11-18 Tom de Vries <tdevries@suse.de>
263
264 * debuginfod-support.c (debuginfod_source_query)
265 (debuginfod_debuginfo_query): Also do early exit if
266 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
267
268 2020-11-18 Tom de Vries <tdevries@suse.de>
269
270 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
271 warning.
272
273 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * gdbtypes.h (get_array_bounds): Return bool, adjust some
276 callers. Move doc here.
277 * gdbtypes.c (get_array_bounds): Return bool
278
279 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
282 assert.
283 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
284 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
285 case to the default.
286
287 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * printcmd.c: Include 'safe-ctype.c'.
290 (skip_over_slash_fmt): New function.
291 (print_command_completer): Call skip_over_slash_fmt.
292 (display_and_x_command_completer): New function.
293 (_initialize_printcmd): Add command completion for 'x' and
294 'display'.
295
296 2020-11-16 Pedro Alves <pedro@palves.net>
297
298 * frame.c (get_prev_frame): Move get_frame_id call from here ...
299 (get_prev_frame_always_1): ... to here.
300 * inline-frame.c (inline_frame_this_id): Mention
301 get_prev_frame_always_1 in comment.
302
303 2020-11-15 Joel Brobecker <brobecker@adacore.com>
304
305 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
306 handling.
307 (value_less): Add fixed-point handling.
308
309 2020-11-15 Joel Brobecker <brobecker@adacore.com>
310
311 * eval.c (binop_promote): Add fixed-point type handling.
312 * valarith.c (fixed_point_binop): New function.
313 (scalar_binop): Add fixed-point type handling.
314 (value_neg): Add fixed-point type handling.
315 * valops.c (value_cast_to_fixed_point): New function.
316 (value_cast): Add fixed-point type handling.
317
318 2020-11-15 Joel Brobecker <brobecker@adacore.com>
319
320 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
321 range types.
322 * c-typeprint.c (c_type_print_varspec_prefix)
323 (c_type_print_varspec_suffix, c_type_print_base_1): Add
324 TYPE_CODE_FIXED_POINT handling.
325 * p-typeprint.c (pascal_type_print_varspec_prefix)
326 (pascal_type_print_varspec_suffix): Likewise.
327 * typeprint.c (print_type_fixed_point): New function.
328 * typeprint.h (print_type_fixed_point): Add declaration.
329
330 2020-11-15 Joel Brobecker <brobecker@adacore.com>
331
332 * printcmd.c (print_scalar_formatted): Add fixed-point type
333 handling when options->format is set.
334
335 2020-11-15 Joel Brobecker <brobecker@adacore.com>
336
337 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
338 * dwarf2/read.c (get_dwarf2_rational_constant)
339 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
340 (has_zero_over_zero_small_attribute): New functions.
341 read_base_type, set_die_type): Add fixed-point type handling.
342 * gdb-gdb.py.in: Add fixed-point type handling.
343 * gdbtypes.c: #include "gmp-utils.h".
344 (create_range_type, set_type_code): Add fixed-point type handling.
345 (init_fixed_point_type): New function.
346 (is_integral_type, is_scalar_type): Add fixed-point type handling.
347 (print_fixed_point_type_info): New function.
348 (recursive_dump_type, copy_type_recursive): Add fixed-point type
349 handling.
350 (fixed_point_type_storage): New typedef.
351 (fixed_point_objfile_key): New static global.
352 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
353 (fixed_point_type_base_type, fixed_point_scaling_factor): New
354 functions.
355 * gdbtypes.h: #include "gmp-utils.h".
356 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
357 (union type_specific) <fixed_point_info>: New field.
358 (struct fixed_point_type_info): New struct.
359 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
360 (init_fixed_point_type, is_fixed_point_type)
361 (fixed_point_type_base_type, fixed_point_scaling_factor)
362 (allocate_fixed_point_type_info): Add declarations.
363 * valprint.c (generic_val_print_fixed_point): New function.
364 (generic_value_print): Add fixed-point type handling.
365 * value.c (value_as_address, unpack_long): Add fixed-point type
366 handling.
367
368 2020-11-15 Joel Brobecker <brobecker@adacore.com>
369
370 * utils.h (uinteger_pow): Add declaration.
371 * utils.c (uinteger_pow): Moved here (without changes)...
372 * valarith.c (uinteger_pow): ... from here.
373
374 2020-11-15 Joel Brobecker <brobecker@adacore.com>
375
376 * gmp-utils.h, gmp-utils.c: New file.
377 * unittests/gmp-utils-selftests.c: New file.
378 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
379 unittests/gmp-utils-selftests.c.
380 (COMMON_SFILES) Add gmp-utils.c.
381 (HFILES_NO_SRCDIR): Add gmp-utils.h.
382
383 2020-11-15 Joel Brobecker <brobecker@adacore.com>
384
385 * configure.ac: Generate an error if a usable GMP library
386 could not be found.
387 * configure: Regenerate.
388
389 2020-11-15 Joel Brobecker <brobecker@adacore.com>
390
391 * configure.ac: Add support for --with-libgmp-prefix.
392 * Makefile.in (LIBGMP): New variable.
393 (CLIBS): Include $(LIBGMP).
394 * configure, config.in: Regenerate
395
396 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 PR cli/26879
399 * f-exp.y (COMPLETE): New token.
400 (exp): Two new rules for tab-completion.
401 (saw_name_at_eof): New static global.
402 (last_was_structop): Likewise.
403 (yylex): Set new variables, and return COMPLETE token at the end
404 of the input stream in some cases.
405
406 2020-11-14 Tom Tromey <tom@tromey.com>
407
408 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
409
410 2020-11-14 Tom Tromey <tom@tromey.com>
411
412 * opencl-lang.c (opencl_component_ref): Make "comps" const.
413
414 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
417
418 2020-11-13 Tom Tromey <tom@tromey.com>
419
420 * c-lang.c (convert_ucn, convert_octal, convert_hex)
421 (convert_escape, parse_one_string): Constify.
422
423 2020-11-13 Keith Seitz <keiths@redhat.com>
424
425 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
426 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
427 outside of ELF segments" warning for debugin
428
429 2020-11-13 Keith Seitz <keiths@redhat.com>
430
431 PR gdb/23034
432 * elfread.c (elf_symfile_segments): Output a BFD file name
433 for the "Loadable section ... outside of ELF segments" warning.
434
435 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
436
437 PR gdb/26835
438 * arm-tdep.c (class arm_instruction_reader): New.
439 (target_arm_instruction_reader): New.
440 (arm_analyze_prologue): Add instruction reader parameter and use
441 it. Use arm_expand_immediate.
442 (class target_arm_instruction_reader): Adjust.
443 (arm_skip_prologue): Adjust.
444 (arm_expand_immediate): New.
445 (arm_scan_prologue): Adjust.
446 (arm_analyze_prologue_test): New.
447 (class test_arm_instruction_reader): New.
448
449 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * f-lang.c (fortran_argument_convert): Add declaration. Add
452 header comment, taken from f-lang.h. Make static.
453 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
454 (fortran_argument_convert): Delete declaration.
455
456 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * ada-exp.y (find_primitive_type): Make parameter const.
459 * ada-lang.c (enum ada_primitive_types): Delete.
460 (ada_language::language_arch_info): Update.
461 * c-lang.c (enum c_primitive_types): Delete.
462 (c_language_arch_info): Update.
463 (enum cplus_primitive_types): Delete.
464 (cplus_language::language_arch_info): Update.
465 * d-lang.c (enum d_primitive_types): Delete.
466 (d_language::language_arch_info): Update.
467 * f-lang.c (enum f_primitive_types): Delete.
468 (f_language::language_arch_info): Update.
469 * go-lang.c (enum go_primitive_types): Delete.
470 (go_language::language_arch_info): Update.
471 * language.c (auto_or_unknown_language::language_arch_info):
472 Update.
473 (language_gdbarch_post_init): Use obstack_new, use array indexing.
474 (language_string_char_type): Add header comment, call function in
475 language_arch_info.
476 (language_bool_type): Likewise
477 (language_arch_info::bool_type): Define.
478 (language_lookup_primitive_type_1): Delete.
479 (language_lookup_primitive_type): Rewrite as a templated function
480 to call function in language_arch_info, then instantiate twice.
481 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
482 (language_arch_info::lookup_primitive_type_and_symbol): Define.
483 (language_arch_info::lookup_primitive_type): Define twice with
484 different signatures.
485 (language_arch_info::lookup_primitive_type_as_symbol): Define.
486 (language_lookup_primitive_type_as_symbol): Rewrite to call a
487 member function in language_arch_info.
488 * language.h (language_arch_info): Complete rewrite.
489 (language_lookup_primitive_type): Make templated.
490 * m2-lang.c (enum m2_primitive_types): Delete.
491 (m2_language::language_arch_info): Update.
492 * opencl-lang.c (OCL_P_TYPE): Delete.
493 (enum opencl_primitive_types): Delete.
494 (opencl_type_data): Delete.
495 (builtin_opencl_type): Delete.
496 (lookup_opencl_vector_type): Update.
497 (opencl_language::language_arch_info): Update, lots of content
498 moved from...
499 (build_opencl_types): ...here. This function is now deleted.
500 (_initialize_opencl_language): Delete.
501 * p-lang.c (enum pascal_primitive_types): Delete.
502 (pascal_language::language_arch_info): Update.
503 * rust-lang.c (enum rust_primitive_types): Delete.
504 (rust_language::language_arch_info): Update.
505
506 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
509 dwarf2_queue_guard.
510
511 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
514 comment.
515
516 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * dwarf2/read.c (dwarf_read_debug_printf,
519 dwarf_read_debug_printf_v): New macros, use throughout the file.
520
521 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
522
523 * arc-linux-tdep.c (collect_register): Populate "eret" by
524 "pc" value from the regcache when asked for "pc" value.
525
526 2020-11-12 Tom Tromey <tom@tromey.com>
527
528 PR rust/26799:
529 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
530 exist.
531
532 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * features/Makefile (XMLTOC): Add rx.xml.
535 (FEATURE_XMLFILES): Remove rx.xml.
536 (FEATURE_CFILES rule): Pass '-single-feature' flag.
537 * features/rx.c: Regenerate.
538 * features/rx.xml: Wrap in `target` tags, and reindent.
539 * target-descriptions.c (struct maint_print_c_tdesc_options): New
540 structure.
541 (maint_print_c_tdesc_opt_def): New typedef.
542 (maint_print_c_tdesc_opt_defs): New static global.
543 (make_maint_print_c_tdesc_options_def_group): New function.
544 (maint_print_c_tdesc_cmd): Make use of command line flags, only
545 print single feature C file for target descriptions containing a
546 single feature.
547 (maint_print_c_tdesc_cmd_completer): New function.
548 (_initialize_target_descriptions): Update call to register command
549 completer, and include command line flag in help text.
550
551 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
554 numbers.
555 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
556 enum values.
557
558 2020-11-10 Tom Tromey <tom@tromey.com>
559
560 * value.h (internalvar_name): Update.
561 * value.c (internalvar_name): Make return type const.
562
563 2020-11-10 Tom Tromey <tom@tromey.com>
564
565 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
566 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
567 const.
568
569 2020-11-10 Tom Tromey <tom@tromey.com>
570
571 * objc-lang.h (value_nsstring): Update.
572 * objc-lang.c (value_nsstring): Make "ptr" const.
573
574 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * expprint.c (print_subexp_funcall): Increment expression position
577 after reading argument count.
578 * f-lang.c (print_subexp_f): Skip over opcode before calling
579 common function.
580 (dump_subexp_body_f): Likewise.
581
582 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
583
584 PR python/26832
585 * configure: Regenerate.
586 * configure.ac: Check for python modules ctypes instead of
587 itertools.
588
589 2020-11-06 Pedro Alves <pedro@palves.net>
590
591 * macroexp.c (struct macro_buffer): Split in two classes. Add
592 uses adjusted.
593 (struct shared_macro_buffer): New, factored out from struct
594 macro_buffer.
595 (struct growable_macro_buffer): New, factored out from struct
596 macro_buffer.
597 (set_token, get_comment, get_identifier, get_pp_number)
598 (get_character_constant, get_string_literal, get_punctuator)
599 (get_next_token_for_substitution): Constify parameters.
600 (substitute_args): Constify locals.
601
602 2020-11-05 Tom Tromey <tom@tromey.com>
603
604 * dwarf2/read.c (read_cutu_die_from_dwo)
605 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
606 (build_type_psymtabs_1): Update.
607 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
608 parameter.
609 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
610 Don't read section. Add assert.
611
612 2020-11-04 Tom Tromey <tromey@adacore.com>
613
614 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
615
616 2020-11-04 Tom Tromey <tromey@adacore.com>
617
618 * ada-typeprint.c (ada_print_type): Handle __T types.
619
620 2020-11-04 Tom Tromey <tromey@adacore.com>
621
622 * dwarf2/read.c (add_partial_symbol, process_die):
623 Handle DW_TAG_array_type.
624 (is_type_tag_for_partial): Add "lang" parameter.
625 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
626
627 2020-11-04 Tom Tromey <tromey@adacore.com>
628
629 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
630
631 2020-11-04 Tom Tromey <tromey@adacore.com>
632
633 * dwarf2/read.c (read_array_type): Only apply stride to innermost
634 array.
635
636 2020-11-04 Tom Tromey <tromey@adacore.com>
637
638 * gdbtypes.c (update_static_array_size): Handle bit stride.
639
640 2020-11-04 Tom Tromey <tromey@adacore.com>
641
642 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
643
644 2020-11-04 Tom Tromey <tromey@adacore.com>
645
646 * ada-lang.c (ada_is_any_packed_array_type): New function.
647 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
648
649 2020-11-04 Tom Tromey <tromey@adacore.com>
650
651 * dwarf2/read.c (recognize_bound_expression)
652 (quirk_ada_thick_pointer): New functions.
653 (read_array_type): Call quirk_ada_thick_pointer.
654 (set_die_type): Add "skip_data_location" parameter.
655 (quirk_ada_thick_pointer): New function.
656 (process_structure_scope): Call quirk_ada_thick_pointer.
657 * ada-lang.c (ada_is_unconstrained_packed_array_type)
658 (decode_packed_array_bitsize): Handle thick pointers without
659 parallel types.
660 (ada_is_gnat_encoded_packed_array_type): Rename from
661 ada_is_packed_array_type.
662 (ada_is_constrained_packed_array_type): Update.
663 * ada-valprint.c (ada_val_print_gnat_array): Remove.
664 (ada_value_print_1): Use ada_get_decoded_value.
665
666 2020-11-04 Tom Tromey <tromey@adacore.com>
667
668 * ada-lang.c (recursively_update_array_bitsize): New function.
669 (decode_constrained_packed_array_type): Call it.
670
671 2020-11-04 Tom Tromey <tromey@adacore.com>
672
673 * ada-lang.c (to_fixed_array_type): Error if
674 decode_constrained_packed_array_type returns NULL.
675
676 2020-11-04 Tom Tromey <tromey@adacore.com>
677
678 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
679
680 2020-11-02 Tom Tromey <tromey@adacore.com>
681
682 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
683 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
684 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
685 * amd64-ravenscar-thread.c: New file.
686 * amd64-ravenscar-thread.h: New file.
687 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
688 * configure.tgt (amd64_tobjs): Add ravenscar objects.
689
690 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * main.c (execute_cmdargs): New function.
693 (captured_main_1): Make use of execute_cmdargs.
694
695 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * NEWS: Mention changes to config file search path.
698 * main.c
699
700 2020-11-02 Tom Tromey <tromey@adacore.com>
701
702 * python/python.c: Consolidate two HAVE_PYTHON blocks.
703 (python_GdbModuleDef): Move earlier. Now static.
704 (do_start_initialization): Consolidate some IS_PY3K blocks.
705
706 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
707
708 * aarch64-linux-tdep.c: Fix indentation.
709 * aarch64-ravenscar-thread.c: Fix indentation.
710 * aarch64-tdep.c: Fix indentation.
711 * aarch64-tdep.h: Fix indentation.
712 * ada-lang.c: Fix indentation.
713 * ada-lang.h: Fix indentation.
714 * ada-tasks.c: Fix indentation.
715 * ada-typeprint.c: Fix indentation.
716 * ada-valprint.c: Fix indentation.
717 * ada-varobj.c: Fix indentation.
718 * addrmap.c: Fix indentation.
719 * addrmap.h: Fix indentation.
720 * agent.c: Fix indentation.
721 * aix-thread.c: Fix indentation.
722 * alpha-bsd-nat.c: Fix indentation.
723 * alpha-linux-tdep.c: Fix indentation.
724 * alpha-mdebug-tdep.c: Fix indentation.
725 * alpha-nbsd-tdep.c: Fix indentation.
726 * alpha-obsd-tdep.c: Fix indentation.
727 * alpha-tdep.c: Fix indentation.
728 * amd64-bsd-nat.c: Fix indentation.
729 * amd64-darwin-tdep.c: Fix indentation.
730 * amd64-linux-nat.c: Fix indentation.
731 * amd64-linux-tdep.c: Fix indentation.
732 * amd64-nat.c: Fix indentation.
733 * amd64-obsd-tdep.c: Fix indentation.
734 * amd64-tdep.c: Fix indentation.
735 * amd64-windows-tdep.c: Fix indentation.
736 * annotate.c: Fix indentation.
737 * arc-tdep.c: Fix indentation.
738 * arch-utils.c: Fix indentation.
739 * arch/arm-get-next-pcs.c: Fix indentation.
740 * arch/arm.c: Fix indentation.
741 * arm-linux-nat.c: Fix indentation.
742 * arm-linux-tdep.c: Fix indentation.
743 * arm-nbsd-tdep.c: Fix indentation.
744 * arm-pikeos-tdep.c: Fix indentation.
745 * arm-tdep.c: Fix indentation.
746 * arm-tdep.h: Fix indentation.
747 * arm-wince-tdep.c: Fix indentation.
748 * auto-load.c: Fix indentation.
749 * auxv.c: Fix indentation.
750 * avr-tdep.c: Fix indentation.
751 * ax-gdb.c: Fix indentation.
752 * ax-general.c: Fix indentation.
753 * bfin-linux-tdep.c: Fix indentation.
754 * block.c: Fix indentation.
755 * block.h: Fix indentation.
756 * blockframe.c: Fix indentation.
757 * bpf-tdep.c: Fix indentation.
758 * break-catch-sig.c: Fix indentation.
759 * break-catch-syscall.c: Fix indentation.
760 * break-catch-throw.c: Fix indentation.
761 * breakpoint.c: Fix indentation.
762 * breakpoint.h: Fix indentation.
763 * bsd-uthread.c: Fix indentation.
764 * btrace.c: Fix indentation.
765 * build-id.c: Fix indentation.
766 * buildsym-legacy.h: Fix indentation.
767 * buildsym.c: Fix indentation.
768 * c-typeprint.c: Fix indentation.
769 * c-valprint.c: Fix indentation.
770 * c-varobj.c: Fix indentation.
771 * charset.c: Fix indentation.
772 * cli/cli-cmds.c: Fix indentation.
773 * cli/cli-decode.c: Fix indentation.
774 * cli/cli-decode.h: Fix indentation.
775 * cli/cli-script.c: Fix indentation.
776 * cli/cli-setshow.c: Fix indentation.
777 * coff-pe-read.c: Fix indentation.
778 * coffread.c: Fix indentation.
779 * compile/compile-cplus-types.c: Fix indentation.
780 * compile/compile-object-load.c: Fix indentation.
781 * compile/compile-object-run.c: Fix indentation.
782 * completer.c: Fix indentation.
783 * corefile.c: Fix indentation.
784 * corelow.c: Fix indentation.
785 * cp-abi.h: Fix indentation.
786 * cp-namespace.c: Fix indentation.
787 * cp-support.c: Fix indentation.
788 * cp-valprint.c: Fix indentation.
789 * cris-linux-tdep.c: Fix indentation.
790 * cris-tdep.c: Fix indentation.
791 * darwin-nat-info.c: Fix indentation.
792 * darwin-nat.c: Fix indentation.
793 * darwin-nat.h: Fix indentation.
794 * dbxread.c: Fix indentation.
795 * dcache.c: Fix indentation.
796 * disasm.c: Fix indentation.
797 * dtrace-probe.c: Fix indentation.
798 * dwarf2/abbrev.c: Fix indentation.
799 * dwarf2/attribute.c: Fix indentation.
800 * dwarf2/expr.c: Fix indentation.
801 * dwarf2/frame.c: Fix indentation.
802 * dwarf2/index-cache.c: Fix indentation.
803 * dwarf2/index-write.c: Fix indentation.
804 * dwarf2/line-header.c: Fix indentation.
805 * dwarf2/loc.c: Fix indentation.
806 * dwarf2/macro.c: Fix indentation.
807 * dwarf2/read.c: Fix indentation.
808 * dwarf2/read.h: Fix indentation.
809 * elfread.c: Fix indentation.
810 * eval.c: Fix indentation.
811 * event-top.c: Fix indentation.
812 * exec.c: Fix indentation.
813 * exec.h: Fix indentation.
814 * expprint.c: Fix indentation.
815 * f-lang.c: Fix indentation.
816 * f-typeprint.c: Fix indentation.
817 * f-valprint.c: Fix indentation.
818 * fbsd-nat.c: Fix indentation.
819 * fbsd-tdep.c: Fix indentation.
820 * findvar.c: Fix indentation.
821 * fork-child.c: Fix indentation.
822 * frame-unwind.c: Fix indentation.
823 * frame-unwind.h: Fix indentation.
824 * frame.c: Fix indentation.
825 * frv-linux-tdep.c: Fix indentation.
826 * frv-tdep.c: Fix indentation.
827 * frv-tdep.h: Fix indentation.
828 * ft32-tdep.c: Fix indentation.
829 * gcore.c: Fix indentation.
830 * gdb_bfd.c: Fix indentation.
831 * gdbarch.sh: Fix indentation.
832 * gdbarch.c: Re-generate
833 * gdbarch.h: Re-generate.
834 * gdbcore.h: Fix indentation.
835 * gdbthread.h: Fix indentation.
836 * gdbtypes.c: Fix indentation.
837 * gdbtypes.h: Fix indentation.
838 * glibc-tdep.c: Fix indentation.
839 * gnu-nat.c: Fix indentation.
840 * gnu-nat.h: Fix indentation.
841 * gnu-v2-abi.c: Fix indentation.
842 * gnu-v3-abi.c: Fix indentation.
843 * go32-nat.c: Fix indentation.
844 * guile/guile-internal.h: Fix indentation.
845 * guile/scm-cmd.c: Fix indentation.
846 * guile/scm-frame.c: Fix indentation.
847 * guile/scm-iterator.c: Fix indentation.
848 * guile/scm-math.c: Fix indentation.
849 * guile/scm-ports.c: Fix indentation.
850 * guile/scm-pretty-print.c: Fix indentation.
851 * guile/scm-value.c: Fix indentation.
852 * h8300-tdep.c: Fix indentation.
853 * hppa-linux-nat.c: Fix indentation.
854 * hppa-linux-tdep.c: Fix indentation.
855 * hppa-nbsd-nat.c: Fix indentation.
856 * hppa-nbsd-tdep.c: Fix indentation.
857 * hppa-obsd-nat.c: Fix indentation.
858 * hppa-tdep.c: Fix indentation.
859 * hppa-tdep.h: Fix indentation.
860 * i386-bsd-nat.c: Fix indentation.
861 * i386-darwin-nat.c: Fix indentation.
862 * i386-darwin-tdep.c: Fix indentation.
863 * i386-dicos-tdep.c: Fix indentation.
864 * i386-gnu-nat.c: Fix indentation.
865 * i386-linux-nat.c: Fix indentation.
866 * i386-linux-tdep.c: Fix indentation.
867 * i386-nto-tdep.c: Fix indentation.
868 * i386-obsd-tdep.c: Fix indentation.
869 * i386-sol2-nat.c: Fix indentation.
870 * i386-tdep.c: Fix indentation.
871 * i386-tdep.h: Fix indentation.
872 * i386-windows-tdep.c: Fix indentation.
873 * i387-tdep.c: Fix indentation.
874 * i387-tdep.h: Fix indentation.
875 * ia64-libunwind-tdep.c: Fix indentation.
876 * ia64-libunwind-tdep.h: Fix indentation.
877 * ia64-linux-nat.c: Fix indentation.
878 * ia64-linux-tdep.c: Fix indentation.
879 * ia64-tdep.c: Fix indentation.
880 * ia64-tdep.h: Fix indentation.
881 * ia64-vms-tdep.c: Fix indentation.
882 * infcall.c: Fix indentation.
883 * infcmd.c: Fix indentation.
884 * inferior.c: Fix indentation.
885 * infrun.c: Fix indentation.
886 * iq2000-tdep.c: Fix indentation.
887 * language.c: Fix indentation.
888 * linespec.c: Fix indentation.
889 * linux-fork.c: Fix indentation.
890 * linux-nat.c: Fix indentation.
891 * linux-tdep.c: Fix indentation.
892 * linux-thread-db.c: Fix indentation.
893 * lm32-tdep.c: Fix indentation.
894 * m2-lang.c: Fix indentation.
895 * m2-typeprint.c: Fix indentation.
896 * m2-valprint.c: Fix indentation.
897 * m32c-tdep.c: Fix indentation.
898 * m32r-linux-tdep.c: Fix indentation.
899 * m32r-tdep.c: Fix indentation.
900 * m68hc11-tdep.c: Fix indentation.
901 * m68k-bsd-nat.c: Fix indentation.
902 * m68k-linux-nat.c: Fix indentation.
903 * m68k-linux-tdep.c: Fix indentation.
904 * m68k-tdep.c: Fix indentation.
905 * machoread.c: Fix indentation.
906 * macrocmd.c: Fix indentation.
907 * macroexp.c: Fix indentation.
908 * macroscope.c: Fix indentation.
909 * macrotab.c: Fix indentation.
910 * macrotab.h: Fix indentation.
911 * main.c: Fix indentation.
912 * mdebugread.c: Fix indentation.
913 * mep-tdep.c: Fix indentation.
914 * mi/mi-cmd-catch.c: Fix indentation.
915 * mi/mi-cmd-disas.c: Fix indentation.
916 * mi/mi-cmd-env.c: Fix indentation.
917 * mi/mi-cmd-stack.c: Fix indentation.
918 * mi/mi-cmd-var.c: Fix indentation.
919 * mi/mi-cmds.c: Fix indentation.
920 * mi/mi-main.c: Fix indentation.
921 * mi/mi-parse.c: Fix indentation.
922 * microblaze-tdep.c: Fix indentation.
923 * minidebug.c: Fix indentation.
924 * minsyms.c: Fix indentation.
925 * mips-linux-nat.c: Fix indentation.
926 * mips-linux-tdep.c: Fix indentation.
927 * mips-nbsd-tdep.c: Fix indentation.
928 * mips-tdep.c: Fix indentation.
929 * mn10300-linux-tdep.c: Fix indentation.
930 * mn10300-tdep.c: Fix indentation.
931 * moxie-tdep.c: Fix indentation.
932 * msp430-tdep.c: Fix indentation.
933 * namespace.h: Fix indentation.
934 * nat/fork-inferior.c: Fix indentation.
935 * nat/gdb_ptrace.h: Fix indentation.
936 * nat/linux-namespaces.c: Fix indentation.
937 * nat/linux-osdata.c: Fix indentation.
938 * nat/netbsd-nat.c: Fix indentation.
939 * nat/x86-dregs.c: Fix indentation.
940 * nbsd-nat.c: Fix indentation.
941 * nbsd-tdep.c: Fix indentation.
942 * nios2-linux-tdep.c: Fix indentation.
943 * nios2-tdep.c: Fix indentation.
944 * nto-procfs.c: Fix indentation.
945 * nto-tdep.c: Fix indentation.
946 * objfiles.c: Fix indentation.
947 * objfiles.h: Fix indentation.
948 * opencl-lang.c: Fix indentation.
949 * or1k-tdep.c: Fix indentation.
950 * osabi.c: Fix indentation.
951 * osabi.h: Fix indentation.
952 * osdata.c: Fix indentation.
953 * p-lang.c: Fix indentation.
954 * p-typeprint.c: Fix indentation.
955 * p-valprint.c: Fix indentation.
956 * parse.c: Fix indentation.
957 * ppc-linux-nat.c: Fix indentation.
958 * ppc-linux-tdep.c: Fix indentation.
959 * ppc-nbsd-nat.c: Fix indentation.
960 * ppc-nbsd-tdep.c: Fix indentation.
961 * ppc-obsd-nat.c: Fix indentation.
962 * ppc-ravenscar-thread.c: Fix indentation.
963 * ppc-sysv-tdep.c: Fix indentation.
964 * ppc64-tdep.c: Fix indentation.
965 * printcmd.c: Fix indentation.
966 * proc-api.c: Fix indentation.
967 * producer.c: Fix indentation.
968 * producer.h: Fix indentation.
969 * prologue-value.c: Fix indentation.
970 * prologue-value.h: Fix indentation.
971 * psymtab.c: Fix indentation.
972 * python/py-arch.c: Fix indentation.
973 * python/py-bpevent.c: Fix indentation.
974 * python/py-event.c: Fix indentation.
975 * python/py-event.h: Fix indentation.
976 * python/py-finishbreakpoint.c: Fix indentation.
977 * python/py-frame.c: Fix indentation.
978 * python/py-framefilter.c: Fix indentation.
979 * python/py-inferior.c: Fix indentation.
980 * python/py-infthread.c: Fix indentation.
981 * python/py-objfile.c: Fix indentation.
982 * python/py-prettyprint.c: Fix indentation.
983 * python/py-registers.c: Fix indentation.
984 * python/py-signalevent.c: Fix indentation.
985 * python/py-stopevent.c: Fix indentation.
986 * python/py-stopevent.h: Fix indentation.
987 * python/py-threadevent.c: Fix indentation.
988 * python/py-tui.c: Fix indentation.
989 * python/py-unwind.c: Fix indentation.
990 * python/py-value.c: Fix indentation.
991 * python/py-xmethods.c: Fix indentation.
992 * python/python-internal.h: Fix indentation.
993 * python/python.c: Fix indentation.
994 * ravenscar-thread.c: Fix indentation.
995 * record-btrace.c: Fix indentation.
996 * record-full.c: Fix indentation.
997 * record.c: Fix indentation.
998 * reggroups.c: Fix indentation.
999 * regset.h: Fix indentation.
1000 * remote-fileio.c: Fix indentation.
1001 * remote.c: Fix indentation.
1002 * reverse.c: Fix indentation.
1003 * riscv-linux-tdep.c: Fix indentation.
1004 * riscv-ravenscar-thread.c: Fix indentation.
1005 * riscv-tdep.c: Fix indentation.
1006 * rl78-tdep.c: Fix indentation.
1007 * rs6000-aix-tdep.c: Fix indentation.
1008 * rs6000-lynx178-tdep.c: Fix indentation.
1009 * rs6000-nat.c: Fix indentation.
1010 * rs6000-tdep.c: Fix indentation.
1011 * rust-lang.c: Fix indentation.
1012 * rx-tdep.c: Fix indentation.
1013 * s12z-tdep.c: Fix indentation.
1014 * s390-linux-tdep.c: Fix indentation.
1015 * score-tdep.c: Fix indentation.
1016 * ser-base.c: Fix indentation.
1017 * ser-mingw.c: Fix indentation.
1018 * ser-uds.c: Fix indentation.
1019 * ser-unix.c: Fix indentation.
1020 * serial.c: Fix indentation.
1021 * sh-linux-tdep.c: Fix indentation.
1022 * sh-nbsd-tdep.c: Fix indentation.
1023 * sh-tdep.c: Fix indentation.
1024 * skip.c: Fix indentation.
1025 * sol-thread.c: Fix indentation.
1026 * solib-aix.c: Fix indentation.
1027 * solib-darwin.c: Fix indentation.
1028 * solib-frv.c: Fix indentation.
1029 * solib-svr4.c: Fix indentation.
1030 * solib.c: Fix indentation.
1031 * source.c: Fix indentation.
1032 * sparc-linux-tdep.c: Fix indentation.
1033 * sparc-nbsd-tdep.c: Fix indentation.
1034 * sparc-obsd-tdep.c: Fix indentation.
1035 * sparc-ravenscar-thread.c: Fix indentation.
1036 * sparc-tdep.c: Fix indentation.
1037 * sparc64-linux-tdep.c: Fix indentation.
1038 * sparc64-nbsd-tdep.c: Fix indentation.
1039 * sparc64-obsd-tdep.c: Fix indentation.
1040 * sparc64-tdep.c: Fix indentation.
1041 * stabsread.c: Fix indentation.
1042 * stack.c: Fix indentation.
1043 * stap-probe.c: Fix indentation.
1044 * stubs/ia64vms-stub.c: Fix indentation.
1045 * stubs/m32r-stub.c: Fix indentation.
1046 * stubs/m68k-stub.c: Fix indentation.
1047 * stubs/sh-stub.c: Fix indentation.
1048 * stubs/sparc-stub.c: Fix indentation.
1049 * symfile-mem.c: Fix indentation.
1050 * symfile.c: Fix indentation.
1051 * symfile.h: Fix indentation.
1052 * symmisc.c: Fix indentation.
1053 * symtab.c: Fix indentation.
1054 * symtab.h: Fix indentation.
1055 * target-float.c: Fix indentation.
1056 * target.c: Fix indentation.
1057 * target.h: Fix indentation.
1058 * tic6x-tdep.c: Fix indentation.
1059 * tilegx-linux-tdep.c: Fix indentation.
1060 * tilegx-tdep.c: Fix indentation.
1061 * top.c: Fix indentation.
1062 * tracefile-tfile.c: Fix indentation.
1063 * tracepoint.c: Fix indentation.
1064 * tui/tui-disasm.c: Fix indentation.
1065 * tui/tui-io.c: Fix indentation.
1066 * tui/tui-regs.c: Fix indentation.
1067 * tui/tui-stack.c: Fix indentation.
1068 * tui/tui-win.c: Fix indentation.
1069 * tui/tui-winsource.c: Fix indentation.
1070 * tui/tui.c: Fix indentation.
1071 * typeprint.c: Fix indentation.
1072 * ui-out.h: Fix indentation.
1073 * unittests/copy_bitwise-selftests.c: Fix indentation.
1074 * unittests/memory-map-selftests.c: Fix indentation.
1075 * utils.c: Fix indentation.
1076 * v850-tdep.c: Fix indentation.
1077 * valarith.c: Fix indentation.
1078 * valops.c: Fix indentation.
1079 * valprint.c: Fix indentation.
1080 * valprint.h: Fix indentation.
1081 * value.c: Fix indentation.
1082 * value.h: Fix indentation.
1083 * varobj.c: Fix indentation.
1084 * vax-tdep.c: Fix indentation.
1085 * windows-nat.c: Fix indentation.
1086 * windows-tdep.c: Fix indentation.
1087 * xcoffread.c: Fix indentation.
1088 * xml-syscall.c: Fix indentation.
1089 * xml-tdesc.c: Fix indentation.
1090 * xstormy16-tdep.c: Fix indentation.
1091 * xtensa-config.c: Fix indentation.
1092 * xtensa-linux-nat.c: Fix indentation.
1093 * xtensa-linux-tdep.c: Fix indentation.
1094 * xtensa-tdep.c: Fix indentation.
1095
1096 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1097 Craig Blackmore <craig.blackmore@embecosm.com>
1098
1099 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1100 as an unsigned value.
1101
1102 2020-11-01 Tom Tromey <tom@tromey.com>
1103
1104 * dbxread.c (dbx_end_psymtab): Update.
1105 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1106 (build_type_psymtabs_reader): Update.
1107 * xcoffread.c (xcoff_end_psymtab): Update.
1108 * ctfread.c (scan_partial_symbols): Update.
1109 * psymtab.c (sort_pst_symbols): Remove.
1110 (partial_symtab::end): Rename from end_psymtab_common. Inline
1111 sort_pst_symbols.
1112 * psympriv.h (struct partial_symtab) <end>: New method.
1113 (end_psymtab_common): Don't declare.
1114
1115 2020-11-01 Tom Tromey <tom@tromey.com>
1116
1117 * symmisc.c (count_psyms): New function.
1118 (print_objfile_statistics): Use it.
1119 * psymtab.c (append_psymbol_to_list): Remove.
1120 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1121 * objfiles.h (struct objstats) <n_psyms>: Remove.
1122
1123 2020-11-01 Tom Tromey <tom@tromey.com>
1124
1125 * dbxread.c (dbx_end_psymtab): Update.
1126 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1127 (build_type_psymtabs_reader): Update.
1128 * xcoffread.c (xcoff_end_psymtab): Update.
1129 * ctfread.c (scan_partial_symbols): Update.
1130 * psympriv.h (end_psymtab_common): Update.
1131 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1132 (sort_pst_symbols): Likewise.
1133
1134 2020-11-01 Tom Tromey <tom@tromey.com>
1135
1136 * dbxread.c (dbx_symfile_read): Update.
1137 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1138 * xcoffread.c (xcoff_initial_scan): Update.
1139 * psympriv.h (init_psymbol_list): Don't declare.
1140 * psymtab.c (init_psymbol_list): Remove.
1141
1142 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1143
1144 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1145 gnat_encoded_fixed_type_info. Update all callers.
1146
1147 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1148
1149 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1150 line too long.
1151
1152 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1153
1154 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1155 cast_from_fixed. Update all callers.
1156 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1157 Update all callers.
1158 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1159 Update all callers.
1160 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1161 ada_scaling_factor.
1162 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1163 to print_gnat_encoded_fixed_point_type.
1164 * ada-valprint.c: Likewise.
1165
1166 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1169 (debug_prefixed_printf): Add check of debug_displaced flag.
1170 * linux-nat.c (linux_nat_debug_printf): Add check of
1171 debug_linux_nat flag.
1172
1173 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * infrun.c (infrun_debug_printf_1): Remove.
1176 (displaced_debug_printf_1): Remove.
1177 (stop_all_threads): Use debug_prefixed_printf.
1178 * infrun.h (infrun_debug_printf_1): Remove.
1179 (infrun_debug_printf): Use debug_prefixed_printf.
1180 (displaced_debug_printf_1): Remove.
1181 (displaced_debug_printf): Use debug_prefixed_printf.
1182 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1183 (linux_nat_debug_printf): Use debug_prefixed_printf.
1184
1185 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * configure: Re-generate.
1188 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1189 AC_LANG_PROGRAM.
1190
1191 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * configure: Re-generate.
1194
1195 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * configure: Re-generate.
1198
1199 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * configure: Re-generate.
1202
1203 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * configure: Re-generate.
1206
1207 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * acinclude.m4: Modernize.
1210 * configure: Re-generate.
1211
1212 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 * configure.ac: Modernize.
1215 * configure: Re-generate.
1216
1217 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1220 * configure: Re-generate.
1221 * configure.ac: Remove AM_PROG_CC_STDC.
1222
1223 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1224
1225 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1226 AC_CANONICAL_SYSTEM.
1227 * configure: Re-generate.
1228
1229 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1230
1231 * infrun.h (displaced_debug_printf): New macro. Replace
1232 displaced debug prints throughout to use it.
1233 (displaced_debug_printf_1): New declaration.
1234 (displaced_step_dump_bytes): Return string, remove ui_file
1235 parameter, update all callers.
1236 * infrun.c (displaced_debug_printf_1): New function.
1237 (displaced_step_dump_bytes): Return string, remove ui_file
1238 parameter
1239
1240 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1243
1244 2020-10-30 Tom Tromey <tromey@adacore.com>
1245
1246 * Makefile.in (stamp-init): Depend on config.status.
1247
1248 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1249
1250 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1251
1252 2020-10-30 Pedro Alves <pedro@palves.net>
1253
1254 * thread.c (lookup_selected_frame): Move ...
1255 * frame.c (lookup_selected_frame): ... here.
1256
1257 2020-10-30 Pedro Alves <pedro@palves.net>
1258
1259 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1260 * frame.c
1261 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1262 Use save_selected_frame. Save language as well.
1263 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1264 Use restore_selected_frame, and restore language as well.
1265 (selected_frame_id, selected_frame_level): New.
1266 (selected_frame): Update comments.
1267 (save_selected_frame, restore_selected_frame): New.
1268 (get_selected_frame): Use lookup_selected_frame.
1269 (get_selected_frame_if_set): Delete.
1270 (select_frame): Record selected_frame_level and selected_frame_id.
1271 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1272 fields.
1273 (get_selected_frame): Make 'message' parameter optional.
1274 (get_selected_frame_if_set): Delete declaration.
1275 (select_frame): Update comments.
1276 (save_selected_frame, restore_selected_frame)
1277 (lookup_selected_frame): Declare.
1278 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1279 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1280 New field.
1281 (save_infcall_control_state): Use save_selected_frame.
1282 (restore_selected_frame): Delete.
1283 (restore_infcall_control_state): Use restore_selected_frame.
1284 * stack.c (select_frame_command_core, frame_command_core): Use
1285 get_selected_frame.
1286 * thread.c (restore_selected_frame): Rename to ...
1287 (lookup_selected_frame): ... this and make extern. Select the
1288 current frame if the frame level is -1.
1289 (scoped_restore_current_thread::restore): Also restore the
1290 language.
1291 (scoped_restore_current_thread::~scoped_restore_current_thread):
1292 Don't try/catch.
1293 (scoped_restore_current_thread::scoped_restore_current_thread):
1294 Save the language as well. Use save_selected_frame.
1295
1296 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1299 documentation.
1300 * gdbarch.h: Re-generate.
1301
1302 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1305 parameter.
1306 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1307 Likewise.
1308 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1309 Likewise.
1310 * arch-utils.c (default_displaced_step_hw_singlestep):
1311 Likewise.
1312 * arch-utils.h (default_displaced_step_hw_singlestep):
1313 Likewise.
1314 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1315 Likewise.
1316 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1317 Likewise.
1318 * gdbarch.c: Re-generate.
1319 * gdbarch.h: Re-generate.
1320 * infrun.c (resume_1): Adjust.
1321
1322 2020-10-29 Tom Tromey <tom@tromey.com>
1323
1324 * progspace.c (program_space::~program_space): Don't call
1325 exec_close.
1326
1327 2020-10-29 Tom Tromey <tom@tromey.com>
1328
1329 * exec.c (exec_target::close): Don't change current program
1330 space.
1331
1332 2020-10-29 Tom Tromey <tom@tromey.com>
1333
1334 * symfile.c (add_symbol_file_command): Update.
1335 * exec.c (program_space::add_target_sections): Rename.
1336 * symfile-mem.c (symbol_file_add_from_memory): Update.
1337 * progspace.h (struct program_space) <add_target_sections>:
1338 Declare new overload.
1339 * exec.h (add_target_sections_of_objfile): Don't declare.
1340
1341 2020-10-29 Tom Tromey <tom@tromey.com>
1342
1343 * solib.c (solib_map_sections): Update.
1344 * exec.c (program_space::add_target_sections): Now a method.
1345 (exec_file_attach): Update.
1346 * exec.h (add_target_sections): Don't declare.
1347 * progspace.h (struct program_space) <add_target_sections>:
1348 Declare.
1349
1350 2020-10-29 Tom Tromey <tom@tromey.com>
1351
1352 * progspace.h (struct program_space) <remove_target_sections>:
1353 Declare.
1354 * exec.c (program_space::remove_target_sections): Now a method.
1355 * exec.h (remove_target_sections): Don't declare.
1356
1357 2020-10-29 Tom Tromey <tom@tromey.com>
1358
1359 * inferior.c (delete_inferior): Update.
1360 * progspace.c (program_space::empty): Rename from
1361 program_space_empty_p. Return bool.
1362 * progspace.h (struct program_space) <empty>: New method.
1363 (program_space_empty_p): Don't declare.
1364
1365 2020-10-29 Tom Tromey <tom@tromey.com>
1366
1367 * progspace.c (program_space::~program_space): Don't call
1368 clear_program_space_solib_cache.
1369 (program_space::clear_solib_cache): Rename from
1370 clear_solib_cache.
1371 * solib.c (handle_solib_event): Update.
1372 * progspace.h (struct program_space) <clear_solib_cache>: New
1373 method.
1374 (clear_program_space_solib_cache): Don't declare.
1375
1376 2020-10-29 Tom Tromey <tom@tromey.com>
1377
1378 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1379 * target.c (info_target_command): Update.
1380 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1381 (symbol_file_clear, reread_symbols): Update.
1382 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1383 * stabsread.c (scan_file_globals): Update.
1384 * solib.c (update_solib_list): Update.
1385 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1386 (svr4_fetch_objfile_link_map, enable_break)
1387 (svr4_relocate_main_executable)
1388 (svr4_iterate_over_objfiles_in_search_order): Update.
1389 * solib-frv.c (lm_base, enable_break)
1390 (frv_relocate_main_executable): Update.
1391 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1392 (frv_fetch_objfile_link_map): Update.
1393 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1394 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1395 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1396 * remote.c (remote_target::get_offsets): Update.
1397 (remote_target::start_remote)
1398 (extended_remote_target::post_attach): Update.
1399 * objfiles.c (entry_point_address_query): Update.
1400 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1401 * minsyms.c (get_symbol_leading_char): Update.
1402 * frame.c (inside_main_func): Update.
1403 * progspace.h (symfile_objfile): Remove macro.
1404
1405 2020-10-29 Tom Tromey <tom@tromey.com>
1406
1407 * exec.c (exec_file_attach): Update.
1408 * progspace.c (program_space::exec_close): Update.
1409 * progspace.h (struct program_space) <ebfd>: Now a
1410 gdb_bfd_ref_ptr.
1411 <set_exec_bfd>: Change argument type.
1412 <exec_bfd>: Update.
1413
1414 2020-10-29 Tom Tromey <tom@tromey.com>
1415
1416 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1417 * symfile.c (reread_symbols): Update.
1418 * symfile-mem.c (add_symbol_file_from_memory_command)
1419 (add_vsyscall_page): Update.
1420 * source-cache.c (source_cache::get_plain_source_lines): Update.
1421 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1422 (svr4_current_sos_direct, svr4_exec_displacement)
1423 (svr4_relocate_main_executable): Update.
1424 (svr4_iterate_over_objfiles_in_search_order): Update.
1425 * solib-frv.c (enable_break2, enable_break): Update.
1426 * solib-dsbt.c (lm_base, enable_break): Update.
1427 * solib-darwin.c (find_program_interpreter)
1428 (darwin_solib_create_inferior_hook): Update.
1429 * sol-thread.c (rw_common, ps_pdmodel): Update.
1430 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1431 * remote.c (compare_sections_command)
1432 (remote_target::trace_set_readonly_regions): Update.
1433 * remote-sim.c (get_sim_inferior_data)
1434 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1435 (gdbsim_target_open, gdbsim_target::files_info): Update.
1436 * exec.h (exec_bfd): Remove macro.
1437 * progspace.c (initialize_progspace): Update.
1438 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1439 Update.
1440 * nto-procfs.c (nto_procfs_target::post_attach)
1441 (nto_procfs_target::create_inferior): Update.
1442 * maint.c (maintenance_info_sections): Update.
1443 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1444 Update.
1445 * infcmd.c (post_create_inferior): Update.
1446 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1447 (objfile_find_memory_regions): Update.
1448 * exec.c (validate_exec_file, exec_file_attach)
1449 (exec_read_partial_read_only, print_section_info): Update.
1450 * corelow.c (core_target_open): Update.
1451 * corefile.c (reopen_exec_file, validate_files): Update.
1452 * arm-tdep.c (gdb_print_insn_arm): Update.
1453 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1454 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1455 methods.
1456
1457 2020-10-29 Tom Tromey <tom@tromey.com>
1458
1459 * progspace.h (current_target_sections): Remove macro.
1460 * solib-svr4.c (scan_dyntag): Update.
1461 * solib-dsbt.c (scan_dyntag): Update.
1462 * exec.c (exec_target::close): Update.
1463 (add_target_sections, add_target_sections_of_objfile)
1464 (remove_target_sections, exec_target::get_section_table)
1465 (exec_target::files_info, set_section_command)
1466 (exec_set_section_address, exec_target::has_memory)
1467 (exec_target::has_memory): Update.
1468
1469 2020-10-29 Tom Tromey <tom@tromey.com>
1470
1471 * source-cache.c (source_cache::get_plain_source_lines): Use
1472 current_program_space.
1473 * corefile.c (reopen_exec_file): Use current_program_space.
1474 * exec.c (exec_file_attach): Use current_program_space.
1475 * exec.h (exec_bfd_mtime): Remove.
1476
1477 2020-10-29 Tom Tromey <tom@tromey.com>
1478
1479 * gcore.c (default_gcore_mach): Remove.
1480 (create_gcore_bfd): Update.
1481
1482 2020-10-29 Tom Tromey <tom@tromey.com>
1483
1484 * progspace.c (program_space::exec_close): New method, from
1485 exec_close in exec.c.
1486 * exec.c (exec_close): Move to progspace.c.
1487 (exec_target::close, exec_file_attach): Update.
1488 * progspace.h (struct program_space) <exec_close>: Declare
1489 method.
1490
1491 2020-10-29 Tom Tromey <tom@tromey.com>
1492
1493 * progspace.h (struct program_space) <exec_filename>: Rename from
1494 pspace_exec_filename. Now a unique_xmalloc_ptr.
1495 * inferior.c (print_selected_inferior): Update.
1496 (print_inferior): Update.
1497 * mi/mi-main.c (print_one_inferior): Update.
1498 * exec.h (exec_filename): Remove macro.
1499 * corefile.c (get_exec_file): Update.
1500 * exec.c (exec_close): Update.
1501 (exec_file_attach): Update.
1502 * progspace.c (clone_program_space): Update.
1503 (print_program_space): Update.
1504
1505 2020-10-29 Tom Tromey <tom@tromey.com>
1506
1507 * target-section.h (struct target_section): Add constructor.
1508 * exec.c (build_section_table, add_target_sections_of_objfile):
1509 Update.
1510 * corelow.c (core_target::build_file_mappings): Update.
1511
1512 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1513
1514 PR gdb/19318
1515 * inferior.c (detach_inferior_command): Restore the current thread.
1516 (kill_inferior_command): Ditto.
1517
1518 2020-10-28 Tom de Vries <tdevries@suse.de>
1519
1520 PR symtab/26772
1521 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1522 map, check it in the "best match" loop.
1523
1524 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * m32c-tdep.c: Remove unused includes.
1527
1528 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * xtensa-tdep.c: Remove includes.
1531
1532 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533
1534 * breakpoint.c (struct condition_command_opts): New struct.
1535 (condition_command_option_defs): New static global.
1536 (make_condition_command_options_def_group): New function.
1537 (condition_completer): Update to consider the '-force' flag.
1538 (condition_command): Use gdb::option for the '-force' flag.
1539
1540 2020-10-27 Tom de Vries <tdevries@suse.de>
1541
1542 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1543 symbols in section check.
1544
1545 2020-10-27 Tom de Vries <tdevries@suse.de>
1546
1547 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1548
1549 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1552 * breakpoint.c: Update the help text of the 'condition' and 'break'
1553 commands.
1554 (set_breakpoint_condition): Take a new bool parameter
1555 to control whether condition definition should be forced even when
1556 the condition expression is invalid in all of the current locations.
1557 (condition_command): Update the call to 'set_breakpoint_condition'.
1558 (find_condition_and_thread): Take the "-force-condition" flag into
1559 account.
1560 * linespec.c (linespec_keywords): Add "-force-condition" as an
1561 element.
1562 (FORCE_KEYWORD_INDEX): New #define.
1563 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1564 as a keyword.
1565 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1566 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1567 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1568 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1569
1570 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1571
1572 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1573 * breakpoint.c (set_breakpoint_location_condition): New function.
1574 (set_breakpoint_condition): Disable a breakpoint location if parsing
1575 the condition string gives an error.
1576 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1577 (build_target_condition_list): Ditto.
1578 (build_target_command_list): Ditto.
1579 (build_bpstat_chain): Ditto.
1580 (print_one_breakpoint_location): Ditto.
1581 (print_one_breakpoint): Ditto.
1582 (breakpoint_1): Ditto.
1583 (bp_location::bp_location): Ditto.
1584 (locations_are_equal): Ditto.
1585 (update_breakpoint_locations): Ditto.
1586 (enable_disable_bp_num_loc): Ditto.
1587 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1588 (find_condition_and_thread_for_sals): New static function.
1589 (create_breakpoint): Call find_condition_and_thread_for_sals.
1590 (location_to_sals): Call find_condition_and_thread_for_sals instead
1591 of find_condition_and_thread.
1592
1593 2020-10-26 Tom de Vries <tdevries@suse.de>
1594
1595 * dwarf2/read.c (process_full_comp_unit): Call
1596 dwarf2_find_base_address.
1597
1598 2020-10-26 Tom Tromey <tromey@adacore.com>
1599
1600 * gdbtypes.c (create_range_type): Revert previous patch. Add
1601 comment.
1602
1603 2020-10-26 Pedro Alves <pedro@palves.net>
1604
1605 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1606 (my_waitpid): Use gdb::handle_eintr.
1607
1608 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1609
1610 * acinclude.m4: Update ptrace.m4 path.
1611 * ptrace.m4: Moved to gdbsupport.
1612
1613 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1616 instead of target_gdbarch.
1617
1618 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * jit.c (jit_reader_load_command): Pass current inferior.
1621 (jit_inferior_init): Change parameter type to inferior, use it.
1622 (jit_inferior_created): Remove.
1623 (jit_inferior_created_hook): Pass inferior parameter down.
1624 (_initialize_jit): Use jit_inferior_created_hook instead of
1625 jit_inferior_created.
1626 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1627 * infrun.c (follow_exec): Pass inferior to
1628 jit_inferior_created_hook.
1629
1630 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1633 parameter and use it.
1634 (thread_db_inferior_created): Pass inferior argument.
1635
1636 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * aix-thread.c (aix_thread_inferior_created): Add inferior
1639 parameter.
1640 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1641 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1642 * jit.c (jit_inferior_created): Likewise.
1643 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1644 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1645 * observable.h (inferior_created): Likewise.
1646 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1647 * symfile-mem.c (add_vsyscall_page): Likewise.
1648 * infcmd.c (post_create_inferior): Pass inferior argument.
1649
1650 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1651
1652 GDB 10.1 released.
1653
1654 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1655
1656 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1657 to ada_check_typedef.
1658
1659 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * f-exp.y (f_parse): Rename to...
1662 (f_language::parser): ...this.
1663 * f-lang.c (f_get_encoding): Rename to...
1664 (f_language::get_encoding): ...this.
1665 (f_op_print_tab): Rename to...
1666 (f_language::op_print_tab): ...this.
1667 (exp_descriptor_f): Rename to...
1668 (f_language::exp_descriptor_tab): ...this.
1669 (class f_language): Moved to f-lang.h.
1670 (f_language::language_arch_info): New function, moved out of class
1671 declaration.
1672 (f_language::search_name_hash): Likewise.
1673 (f_language::lookup_symbol_nonlocal): Likewise.
1674 (f_language::get_symbol_name_matcher_inner): Likewise.
1675 * f-lang.h: Add 'valprint.h' include.
1676 (class f_language): Moved here from f-lang.c.
1677 * f-typeprint.c (f_type_print_args): Delete commented out
1678 declaration.
1679 (f_print_typedef): Rename to...
1680 (f_language::print_typedef): ...this.
1681 (f_print_type): Rename to...
1682 (f_language::print_type): ...this.
1683 (f_type_print_varspec_prefix): Delete declaration and rename to...
1684 (f_language::f_type_print_varspec_prefix): ...this.
1685 (f_type_print_varspec_suffix): Delete declaration and rename to...
1686 (f_language::f_type_print_varspec_suffix): ...this.
1687 (f_type_print_base): Delete declaration and rename to...
1688 (f_language::f_type_print_base): ...this.
1689 * f-valprint.c (f_value_print_inner): Rename to...
1690 (f_language::value_print_inner): ...this.
1691 * parse.c: Delete 'f-lang.h' include.
1692
1693 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * language.h (language_defn::print_type): Add variable names in
1696 declaration, and update header comment.
1697
1698 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * ada-lang.c (ada_language::demangle): Rename to...
1701 (ada_language::demangle_symbol): ...this.
1702 * c-lang.c (cplus_language::demangle): Rename to...
1703 (cplus_language::demangle_symbol): ...this.
1704 * d-lang.c (d_language::demangle): Rename to...
1705 (d_language::demangle_symbol): ...this.
1706 * f-lang.c (f_language::demangle): Rename to...
1707 (f_language::demangle_symbol): ...this.
1708 * go-lang.c (go_language::demangle): Rename to...
1709 (go_language::demangle_symbol): ...this.
1710 * language.c (language_demangle): Update call to demangle_symbol.
1711 (auto_or_unknown_language::demangle): Rename to...
1712 (auto_or_unknown_language::demangle_symbol): ...this.
1713 * language.h (language_defn::demangle): Rename to...
1714 (language_defn::demangle_symbol): ...this.
1715 * objc-lang.c (objc_language::demangle): Rename to...
1716 (objc_language::demangle_symbol): ...this.
1717 * rust-lang.c (rust_language::demangle): Rename to...
1718 (rust_language::demangle_symbol): ...this.
1719
1720 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1723 (iterate_over_file_blocks): Replace use of macro with the macros
1724 definition.
1725
1726 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1729 * valprint.c (maybe_print_array_index): Replace use of macro with
1730 the macros definition.
1731
1732 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * ada-lang.c (ada_language::print_array_index): Call value_print
1735 directly.
1736 * language.c (language_defn::print_array_index): Likewise.
1737 * language.h (LA_VALUE_PRINT): Delete.
1738 * valprint.c (value_print): Call value_print on the
1739 current_language directly.
1740
1741 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * language.h (LA_PRINT_TYPEDEF): Delete.
1744 * typeprint.c (typedef_print): Call print_typedef directly on the
1745 current_language object.
1746
1747 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * m2-exp.y (m2_parse): Rename to...
1750 (m2_language::parser): ...this. Update function signature.
1751 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1752 (m2_op_print): Rename to...
1753 (m2_language::op_print_tab): ...this, and make const.
1754 (exp_descriptor_modula2): Rename to...
1755 (m2_language::exp_descriptor_modula2): ...this.
1756 (class m2_language): Move to m2-lang.h.
1757 (m2_language::language_arch_info): New function, moved out of
1758 class declaration.
1759 (m2_language::printchar): New function, body from m2_printchar.
1760 (m2_language::printstr): New function, moved out of class
1761 declaration.
1762 (m2_language::emitchar): Likewise.
1763 * m2-lang.h (m2_parse): Delete declaration.
1764 (m2_print_typedef): Delete declaration.
1765 (m2_value_print_inner): Delete declaration.
1766 (class m2_language): Class declaration moved from m2-lang.c,
1767 larger functions are left in m2-lang.c.
1768 * m2-typeprint.c (m2_print_typedef): Rename to...
1769 (m2_language::print_typedef): ...this, and update function
1770 signature.
1771 * m2-valprint.c (m2_value_print_inner): Rename to...
1772 (m2_language::value_print_inner): ...this, replace use of
1773 LA_PRINT_STRING with a direct call to printstr member function,
1774 and update recursive call.
1775
1776 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * language.c (default_is_string_type_p): Delete, implementation
1779 moved into auto_or_unknown_language::is_string_type_p.
1780 (unk_op_print_tab): Moved into
1781 auto_or_unknown_language::opcode_print_table.
1782 (unknown_language_arch_info): Delete, implementation moved into
1783 auto_or_unknown_language::language_arch_info.
1784 (class auto_or_unknown_language): New class, member functions
1785 copied from unknown_language class, with some updates.
1786 (class unknown_language): Most member functions moved into
1787 auto_or_unknown_language class. Inherit from
1788 auto_or_unknown_language class.
1789 (class auto_language): Inherit from auto_or_unknown_language.
1790 Delete most member functions.
1791
1792 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1793
1794 * stabsread.c (read_member_functions): Remove gdb_assert.
1795
1796 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1797
1798 * gdbtypes.c (init_complex_type): Check target type name.
1799
1800 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * target-debug.h (target_debug_print_struct_target_ops_p):
1803 Remove.
1804 (target_debug_print_async_callback_ftype_p): Remove.
1805 (target_debug_print_struct_trace_state_variable_p): Remove.
1806 (target_debug_print_struct_traceframe_info_p): Remove.
1807 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1808 (target_debug_print_enum_btrace_format): Remove.
1809 (target_debug_print_enum_info_proc_what): Remove.
1810 (target_debug_print_thread_info_pp): Remove.
1811
1812 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * target.h (struct target_ops) <make_corefile_notes>:
1815 Change return type to unique pointer.
1816 * target.c (dummy_make_corefile_notes): Likewise.
1817 * exec.c (struct exec_target) <make_corefile_notes>:
1818 Likewise.
1819 (exec_target::make_corefile_notes): Likewise.
1820 * procfs.c (class procfs_target) <make_corefile_notes>:
1821 Likewise.
1822 (procfs_do_thread_registers): Adjust to unique pointer.
1823 (struct procfs_corefile_thread_data): Add constructor.
1824 <note_data>: Change type to unique pointer.
1825 (procfs_corefile_thread_callback): Adjust to unique pointer.
1826 (procfs_target::make_corefile_notes): Change return type to
1827 unique pointer.
1828 * target-delegates.c: Re-generate.
1829 * gcore.c (write_gcore_file_1): Adjust.
1830 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1831 New.
1832
1833 2020-10-22 Tom de Vries <tdevries@suse.de>
1834
1835 * block.c (find_block_in_blockvector): Make sure the returned block
1836 contains pc.
1837
1838 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1839
1840 PR gdb/26693
1841 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1842 parameter.
1843 (load_cu): Pass existing CU.
1844 (process_imported_unit_die): Likewise.
1845 (follow_die_offset): Likewise.
1846
1847 2020-10-22 Luis Machado <luis.machado@linaro.org>
1848
1849 * corelow.c (core_target::xfer_partial): Also check for an empty
1850 m_core_unavailable_mappings vector.
1851
1852 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1855 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1856 * f-exp.y (arglist): Allow for a series of subranges.
1857 (subrange): Add cases for subranges with strides.
1858 * f-lang.c (value_f90_subarray): Catch use of array strides and
1859 throw an error.
1860 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1861
1862 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * expprint.c (print_subexp_standard): Change enum range_type to
1865 range_flag and rename variables to match.
1866 (dump_subexp_body_standard): Likewise.
1867 * expression.h (enum range_type): Rename to...
1868 (enum range_flag): ...this.
1869 (range_types): Rename to...
1870 (range_flags): ...this.
1871 * f-lang.c (value_f90_subarray): Change enum range_type to
1872 range_flag and rename variables to match.
1873 * parse.c (operator_length_standard): Likewise.
1874 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1875 range_type to range_flag.
1876 * rust-lang.c (rust_evaluate_funcall): Likewise.
1877 (rust_range): Likewise.
1878 (rust_compute_range): Likewise.
1879 (rust_subscript): Likewise.
1880
1881 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 * expprint.c (print_subexp_standard): Update to reflect changes to
1884 enum range_type.
1885 (dump_subexp_body_standard): Likewise.
1886 * expression.h (enum range_type): Convert to a bit field enum, and
1887 make the enum unsigned.
1888 * f-exp.y (subrange): Update to reflect changes to enum
1889 range_type.
1890 * f-lang.c (value_f90_subarray): Likewise.
1891 * parse.c (operator_length_standard): Likewise.
1892 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1893 * rust-lang.c (rust_range): Likewise.
1894 (rust_compute_range): Likewise.
1895 (rust_subscript): Likewise.
1896
1897 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1898
1899 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1900 (displaced_step_in_progress): Fix comment.
1901
1902 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1905 * gdbarch.c: Re-generate.
1906 * gdbarch.h: Re-generate.
1907 * gcore.c (write_gcore_file_1): Adjust.
1908 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1909 constructor.
1910 <note_data>: Change type to unique pointer.
1911 <abort_iteration>: Change type to bool.
1912 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1913 (fbsd_collect_thread_registers): Return void, adjust.
1914 (struct fbsd_corefile_thread_data): Add construtor.
1915 <note_data>: Change type to unique pointer.
1916 (fbsd_corefile_thread): Adjust.
1917 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1918 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1919 to unique pointer, adjust.
1920 (struct linux_collect_regset_section_cb_data): Add constructor.
1921 <note_data>: Change type to unique pointer.
1922 <abort_iteration>: Change type to bool.
1923 (linux_collect_thread_registers): Return void, adjust.
1924 (struct linux_corefile_thread_data): Add constructor.
1925 <note_data>: Change type to unique pointer.
1926 (linux_corefile_thread): Adjust.
1927 (linux_make_corefile_notes): Return unique pointer, adjust.
1928
1929 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1932 * gdbarch.c: Re-generate.
1933 * gdbarch.h: Re-generate.
1934 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1935 bool.
1936 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1937 Likewise.
1938 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1939 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1940 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1941 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1942
1943 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * gdbarch.sh: Make generated predicates return bool.
1946 * gdbarch.c: Re-generate.
1947 * gdbarch.h: Re-generate.
1948
1949 2020-10-20 Tom Tromey <tom@tromey.com>
1950
1951 * varobj-iter.h (struct varobj_item): Remove typedef.
1952
1953 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * infrun.c (currently_stepping): Change int to bool
1956 (maybe_software_singlestep): Likewise.
1957 (show_stop_on_solib_events): Likewise.
1958 (stepping_past_nonsteppable_watchpoint): Likewise.
1959 (displaced_step_in_progress_any_inferior): Likewise.
1960 (displaced_step_in_progress_thread): Likewise.
1961 (keep_going_stepped_thread): Likewise.
1962 (thread_still_needs_step_over): Likewise.
1963 (start_step_over): Likewise.
1964 (do_target_resume): Likewise.
1965 (resume_1): Likewise.
1966 (clear_proceed_status): Likewise.
1967 (thread_still_needs_step_over_bp): Likewise.
1968 (proceed): Likewise.
1969 (switch_back_to_stepped_thread): Likewise.
1970 (adjust_pc_after_break): Likewise.
1971 (stepped_in_from): Likewise.
1972 (handle_stop_requested): Likewise.
1973 (handle_syscall_event): Likewise.
1974 (handle_no_resumed): Likewise.
1975 (handle_inferior_event): Likewise.
1976 (finish_step_over): Likewise.
1977 (handle_signal_stop): Likewise.
1978 (process_event_stop_test): Likewise.
1979
1980 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * infrun.c (get_displaced_stepping_state): Fix comment.
1983
1984 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1985
1986 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1987
1988 2020-10-19 Tom Tromey <tromey@adacore.com>
1989
1990 PR tui/26719
1991 * tui/tui-winsource.h (struct tui_source_window_base)
1992 <refresh_window>: Rename from refresh_pad.
1993 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1994 Rename from refresh_pad.
1995 (tui_source_window_base::show_source_content)
1996 (tui_source_window_base::do_scroll_horizontal): Update.
1997
1998 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1999
2000 * thread.c (_initialize_thread): Fine-tune the help text of
2001 'info threads'.
2002
2003 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2004
2005 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2006
2007 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2008
2009 * breakpoint.c (handle_jit_event): Add an argument, change how
2010 `jit_event_handler` is called.
2011
2012 2020-10-17 Tom Tromey <tom@tromey.com>
2013
2014 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2015 (scan_xcoff_symtab): Update.
2016 * psymtab.h (class psymtab_storage) <global_psymbols,
2017 static_psymbols, current_global_psymbols,
2018 current_static_psymbols>: Remove.
2019 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2020 (match_partial_symbol, lookup_partial_symbol): Update.
2021 (print_partial_symbols): Change parameters.
2022 (dump_psymtab, recursively_search_psymtabs)
2023 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2024 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2025 (concat): Remove.
2026 (end_psymtab_common): Simplify.
2027 (append_psymbol_to_list): Change parameters.
2028 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2029 (init_psymbol_list): Simplify.
2030 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2031 * psympriv.h (struct partial_symtab) <empty>: New method.
2032 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2033 Remove.
2034 <global_psymbols, static_psymbols>: New members.
2035 <add_psymbol>: New methods.
2036 (add_psymbol_to_list): Don't declare.
2037 (psymbol_placement): Move earlier.
2038 * mdebugread.c (parse_partial_symbols): Update.
2039 (handle_psymbol_enumerators): Change parameters.
2040 (mdebug_expand_psymtab): Update.
2041 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2042 (add_partial_symbol): Update.
2043 * dwarf2/index-write.c (write_psymbols): Change parameters.
2044 (write_one_signatured_type): Update.
2045 (recursively_count_psymbols): Update.
2046 (recursively_write_psymbols): Update.
2047 (class debug_names) <recursively_write_psymbols>: Update.
2048 <write_psymbols>: Change parameters.
2049 <write_one_signatured_type>: Update.
2050 * dbxread.c (read_dbx_symtab): Update.
2051 (dbx_end_psymtab): Use partial_symtab::empty.
2052 * ctfread.c (struct ctf_context) <pst>: New member.
2053 (create_partial_symtab): Set it.
2054 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2055 (scan_partial_symbols): Use the psymtab's context. Update.
2056
2057 2020-10-17 Tom Tromey <tom@tromey.com>
2058
2059 * valprint.c (generic_value_print): Remove comment.
2060 * m2-valprint.c (m2_value_print_inner): Remove comment.
2061 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2062 type.
2063
2064 2020-10-17 Tom de Vries <tdevries@suse.de>
2065
2066 PR symtab/26317
2067 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2068 symbol main.
2069
2070 2020-10-14 Tom de Vries <tdevries@suse.de>
2071
2072 PR gdb/26733
2073 * solib.c (solib_contains_address_p): Handle
2074 'solib->sections == nullptr'.
2075
2076 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 PR gdb/26642
2079 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2080 target can't do async.
2081 * target.c (target_wait): Assert that we don't pass
2082 TARGET_WNOHANG to a target that can't async.
2083
2084 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2085
2086 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2087 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2088 * alpha-bsd-nat.c: Adjust include.
2089 * alpha-bsd-tdep.h: Adjust comment.
2090 * alpha-nbsd-tdep.c: Rename to ...
2091 * alpha-netbsd-tdep.c: ... this, adjust include.
2092 * amd64-nbsd-nat.c: Rename to ...
2093 * amd64-netbsd-nat.c: ... this, adjust include.
2094 * amd64-nbsd-tdep.c: Rename to ...
2095 * amd64-netbsd-tdep.c: ... this, adjust include.
2096 * amd64-tdep.h: Adjust include.
2097 * arm-nbsd-nat.c: Rename to ...
2098 * arm-netbsd-nat.c: ... this, adjust include.
2099 * arm-nbsd-tdep.c: Rename to ...
2100 * arm-netbsd-tdep.c: ... this, adjust include.
2101 * arm-nbsd-tdep.h: Rename to ...
2102 * arm-netbsd-tdep.h: ... this, adjust include.
2103 * configure.nat: Adjust file lists.
2104 * configure.tgt: Likewise.
2105 * hppa-nbsd-nat.c: Rename to ...
2106 * hppa-netbsd-nat.c: ... this, adjust include.
2107 * hppa-nbsd-tdep.c: Rename to ...
2108 * hppa-netbsd-tdep.c: ... this, adjust include.
2109 * i386-nbsd-nat.c: Rename to ...
2110 * i386-netbsd-nat.c: ... this, adjust include.
2111 * i386-nbsd-tdep.c: Rename to ...
2112 * i386-netbsd-tdep.c: ... this, adjust include.
2113 * m68k-bsd-nat.c: Adjust include.
2114 * mips-nbsd-nat.c: Rename to ...
2115 * mips-netbsd-nat.c: ... this, adjust include.
2116 * mips-nbsd-tdep.c: Rename to ...
2117 * mips-netbsd-tdep.c: ... this, adjust include.
2118 * mips-nbsd-tdep.h: Rename to ...
2119 * mips-netbsd-tdep.h: ... this.
2120 * nbsd-nat.c: Rename to ...
2121 * netbsd-nat.c: ... this, adjust include.
2122 * nbsd-nat.h: Rename to ...
2123 * netbsd-nat.h: ... this, adjust include.
2124 * nbsd-tdep.c: Rename to ...
2125 * netbsd-tdep.c: ... this, adjust include.
2126 * nbsd-tdep.h: Rename to ...
2127 * netbsd-tdep.h: ... this.
2128 * ppc-nbsd-nat.c: Rename to ...
2129 * ppc-netbsd-nat.c: ... this, adjust include.
2130 * ppc-nbsd-tdep.c: Rename to ...
2131 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2132 * ppc-nbsd-tdep.h: Rename to ...
2133 * ppc-netbsd-tdep.h: ... this.
2134 * sh-nbsd-nat.c: Rename to ...
2135 * sh-netbsd-nat.c: ... this, adjust include.
2136 * sh-nbsd-tdep.c: Rename to ...
2137 * sh-netbsd-tdep.c: ... this, adjust include.
2138 * sparc-nbsd-nat.c: Rename to ...
2139 * sparc-netbsd-nat.c: ... this.
2140 * sparc-nbsd-tdep.c: Rename to ...
2141 * sparc-netbsd-tdep.c: ... this, adjust include.
2142 * sparc64-nbsd-nat.c: Rename to ...
2143 * sparc64-netbsd-nat.c: ... this.
2144 * sparc64-nbsd-tdep.c: Rename to ...
2145 * sparc64-netbsd-tdep.c: ... this, adjust include.
2146 * sparc64-tdep.h: Adjust comment.
2147 * vax-bsd-nat.c: Adjust include.
2148 * vax-nbsd-tdep.c: Rename to ...
2149 * vax-netbsd-tdep.c: ... this, adjust include.
2150
2151 2020-10-12 Tom Tromey <tom@tromey.com>
2152
2153 * target.h (struct target_ops) <get_section_table>: Update.
2154 (target_get_section_table): Update.
2155 * target.c (target_get_section_table, target_section_by_addr)
2156 (memory_xfer_partial_1): Update.
2157 * target-section.h (target_section_table): Now an alias.
2158 * target-delegates.c: Rebuild.
2159 * target-debug.h (target_debug_print_target_section_table_p):
2160 Rename from target_debug_print_struct_target_section_table_p.
2161 * symfile.c (build_section_addr_info_from_section_table): Update.
2162 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2163 * solib-svr4.c (scan_dyntag): Update.
2164 * solib-dsbt.c (scan_dyntag): Update.
2165 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2166 Update.
2167 * record-full.c (record_full_core_target::xfer_partial): Update.
2168 * progspace.h (struct program_space) <target_sections>: Update.
2169 * exec.h (print_section_info): Update.
2170 * exec.c (exec_target::close, build_section_table)
2171 (add_target_sections, add_target_sections_of_objfile)
2172 (remove_target_sections, exec_on_vfork)
2173 (section_table_available_memory)
2174 (section_table_xfer_memory_partial)
2175 (exec_target::get_section_table, exec_target::xfer_partial)
2176 (print_section_info, set_section_command)
2177 (exec_set_section_address, exec_target::has_memory): Update.
2178 * corelow.c (core_target::build_file_mappings)
2179 (core_target::xfer_partial, core_target::info_proc_mappings)
2180 (core_target::info_proc_mappings): Update.
2181 * bfd-target.c (class target_bfd): Update
2182
2183 2020-10-12 Tom Tromey <tom@tromey.com>
2184
2185 * progspace.c (program_space::~program_space): Don't call
2186 clear_section_table.
2187 * exec.h (clear_section_table): Don't declare.
2188 * exec.c (exec_target::close): Update.
2189 (clear_section_table): Remove.
2190
2191 2020-10-12 Tom Tromey <tom@tromey.com>
2192
2193 * exec.c (add_target_sections_of_objfile): Simplify.
2194
2195 2020-10-12 Tom Tromey <tom@tromey.com>
2196
2197 * solib.c (solib_map_sections): Update.
2198 * record-full.c (record_full_core_open_1): Update.
2199 * exec.h (build_section_table): Return a target_section_table.
2200 * exec.c (exec_file_attach): Update.
2201 (build_section_table): Return a target_section_table.
2202 * corelow.c (core_target::core_target): Update.
2203 * bfd-target.c (target_bfd::target_bfd): Update.
2204
2205 2020-10-12 Tom Tromey <tom@tromey.com>
2206
2207 * target.c (target_section_by_addr, memory_xfer_partial_1):
2208 Update.
2209 * target-section.h (struct target_section_table): Use
2210 std::vector.
2211 * symfile.h (build_section_addr_info_from_section_table): Take a
2212 target_section_table.
2213 * symfile.c (build_section_addr_info_from_section_table): Take a
2214 target_section_table.
2215 * solist.h (struct so_list) <sections>: Change type.
2216 <sections_end>: Remove.
2217 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2218 (solib_contains_address_p): Update.
2219 * solib-svr4.c (scan_dyntag): Update.
2220 * solib-dsbt.c (scan_dyntag): Update.
2221 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2222 Update.
2223 * record-full.c (record_full_core_start, record_full_core_end):
2224 Remove.
2225 (record_full_core_sections): New global.
2226 (record_full_core_open_1, record_full_core_target::xfer_partial):
2227 Update.
2228 * exec.h (build_section_table, section_table_xfer_memory_partial)
2229 (add_target_sections): Take a target_section_table.
2230 * exec.c (exec_file_attach, clear_section_table): Update.
2231 (resize_section_table): Remove.
2232 (build_section_table, add_target_sections): Take a
2233 target_section_table.
2234 (add_target_sections_of_objfile, remove_target_sections)
2235 (exec_on_vfork): Update.
2236 (section_table_available_memory): Take a target_section_table.
2237 (section_table_read_available_memory): Update.
2238 (section_table_xfer_memory_partial): Take a target_section_table.
2239 (print_section_info, set_section_command)
2240 (exec_set_section_address, exec_target::has_memory): Update.
2241 * corelow.c (class core_target) <m_core_section_table,
2242 m_core_file_mappings>: Remove braces.
2243 <~core_target>: Remove.
2244 (core_target::core_target): Update.
2245 (core_target::~core_target): Remove.
2246 (core_target::build_file_mappings)
2247 (core_target::xfer_memory_via_mappings)
2248 (core_target::xfer_partial, core_target::info_proc_mappings):
2249 Update.
2250 * bfd-target.c (target_bfd::xfer_partial): Update.
2251 (target_bfd::target_bfd): Update.
2252 (target_bfd::~target_bfd): Remove.
2253
2254 2020-10-12 Tom Tromey <tom@tromey.com>
2255
2256 * target.h (struct target_section, struct target_section_table):
2257 Move to target-section.h.
2258 * target-section.h: New file.
2259
2260 2020-10-12 Pedro Alves <pedro@palves.net>
2261
2262 PR exp/26602
2263 * valops.c (struct struct_field_searcher): New.
2264 (update_search_result): Rename to ...
2265 (struct_field_searcher::update_result): ... this. Simplify
2266 prototype. Record all found fields.
2267 (do_search_struct_field): Rename to ...
2268 (struct_field_searcher::search): ... this. Simplify prototype.
2269 Maintain stack of visited baseclass path. Call update_result for
2270 fields too. Keep searching fields in baseclasses instead of
2271 stopping at the first found field.
2272 (search_struct_field): Use struct_field_searcher. When looking
2273 for fields, report ambiguous access attempts.
2274
2275 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * frame.c (inside_main_func): Check full symbols as well as
2278 minimal symbols.
2279
2280 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2281
2282 * ada-lang.c (advance_wild_match): Rewrite the function's
2283 description. Change the type of target0, t0 and t1 to char.
2284
2285 2020-10-09 Tom Tromey <tromey@adacore.com>
2286
2287 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2288
2289 2020-10-09 Tom Tromey <tromey@adacore.com>
2290
2291 * ada-lang.h (ada_encode): Return std::string.
2292 * ada-lang.c (ada_encode_1): Return std::string.
2293 (ada_encode): Likewise.
2294 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2295 Update.
2296 * ada-exp.y (block_lookup, write_var_or_type): Update.
2297
2298 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2299
2300 PR exp/26714
2301 * printcmd.c (print_formatted): Handle void results as
2302 unformatted prints.
2303
2304 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * arch/aarch32.c (aarch32_create_target_description): Release the
2307 target_desc_up as late as possible.
2308 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2309 * arch/amd64.c (amd64_create_target_description): Likewise.
2310 * arch/arc.c (arc_create_target_description): Return a
2311 target_desc_up, don't release it.
2312 * arch/arc.h (arc_create_target_description): Update declaration.
2313 (arc_lookup_target_description): Move target_desc_up into the
2314 cache, and return a borrowed pointer.
2315 * arch/arm.c (arm_create_target_description): Release the
2316 target_desc_up as late as possible.
2317 * arch/i386.c (i386_create_target_description): Likewise.
2318 * arch/riscv.h (riscv_create_target_description): Update
2319 declaration to match definition.
2320 * arch/tic6x.c (tic6x_create_target_description): Release the
2321 target_desc_up as late as possible.
2322
2323 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2326 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2327
2328 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2329
2330 * source.c (directory_command): Notify observers that "directories"
2331 parameter has changed.
2332
2333 2020-10-08 Tom Tromey <tom@tromey.com>
2334
2335 * cli/cli-cmds.c (print_disassembly): Style function name and
2336 addresses. Add _() wrappers.
2337
2338 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2339
2340 * NEWS: Mention ARC support in GDBserver.
2341
2342 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * arch/aarch32.c (aarch32_create_target_description): Release
2345 unique_ptr returned from allocate_target_description.
2346 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2347 * arch/amd64.c (amd64_create_target_description): Likewise.
2348 * arch/arc.c (arc_create_target_description): Likewise.
2349 * arch/arm.c (arm_create_target_description): Likewise.
2350 * arch/i386.c (i386_create_target_description): Likewise.
2351 * arch/riscv.c (riscv_create_target_description): Update return
2352 type. Handle allocate_target_description returning a unique_ptr.
2353 (riscv_lookup_target_description): Update to handle unique_ptr.
2354 * arch/tic6x.c (tic6x_create_target_description): Release
2355 unique_ptr returned from allocate_target_description.
2356 * features/microblaze-with-stack-protect.c: Regenerate.
2357 * features/microblaze.c: Regenerate.
2358 * features/mips-dsp-linux.c: Regenerate.
2359 * features/mips-linux.c: Regenerate.
2360 * features/mips64-dsp-linux.c: Regenerate.
2361 * features/mips64-linux.c: Regenerate.
2362 * features/nds32.c: Regenerate.
2363 * features/nios2.c: Regenerate.
2364 * features/or1k.c: Regenerate.
2365 * features/rs6000/powerpc-32.c: Regenerate.
2366 * features/rs6000/powerpc-32l.c: Regenerate.
2367 * features/rs6000/powerpc-403.c: Regenerate.
2368 * features/rs6000/powerpc-403gc.c: Regenerate.
2369 * features/rs6000/powerpc-405.c: Regenerate.
2370 * features/rs6000/powerpc-505.c: Regenerate.
2371 * features/rs6000/powerpc-601.c: Regenerate.
2372 * features/rs6000/powerpc-602.c: Regenerate.
2373 * features/rs6000/powerpc-603.c: Regenerate.
2374 * features/rs6000/powerpc-604.c: Regenerate.
2375 * features/rs6000/powerpc-64.c: Regenerate.
2376 * features/rs6000/powerpc-64l.c: Regenerate.
2377 * features/rs6000/powerpc-7400.c: Regenerate.
2378 * features/rs6000/powerpc-750.c: Regenerate.
2379 * features/rs6000/powerpc-860.c: Regenerate.
2380 * features/rs6000/powerpc-altivec32.c: Regenerate.
2381 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2382 * features/rs6000/powerpc-altivec64.c: Regenerate.
2383 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2384 * features/rs6000/powerpc-e500.c: Regenerate.
2385 * features/rs6000/powerpc-e500l.c: Regenerate.
2386 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2387 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2388 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2389 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2390 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2391 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2392 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2393 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2394 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2395 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2396 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2397 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2398 * features/rs6000/powerpc-vsx32.c: Regenerate.
2399 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2400 * features/rs6000/powerpc-vsx64.c: Regenerate.
2401 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2402 * features/rs6000/rs6000.c: Regenerate.
2403 * features/rx.c: Regenerate.
2404 * features/s390-gs-linux64.c: Regenerate.
2405 * features/s390-linux32.c: Regenerate.
2406 * features/s390-linux32v1.c: Regenerate.
2407 * features/s390-linux32v2.c: Regenerate.
2408 * features/s390-linux64.c: Regenerate.
2409 * features/s390-linux64v1.c: Regenerate.
2410 * features/s390-linux64v2.c: Regenerate.
2411 * features/s390-te-linux64.c: Regenerate.
2412 * features/s390-tevx-linux64.c: Regenerate.
2413 * features/s390-vx-linux64.c: Regenerate.
2414 * features/s390x-gs-linux64.c: Regenerate.
2415 * features/s390x-linux64.c: Regenerate.
2416 * features/s390x-linux64v1.c: Regenerate.
2417 * features/s390x-linux64v2.c: Regenerate.
2418 * features/s390x-te-linux64.c: Regenerate.
2419 * features/s390x-tevx-linux64.c: Regenerate.
2420 * features/s390x-vx-linux64.c: Regenerate.
2421 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2422 from allocate_target_description.
2423 * target-descriptions.c (allocate_target_description): Update
2424 return type.
2425 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2426 allocate_target_description.
2427
2428 2020-10-07 Tom Tromey <tromey@adacore.com>
2429
2430 * unittests/search-memory-selftests.c: New file.
2431 * Makefile.in (SELFTESTS_SRCS): Add
2432 unittests/search-memory-selftests.c.
2433
2434 2020-10-07 Tom Tromey <tromey@adacore.com>
2435
2436 PR gdb/16930:
2437 * findcmd.c (_initialize_mem_search): Mention that the range is
2438 inclusive.
2439
2440 2020-10-07 Tom Tromey <tromey@adacore.com>
2441
2442 * target.h (simple_search_memory): Don't declare.
2443 * target.c (simple_search_memory): Move to gdbsupport.
2444 (default_search_memory): Update.
2445 * remote.c (remote_target::search_memory): Update.
2446
2447 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2448
2449 * Makefile.in (COMPILE): Add CXXFLAGS.
2450 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2451 (check-headers): Add CXXFLAGS.
2452
2453 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2454
2455 * arc-linux-tdep.h: New file.
2456 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2457 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2458 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2459 arc_linux_gregset, arc_linux_v2_regset,
2460 arc_linux_iterate_over_regset_sections,
2461 arc_linux_core_read_description): Implement.
2462 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2463 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2464 (arc_gdbarch_features_create): Add.
2465 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2466
2467 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2468
2469 * arch/arc.h: Rename "arc_gdbarch_features" to
2470 "arc_arch_features".
2471 * arc-tdep.h: Likewise.
2472 * arc-tdep.c: Likewise.
2473
2474 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2475
2476 * infcmd.c (attach_command): Remove the redundant call to
2477 `clear_proceed_status`.
2478
2479 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2480
2481 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2482
2483 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2484
2485 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2486 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2487 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2488
2489 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2492 (_initialize_break_catch_sig): Don't allocate array.
2493
2494 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * symtab.c (find_pc_line): Return unmapped addresses when the
2497 requested address is also unmapped.
2498
2499 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2500
2501 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2502 tui/tui-out.h.
2503
2504 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2507 type::is_vector instead of TYPE_VECTOR.
2508
2509 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * auto-load.c (auto_load_objfile_script_1): Don't use
2512 debugfile_holder as temporary variable when stripping drive
2513 letter.
2514
2515 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2516
2517 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2518 Add TYPE_CODE_COMPLEX.
2519 (amd64_windows_return_value): Fix types returned via XMM0.
2520
2521 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2522
2523 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2524 AArch64/ARM maintainers.
2525
2526 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * NEWS: Mention set/show debug event-loop.
2529
2530 2020-10-02 Tom Tromey <tromey@adacore.com>
2531
2532 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2533 REG_EXTENDED.
2534
2535 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2538 * procfs.c (procfs_inferior_created): Remove.
2539 (_initialize_procfs): Don't register procfs_inferior_created.
2540
2541 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * async-event.c (invoke_async_signal_handlers): Add debug
2544 print.
2545 (check_async_event_handlers): Likewise.
2546 * event-top.c (show_debug_event_loop): New function.
2547 (_initialize_event_top): Register "set debug event-loop"
2548 setting.
2549
2550 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2553 * debug.h: Remove.
2554 * infrun.c: Include gdbsupport/common-debug.h.
2555 * linux-nat.c: Likewise.
2556
2557 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * async-event.h (create_async_signal_handler): Add name
2560 parameter.
2561 (create_async_event_handler): Likewise.
2562 * async-event.c (struct async_signal_handler) <name>: New field.
2563 (struct async_event_handler) <name>: New field.
2564 (create_async_signal_handler): Assign name.
2565 (create_async_event_handler): Assign name.
2566 * event-top.c (async_init_signals): Pass name when creating
2567 handler.
2568 * infrun.c (_initialize_infrun): Likewise.
2569 * record-btrace.c (record_btrace_push_target): Likewise.
2570 * record-full.c (record_full_open): Likewise.
2571 * remote-notif.c (remote_notif_state_allocate): Likewise.
2572 * remote.c (remote_target::open_1): Likewise.
2573 * tui/tui-win.c (tui_initialize_win): Likewise.
2574
2575 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2576
2577 * async-event.c (initialize_async_signal_handlers): Pass name to
2578 add_file_handler
2579 * event-top.c (ui_register_input_event_handler): Likewise.
2580 * linux-nat.c (linux_nat_target::async): Likewise.
2581 * run-on-main-thread.c (_initialize_run_on_main_thread):
2582 Likewise
2583 * ser-base.c (reschedule): Likewise.
2584 (ser_base_async): Likewise.
2585 * tui/tui-io.c: Likewise.
2586 * top.h (struct ui) <num>: New field.
2587 * top.c (highest_ui_num): New variable.
2588 (ui::ui): Initialize num.
2589
2590 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * observable.h <inferior_created>: Remove parameters. Update all
2593 listeners.
2594 * inferior.h (post_create_inferior): Remove target parameter.
2595 Update all callers.
2596
2597 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2598
2599 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2600 and DW_MACRO_undef_strx.
2601 (dwarf_decode_macros): Likewise
2602 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2603 which is the value of DW_AT_str_offsets_base.
2604 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2605 str_offsets_base.
2606
2607 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2608
2609 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2610
2611 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2612
2613 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2614 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2615
2616 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2617
2618 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2619
2620 2020-09-30 Tom de Vries <tdevries@suse.de>
2621
2622 PR symtab/26683
2623 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2624
2625 2020-09-30 Tom Tromey <tromey@adacore.com>
2626
2627 * dwarf2/read.c (handle_variant): Use constant_value.
2628
2629 2020-09-29 Tom Tromey <tom@tromey.com>
2630
2631 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2632 (read_file_scope, dwarf2_get_pc_bounds)
2633 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2634 (read_structure_type, handle_struct_member_die)
2635 (read_enumeration_type, read_array_type, read_set_type)
2636 (read_tag_pointer_type, read_tag_reference_type)
2637 (read_subroutine_type, read_base_type, read_subrange_type)
2638 (read_full_die_1, partial_die_info::read)
2639 (partial_die_info::read, by, new_symbol)
2640 (dwarf2_const_value_data, dwarf2_const_value_attr)
2641 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2642 (prepare_one_comp_unit): Update.
2643 * dwarf2/attribute.h (DW_UNSND): Remove.
2644
2645 2020-09-29 Tom Tromey <tom@tromey.com>
2646
2647 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2648 (read_subroutine_type, partial_die_info::read)
2649 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2650 (dwarf2_add_member_fn): Update.
2651 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2652 * dwarf2/attribute.c (attribute::as_boolean): New method.
2653
2654 2020-09-29 Tom Tromey <tom@tromey.com>
2655
2656 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2657 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2658 method.
2659 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2660
2661 2020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2664 the attribute's form.
2665
2666 2020-09-29 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2669 (dwarf2_add_member_fn): Update.
2670 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2671 * dwarf2/attribute.c (attribute::defaulted): New method, from
2672 is_valid_DW_AT_defaulted.
2673
2674 2020-09-29 Tom Tromey <tom@tromey.com>
2675
2676 * dwarf2/read.c (dw2_get_file_names_reader)
2677 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2678 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2679 (dwarf2_symbol_mark_computed): Use as_unsigned.
2680 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2681 method.
2682 <form_is_section_offset>: Update comment.
2683
2684 2020-09-29 Tom Tromey <tom@tromey.com>
2685
2686 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2687 dwarf2_default_access_attribute. Look up attribute.
2688 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2689 Update.
2690
2691 2020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/read.c (skip_one_die): Update.
2694 (read_full_die_1): Change how reprocessing is done.
2695 (partial_die_info::read): Update.
2696 (read_attribute_value): Remove need_reprocess parameter.
2697 (read_attribute): Likewise.
2698 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2699 New method.
2700
2701 2020-09-29 Tom Tromey <tom@tromey.com>
2702
2703 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2704 (dwarf2_const_value_attr, dump_die_shallow)
2705 (dwarf2_fetch_constant_bytes): Update.
2706 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2707 comment.
2708 <set_address>: New method.
2709 (DW_ADDR): Remove.
2710 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2711 (attribute::as_string, attribute::as_address): Add assert.
2712
2713 2020-09-29 Tom Tromey <tom@tromey.com>
2714
2715 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2716 (read_attribute_reprocess, read_attribute_value): Update.
2717 (read_attribute): Clear requires_reprocessing.
2718 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2719 form_requires_reprocessing>: New methods.
2720 <string_init>: Clear requires_reprocessing.
2721 <set_unsigned_reprocess>: New method.
2722 <name>: Shrink by one bit.
2723 <requires_reprocessing>: New member.
2724 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2725 method.
2726
2727 2020-09-29 Tom Tromey <tom@tromey.com>
2728
2729 * dwarf2/read.c (read_attribute_value): Update.
2730 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2731 set_unsigned>: New methods.
2732 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2733
2734 2020-09-29 Tom Tromey <tom@tromey.com>
2735
2736 * dwarf2/read.c (get_alignment, read_array_order)
2737 (read_attribute_value, dwarf2_const_value_attr)
2738 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2739 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2740 New methods.
2741 (DW_SND): Remove.
2742
2743 2020-09-29 Tom Tromey <tom@tromey.com>
2744
2745 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2746 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2747 Update.
2748 * dwarf2/attribute.h (struct attribute) <as_signature,
2749 set_signature>: New methods.
2750 (DW_SIGNATURE): Remove.
2751
2752 2020-09-29 Tom Tromey <tom@tromey.com>
2753
2754 * dwarf2/read.c (read_call_site_scope)
2755 (handle_data_member_location, dwarf2_add_member_fn)
2756 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2757 (partial_die_info::read, read_attribute_value)
2758 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2759 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2760 (dwarf2_symbol_mark_computed): Update.
2761 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2762 methods.
2763 (DW_BLOCK): Remove.
2764 * dwarf2/attribute.c (attribute::form_is_block): Add
2765 DW_FORM_data16.
2766
2767 2020-09-29 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (read_cutu_die_from_dwo)
2770 (read_attribute_reprocess, read_attribute_value, read_attribute)
2771 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2772 (dwarf2_fetch_constant_bytes): Update.
2773 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2774 <set_string_noncanonical, set_string_canonical>: New methods.
2775 <string_is_canonical>: Update comment.
2776 <canonical_string_p>: Add assert.
2777 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2778 * dwarf2/attribute.c (attribute::form_is_string): New method.
2779 (attribute::string): Use it.
2780
2781 2020-09-29 Tom Tromey <tom@tromey.com>
2782
2783 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2784 (dump_die_shallow): Use canonical_string_p.
2785 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2786 method.
2787
2788 2020-09-29 Tom Tromey <tom@tromey.com>
2789
2790 * dwarf2/read.c (partial_die_info::read)
2791 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2792 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2793 attribute::as_string.
2794
2795 2020-09-29 Tom Tromey <tom@tromey.com>
2796
2797 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2798 DW_ADDR.
2799 (attribute::string): Don't use DW_STRING.
2800 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2801 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2802
2803 2020-09-29 Tom Tromey <tom@tromey.com>
2804
2805 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2806 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2807 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2808 * dwarf2/attribute.h (struct attribute): Rename methods.
2809 * dwarf2/attribute.c (attribute::as_address): Rename from
2810 value_as_address.
2811 (attribute::as_string): Rename from value_as_string.
2812
2813 2020-09-29 Tom Tromey <tom@tromey.com>
2814
2815 * dwarf2/read.c (partial_die_info::read) <case
2816 DW_AT_linkage_name>: Use value_as_string.
2817 (dwarf2_string_attr): Use value_as_string.
2818 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2819 method.
2820 * dwarf2/attribute.c (attribute::value_as_string): New method.
2821
2822 2020-09-29 Pedro Alves <pedro@palves.net>
2823
2824 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2825 defined before using '#pragma GCC diagnostic' instead of checking
2826 __clang__.
2827
2828 2020-09-28 Tom Tromey <tom@tromey.com>
2829
2830 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2831 (handle_signal_stop): Update.
2832 * procfs.c (procfs_target::insert_watchpoint): Update.
2833 * target.h (target_have_steppable_watchpoint): Now a function.
2834
2835 2020-09-28 Tom Tromey <tom@tromey.com>
2836
2837 * infrun.c (set_schedlock_func): Update.
2838 * target.h (target_can_lock_scheduler): Now a function.
2839
2840 2020-09-28 Tom Tromey <tom@tromey.com>
2841
2842 * inferior.h (class inferior) <has_execution>: Update.
2843 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2844 * valops.c (find_function_in_inferior)
2845 (value_allocate_space_in_inferior): Update.
2846 * top.c (kill_or_detach): Update.
2847 * target.c (target_preopen, set_target_permissions): Update.
2848 (target_has_execution_current): Remove.
2849 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2850 Update.
2851 * solib.c (update_solib_list, reload_shared_libraries): Update.
2852 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2853 * solib-dsbt.c (enable_break): Update.
2854 * score-tdep.c (score7_fetch_inst): Update.
2855 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2856 Update.
2857 * remote.c (remote_target::start_remote)
2858 (remote_target::remote_check_symbols, remote_target::open_1)
2859 (remote_target::remote_detach_1, remote_target::verify_memory)
2860 (remote_target::xfer_partial, remote_target::read_description)
2861 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2862 * record-full.c (record_full_open_1): Update.
2863 * record-btrace.c (record_btrace_target_open): Update.
2864 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2865 (value_nsstring): Update.
2866 * linux-thread-db.c (add_thread_db_info)
2867 (thread_db_find_new_threads_silently, check_thread_db_callback)
2868 (try_thread_db_load_1, record_thread): Update.
2869 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2870 Update.
2871 * linux-fork.c (checkpoint_command): Update.
2872 * infrun.c (set_non_stop, set_observer_mode)
2873 (check_multi_target_resumption, for_each_just_stopped_thread)
2874 (maybe_remove_breakpoints, normal_stop)
2875 (class infcall_suspend_state): Update.
2876 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2877 (info_program_command, attach_command): Update.
2878 * infcall.c (call_function_by_hand_dummy): Update.
2879 * inf-loop.c (inferior_event_handler): Update.
2880 * gcore.c (gcore_command, derive_heap_segment): Update.
2881 * exec.c (exec_file_command): Update.
2882 * eval.c (evaluate_subexp): Update.
2883 * compile/compile.c (compile_to_object): Update.
2884 * cli/cli-dump.c (restore_command): Update.
2885 * breakpoint.c (update_watchpoint)
2886 (update_inserted_breakpoint_locations)
2887 (insert_breakpoint_locations, get_bpstat_thread): Update.
2888 * target.h (target_has_execution): Remove macro.
2889 (target_has_execution_current): Don't declare.
2890 (target_has_execution): Rename from target_has_execution_1. Add
2891 argument default.
2892
2893 2020-09-28 Tom Tromey <tom@tromey.com>
2894
2895 * mi/mi-main.c (exec_reverse_continue)
2896 (mi_cmd_list_target_features): Update.
2897 * infrun.c (set_exec_direction_func): Update.
2898 * target.c (default_execution_direction): Update.
2899 * reverse.c (exec_reverse_once): Update.
2900 * target.h (target_can_execute_reverse): Now a function.
2901
2902 2020-09-28 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-regs.c (tui_get_register)
2905 (tui_data_window::show_registers): Update.
2906 * thread.c (scoped_restore_current_thread::restore)
2907 (scoped_restore_current_thread::scoped_restore_current_thread):
2908 Update.
2909 * regcache-dump.c (regcache_print): Update.
2910 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2911 Update.
2912 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2913 * mep-tdep.c (current_me_module, current_options): Update.
2914 * linux-thread-db.c (thread_db_load): Update.
2915 * infcmd.c (registers_info, info_vector_command)
2916 (info_float_command): Update.
2917 * ia64-tdep.c (ia64_frame_prev_register)
2918 (ia64_sigtramp_frame_prev_register): Update.
2919 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2920 * gcore.c (derive_stack_segment): Update.
2921 * frame.c (get_current_frame, has_stack_frames): Update.
2922 * findvar.c (language_defn::read_var_value): Update.
2923 * arm-tdep.c (arm_pc_is_thumb): Update.
2924 * target.c (target_has_registers): Rename from
2925 target_has_registers_1.
2926 * target.h (target_has_registers): Remove macro.
2927 (target_has_registers): Rename from target_has_registers_1.
2928
2929 2020-09-28 Tom Tromey <tom@tromey.com>
2930
2931 * windows-tdep.c (tlb_make_value): Update.
2932 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2933 * thread.c (scoped_restore_current_thread::restore)
2934 (scoped_restore_current_thread::scoped_restore_current_thread)
2935 (thread_command): Update.
2936 * stack.c (backtrace_command_1, frame_apply_level_command)
2937 (frame_apply_all_command, frame_apply_command): Update.
2938 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2939 Update.
2940 * gcore.c (derive_stack_segment): Update.
2941 * frame.c (get_current_frame, has_stack_frames): Update.
2942 * auxv.c (info_auxv_command): Update.
2943 * ada-tasks.c (ada_build_task_list): Update.
2944 * target.c (target_has_stack): Rename from target_has_stack_1.
2945 * target.h (target_has_stack): Remove macro.
2946 (target_has_stack): Rename from target_has_stack_1.
2947
2948 2020-09-28 Tom Tromey <tom@tromey.com>
2949
2950 * target.c (target_has_memory): Rename from target_has_memory_1.
2951 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2952 * thread.c (scoped_restore_current_thread::restore)
2953 (scoped_restore_current_thread::scoped_restore_current_thread):
2954 Update.
2955 * frame.c (get_current_frame, has_stack_frames): Update.
2956 * target.h (target_has_memory): Remove macro.
2957 (target_has_memory): Rename from target_has_memory_1.
2958
2959 2020-09-28 Tom Tromey <tom@tromey.com>
2960
2961 * target.c (target_has_all_memory_1): Remove.
2962 * target.h (target_has_all_memory): Remove define.
2963 (target_has_all_memory_1): Don't declare.
2964
2965 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * ser-base.c: Adjust comments formatting.
2968
2969 2020-09-27 Tom Tromey <tom@tromey.com>
2970
2971 PR tui/25342:
2972 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2973
2974 2020-09-27 Tom Tromey <tom@tromey.com>
2975
2976 PR tui/25342:
2977 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2978
2979 2020-09-27 Tom Tromey <tom@tromey.com>
2980
2981 * unittests/tui-selftests.c: Update.
2982 * tui/tui-winsource.h (struct tui_source_window_base)
2983 <extra_margin, show_line_number, refresh_pad>: New methods.
2984 <m_max_length, m_pad>: New members.
2985 (tui_copy_source_line): Update.
2986 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2987 first_col, line_width, ndigits parameters. Add length.
2988 (tui_source_window_base::show_source_line): Write to pad. Line
2989 number now 0-based.
2990 (tui_source_window_base::refresh_pad): New method.
2991 (tui_source_window_base::show_source_content): Write to pad. Call
2992 refresh_pad.
2993 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2994 not refill.
2995 (tui_source_window_base::update_exec_info): Call
2996 show_line_number.
2997 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2998 method.
2999 <m_digits>: New member.
3000 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3001 and m_max_length.
3002 (tui_source_window::show_line_number): New method.
3003 * tui/tui-io.h (tui_puts): Fix comment.
3004 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3005 m_max_length.
3006
3007 2020-09-27 Tom Tromey <tom@tromey.com>
3008
3009 * tui/tui-winsource.c
3010 (tui_source_window_base::set_is_exec_point_at): Don't call
3011 show_source_line.
3012
3013 2020-09-27 Tom Tromey <tom@tromey.com>
3014
3015 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3016 method.
3017 <erase>: Update.
3018 <cursor_x, cursor_y>: Remove.
3019 <m_inner_window>: New member.
3020 (tui_py_window::rerender): Create inner window.
3021 (tui_py_window::output): Write to inner window.
3022
3023 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3024
3025 PR python/26586
3026 * cli/cli-script.c (execute_control_commands): don't set
3027 instream to nullptr here as this breaks the from_tty argument
3028 to gdb.execute in Python.
3029 (execute_user_command): set instream to nullptr here instead.
3030
3031 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * infrun.h (infrun_debug_printf): Fix formatting.
3034 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3035
3036 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3037
3038 * compile/compile-object-load.h (struct munmap_list): Add
3039 explicitly-defined move constructor.
3040
3041 2020-09-24 Tom Tromey <tromey@adacore.com>
3042
3043 PR tui/26638:
3044 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3045 method.
3046 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3047 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3048 (tui_prev_win): Rewrite.
3049
3050 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3051
3052 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3053 in WOW64 processes as SIGINT.
3054 * nat/windows-nat.h: Make wow64_process a shared variable.
3055 * windows-nat.c: Remove static wow64_process variable.
3056
3057 2020-09-23 Tom Tromey <tom@tromey.com>
3058
3059 PR symtab/25470:
3060 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3061 offset and bit size.
3062 * printcmd.c (print_scalar_formatted): Handle zero-length
3063 integer.
3064 (print_scalar_formatted): Use bit_size_differs_p.
3065 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3066 constant.
3067 (union type_specific): <int_stuff>: New member.
3068 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3069 methods.
3070 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3071 TYPE_SPECIFIC_FIELD.
3072 (recursive_dump_type, copy_type_recursive): Update.
3073 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3074 DW_AT_data_bit_offset.
3075
3076 2020-09-23 Tom Tromey <tom@tromey.com>
3077
3078 * utils.h (class gdb_argv): Add move operators.
3079 <append>: New methods.
3080 * compile/compile.c (build_argc_argv): Remove.
3081 (compile_args_argc): Remove.
3082 (compile_args_argv): Change type.
3083 (set_compile_args): Simplify.
3084 (append_args): Remove.
3085 (filter_args): Remove argcp parameter.
3086 (get_args): Return gdb_argv. Simplify.
3087 (compile_to_object): Update.
3088
3089 2020-09-23 Tom Tromey <tom@tromey.com>
3090
3091 * compile/compile-object-run.c (do_module_cleanup)
3092 <~do_module_cleanup> :Remove.
3093 (do_module_cleanup): Update.
3094 * compile/compile-object-load.h (struct munmap_list): Add move
3095 assignment operator.
3096 <source_file>: Now a std::string.
3097 <munmap_list>: Rename. No longer a pointer.
3098 * compile/compile-object-load.c (struct setup_sections_data): Add
3099 constructor.
3100 <setup_one_section>: Declare.
3101 <munmap_list>: Move earlier.
3102 <m_bfd>: New member.
3103 <m_last_size, m_last_section_first, m_last_prot,
3104 m_last_max_alignment>: Rename, add initializers where needed.
3105 (setup_sections_data::setup_one_section): Rename from
3106 setup_sections. Update.
3107 (compile_object_load): Update. Don't use bfd_map_over_sections.
3108
3109 2020-09-23 Tom Tromey <tom@tromey.com>
3110
3111 * compile/compile-object-run.c (struct do_module_cleanup): Add
3112 parameters to constructor. Update destructor.
3113 <source_file, scope, scope_data, out_value_type, out_value_addr,
3114 munmap_list_head, objfile_name_string>: Remove.
3115 <module>: New member.
3116 (do_module_cleanup): Update.
3117 (compile_object_run): Update.
3118
3119 2020-09-23 Tom Tromey <tom@tromey.com>
3120
3121 * compile/compile.c (eval_compile_command): Update.
3122 * compile/compile-object-run.h (compile_object_run): Take a
3123 compile_module_up.
3124 * compile/compile-object-run.c (compile_object_run): Take a
3125 compile_module_up.
3126 * compile/compile-object-load.h (struct compile_module): Add
3127 constructor, destructor.
3128 (compile_module_up): New typedef.
3129 (compile_object_load): Return compile_object_up.
3130 * compile/compile-object-load.c (compile_object_load): Return
3131 compile_module_up.
3132
3133 2020-09-23 Tom Tromey <tom@tromey.com>
3134
3135 * compile/compile-object-run.c (struct do_module_cleanup): Add
3136 constructor, destructor.
3137 <objfile_name_string>: Don't use struct hack.
3138 (do_module_cleanup): Use delete.
3139 (compile_object_run): Use new.
3140
3141 2020-09-23 Tom Tromey <tom@tromey.com>
3142
3143 * compile/compile-cplus-types.c
3144 (compile_cplus_convert_struct_or_union): Use std::vector.
3145 (compile_cplus_convert_func): Likewise.
3146 * compile/compile-c-types.c (convert_func): Use std::vector.
3147
3148 2020-09-21 Tom Tromey <tromey@adacore.com>
3149
3150 * sparc-tdep.c (sparc32_skip_prologue): Use
3151 skip_prologue_using_sal.
3152
3153 2020-09-19 Tom Tromey <tom@tromey.com>
3154
3155 * symfile.c (add_section_size_callback): Remove.
3156 (load_one_section): Rename from load_section_callback. Change
3157 parameters.
3158 (generic_load): Use foreach.
3159
3160 2020-09-19 Tom Tromey <tom@tromey.com>
3161
3162 * exec.c (add_to_section_table): Remove.
3163 (build_section_table): Use foreach.
3164
3165 2020-09-19 Tom Tromey <tom@tromey.com>
3166
3167 * elfread.c (elf_locate_sections): Change parameters.
3168 (elf_symfile_read): Use foreach.
3169
3170 2020-09-19 Tom Tromey <tom@tromey.com>
3171
3172 * cli/cli-dump.c (struct callback_data): Remove.
3173 (restore_one_section): Rename from restore_section_callback.
3174 Change parameters.
3175 (restore_binary_file): Change parameters.
3176 (restore_command): Use foreach.
3177
3178 2020-09-19 Tom Tromey <tom@tromey.com>
3179
3180 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3181 (gcore_copy_callback): Likewise.
3182 (gcore_memory_sections): Use foreach.
3183
3184 2020-09-19 Tom Tromey <tom@tromey.com>
3185
3186 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3187 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3188 parameters.
3189 (generic_elf_osabi_sniffer): Use foreach.
3190 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3191 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3192
3193 2020-09-19 Tom Tromey <tom@tromey.com>
3194
3195 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3196 (dwarf2_get_dwz_file): Use foreach.
3197 (dwarf2_locate_dwo_sections): Change parameters.
3198 (open_and_init_dwo_file): Use foreach.
3199 (dwarf2_locate_common_dwp_sections): Change parameters.
3200 (open_and_init_dwp_file): Use foreach.
3201
3202 2020-09-19 Tom Tromey <tom@tromey.com>
3203
3204 * symfile.h: (find_lowest_section): Don't declare.
3205 * symfile.c (find_lowest_section): Now static. Change
3206 parameters.
3207 (struct place_section_arg): Remove.
3208 (place_section): Change parameters.
3209 (addr_info_make_relative): Use foreach.
3210 (symfile_dummy_outputs): Remove.
3211 (default_symfile_relocate): Use foreach.
3212
3213 2020-09-19 Tom Tromey <tom@tromey.com>
3214
3215 * objfiles.c (add_to_objfile_sections): Rename from
3216 add_to_objfile_sections_full.
3217 (add_to_objfile_sections): Remove.
3218 (build_objfile_section_table): Use foreach.
3219
3220 2020-09-19 Tom Tromey <tom@tromey.com>
3221
3222 * stap-probe.c (get_stap_base_address_1): Remove.
3223 (get_stap_base_address): Use foreach.
3224
3225 2020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3228 parameters.
3229 (gdb_bfd_close_or_warn): Use foreach.
3230
3231 2020-09-19 Tom Tromey <tom@tromey.com>
3232
3233 * corelow.c (add_to_thread_list): Change parameters.
3234 (core_target_open): Use foreach.
3235
3236 2020-09-19 Tom Tromey <tom@tromey.com>
3237
3238 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3239 existing function.
3240
3241 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3244 for arrays.
3245
3246 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * eval.c: Remove 'f-lang.h' include.
3249 (value_f90_subarray): Moved to f-lang.c.
3250 (eval_call): Renamed to...
3251 (evaluate_subexp_do_call): ...this, is no longer static, header
3252 comment moved into header file.
3253 (evaluate_funcall): Update call to eval_call.
3254 (skip_undetermined_arglist): Moved to f-lang.c.
3255 (fortran_value_subarray): Likewise.
3256 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3257 moved to evaluate_subexp_f.
3258 (calc_f77_array_dims): Moved to f-lang.c
3259 * expprint.c (print_subexp_funcall): New function.
3260 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3261 moved to print_subexp_f, OP_FUNCALL uses new function.
3262 (dump_subexp_body_funcall): New function.
3263 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3264 moved to dump_subexp_f, OP_FUNCALL uses new function.
3265 * expression.h (evaluate_subexp_do_call): Declare.
3266 * f-lang.c (value_f90_subarray): Moved from eval.c.
3267 (skip_undetermined_arglist): Likewise.
3268 (calc_f77_array_dims): Likewise.
3269 (fortran_value_subarray): Likewise.
3270 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3271 (operator_length_f): Likewise.
3272 (print_subexp_f): Likewise.
3273 (dump_subexp_body_f): Likewise.
3274 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3275 declaration of this operation to here.
3276 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3277 support moved to operator_length_f.
3278 * parser-defs.h (dump_subexp_body_funcall): Declare.
3279 (print_subexp_funcall): Declare.
3280 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3281 fortran-operator.def.
3282
3283 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * eval.c (fortran_value_subarray): New function, content is taken
3286 from...
3287 (evaluate_subexp_standard): ...here, in two places. Now arrays
3288 and strings both call the new function.
3289 (calc_f77_array_dims): Add header comment, handle strings.
3290
3291 2020-09-18 Victor Collod <vcollod@nvidia.com>
3292
3293 PR gdb/26635
3294 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3295 (i386_analyze_prologue): Call i386_skip_endbr.
3296
3297 2020-09-18 Tom Tromey <tromey@adacore.com>
3298
3299 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3300 (windows_nat_target::wait): Update.
3301 * target/wait.h (enum target_wait_flag): New. Use
3302 DEF_ENUM_FLAGS_TYPE.
3303 * target/target.h (target_wait): Change type of options.
3304 * target.h (target_options_to_string, default_target_wait):
3305 Update.
3306 (struct target_ops) <wait>: Change type of options.
3307 * target.c (target_wait, default_target_wait, do_option): Change
3308 type of "options".
3309 (target_options_to_string): Likewise.
3310 * target-delegates.c: Rebuild.
3311 * target-debug.h (target_debug_print_target_wait_flags): Rename
3312 from target_debug_print_options.
3313 * sol-thread.c (class sol_thread_target) <wait>: Update.
3314 (sol_thread_target::wait): Update.
3315 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3316 (rs6000_nat_target::wait): Update.
3317 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3318 Update.
3319 (remote_target::wait_ns, remote_target::wait_as): Change type of
3320 "options".
3321 (remote_target::wait): Update.
3322 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3323 (gdbsim_target::wait): Update.
3324 * record-full.c (class record_full_base_target) <wait>: Update.
3325 (record_full_wait_1): Change type of "options".
3326 (record_full_base_target::wait): Update.
3327 * record-btrace.c (class record_btrace_target) <wait>: Update.
3328 (record_btrace_target::wait): Update.
3329 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3330 Update.
3331 (ravenscar_thread_target::wait): Update.
3332 * procfs.c (class procfs_target) <wait>: Update.
3333 (procfs_target::wait): Update.
3334 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3335 * obsd-nat.c (obsd_nat_target::wait): Update.
3336 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3337 (nto_procfs_target::wait): Update.
3338 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3339 * nbsd-nat.c (nbsd_wait): Change type of "options".
3340 (nbsd_nat_target::wait): Update.
3341 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3342 (thread_db_target::wait): Update.
3343 * linux-nat.h (class linux_nat_target) <wait>: Update.
3344 * linux-nat.c (linux_nat_target::wait): Update.
3345 (linux_nat_wait_1): Update.
3346 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3347 "options".
3348 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3349 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3350 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3351 (go32_nat_target::wait): Update.
3352 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3353 * gnu-nat.c (gnu_nat_target::wait): Update.
3354 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3355 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3356 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3357 * darwin-nat.c (darwin_nat_target::wait): Update.
3358 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3359 (bsd_uthread_target::wait): Update.
3360 * aix-thread.c (class aix_thread_target) <wait>: Update.
3361 (aix_thread_target::wait): Update.
3362
3363 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * compile/compile-object-run.c (create_copied_type_recursive): New
3366 function.
3367 (compile_object_run): Use new function.
3368
3369 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3370
3371 * NEWS: Mention x86_64 Cygwin core file support.
3372
3373 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3374
3375 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3376 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3377
3378 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3379
3380 * windows-tdep.h: Add prototypes.
3381 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3382 (i386_windows_core_pid_to_str): Move and rename ...
3383 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3384 (windows_core_pid_to_str): ... and here.
3385 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3386
3387 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3388 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3389 (amd64_windows_init_abi_common): ... and register.
3390
3391 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3392
3393 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3394 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3395
3396 2020-09-18 Pedro Alves <pedro@palves.net>
3397
3398 PR gdb/26631
3399 * thread.c (thread_find_command): Switch inferior before calling
3400 target methods.
3401
3402 2020-09-17 Tom Tromey <tromey@adacore.com>
3403
3404 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3405 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3406 (tdesc_arch_data_up): New typedef.
3407 (tdesc_use_registers, tdesc_data_alloc): Update.
3408 (tdesc_data_cleanup): Don't declare.
3409 * target-descriptions.c (tdesc_data_alloc): Return a
3410 tdesc_arch_data_up.
3411 (tdesc_arch_data_deleter::operator()): Rename from
3412 tdesc_data_cleanup. Change argument type.
3413 (tdesc_use_registers): Change early_data to an rvalue reference.
3414 (tdesc_use_registers): Don't use delete.
3415 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3416 * s390-tdep.c (s390_gdbarch_init): Update.
3417 * rx-tdep.c (rx_gdbarch_init): Update.
3418 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3419 * riscv-tdep.c (riscv_gdbarch_init): Update.
3420 * or1k-tdep.c (or1k_gdbarch_init): Update.
3421 * nios2-tdep.c (nios2_gdbarch_init): Update.
3422 * nds32-tdep.c (nds32_gdbarch_init): Update.
3423 * mips-tdep.c (mips_gdbarch_init): Update.
3424 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3425 * m68k-tdep.c (m68k_gdbarch_init): Update.
3426 * i386-tdep.c (i386_gdbarch_init): Update.
3427 * arm-tdep.c (arm_gdbarch_init): Update.
3428 * arc-tdep.c (arc_tdesc_init): Update.
3429 (arc_gdbarch_init): Update.
3430 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3431
3432 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3433
3434 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3435 for WOW64 processes.
3436
3437 2020-09-17 Tom Tromey <tom@tromey.com>
3438
3439 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3440
3441 2020-09-17 Tom Tromey <tom@tromey.com>
3442
3443 * value.c (preserve_values): Update.
3444 * python/py-type.c (save_objfile_types): Update.
3445 * guile/scm-type.c (save_objfile_types): Update.
3446 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3447 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3448 * compile/compile-object-run.c (compile_object_run): Update.
3449
3450 2020-09-17 Tom Tromey <tom@tromey.com>
3451
3452 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3453 Remove.
3454 <m_table>: Now htab_up.
3455 * typeprint.c (typedef_hash_table::recursively_update)
3456 (typedef_hash_table::add_template_parameters)
3457 (typedef_hash_table::typedef_hash_table): Update.
3458 (typedef_hash_table::~typedef_hash_table): Remove.
3459 (typedef_hash_table::typedef_hash_table)
3460 (typedef_hash_table::find_global_typedef)
3461 (typedef_hash_table::find_typedef): Update.
3462
3463 2020-09-17 Tom Tromey <tom@tromey.com>
3464
3465 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3466
3467 2020-09-17 Tom Tromey <tom@tromey.com>
3468
3469 * linespec.c (class decode_compound_collector)
3470 <~decode_compound_collector>: Remove.
3471 <m_unique_syms>: Now htab_up.
3472 (decode_compound_collector::operator ()): Update.
3473 (class symtab_collector) <~symtab_collector>: Remove.
3474 <m_symtab_table>: Now htab_up.
3475 (symtab_collector::operator ()): Update.
3476
3477 2020-09-17 Tom Tromey <tom@tromey.com>
3478
3479 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3480 (filename_seen_cache::clear): Update.
3481 (~filename_seen_cache): Remove.
3482 (filename_seen_cache::seen): Update.
3483 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3484 htab_up.
3485 <~filename_seen_cache>: Remove.
3486 <traverse>: Update.
3487
3488 2020-09-17 Tom Tromey <tom@tromey.com>
3489
3490 * completer.c (completion_tracker::discard_completions)
3491 (completion_tracker::~completion_tracker)
3492 (completion_tracker::maybe_add_completion)
3493 (completion_tracker::remove_completion)
3494 (completion_tracker::recompute_lowest_common_denominator)
3495 (completion_tracker::build_completion_result): Update.
3496 * completer.h (class completion_tracker) <have_completions>:
3497 Update.
3498 <m_entries_hash>: Now htab_up.
3499
3500 2020-09-17 Tom Tromey <tom@tromey.com>
3501
3502 * breakpoint.c (ambiguous_names_p): Use htab_up.
3503
3504 2020-09-17 Tom Tromey <tom@tromey.com>
3505
3506 * auto-load.c (struct auto_load_pspace_info)
3507 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3508 <loaded_script_files, loaded_script_texts>: Change type to
3509 htab_up.
3510 (~auto_load_pspace_info) Remove.
3511 (init_loaded_scripts_info, maybe_add_script_file)
3512 (maybe_add_script_text, auto_load_info_scripts): Update.
3513
3514 2020-09-17 Tom Tromey <tromey@adacore.com>
3515
3516 * c-exp.y (name_obstack): Now static.
3517
3518 2020-09-17 Chungyi Chi <demonic@csie.io>
3519
3520 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3521
3522 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3525 (add_solib_catchpoint): Likewise.
3526 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3527 to bool.
3528 (add_solib_catchpoint): Change int parameter/variable to bool.
3529 (catch_load_or_unload): Likewise.
3530 (init_catchpoint): Likewise.
3531 (create_fork_vfork_event_catchpoint): Likewise.
3532 (catch_fork_command_1): Likewise.
3533 (catch_exec_command_1): Likewise.
3534
3535 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3538 Change instance_flags to m_instance_flags.
3539
3540 2020-09-16 Tom Tromey <tromey@adacore.com>
3541
3542 PR gdb/26598:
3543 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3544
3545 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3546
3547 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3548 PL_FLAG_EXEC.
3549 (fbsd_nat_target::insert_exec_catchpoint)
3550 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3551 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3552 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3553
3554 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3555
3556 * configure.ac: Remove check for kinfo_getvmmap().
3557 * configure, config.in: Regenerate.
3558 * fbsd-nat.c (fbsd_read_mapping): Remove
3559 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3560 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3561 kinfo_get_vmmap() are always present.
3562
3563 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3564
3565 * fbsd-nat.c: Always include support for
3566 TARGET_OBJECT_SIGNAL_INFO.
3567
3568 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3569
3570 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3571 sysctl and remove procfs fallback.
3572
3573 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3574
3575 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3576 * fbsd-nat.h: Likewise.
3577
3578 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3579
3580 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3581 argument.
3582
3583 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3584
3585 * ada-lang.c (ada_language_data): Delete.
3586 (ada_language): Remove references to ada_language_data.
3587 * c-lang.c (c_language_data): Delete.
3588 (c_language): Remove references to c_language_data.
3589 (cplus_language_data): Delete.
3590 (cplus_language): Remove references to cplus_language_data.
3591 (asm_language_data): Delete.
3592 (asm_language): Remove references to asm_language_data.
3593 (minimal_language_data): Delete.
3594 (minimal_language): Remove references to minimal_language_data.
3595 * d-lang.c (d_language_data): Delete.
3596 (d_language): Remove references to d_language_data.
3597 * f-lang.c (f_language_data): Delete.
3598 (f_language): Remove references to f_language_data.
3599 * go-lang.c (go_language_data): Delete.
3600 (go_language): Remove references to go_language_data.
3601 * language.c (unknown_language_data): Delete.
3602 (unknown_language): Remove references to unknown_language_data.
3603 (auto_language_data): Delete.
3604 (auto_language): Remove references to auto_language_data.
3605 * language.h (language_data): Delete struct.
3606 (language_defn): No longer inherit from language_data.
3607 * m2-lang.c (m2_language_data): Delete.
3608 (m2_language): Remove references to m2_language_data.
3609 * objc-lang.c (objc_language_data): Delete.
3610 (objc_language): Remove references to objc_language_data.
3611 * opencl-lang.c (opencl_language_data): Delete.
3612 (opencl_language): Remove references to opencl_language_data.
3613 * p-lang.c (pascal_language_data): Delete.
3614 (pascal_language): Remove references to pascal_language_data.
3615 * rust-lang.c (rust_language_data): Delete.
3616 (rust_language): Remove references to rust_language_data.
3617
3618 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3621 initializer.
3622 (ada_language::opcode_print_table): New member function.
3623 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3624 (c_language::opcode_print_table): New member function.
3625 (cplus_language_data): Remove la_op_print_tab initializer.
3626 (cplus_language::opcode_print_table): New member function.
3627 (asm_language_data): Remove la_op_print_tab initializer.
3628 (asm_language::opcode_print_table): New member function.
3629 (minimal_language_data): Remove la_op_print_tab initializer.
3630 (minimal_language::opcode_print_table): New member function.
3631 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3632 (d_language::opcode_print_table): New member function.
3633 * expprint.c (print_subexp_standard): Update call to
3634 opcode_print_table.
3635 (op_string): Likewise.
3636 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3637 (f_language::opcode_print_table): New member function.
3638 * go-lang.c (go_language_data): Remove la_op_print_tab
3639 initializer.
3640 (go_language::opcode_print_table): New member function.
3641 * language.c (unknown_language_data): Remove la_op_print_tab
3642 initializer.
3643 (unknown_language::opcode_print_table): New member function.
3644 (auto_language_data): Remove la_op_print_tab initializer.
3645 (auto_language::opcode_print_table): New member function.
3646 * language.h (language_data): Remove la_op_print_tab field.
3647 (language_defn::opcode_print_table): Declare new member function.
3648 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3649 initializer.
3650 (m2_language::opcode_print_table): New member function.
3651 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3652 initializer.
3653 (objc_language::opcode_print_table): New member function.
3654 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3655 initializer.
3656 (opencl_language::opcode_print_table): New member function.
3657 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3658 initializer.
3659 (pascal_language::opcode_print_table): New member function.
3660 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3661 initializer.
3662 (rust_language::opcode_print_table): New member function.
3663
3664 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3667 (ada_language::expression_ops): New member function.
3668 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3669 (c_language::expression_ops): New member function.
3670 (cplus_language_data): Remove la_exp_desc initializer.
3671 (cplus_language::expression_ops): New member function.
3672 (asm_language_data): Remove la_exp_desc initializer.
3673 (asm_language::expression_ops): New member function.
3674 (minimal_language_data): Remove la_exp_desc initializer.
3675 (minimal_language::expression_ops): New member function.
3676 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3677 (d_language::expression_ops): New member function.
3678 * eval.c (evaluate_subexp): Update call to expression_ops.
3679 * expprint.c (print_subexp): Likewise.
3680 (op_name): Likewise.
3681 (dump_subexp_body): Likewise.
3682 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3683 (f_language::expression_ops): New member function.
3684 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3685 (go_language::expression_ops): New member function.
3686 * language.c (language_defn::expression_ops): New function.
3687 (unknown_language_data): Remove la_exp_desc initializer.
3688 (auto_language_data): Likewise.
3689 * language.h (language_data): Remove la_exp_desc field.
3690 (language_defn::expression_ops): Declare new member function.
3691 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3692 (m2_language::expression_ops): New member function.
3693 * objc-lang.c (objc_language_data): Remove la_exp_desc
3694 initializer.
3695 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3696 initializer.
3697 (opencl_language::expression_ops): New member function.
3698 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3699 * parse.c (operator_length): Update call to expression_ops.
3700 (exp_iterate): Likewise.
3701 * rust-lang.c (rust_language_data): Remove la_exp_desc
3702 initializer.
3703 (ruse_language::expression_ops): New member function.
3704
3705 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3708 initializer.
3709 (ada_language::varobj_ops): New member function.
3710 * c-lang.c (c_language_data): Remove la_varobj_ops
3711 initializer.
3712 (cplus_language_data): Likewise.
3713 (cplus_language::varobj_ops): New member function.
3714 (asm_language_data): Remove la_varobj_ops initializer.
3715 (minimal_language_data): Likewise.
3716 * d-lang.c (d_language_data): Likewise.
3717 * f-lang.c (f_language_data): Likewise.
3718 * go-lang.c (go_language_data): Likewise.
3719 * language.c (language_defn::varobj_ops): New function.
3720 (unknown_language_data): Remove la_varobj_ops
3721 initializer.
3722 (auto_language_data): Likewise.
3723 * language.h (language_data): Remove la_varobj_ops field.
3724 (language_defn::varobj_ops): Declare new member function.
3725 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3726 * objc-lang.c (objc_language_data): Likewise.
3727 * opencl-lang.c (opencl_language_data): Likewise.
3728 * p-lang.c (pascal_language_data): Likewise.
3729 * rust-lang.c (rust_language_data): Likewise.
3730 * varobj.c (varobj_create): Update call to varobj_ops.
3731 * varobj.h (default_varobj_ops): Delete define.
3732
3733 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3736 initializer.
3737 * c-lang.c (c_language_data): Likewise.
3738 (c_language::macro_expansion): New member function.
3739 (cplus_language_data): Likewise.
3740 (cplus_language::macro_expansion): New member function.
3741 (asm_language_data): Likewise.
3742 (asm_language::macro_expansion): New member function.
3743 (minimal_language_data): Likewise.
3744 (minimal_language::macro_expansion): New member function.
3745 * d-lang.c (d_language_data): Remove la_macro_expansion
3746 initializer.
3747 * f-lang.c (f_language_data): Likewise.
3748 * go-lang.c (go_language_data): Likewise.
3749 * language.c (unknown_language_data): Likewise.
3750 (auto_language_data): Likewise.
3751 * language.h (language_data): Remove la_macro_expansion field.
3752 (language_defn::macro_expansion): New member function.
3753 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3754 initializer.
3755 * objc-lang.c (objc_language_data): Likewise.
3756 (objc_language::macro_expansion): New member function.
3757 * opencl-lang.c (opencl_language_data): Likewise.
3758 (opencl_language::macro_expansion): New member function.
3759 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3760 initializer.
3761 * rust-lang.c (rust_language_data): Likewise.
3762 * symtab.c (default_collect_symbol_completion_matches_break_on):
3763 Update call to macro_expansion.
3764
3765 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * ada-lang.c (ada_language_data): Remove la_array_ordering
3768 initializer.
3769 * c-lang.c (c_language_data): Likewise.
3770 (cplus_language_data): Likewise.
3771 (asm_language_data): Likewise.
3772 (minimal_language_data): Likewise.
3773 * d-lang.c (d_language_data): Likewise.
3774 * dwarf2/read.c (read_array_order): Update for call to
3775 array_ordering.
3776 * f-lang.c (f_language_data): Remove la_array_ordering
3777 initializer.
3778 (f_language::array_ordering): New member function.
3779 * go-lang.c (go_language_data): Remove la_array_ordering
3780 initializer.
3781 * language.c (unknown_language_data): Likewise.
3782 (auto_language_data): Likewise.
3783 * language.h (language_data): Delete la_array_ordering field.
3784 (language_defn::array_ordering): New member function.
3785 * m2-lang.c (m2_language_data): Remove la_array_ordering
3786 initializer.
3787 * objc-lang.c (objc_language_data): Likewise.
3788 * opencl-lang.c (opencl_language_data): Likewise.
3789 * p-lang.c (pascal_language_data): Likewise.
3790 * rust-lang.c (rust_language_data): Likewise.
3791
3792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3795 initializer.
3796 * c-lang.c (c_language_data): Likewise.
3797 (cplus_language_data): Likewise.
3798 (asm_language_data): Likewise.
3799 (minimal_language_data): Likewise.
3800 * d-lang.c (d_language_data): Likewise.
3801 * f-lang.c (f_language_data): Likewise.
3802 (f_language::case_sensitivity): New member function.
3803 * go-lang.c (go_language_data): Remove la_case_sensitivity
3804 initializer.
3805 * language.c (enum case_mode): Moved here from language.h.
3806 (case_mode): Make static.
3807 (show_case_command): Update for case_sensitivity being a method.
3808 (set_case_command): Likewise.
3809 (set_range_case): Likewise.
3810 (unknown_language_data): Remove la_case_sensitivity initializer.
3811 (auto_language_data): Likewise.
3812 * language.h (case_mode): Delete, move enum declaration to
3813 language.c.
3814 (language_data): Delete la_case_sensitivity field.
3815 (language_defn::case_sensitivity): New member function.
3816 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3817 initializer.
3818 * objc-lang.c (objc_language_data): Likewise.
3819 * opencl-lang.c (opencl_language_data): Likewise.
3820 * p-lang.c (pascal_language_data): Likewise.
3821 * rust-lang.c (rust_language_data): Likewise.
3822
3823 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * ada-lang.c (ada_language_data): Remove la_range_check
3826 initializer.
3827 * c-lang.c (c_language_data): Likewise.
3828 (cplus_language_data): Likewise.
3829 (asm_language_data): Likewise.
3830 (minimal_language_data): Likewise.
3831 * d-lang.c (d_language_data): Likewise.
3832 * f-lang.c (f_language_data): Likewise.
3833 (f_language::range_checking_on_by_default): New member function.
3834 * go-lang.c (go_language_data): Remove la_range_check initializer.
3835 * language.c (enum range_mode): Moved here from language.h.
3836 (range_mode): Made static.
3837 (show_range_command): Update to use
3838 range_checking_on_by_default.
3839 (set_range_command): Likewise.
3840 (set_range_case): Likewise.
3841 (unknown_language_data): Remove la_range_check initializer.
3842 (auto_language_data): Likewise.
3843 * language.h (range_mode): Delete. Enum definition moved to
3844 language.c.
3845 (language_data): Remove la_range_check field.
3846 (language_defn::range_checking_on_by_default): New member
3847 function.
3848 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3849 (m2_language::range_checking_on_by_default): New member function.
3850 * objc-lang.c (objc_language_data): Remove la_range_check
3851 initializer.
3852 * opencl-lang.c (opencl_language_data): Likewise.
3853 * p-lang.c (pascal_language_data): Likewise.
3854 (pascal_language::range_checking_on_by_default): New member
3855 function.
3856 * rust-lang.c (rust_language_data): Remove la_range_check
3857 initializer.
3858 (rust_language::range_checking_on_by_default): New member
3859 function.
3860
3861 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * dwarf2/read.c (dwarf2_physname): Remove special case for
3864 language_go.
3865 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3866 member function.
3867
3868 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * ada-lang.c (ada_language_data): Remove
3871 la_store_sym_names_in_linkage_form_p initializer.
3872 (ada_language::store_sym_names_in_linkage_form_p): New member
3873 function.
3874 * c-lang.c (c_language_data): Remove
3875 la_store_sym_names_in_linkage_form_p initializer.
3876 (c_language::store_sym_names_in_linkage_form_p): New member
3877 function.
3878 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3879 initializer.
3880 (asm_language_data): Likewise.
3881 (asm_language::store_sym_names_in_linkage_form_p): New member
3882 function.
3883 (minimal_language_data): Remove
3884 la_store_sym_names_in_linkage_form_p initializer.
3885 (minimal_language::store_sym_names_in_linkage_form_p): New member
3886 function.
3887 * d-lang.c (d_language_data): Remove
3888 la_store_sym_names_in_linkage_form_p initializer.
3889 * dwarf2/read.c (dwarf2_physname): Update call to
3890 store_sym_names_in_linkage_form_p.
3891 * f-lang.c (f_language_data): Remove
3892 la_store_sym_names_in_linkage_form_p initializer.
3893 * go-lang.c (go_language_data): Remove
3894 la_store_sym_names_in_linkage_form_p initializer.
3895 * language.c (unknown_language_data): Remove
3896 la_store_sym_names_in_linkage_form_p initializer.
3897 (unknown_language::store_sym_names_in_linkage_form_p): New member
3898 function.
3899 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3900 initializer.
3901 (auto_language::store_sym_names_in_linkage_form_p): New member
3902 function.
3903 * language.h (language_data): Remove
3904 la_store_sym_names_in_linkage_form_p member variable.
3905 (language_defn::store_sym_names_in_linkage_form_p): New member
3906 function.
3907 * m2-lang.c (m2_language_data): Remove
3908 la_store_sym_names_in_linkage_form_p initializer.
3909 * objc-lang.c (objc_language_data): Likewise.
3910 * opencl-lang.c (opencl_language_data): Likewise.
3911 * p-lang.c (pascal_language_data): Likewise.
3912 * rust-lang.c (rust_language_data): Likewise.
3913
3914 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * ada-lang.c (ada_language_data): Remove string_lower_bound
3917 initializer.
3918 * c-lang.c (c_language_data): Likewise.
3919 (cplus_language_data): Likewise.
3920 (asm_language_data): Likewise.
3921 (minimal_language_data): Likewise.
3922 * d-lang.c (d_language_data): Likewise.
3923 * f-lang.c (f_language_data): Likewise.
3924 * go-lang.c (go_language_data): Likewise.
3925 * language.c (unknown_language_data): Likewise.
3926 (auto_language_data): Likewise.
3927 * language.h (language_data): Remove string_lower_bound field.
3928 (language_defn::string_lower_bound): New member function.
3929 * m2-lang.c (m2_language_data): Remove string_lower_bound
3930 initializer.
3931 (m2_language::string_lower_bound): New member function.
3932 * objc-lang.c (objc_language_data): Remove string_lower_bound
3933 initializer.
3934 * opencl-lang.c (opencl_language_data): Likewise.
3935 * p-lang.c (pascal_language_data): Likewise.
3936 * rust-lang.c (rust_language_data): Likewise.
3937 * valops.c (value_cstring): Update call to string_lower_bound.
3938 (value_string): Likewise.
3939 * value.c (allocate_repeated_value): Likewise.
3940
3941 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3942
3943 * valops.c (value_repeat): Fix incorrect argument name in comment.
3944
3945 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * ada-lang.c (ada_language_data): Remove c_style_arrays
3948 initializer.
3949 (ada_language::c_style_arrays_p): New member fuction.
3950 * c-lang.c (c_language_data): Remove c_style_arrays
3951 initializer.
3952 (cplus_language_data): Likewise.
3953 (asm_language_data): Likewise.
3954 (minimal_language_data): Likewise.
3955 * d-lang.c (d_language_data): Likewise.
3956 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3957 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3958 (f_language::c_style_arrays_p): New member function.
3959 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3960 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3961 * language.c (unknown_language_data): Remove c_style_arrays
3962 initializer.
3963 (auto_language_data): Likewise.
3964 * language.h (language_data): Remove c_style_arrays field.
3965 (language_defn::c_style_arrays_p): New member function.
3966 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3967 (m2_language::c_style_arrays_p): New member function.
3968 * objc-lang.c (objc_language_data): Remove c_style_arrays
3969 initializer.
3970 * opencl-lang.c (opencl_language_data): Likewise.
3971 * p-lang.c (pascal_language_data): Likewise.
3972 * rust-lang.c (rust_language_data): Likewise.
3973 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3974 and update local variable to a bool.
3975 * valops.c (value_cast): Update call to c_style_arrays_p.
3976 (value_array): Likewise.
3977 * value.c (coerce_array): Likewise.
3978
3979 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3980
3981 * ada-lang.c (ada_language_data): Remove la_language initializer.
3982 * c-lang.c (c_language_data): Likewise.
3983 (cplus_language_data): Likewise.
3984 (asm_language_data): Likewise.
3985 (minimal_language_data): Likewise.
3986 * d-lang.c (d_language_data): Likewise.
3987 * f-lang.c (f_language_data): Likewise.
3988 * go-lang.c (go_language_data): Likewise.
3989 * language.c (unknown_language_data): Likewise.
3990 (auto_language_data): Likewise.
3991 * language.h (language_data): Remove la_language field.
3992 (language_defn::language_defn): Initialise la_language field.
3993 (language_defn::la_language): New member variable.
3994 * m2-lang.c (m2_language_data): Remove la_language field.
3995 * objc-lang.c (objc_language_data): Likewise.
3996 * opencl-lang.c (opencl_language_data): Likewise.
3997 * p-lang.c (pascal_language_data): Likewise.
3998 * rust-lang.c (rust_language_data): Likewise.
3999
4000 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4001
4002 * ada-lang.c (ada_extensions): Delete, moved into
4003 ada_language::filename_extensions.
4004 (ada_language_data): Remove la_filename_extensions initializer.
4005 (ada_language::filename_extensions): New member function.
4006 * c-lang.c (c_extensions): Delete, moved into
4007 c_language::filename_extensions.
4008 (c_language_data): Remove la_filename_extensions initializer.
4009 (c_language::filename_extensions): New member function.
4010 (cplus_extensions): Delete, moved into
4011 cplus_language::filename_extensions.
4012 (cplus_language_data): Remove la_filename_extensions initializer.
4013 (cplus_language::filename_extensions): New member function.
4014 (asm_extensions): Delete, moved into
4015 asm_language::filename_extensions.
4016 (asm_language_data): Remove la_filename_extensions initializer.
4017 (asm_language::filename_extensions): New member function.
4018 (minimal_language_data): Remove la_filename_extensions
4019 initializer.
4020 * d-lang.c (d_extensions): Delete, moved into
4021 d_language::filename_extensions.
4022 (d_language_data): Remove la_filename_extensions initializer.
4023 (d_language::filename_extensions): New member function.
4024 * f-lang.c (f_extensions): Delete, moved into
4025 f_language::filename_extensions.
4026 (f_language_data): Remove la_filename_extensions initializer.
4027 (f_language::filename_extensions): New member function.
4028 * go-lang.c (go_language_data): Remove la_filename_extensions
4029 initializer.
4030 * language.c (add_set_language_command): Update now that
4031 filename_extensions returns a vector.
4032 (unknown_language_data): Remove la_filename_extensions
4033 initializer.
4034 (auto_language_data): Likewise.
4035 * language.h (language_data): Remove la_filename_extensions field.
4036 (language_defn::filename_extensions): New member function.
4037 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4038 initializer.
4039 * objc-lang.c (objc_extensions): Delete, moved into
4040 objc_language::filename_extensions.
4041 (objc_language_data): Remove la_filename_extensions initializer.
4042 (objc_language::filename_extensions): New member function.
4043 * opencl-lang.c (opencl_language_data): Remove
4044 la_filename_extensions initializer.
4045 * p-lang.c (pascal_extensions): Delete, moved into
4046 pascal_language::filename_extensions.
4047 (pascal_language_data): Remove la_filename_extensions initializer.
4048 (pascal_language::filename_extensions): New member function.
4049 * rust-lang.c (rust_extensions): Delete, moved into
4050 rust_language::filename_extensions.
4051 (rust_language_data): Remove la_filename_extensions initializer.
4052 (rust_language::filename_extensions): New member function.
4053 * symfile.c (add_filename_language): Add new assert.
4054
4055 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * ada-lang.c (ada_language_data): Remove la_name and
4058 la_natural_name initializers.
4059 (ada_language::name): New member function.
4060 (ada_language::natural_name): New member function.
4061 * c-lang.c (c_language_data): Remove la_name and
4062 la_natural_name initializers.
4063 (c_language::name): New member function.
4064 (c_language::natural_name): New member function.
4065 (cplus_language_data): Remove la_name and
4066 la_natural_name initializers.
4067 (cplus_language::name): New member function.
4068 (cplus_language::natural_name): New member function.
4069 (asm_language_data): Remove la_name and
4070 la_natural_name initializers.
4071 (asm_language::name): New member function.
4072 (asm_language::natural_name): New member function.
4073 (minimal_language_data): Remove la_name and
4074 la_natural_name initializers.
4075 (minimal_language::name): New member function.
4076 (minimal_language::natural_name): New member function.
4077 * compile/compile.c (compile_to_object): Update call to
4078 lanugage_defn::name.
4079 * d-lang.c (d_language_data): Remove la_name and
4080 la_natural_name initializers.
4081 (d_language::name): New member function.
4082 (d_language::natural_name): New member function.
4083 * expprint.c (print_subexp_standard): Update call to
4084 language_defn::name.
4085 (dump_raw_expression): Likewise
4086 (dump_prefix_expression): Likewise.
4087 * f-lang.c (f_language_data): Remove la_name and
4088 la_natural_name initializers.
4089 (f_language::name): New member function.
4090 (f_language::natural_name): New member function.
4091 * go-lang.c (go_language_data): Remove la_name and
4092 la_natural_name initializers.
4093 (go_language::name): New member function.
4094 (go_language::natural_name): New member function.
4095 * language.c (show_language_command): Update call to
4096 language_defn::name.
4097 (set_language_command): Likewise.
4098 (language_enum): Likewise.
4099 (language_str): Likewise.
4100 (add_set_language_command): Likewise, use
4101 language_defn::natural_name in the doc string.
4102 (unknown_language_data): Remove la_name and
4103 la_natural_name initializers.
4104 (unknown_language::name): New member function.
4105 (unknown_language::natural_name): New member function.
4106 (auto_language_data): Remove la_name and
4107 la_natural_name initializers.
4108 (auto_language::name): New member function.
4109 (auto_language::natural_name): New member function.
4110 (language_lookup_primitive_type_as_symbol): Update call to
4111 language_defn::name.
4112 * language.h (language_data): Remove la_name and la_natural_name
4113 member variables.
4114 (language_defn::name): New member function.
4115 (language_defn::natural_name): New member function.
4116 * m2-lang.c (m2_language_data): Remove la_name and
4117 la_natural_name initializers.
4118 (m2_language::name): New member function.
4119 (m2_language::natural_name): New member function.
4120 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4121 language_defn::natural_name.
4122 * objc-lang.c (objc_language_data): Remove la_name and
4123 la_natural_name initializers.
4124 (objc_language::name): New member function.
4125 (objc_language::natural_name): New member function.
4126 * opencl-lang.c (opencl_language_data): Remove la_name and
4127 la_natural_name initializers.
4128 (opencl_language::name): New member function.
4129 (opencl_language::natural_name): New member function.
4130 * p-lang.c (pascal_language_data): Remove la_name and
4131 la_natural_name initializers.
4132 (pascal_language::name): New member function.
4133 (pascal_language::natural_name): New member function.
4134 * rust-lang.c (rust_language_data): Remove la_name and
4135 la_natural_name initializers.
4136 (rust_language::name): New member function.
4137 (rust_language::natural_name): New member function.
4138 * symtab.c (lookup_language_this): Update call to
4139 language_defn::name.
4140
4141 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4142
4143 * ada-lang.c (ada_language_data): Remove la_name_of_this
4144 initializer.
4145 * ax-gdb.c (gen_expr): Update call to name_of_this.
4146 * c-exp.y (classify_name): Likewise.
4147 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4148 (cplus_language_data): Likewise.
4149 (cplus_language::name_of_this): New member function.
4150 (asm_language_data): Remove la_name_of_this initializer.
4151 (minimal_language_data): Likewise.
4152 * d-lang.c (d_language_data): Likewise.
4153 (d_language::name_of_this): New member function.
4154 * expprint.c (print_subexp_standard): Update call to name_of_this.
4155 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4156 * go-lang.c (go_language_data): Likewise.
4157 * language.c (unknown_language_data): Likewise.
4158 (unknown_language::name_of_this): New member function.
4159 (auto_language_data): Remove la_name_of_this initializer.
4160 (auto_language::name_of_this): New member function.
4161 * language.h (language_data): Delete la_name_of_this member
4162 variable.
4163 (language_defn::name_of_this): New member function.
4164 * m2-lang.c (m2_language_data): Remove la_name_of_this
4165 initializer.
4166 * objc-lang.c (objc_language_data): Likewise.
4167 (objc_language::name_of_this): New member function.
4168 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4169 initializer.
4170 * p-lang.c (pascal_language_data): Likewise.
4171 (pascal_language::name_of_this): New member function.
4172 * rust-lang.c (rust_language_data): Remove la_name_of_this
4173 initializer.
4174 * symtab.c (lookup_language_this): Update call to name_of_this.
4175 (lookup_symbol_aux): Likewise.
4176 * valops.c (value_of_this): Likewise.
4177
4178 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * ada-lang.c (ada_language_data): Remove
4181 la_struct_too_deep_ellipsis initializer.
4182 (ada_language::struct_too_deep_ellipsis): New member function.
4183 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4184 initializer.
4185 (cplus_language_data): Likewise.
4186 (asm_language_data): Likewise.
4187 (minimal_language_data): Likewise.
4188 * cp-valprint.c (cp_print_value): Update call to
4189 struct_too_deep_ellipsis.
4190 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4191 initializer.
4192 * f-lang.c (f_language_data): Likewise.
4193 (f_language::struct_too_deep_ellipsis): New member function.
4194 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4195 initializer.
4196 * language.c (unknown_language_data): Likewise.
4197 (auto_language_data): Likewise.
4198 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4199 member variable.
4200 (language_defn::struct_too_deep_ellipsis): New member function.
4201 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4202 initializer.Q
4203 * objc-lang.c (objc_language_data): Likewise.
4204 * opencl-lang.c (opencl_language_data): Likewise.
4205 * p-lang.c (pascal_language_data): Likewise.
4206 * rust-lang.c (rust_language_data): Likewise.
4207 * valprint.c (val_print_check_max_depth): Update call to
4208 struct_too_deep_ellipsis.
4209
4210 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4211
4212 * MAINTAINERS (Write After Approval): Add myself.
4213
4214 2020-09-15 Tom Tromey <tom@tromey.com>
4215
4216 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4217 Remove.
4218
4219 2020-09-15 Tom Tromey <tom@tromey.com>
4220
4221 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4222 and TYPE_CODE_METHODPTR cases.
4223 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4224 (c_value_print_inner): Update.
4225 * valprint.c (generic_value_print_memberptr): New function, from
4226 c_value_print_memberptr.
4227 (generic_value_print): Use it. Call cplus_print_method_ptr.
4228
4229 2020-09-15 Tom Tromey <tromey@adacore.com>
4230
4231 * python/python-internal.h (PyInt_FromLong): Remove define.
4232 * python/py-value.c (convert_value_from_python): Use
4233 gdb_py_object_from_longest.
4234 * python/py-type.c (typy_get_code): Use
4235 gdb_py_object_from_longest.
4236 * python/py-symtab.c (salpy_get_line): Use
4237 gdb_py_object_from_longest.
4238 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4239 gdb_py_object_from_longest.
4240 * python/py-record.c (recpy_gap_reason_code): Use
4241 gdb_py_object_from_longest.
4242 * python/py-record-btrace.c (recpy_bt_insn_size)
4243 (recpy_bt_func_level, btpy_list_count): Use
4244 gdb_py_object_from_longest.
4245 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4246 gdb_py_object_from_longest. Fix error handling.
4247 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4248 gdb_py_object_from_longest.
4249 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4250 gdb_py_object_from_longest.
4251 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4252 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4253 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4254
4255 2020-09-15 Tom Tromey <tromey@adacore.com>
4256
4257 * python/python.c (gdbpy_parameter_value): Use
4258 gdb_py_object_from_ulongest.
4259
4260 2020-09-15 Tom Tromey <tromey@adacore.com>
4261
4262 * python/py-infevents.c (create_register_changed_event_object):
4263 Use gdb_py_object_from_longest.
4264 * python/py-exitedevent.c (create_exited_event_object): Use
4265 gdb_py_object_from_longest.
4266
4267 2020-09-15 Tom Tromey <tromey@adacore.com>
4268
4269 * python/python.c (gdbpy_parameter_value): Use
4270 gdb_py_object_from_longest.
4271 * python/py-type.c (convert_field, typy_range): Use
4272 gdb_py_object_from_longest.
4273 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4274 gdb_py_object_from_longest.
4275 * python/py-lazy-string.c (stpy_get_length): Use
4276 gdb_py_object_from_longest.
4277 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4278 gdb_py_object_from_longest.
4279 * python/py-infevents.c (create_memory_changed_event_object): Use
4280 gdb_py_object_from_longest.
4281 * python/py-inferior.c (infpy_get_num): Use
4282 gdb_py_object_from_longest.
4283 (infpy_get_pid): Likewise.
4284
4285 2020-09-15 Tom Tromey <tromey@adacore.com>
4286
4287 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4288 defines.
4289 * python/py-value.c (valpy_long): Use
4290 gdb_py_object_from_ulongest.
4291 * python/py-symtab.c (salpy_get_pc): Use
4292 gdb_py_object_from_ulongest.
4293 (salpy_get_last): Likewise.
4294 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4295 gdb_py_object_from_ulongest.
4296 * python/py-lazy-string.c (stpy_get_address): Use
4297 gdb_py_object_from_ulongest.
4298 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4299 * python/py-arch.c (archpy_disassemble): Use
4300 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4301 error handling.
4302
4303 2020-09-15 Tom Tromey <tromey@adacore.com>
4304
4305 * python/python-internal.h (gdb_py_long_from_longest): Remove
4306 defines.
4307 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4308 * python/py-type.c (convert_field, typy_get_sizeof): Use
4309 gdb_py_object_from_longest.
4310 * python/py-record-btrace.c (btpy_list_index): Use
4311 gdb_py_object_from_longest.
4312
4313 2020-09-15 Tom Tromey <tromey@adacore.com>
4314
4315 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4316 * python/py-record.c (recpy_element_number): Use
4317 gdb_py_object_from_longest.
4318 (recpy_gap_number): Likewise.
4319
4320 2020-09-15 Tom Tromey <tromey@adacore.com>
4321
4322 * top.c (ui::ui): Update.
4323 (highest_ui_num): Remove.
4324 * top.h (struct ui) <num>: Remove.
4325
4326 2020-09-15 Tom Tromey <tromey@adacore.com>
4327
4328 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4329 * ui-style.c (ansi_regex_text): Now array.
4330 * rust-exp.y (number_regex_text): Now array.
4331 * linespec.c (linespec_quote_characters): Now array.
4332 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4333 Now arrays.
4334
4335 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * debuginfod-support.c (debuginfod_client_deleter): New.
4338 (debuginfod_client_up): New.
4339 (debuginfod_init): Return debuginfod_client_up.
4340 (debuginfod_source_query): Adjust.
4341 (debuginfod_debuginfo_query): Adjust.
4342
4343 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 * debuginfod-support.c (debuginfod_source_query): Use
4346 make_unique_xstrdup.
4347
4348 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4349
4350 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4351 with `type::instance_flags`.
4352
4353 2020-09-14 Michael Mullin <masmullin@gmail.com>
4354
4355 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4356 Remove baton parameter.
4357
4358 2020-09-14 Pedro Alves <pedro@palves.net>
4359
4360 * Makefile.in (SELFTESTS_SRCS): Add
4361 unittests/enum-flags-selftests.c.
4362 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4363 btrace_function_flags instead of enum btrace_function_flag.
4364 * compile/compile-c-types.c (convert_qualified): Use
4365 enum_flags::raw.
4366 * compile/compile-cplus-symbols.c (convert_one_symbol)
4367 (convert_symbol_bmsym):
4368 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4369 (compile_cplus_convert_struct_or_union_methods)
4370 (compile_cplus_instance::convert_qualified_base):
4371 * go-exp.y (parse_string_or_char): Add cast to int.
4372 * unittests/enum-flags-selftests.c: New file.
4373 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4374 type to btrace_thread_flags from btrace_thread_flag.
4375 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4376 local's type to btrace_thread_flags from btrace_thread_flag. Add
4377 cast in DEBUG call.
4378
4379 2020-09-14 Pedro Alves <pedro@palves.net>
4380
4381 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4382 * gdbtypes.c (address_space_name_to_int): Rename to ...
4383 (address_space_name_to_type_instance_flags): ... this.
4384 (address_space_int_to_name): Rename to ...
4385 (address_space_type_instance_flags_to_name): ... this.
4386 * gdbtypes.h (address_space_name_to_int): Rename to ...
4387 (address_space_name_to_type_instance_flags): ... this.
4388 (address_space_int_to_name): Rename to ...
4389 (address_space_type_instance_flags_to_name): ... this.
4390 * type-stack.c (type_stack::insert): Adjust to rename.
4391 * type-stack.h (type_stack::insert): Likewise.
4392
4393 2020-09-14 Pedro Alves <pedro@palves.net>
4394 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * avr-tdep.c (avr_address_class_type_flags): Return
4397 type_instance_flags.
4398 (avr_address_class_type_flags_to_name): Take a
4399 type_instance_flags.
4400 (avr_address_class_name_to_type_flags): Return bool and take a
4401 type_instance_flags.
4402 * d-lang.c (build_d_types): Use type::set_instance_flags.
4403 * ft32-tdep.c (ft32_address_class_type_flags): Return
4404 type_instance_flags.
4405 (ft32_address_class_type_flags_to_name): Take a
4406 type_instance_flags.
4407 (ft32_address_class_name_to_type_flags): Return bool and take a
4408 type_instance_flags.
4409 (ft32_gdbarch_init): Use type::set_instance_flags.
4410 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4411 * gdbarch.h, gdbarch.c: Regenerate.
4412 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4413 (address_class_name_to_type_flags): Use type_instance_flags and
4414 bool.
4415 * gdbtypes.c (address_space_name_to_int)
4416 (address_space_int_to_name, make_qualified_type): Use
4417 type_instance_flags.
4418 (make_qualified_type): Use type_instance_flags and
4419 type::set_instance_flags.
4420 (make_type_with_address_space, make_cv_type, make_vector_type)
4421 (check_typedef): Use type_instance_flags.
4422 (recursive_dump_type): Cast type_instance_flags to unsigned for
4423 printing.
4424 (copy_type_recursive): Use type::set_instance_flags.
4425 (gdbtypes_post_init): Use type::set_instance_flags.
4426 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4427 <m_instance_flags>: ... this.
4428 <instance_flags, set_instance_flags>: New methods.
4429 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4430 (SET_TYPE_INSTANCE_FLAGS): New.
4431 (address_space_name_to_int, address_space_int_to_name)
4432 (make_type_with_address_space): Pass flags using
4433 type_instance_flags instead of int.
4434 * stabsread.c (cleanup_undefined_types_noname): Use
4435 type::set_instance_flags.
4436 * s390-tdep.c (s390_address_class_type_flags): Return
4437 type_instance_flags.
4438 (s390_address_class_type_flags_to_name): Take a
4439 type_instance_flags.
4440 (s390_address_class_name_to_type_flags): Return bool and take a
4441 type_instance_flags.
4442 * type-stack.c (type_stack::follow_types): Use
4443 type_instance_flags.
4444 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4445
4446 2020-09-14 Tom Tromey <tromey@adacore.com>
4447
4448 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4449 * x86-tdep.c (x86_is_thunk_register_name)
4450 (x86_in_indirect_branch_thunk): Update.
4451 * sparc64-tdep.c (sparc64_fpu_register_names)
4452 (sparc64_cp0_register_names, sparc64_register_names)
4453 (sparc64_pseudo_register_names): Now const.
4454 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4455 cp0_registers_num>: Now const.
4456 * sparc-tdep.c (sparc_core_register_names)
4457 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4458 (sparc32_pseudo_register_names): Now const.
4459 (validate_tdesc_registers): Update.
4460 * rust-lang.c (rust_extensions): Now const.
4461 * p-lang.c (p_extensions): Now const.
4462 * objc-lang.c (objc_extensions): Now const.
4463 * nto-tdep.c (nto_thread_state_str): Now const.
4464 * moxie-tdep.c (moxie_register_names): Now const.
4465 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4466 Now const.
4467 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4468 (mips_linux_reg_names): Now const.
4469 (mips_gdbarch_init): Update.
4470 * microblaze-tdep.c (microblaze_register_names): Now const.
4471 * m68k-tdep.c (m68k_register_names): Now const.
4472 * m32r-tdep.c (m32r_register_names): Now const.
4473 * ia64-tdep.c (ia64_register_names): Now const.
4474 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4475 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4476 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4477 ymm_avx512_register_names, pkeys_register_names>: Now const.
4478 * i386-tdep.c (i386_register_names, i386_zmm_names)
4479 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4480 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4481 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4482 * f-lang.c (f_extensions): Now const.
4483 * d-lang.c (d_extensions): Now const.
4484 * csky-tdep.c (csky_register_names): Now const.
4485 * charset.c (default_charset_names, charset_enum): Now const.
4486 (_initialize_charset): Update.
4487 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4488 const.
4489 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4490 (bsd_uthread_solib_loaded): Update.
4491 (bsd_uthread_state): Now const.
4492 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4493 (amd64_ymm_avx512_names, amd64_ymmh_names)
4494 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4495 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4496 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4497 (amd64_dword_names): Now const.
4498 * agent.c (can_use_agent_enum): Now const.
4499 * ada-tasks.c (task_states, long_task_states): Now const.
4500 * ada-lang.c (known_runtime_file_name_patterns)
4501 (known_auxiliary_function_name_patterns, attribute_names)
4502 (standard_exc, ada_extensions): Now const.
4503
4504 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * bcache.h (struct bcache) <bcache>: Remove constructor.
4507 <m_hash_function, m_compare_function>: Remove.
4508 <~bcache>: Make virtual.
4509 <compare>: Remove static method, introduce virtual method.
4510 <default_hash>: Remove.
4511 <hash>: New virtual method.
4512 * bcache.c (bcache::expand_hash_table): Update.
4513 (bcache::insert): Update.
4514 (bcache::hash): New.
4515 (bcache::compare): Update comment and parameter names.
4516 * gdbtypes.c (types_deeply_equal): Update.
4517 * psymtab.h (struct psymbol_bcache): New struct.
4518 (class psymtab_storage) <psymtab_storage>: Make default.
4519 <psymbol_cache>: Change type to psymbol_bcache.
4520 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4521 (psymbol_hash): Change to...
4522 (psymbol_bcache::hash): ... this.
4523 (psymbol_compare): Change to...
4524 (psymbol_bcache::compare): ... this.
4525
4526 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4527
4528 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4529 checking for initial lwp.
4530
4531 2020-09-14 Tom Tromey <tromey@adacore.com>
4532
4533 * m68k-tdep.c (m68k_extract_return_value): Use
4534 pointer_result_regnum.
4535 (m68k_store_return_value): Likewise.
4536 (m68k_reg_struct_return_p): Handle vectors and arrays.
4537 (m68k_return_value): Handle arrays.
4538 (m68k_svr4_return_value): Fix single-element aggregate handling.
4539 Handle long double. Adjust for embedded ABI.
4540 (m68k_svr4_init_abi): Set pointer_result_regnum.
4541 (m68k_embedded_init_abi): New function.
4542 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4543 (m68k_osabi_sniffer): New function.
4544 (_initialize_m68k_tdep): Register osabi sniffer.
4545 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4546 member.
4547
4548 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4549
4550 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4551 with gdb::unique_xmalloc_ptr<char>.
4552
4553 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * xml-support.h (xml_fetch_another): Change type to be a
4556 function_view.
4557 (xml_process_xincludes): Remove baton parameter.
4558 (xml_fetch_content_from_file): Change baton parameter to
4559 dirname.
4560 * xml-support.c (struct xinclude_parsing_data)
4561 <xinclude_parsing_data>: Remove baton parameter.
4562 <fetcher_baton>: Remove.
4563 (xinclude_start_include): Adjust.
4564 (xml_process_xincludes): Adjust.
4565 (xml_fetch_content_from_file): Replace baton parameter with
4566 dirname.
4567 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4568 (xml_init_syscalls_info): Use a lambda.
4569 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4570 (file_read_description_xml): Use a lambda.
4571 (fetch_available_features_from_target): Change baton parameter
4572 to target_ops.
4573 (target_read_description_xml): Use a lambda.
4574 (target_fetch_description_xml): Use a lambda.
4575 (string_read_description_xml): Update.
4576
4577 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4578
4579 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4580 uses with type::endianity_is_not_default.
4581
4582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (struct type) <endianity_is_not_default,
4585 set_endianity_is_not_default>: New methods.
4586 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4587 type::endianity_is_not_default, change all write call sites to
4588 use type::set_endianity_is_not_default.
4589
4590 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4593 uses with type::is_fixed_instance.
4594
4595 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (struct type) <is_fixed_instance,
4598 set_is_fixed_instance>: New methods.
4599 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4600 write call sites to use type::set_is_fixed_instance.
4601
4602 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4605 uses with type::is_gnu_ifunc.
4606
4607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4610 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4611 use type::set_is_gnu_ifunc.
4612
4613 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4616 uses with type::stub_is_supported.
4617
4618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4621 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4622 use type::set_stub_is_supported.
4623
4624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4627 uses with type::is_vector.
4628
4629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4632 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4633 use type::set_is_vector.
4634
4635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4638 uses with type::has_varargs.
4639
4640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4643 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4644 use type::set_has_varargs.
4645
4646 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4649 uses with type::is_prototyped.
4650
4651 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4654 New methods.
4655 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4656 call sites to use type::set_is_prototyped.
4657
4658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4661 uses with type::target_is_stub.
4662
4663 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4666 New methods.
4667 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4668 sites to use type::set_target_is_stub.
4669
4670 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbtypes.h (TYPE_STUB): Remove, replace all
4673 uses with type::is_stub.
4674
4675 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4678 (TYPE_STUB): Use type::is_stub, change all write call sites to
4679 use type::set_is_stub.
4680
4681 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4684 type::has_no_signedness.
4685
4686 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (struct type) <has_no_signedness,
4689 set_has_no_signedness>: New methods.
4690 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4691 call sites to use type::set_has_no_signedness.
4692
4693 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4696 type::is_unsigned.
4697
4698 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4701 methods.
4702 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4703 sites to use type::set_is_unsigned.
4704
4705 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4706 Adam Renquinha <arenquinha@cimeq.qc.ca>
4707
4708 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4709 pointer and stack frame offset when unwinding.
4710
4711 2020-09-13 Pedro Alves <pedro@palves.net>
4712
4713 * NEWS: Document "-break-insert --qualified".
4714 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4715
4716 2020-09-13 Pedro Alves <pedro@palves.net>
4717
4718 * linespec.c (classify_mtype, compare_msyms): Delete.
4719 (search_minsyms_for_name): Remove classification logic. Instead
4720 filter out trampoline symbols if we also found an external
4721 function of the same name.
4722
4723 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4724
4725 * NEWS: Create a new section for the next release branch.
4726 Rename the section of the current branch, now that it has
4727 been cut.
4728
4729 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4730
4731 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4732 * version.in: Bump version to 11.0.50.DATE-git.
4733
4734 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4735
4736 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4737
4738 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4739 Felix Willgerodt <Felix.Willgerodt@intel.com>
4740
4741 * gdbarch.sh: Added bfloat16 type.
4742 * gdbarch.c: Regenerated.
4743 * gdbarch.h: Regenerated.
4744 * gdbtypes.c (floatformats_bfloat16): New struct.
4745 (gdbtypes_post_init): Add builtin_bfloat16.
4746 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4747 (floatformats_bfloat16): New struct.
4748 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4749 (i386_ymm_type): Add field "v16_bfloat16"
4750 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4751 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4752 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4753 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4754 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4755 * features/i386/64bit-avx512.c: Regenerated.
4756 * features/i386/64bit-sse.xml: Add bfloat16 type.
4757 * features/i386/64bit-sse.c: Regenerated.
4758
4759 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4760
4761 * i386-tdep.c (i386_zmm_type): Fix field names.
4762 (i386_ymm_type): Fix field names.
4763
4764 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4765
4766 * breakpoint.c: Fix typo in the help message of the
4767 "set breakpoint condition-evaluation" command.
4768
4769 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4770
4771 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4772 * (nbsd_nat_target::pid_to_exec_file)
4773 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4774 (nbsd_nat_target::post_startup_inferior)
4775 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4776 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4777 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4778 * (nbsd_thread_lister): Remove.
4779
4780 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4781
4782 * fork-inferior.c (startup_inferior): Avoid double free.
4783
4784 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4785
4786 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4787 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4788
4789 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4790
4791 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4792 * netbsd-nat.c: Include <sys/ptrace.h>.
4793 * (netbsd_nat::enable_proc_events): Add.
4794
4795 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4796
4797 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4798 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4799 (netbsd_nat::for_each_thread): Add.
4800 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4801 "gdbsupport/common-debug.h".
4802 * (netbsd_nat::netbsd_thread_lister)
4803 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4804 (netbsd_nat::for_each_thread): Add.
4805
4806 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4807
4808 * netbsd-nat.h: Include <unistd.h>.
4809 * (netbsd_nat::pid_to_exec_file): Add.
4810 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4811 * (netbsd_nat::pid_to_exec_file) Add.
4812
4813 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4814
4815 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4816
4817 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4818
4819 * netbsd-nat.h: New file.
4820 * netbsd-nat.c: Likewise.
4821
4822 2020-09-09 Tom Tromey <tromey@adacore.com>
4823
4824 * ada-lang.c (remove_extra_symbols): Do not increment when
4825 removing an element
4826
4827 2020-09-08 Tom Tromey <tromey@adacore.com>
4828
4829 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4830
4831 2020-09-08 Tom Tromey <tromey@adacore.com>
4832
4833 PR win32/25302:
4834 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4835 (gdb_bfd_init_data): New function.
4836 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4837
4838 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4839
4840 * infrun.c (fetch_inferior_event): Use
4841 `switch_to_target_no_thread` to switch the target.
4842
4843 2020-09-06 Tom Tromey <tom@tromey.com>
4844
4845 * symfile.h (dwarf2_free_objfile): Don't declare.
4846
4847 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4848
4849 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4850 to match 16 byte real/complex type generated by Flang compiler.
4851
4852 2020-09-03 Tom de Vries <tdevries@suse.de>
4853
4854 PR breakpoint/26546
4855 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4856 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4857
4858 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * maint.c (index_digits): New function.
4861 (struct maint_print_section_data): Remove.
4862 (print_bfd_section_info): Remove print_data parameter, add arg
4863 and index_digits.
4864 (print_objfile_section_info): Likewise.
4865 (print_bfd_section_info_maybe_relocated): Likewise (plus
4866 objfile).
4867 (maintenance_info_sections): Adjust calls.
4868
4869 2020-09-02 Tom Tromey <tromey@adacore.com>
4870
4871 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4872 for null pointers.
4873 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4874
4875 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * bcache.h (struct bcache) <insert>: Change type of `added` to
4878 pointer to bool.
4879 * bcache.c (bcache::insert): Likewise.
4880 * gdbtypes.c (check_types_worklist): Adjust.
4881 * psymtab.c (add_psymbol_to_bcache): Adjust.
4882
4883 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4884
4885 * corelow.c (unordered_set): Include.
4886 (class core_target): Add field 'm_core_unavailable_mappings'.
4887 (core_target::build_file_mappings): Print only one warning
4888 per inaccessible file. Add unavailable/broken mappings
4889 to m_core_unavailable_mappings.
4890 (core_target::xfer_partial): Call...
4891 (core_target::xfer_memory_via_mappings): New method.
4892
4893 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4894
4895 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4896 type to bool.
4897
4898 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4899
4900 * dwarf2/read.c (struct field_info): Fix indentation.
4901
4902 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4905 ordering in comment.
4906 * frame.c (frame_id_eq): Fix indentation.
4907
4908 2020-08-31 Scott Linder <scott@scottlinder.com>
4909 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4912 inline frame ids in outer frame.
4913
4914 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4917 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4918 (outer_frame_id): Use FID_STACK_OUTER instead of
4919 FID_STACK_INVALID.
4920 (frame_id_p): Don't check for outer_frame_id.
4921
4922 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4925 regnum/frame in value. Call allocate_value_lazy.
4926 * frame.c (frame_unwind_register_value): Use
4927 val_print_not_saved.
4928
4929 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4932
4933 2020-08-29 Pedro Alves <pedro@palves.net>
4934
4935 * progspace.c (print_program_space): Use all_inferiors. Switch to
4936 the inferior before calling target_pid_to_str.
4937
4938 2020-08-28 Tom Tromey <tom@tromey.com>
4939
4940 * xcoffread.c (xcoff_end_psymtab): Update comment.
4941 * dbxread.c (dbx_end_psymtab): Update comment.
4942
4943 2020-08-28 Tom de Vries <tdevries@suse.de>
4944
4945 PR breakpoint/26544
4946 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4947 event_location.
4948 (create_breakpoint): Same.
4949 (base_breakpoint_decode_location): Same.
4950 (bkpt_create_sals_from_location): Same.
4951 (bkpt_decode_location): Same.
4952 (bkpt_probe_create_sals_from_location): Same.
4953 (bkpt_probe_decode_location): Same.
4954 (tracepoint_create_sals_from_location): Same.
4955 (tracepoint_decode_location): Same.
4956 (tracepoint_probe_decode_location): Same.
4957 (strace_marker_create_sals_from_location): Same.
4958 (strace_marker_decode_location): Same.
4959 (create_sals_from_location_default): Same.
4960 (decode_location_default): Same.
4961 * breakpoint.h (struct breakpoint_ops): Same.
4962 (create_breakpoint): Same.
4963 * linespec.h (decode_line_full): Same.
4964 * linespec.c (decode_line_full): Same. Throw error if
4965 result.size () == 0.
4966
4967 2020-08-27 Pedro Alves <pedro@palves.net>
4968
4969 PR gdb/26524
4970 * breakpoint.c (until_break_fsm) <location_breakpoint,
4971 caller_breakpoint>: Delete fields.
4972 <breakpoints>: New field.
4973 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4974 two individual breakpoints.
4975 (until_break_fsm::should_stop): Loop over breakpoints in the
4976 breakpoint vector.
4977 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4978 vector.
4979 (until_break_command): Handle location expanding into multiple
4980 sals.
4981
4982 2020-08-27 Pedro Alves <pedro@palves.net>
4983
4984 PR gdb/26523
4985 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4986 bp_until breakpoints user-specified locations. Update intro
4987 comment.
4988
4989 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4992 gdb_bfd_sections): New.
4993 * maint.c (print_bfd_section_info): Change param type to
4994 maint_print_section_data.
4995 (print_objfile_section_info): Likewise.
4996 (print_bfd_section_info_maybe_relocated): Likewise.
4997 (maintenance_info_sections): Use gdb_bfd_sections.
4998
4999 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5000
5001 * MAINTAINERS: Add ARC target and maintainer.
5002
5003 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5004
5005 * configure.tgt: ARC support for GNU/Linux.
5006 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5007 * arc-linux-tdep.c: New file.
5008 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5009 * arc-tdep.c (arc_write_pc): Use it.
5010
5011 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5012
5013 * arc-tdep.c (arc_check_for_hardware_loop): New.
5014 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5015
5016 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5017
5018 * arc-tdep.h: Include "gdbarch.h".
5019
5020 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5021
5022 * arch/arc.h
5023 (arc_gdbarch_features): New class to stir the selection of target XML.
5024 (arc_create_target_description): Use FEATURES to choose XML target.
5025 (arc_lookup_target_description): Use arc_create_target_description
5026 to create _new_ target descriptions or return the already created
5027 ones if the FEATURES is the same.
5028 * arch/arc.c: Implementation of prototypes described above.
5029 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5030 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5031 * arc-tdep.c (*_feature_name): Make feature names consistent.
5032 (arc_register_feature): A new struct to hold information about
5033 registers of a particular target/feature.
5034 (arc_check_tdesc_feature): Check if XML provides registers in
5035 compliance with ARC_REGISTER_FEATURE structs.
5036 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5037 (determine_*_reg_feature_set): Which feature name to look for.
5038 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5039 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5040 to expected ISA enums to be used in arc_gdbarch_features structs.
5041 * features/Makefile (FEATURE_XMLFILES): Add new files.
5042 * gdb/features/arc/v1-aux.c: New file.
5043 * gdb/features/arc/v1-aux.xml: Likewise.
5044 * gdb/features/arc/v1-core.c: Likewise.
5045 * gdb/features/arc/v1-core.xml: Likewise.
5046 * gdb/features/arc/v2-aux.c: Likewise.
5047 * gdb/features/arc/v2-aux.xml: Likewise.
5048 * gdb/features/arc/v2-core.c: Likewise.
5049 * gdb/features/arc/v2-core.xml: Likewise.
5050 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5051
5052 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5053 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 PR m2/26372
5056 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5057 an assert. Remove single element array indexing pattern as the
5058 MULTI_SUBSCRIPT support will handle this case too.
5059
5060 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * value.h (valprint_check_validity): Move declaration from
5063 here...
5064 * valprint.h (valprint_check_validity): ... to here.
5065
5066 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * debug.h: New file.
5069 * debug.c (debug_prefixed_vprintf): New function.
5070 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5071 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5072
5073 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * infrun.h (infrun_debug_printf_1): New function declaration.
5076 (infrun_debug_printf): New macro.
5077 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5078 throughout.
5079 (infrun_debug_printf): New function.
5080 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5081 (handle_jit_event): Likewise.
5082
5083 2020-08-21 Mark Wielaard <mark@klomp.org>
5084
5085 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5086
5087 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * frame.c (enum class frame_id_status): New.
5090 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5091 (fprintf_frame): Update.
5092 (compute_frame_id): Set frame id status to "computing" on entry.
5093 Set it back to "not_computed" on failure and to "computed" on
5094 success.
5095 (get_frame_id): Assert the frame id is not being computed.
5096 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5097 (create_new_frame): Likewise.
5098 (frame_cleanup_after_sniffer): Update assert.
5099
5100 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * regcache.c (pid_ptid_regcache_map): New type.
5103 (target_ptid_regcache_map): Remove.
5104 (target_pid_ptid_regcache_map): New type.
5105 (regcaches): Change type to target_pid_ptid_regcache_map.
5106 (get_thread_arch_aspace_regcache): Update.
5107 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5108 case.
5109 (regcaches_size): Update.
5110 (regcache_count): Update.
5111 (registers_changed_ptid_target_pid_test): New.
5112 (_initialize_regcache): Register new test.
5113
5114 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5115
5116 * regcache.c (regcache_count): New.
5117 (struct regcache_test_data): New.
5118 (regcache_test_data_up): New.
5119 (populate_regcaches_for_test): New.
5120 (regcaches_test): Remove.
5121 (get_thread_arch_aspace_regcache_test): New.
5122 (registers_changed_ptid_all_test): New.
5123 (registers_changed_ptid_target_test): New.
5124 (registers_changed_ptid_target_ptid_test): New.
5125 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5126 (_initialize_regcache): Register new tests.
5127
5128 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5131 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5132 gdbarch and aspace parameter. Use current inferior's aspace.
5133 Validate regcache's arch value.
5134 (regcaches_test): Update.
5135
5136 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5137
5138 * regcache.c (regcaches_test): Call registers_changed.
5139
5140 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5141
5142 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5143
5144 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5145
5146 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5147 to find the end of prologue for flang compiled binaries.
5148 * arm-tdep.c (arm_skip_prologue): Likewise.
5149 * i386-tdep.c (i386_skip_prologue): Likewise.
5150 * producer.c (producer_is_llvm): New function.
5151 (producer_parsing_tests): Added new tests for clang/flang.
5152 * producer.h (producer_is_llvm): New declaration.
5153
5154 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * linux-nat.c (linux_nat_debug_printf): New function.
5157 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5158
5159 2020-08-18 Aaron Merey <amerey@redhat.com>
5160
5161 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5162 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5163 (CLIBS): Add DEBUGINFOD_LIBS.
5164
5165 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5166
5167 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5168 'gdbarch_num_regs'.
5169
5170 2020-08-17 Tom Tromey <tromey@adacore.com>
5171
5172 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5173 ada_get_decoded_value returns NULL.
5174
5175 2020-08-17 Tom Tromey <tromey@adacore.com>
5176
5177 * python/py-inferior.c (infpy_search_memory): Use
5178 gdb_py_object_from_ulongest.
5179 * python/py-infevents.c (create_inferior_call_event_object)
5180 (create_memory_changed_event_object): Use
5181 gdb_py_object_from_ulongest.
5182 * python/py-linetable.c (ltpy_entry_get_pc): Use
5183 gdb_py_object_from_ulongest.
5184
5185 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5186
5187 * loc.c (class symbol_needs_eval_context): Fix indentation.
5188
5189 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5192 bool.
5193
5194 2020-08-17 Tom de Vries <tdevries@suse.de>
5195
5196 PR gdb/26393
5197 * gdbtypes.c (dump_dynamic_prop): New function.
5198 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5199
5200 2020-08-15 Tom de Vries <tdevries@suse.de>
5201
5202 PR backtrace/26390
5203 * stack.c (print_frame_args): Temporarily set the selected
5204 frame to FRAME while printing the frame's arguments.
5205
5206 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5207
5208 PR breakpoints/26385
5209 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5210 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5211
5212 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5213
5214 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5215 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5216 and >= to check return value instead of == -1 and != -1.
5217
5218 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * utils.h (class gdb_argv) <as_array_view>: New method.
5221 * utils.c (gdb_argv_as_array_view_test): New.
5222 (_initialize_utils): Register selftest.
5223 * maint.c (maintenance_selftest): Use the new method.
5224
5225 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5226
5227 * target.h (supports_dumpcore, dumpcore): New
5228 function declarations.
5229 * target.c (supports_dumpcore, dumpcore): New
5230 functions.
5231 * target-delegates.c: Rebuild.
5232 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5233 and target_dumpcore ().
5234
5235 2020-08-13 Aaron Merey <amerey@redhat.com>
5236
5237 * debuginfod-support.c: Replace global variables with user_data.
5238
5239 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5240
5241 * maint.c (maintenance_selftest): Split args and pass array_view
5242 to run_tests.
5243
5244 2020-08-12 Luis Machado <luis.machado@linaro.org>
5245
5246 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5247 type's length.
5248 Use %s and pulongest to print the length.
5249
5250 2020-08-12 Pedro Alves <palves@redhat.com>
5251
5252 * NEWS: Move "Multi-target debugging support" item to the
5253 "Changes since GDB 9" section.
5254
5255 2020-08-12 Pedro Alves <palves@redhat.com>
5256
5257 PR gdb/26336
5258 * progspace.c (program_space::remove_objfile): Invalidate the
5259 frame cache.
5260
5261 2020-08-11 Tom de Vries <tdevries@suse.de>
5262
5263 * MAINTAINERS: Mark ms1 as deleted.
5264
5265 2020-08-10 Luis Machado <luis.machado@linaro.org>
5266
5267 PR gdb/26310
5268
5269 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5270 act accordingly.
5271 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5272 movz/str/stur/stp skipping behavior.
5273
5274 2020-08-10 Luis Machado <luis.machado@linaro.org>
5275
5276 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5277 struct user_sve_header instead of struct sve_context.
5278
5279 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5280
5281 * read.h (dwarf2_fetch_die_loc_sect_off,
5282 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5283 `void *` parameter with function_view.
5284 * read.c (dwarf2_fetch_die_loc_sect_off,
5285 dwarf2_fetch_die_loc_cu_off): Likewise.
5286 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5287 (per_cu_dwarf_call): Adjust.
5288 (get_frame_address_in_block_wrapper): Remove.
5289 (indirect_synthetic_pointer): Adjust.
5290 (get_ax_pc): Remove.
5291 (dwarf2_compile_expr_to_ax): Adjust.
5292
5293 2020-08-08 Tom de Vries <tdevries@suse.de>
5294
5295 PR build/26344
5296 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5297 constructor.
5298 * regcache.c (get_thread_arch_aspace_regcache): Same.
5299
5300 2020-08-07 Tom Tromey <tromey@adacore.com>
5301
5302 * ravenscar-thread.c
5303 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5304 New method.
5305 (ravenscar_thread_target::wait): Check
5306 runtime_initialized.
5307 (ravenscar_thread_target::prepare_to_store)
5308 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5309 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5310 (ravenscar_thread_target::stopped_by_watchpoint)
5311 (ravenscar_thread_target::stopped_data_address)
5312 (ravenscar_thread_target::core_of_thread): Use
5313 scoped_restore_current_thread and
5314 set_base_thread_from_ravenscar_task.
5315
5316 2020-08-07 Tom Tromey <tromey@adacore.com>
5317
5318 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5319
5320 2020-08-07 Tom Tromey <tromey@adacore.com>
5321
5322 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5323 update_inferior_ptid before update_thread_list.
5324 (temporarily_change_regcache_ptid): New class.
5325 (ravenscar_thread_target::fetch_registers)
5326 (ravenscar_thread_target::store_registers)
5327 (ravenscar_thread_target::prepare_to_store): Use base thread when
5328 forwarding operation.
5329
5330 2020-08-07 Tom Tromey <tromey@adacore.com>
5331
5332 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5333 "is_pid" case.
5334
5335 2020-08-07 Tom Tromey <tromey@adacore.com>
5336
5337 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5338 New methods.
5339 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5340 first.
5341 (ravenscar_thread_target::add_thread): Rename from
5342 ravenscar_add_thread.
5343 (ravenscar_thread_target::update_thread_list): Use a lambda.
5344 (ravenscar_thread_target::xfer_partial): New method.
5345
5346 2020-08-07 Tom Tromey <tromey@adacore.com>
5347
5348 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5349 gdb::function_view.
5350 (iterate_over_live_ada_tasks): Change type of argument.
5351 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5352 of argument.
5353
5354 2020-08-07 Tom Tromey <tromey@adacore.com>
5355
5356 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5357 Remove.
5358 (ravenscar_thread_target::extra_thread_info): Remove.
5359 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5360 defer to target beneath for non-Ravenscar threads.
5361
5362 2020-08-07 Tom Tromey <tromey@adacore.com>
5363
5364 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5365 get_base_thread_from_ravenscar_task>: Now methods.
5366 <m_cpu_map>: New member.
5367 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5368 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5369 (ravenscar_thread_target::task_is_currently_active): Update.
5370 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5371 Now a method.
5372 (ravenscar_thread_target::add_active_thread): Put initial thread
5373 into the m_cpu_map.
5374
5375 2020-08-07 Tom Tromey <tromey@adacore.com>
5376
5377 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5378 event_ptid.
5379
5380 2020-08-07 Tom Tromey <tromey@adacore.com>
5381
5382 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5383 runtime_initialized.
5384
5385 2020-08-07 Tom Tromey <tromey@adacore.com>
5386
5387 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5388 add_active_thread.
5389 (ravenscar_thread_target::add_active_thread): Now public.
5390 (ravenscar_inferior_created): Call add_active_thread after pushing
5391 the target.
5392
5393 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5394
5395 * regcache.c (ptid_regcache_map): New type.
5396 (target_ptid_regcache_map): New type.
5397 (regcaches): Change type to target_ptid_regcache_map.
5398 (get_thread_arch_aspace_regcache): Update to regcaches' new
5399 type.
5400 (regcache_thread_ptid_changed): Likewise.
5401 (registers_changed_ptid): Likewise.
5402 (regcaches_size): Likewise.
5403 (regcaches_test): Update.
5404 (regcache_thread_ptid_changed): Update.
5405 * regcache.h (regcache_up): New type.
5406 * gdbsupport/ptid.h (hash_ptid): New struct.
5407
5408 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * observable.h (thread_ptid_changed): Add parameter
5411 `process_stratum_target *`.
5412 * infrun.c (infrun_thread_ptid_changed): Add parameter
5413 `process_stratum_target *` and use it.
5414 (selftests): New namespace.
5415 (infrun_thread_ptid_changed): New function.
5416 (_initialize_infrun): Register selftest.
5417 * regcache.c (regcache_thread_ptid_changed): Add parameter
5418 `process_stratum_target *` and use it.
5419 (regcache_thread_ptid_changed): New function.
5420 (_initialize_regcache): Register selftest.
5421 * thread.c (thread_change_ptid): Pass target to
5422 thread_ptid_changed observable.
5423
5424 2020-08-06 Caroline Tice <cmtice@google.com>
5425
5426 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5427 (struct dwp_sections): Update field comments. Add loclists and
5428 rnglists fields.
5429 (struct virtual_v2_dwo_sections): Rename struct to
5430 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5431 size & offset fields for loclists and rnglists.
5432 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5433 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5434 skipping dummy type units.
5435 (create_dwp_hash_table): Update the large comment above the function to
5436 discuss Version 5 DWP files as well, with references. Update all the
5437 version checks in the function to check for version 5 as well. Add new
5438 section at the end to create dwp hash table for version 5.
5439 (create_dwp_v2_section): Rename function to
5440 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5441 Add V5 to error message text.
5442 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5443 into calls to create_dwp_v2_or_v5_section.
5444 (create_dwo_unit_in_dwp_v5): New function.
5445 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5446 check for version2; add else clause to handle version 5.
5447 (open_and_init_dwo_file): Add code to check dwarf version & only call
5448 create_debug_types_hash_table (with sections.types) if version is not 5;
5449 else call create_debug_type_hash_table, with sections.info.
5450 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5451 version 5.
5452 (dwarf2_locate_v5_dwp_sections): New function.
5453 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5454 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5455
5456 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * regcache.h (class regcache): Remove friend
5459 registers_changed_ptid.
5460 <regcache_thread_ptid_changed>: Remove.
5461 <regcaches>: Remove.
5462 * regcache.c (regcache::regcaches): Rename to...
5463 (regcaches): ... this. Make static.
5464 (get_thread_arch_aspace_regcache): Update.
5465 (regcache::regcache_thread_ptid_changed): Rename to...
5466 (regcache_thread_ptid_changed): ... this. Update.
5467 (class regcache_access): Remove.
5468 (regcaches_test): Update.
5469 (_initialize_regcache): Update.
5470 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5471 <forward_list>.
5472
5473 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * regcache.h (class regcache) <current_regcache>: Rename to...
5476 <regcaches>: ... this. Move doc here.
5477 * regcache.c (regcache::current_regcache) Rename to...
5478 (regcache::regcaches): ... this. Move doc to header.
5479 (get_thread_arch_aspace_regcache): Update.
5480 (regcache::regcache_thread_ptid_changed): Update.
5481 (registers_changed_ptid): Update.
5482 (class regcache_access) <current_regcache_size>: Rename to...
5483 <regcaches_size>: ... this.
5484 (current_regcache_test): Rename to...
5485 (regcaches_test): ... this.
5486 (_initialize_regcache): Update.
5487
5488 2020-08-06 Victor Collod <vcollod@nvidia.com>
5489
5490 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5491
5492 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5493
5494 * corelow.c (core_target::build_file_mappings): Don't output
5495 null pathname in warning.
5496
5497 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5500 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5501 gdb.dwarf2/dw2-single-line-discriminators.exp,
5502 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5503
5504 2020-08-05 Tom Tromey <tromey@adacore.com>
5505
5506 PR rust/26197:
5507 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5508 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5509 Fix off-by-one and type size errors in ordinary case.
5510
5511 2020-08-05 Tom de Vries <tdevries@suse.de>
5512
5513 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5514 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5515
5516 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * frame.h (frame_id_p): Return bool.
5519 (frame_id_artificial_p): Return bool.
5520 (frame_id_eq): Return bool.
5521 (has_stack_frames): Return bool.
5522 (get_selected_frame): Fix typo in comment.
5523 (get_frame_pc_if_available): Return bool.
5524 (get_frame_address_in_block_if_available): Return bool.
5525 (get_frame_func_if_available): Return bool.
5526 (read_frame_register_unsigned): Return bool.
5527 (get_frame_register_bytes): Return bool.
5528 (safe_frame_unwind_memory): Return bool.
5529 (deprecated_frame_register_read): Return bool.
5530 (frame_unwinder_is): Return bool.
5531 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5532 bool.
5533 <this_id::p>: Likewise.
5534 <prev_p>: Likewise.
5535 (frame_stash_add): Return bool.
5536 (get_frame_id): Use bool.
5537 (frame_id_build_special) Use bool.
5538 (frame_id_build_unavailable_stack): Use bool.
5539 (frame_id_build): Use bool.
5540 (frame_id_p): Return bool, use true/false instead of 1/0.
5541 (frame_id_artificial_p): Likewise.
5542 (frame_id_eq): Likewise.
5543 (frame_id_inner): Likewise.
5544 (get_frame_func_if_available): Likewise.
5545 (read_frame_register_unsigned): Likewise.
5546 (deprecated_frame_register_read): Likewise.
5547 (get_frame_register_bytes): Likewise.
5548 (has_stack_frames): Likewise.
5549 (inside_main_func): Likewise.
5550 (inside_entry_func): Likewise.
5551 (get_frame_pc_if_available): Likewise.
5552 (get_frame_address_in_block_if_available): Likewise.
5553 (frame_unwinder_is): Likewise.
5554 (safe_frame_unwind_memory): Likewise.
5555 (frame_unwind_arch): Likewise.
5556
5557 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5560 type to cached_copy_status.
5561 (fprintf_frame): Adjust.
5562 (get_frame_func_if_available): Adjust.
5563 (frame_cleanup_after_sniffer): Adjust.
5564
5565 2020-08-04 Mark Wielaard <mark@klomp.org>
5566
5567 * MAINTAINERS (Write After Approval): Update email address.
5568
5569 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5572 dynamic_prop::const_val.
5573
5574 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5577 dynamic_prop::kind.
5578
5579 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5582
5583 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5584
5585 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5586
5587 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5588 Jose E. Marchesi <jose.marchesi@oracle.com>
5589
5590 * configure.tgt: Add entry for bpf-*-*.
5591 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5592 (ALLDEPFILES): Add bpf-tdep.c.
5593 * bpf-tdep.c: New file.
5594 * MAINTAINERS: Add bpf target and maintainer.
5595 * NEWS: Mention the support for the new target.
5596
5597 2020-08-04 Tom de Vries <tdevries@suse.de>
5598
5599 PR symtab/23270
5600 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5601 Error.
5602
5603 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5604
5605 * syscalls/freebsd.xml: Regenerate.
5606
5607 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5608
5609 * syscalls/update-freebsd.sh: Fix usage and year range.
5610
5611 2020-08-03 Tom de Vries <tdevries@suse.de>
5612
5613 PR symtab/26333
5614 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5615 DW_LNE_lo_user/DW_LNE_hi_user range.
5616
5617 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5618
5619 PR ada/26318
5620 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5621 kind.
5622
5623 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5624
5625 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5626
5627 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5628
5629 * breakpoint.c (set_breakpoint_condition): Update the condition
5630 expressions after checking that the input condition string parses
5631 successfully and does not contain junk at the end.
5632
5633 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5634
5635 * breakpoint.c (set_breakpoint_condition): Update the
5636 condition string after parsing the new condition successfully.
5637
5638 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5639
5640 * proc-api.c (_STRUCTURED_PROC): Don't define.
5641 * proc-events.c: Likewise.
5642 * proc-flags.c: Likewise.
5643 * proc-why.c: Likewise.
5644 * procfs.c: Likewise.
5645
5646 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5647 * configure, config.in: Regenerate.
5648
5649 2020-07-30 Tom de Vries <tdevries@suse.de>
5650
5651 PR build/26320
5652 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5653 m_red/m_green/m_blue in a union.
5654
5655 2020-07-29 Tom de Vries <tdevries@suse.de>
5656
5657 PR tdep/26280
5658 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5659
5660 2020-07-28 Tom Tromey <tromey@adacore.com>
5661
5662 PR symtab/26270:
5663 * symtab.h (find_pc_partial_function_sym): Declare.
5664 * cli/cli-cmds.c (disassemble_command): Use
5665 find_pc_partial_function_sym. Check asm_demangle.
5666 * blockframe.c (cache_pc_function_sym): New global.
5667 (cache_pc_function_name): Remove.
5668 (clear_pc_function_cache): Update.
5669 (find_pc_partial_function_sym): New function, from
5670 find_pc_partial_function.
5671 (find_pc_partial_function): Rewrite using
5672 find_pc_partial_function_sym.
5673
5674 2020-07-28 Tom Tromey <tromey@adacore.com>
5675
5676 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5677 help. Add usage.
5678
5679 2020-07-28 Tom Tromey <tromey@adacore.com>
5680
5681 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5682 <DW_OP_GNU_variable_value>: Cast to address type.
5683
5684 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5685
5686 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5687 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5688 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5689 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5690 (nbsd_get_siginfo_type): New.
5691 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5692 (_initialize_nbsd_tdep): New.
5693
5694 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5695
5696 PR binutils/26301
5697 * configure: Regenerated.
5698
5699 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5700
5701 PR binutils/26301
5702 * configure: Regenerated.
5703
5704 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * python/py-frame.c: Remove 'user-regs.h' include.
5707 (frapy_read_register): Rewrite to make use of
5708 gdbpy_parse_register_id.
5709 * python/py-registers.c (gdbpy_parse_register_id): New function,
5710 moved here from python/py-unwind.c. Updated the return type, and
5711 also accepts register descriptor objects.
5712 * python/py-unwind.c: Remove 'user-regs.h' include.
5713 (pyuw_parse_register_id): Moved to python/py-registers.c.
5714 (unwind_infopy_add_saved_register): Update to use
5715 gdbpy_parse_register_id.
5716 (pending_framepy_read_register): Likewise.
5717 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5718
5719 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * python/py-registers.c: Add 'user-regs.h' include.
5722 (register_descriptor_iter_find): New function.
5723 (register_descriptor_iterator_object_methods): New static global
5724 methods array.
5725 (register_descriptor_iterator_object_type): Add pointer to methods
5726 array.
5727
5728 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5729
5730 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5731 for all architectures on FreeBSD 11.3 and later.
5732
5733 2020-07-27 Tom Tromey <tromey@adacore.com>
5734
5735 * gcore.h (load_corefile): Don't declare.
5736
5737 2020-07-27 Tom de Vries <tdevries@suse.de>
5738
5739 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5740 * config.in: Regenerate.
5741 * configure: Regenerate.
5742
5743 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5744
5745 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5746 ws2tcpip.h. When checking whether socklen_t type is defined, use
5747 ws2tcpip.h if it is available and sys/socket.h isn't.
5748 * configure: Regenerate.
5749 * config.in: Regenerate.
5750
5751 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 PR fortran/23051
5754 PR fortran/26139
5755 * valops.c (value_ind): Pass address to
5756 readjust_indirect_value_type.
5757 * value.c (readjust_indirect_value_type): Make parameter
5758 non-const, and add extra address parameter. Resolve original type
5759 before using it.
5760 * value.h (readjust_indirect_value_type): Update function
5761 signature and comment.
5762
5763 2020-07-25 Tom de Vries <tdevries@suse.de>
5764
5765 PR symtab/26243
5766 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5767 entries.
5768
5769 2020-07-24 Aaron Merey <amerey@redhat.com>
5770
5771 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5772 * configure: Rebuild.
5773
5774 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5775
5776 PR corefiles/26294
5777 * corelow.c (_initialize_corelow): Add period to help text
5778 for "maintenance print core-file-backed-mappings".
5779
5780 2020-07-23 Pedro Alves <pedro@palves.net>
5781
5782 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5783 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5784 meanwhile.
5785 * frame.c (frame_cache_generation, get_frame_cache_generation):
5786 New.
5787 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5788 (get_prev_frame_if_no_cycle): On exception, don't touch
5789 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5790 * frame.h (get_frame_cache_generation): Declare.
5791
5792 2020-07-23 Tom de Vries <tdevries@suse.de>
5793
5794 PR tui/26282
5795 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5796 New default constructor.
5797
5798 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5799
5800 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5801 exclude non-statement entries.
5802
5803 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5804
5805 * NEWS (New commands): Mention new command
5806 "maintenance print core-file-backed-mappings".
5807
5808 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5809
5810 * corelow.c (gdbcmd.h): Include.
5811 (core_target::info_proc_mappings): New method.
5812 (get_current_core_target): New function.
5813 (maintenance_print_core_file_backed_mappings): New function.
5814 (_initialize_corelow): Add core-file-backed-mappings to
5815 "maint print" commands.
5816
5817 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5818
5819 * linux-tdep.c (dump_note_entry_p): New function.
5820 (linux_dump_mapping_p_ftype): New typedef.
5821 (linux_find_memory_regions_full): Add new parameter,
5822 should_dump_mapping_p.
5823 (linux_find_memory_regions): Adjust call to
5824 linux_find_memory_regions_full.
5825 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5826 call to linux_find_memory_regions_full.
5827
5828 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5829
5830 * corelow.c (solist.h, unordered_map): Include.
5831 (class core_target): Add field m_core_file_mappings and
5832 method build_file_mappings.
5833 (core_target::core_target): Call build_file_mappings.
5834 (core_target::~core_target): Free memory associated with
5835 m_core_file_mappings.
5836 (core_target::build_file_mappings): New method.
5837 (core_target::xfer_partial): Use m_core_file_mappings
5838 for memory transfers.
5839 * linux-tdep.c (linux_read_core_file_mappings): New
5840 function.
5841 (linux_core_info_proc_mappings): Rewrite to use
5842 linux_read_core_file_mappings.
5843 (linux_init_abi): Register linux_read_core_file_mappings.
5844
5845 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5846
5847 * arch-utils.c (default_read_core_file_mappings): New function.
5848 * arch-utils.c (default_read_core_file_mappings): Declare.
5849 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5850 * gdbarch.h, gdbarch.c: Regenerate.
5851
5852 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5853
5854 PR corefiles/25631
5855 * corelow.c (core_target:xfer_partial): Revise
5856 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5857 case after first checking the stratum beneath the core
5858 target.
5859 (has_all_memory): Return true.
5860 * target.c (raw_memory_xfer_partial): Revise comment
5861 regarding use of has_all_memory.
5862
5863 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5864
5865 * exec.h (section_table_xfer_memory): Revise declaration,
5866 replacing section name parameter with an optional callback
5867 predicate.
5868 * exec.c (section_table_xfer_memory): Likewise.
5869 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5870 of section_table_xfer_memory.
5871
5872 2020-07-22 Tom Tromey <tromey@adacore.com>
5873
5874 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5875 lookup_symbol_search_name.
5876
5877 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5880 redundant local variable.
5881 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5882 reference, not pointer, update code accordingly.
5883
5884 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5885 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5886
5887 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5888 * jit.c (jit_breakpoint_re_set_internal): Use the
5889 `skip_jit_symbol_lookup` field.
5890
5891 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5892 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5893
5894 * jit.c (jit_read_descriptor): Define the descriptor address once,
5895 use twice.
5896 (jit_breakpoint_deleted): Move the declaration of the loop variable
5897 `iter` into the loop header.
5898 (jit_breakpoint_re_set_internal): Move the declaration of the local
5899 variable `objf_data` to the first point of definition.
5900 (jit_event_handler): Move the declaration of local variables
5901 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5902 Rename `objf` to `jited`.
5903
5904 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5907 Remove.
5908 * jit.c (get_jiter_objfile_data): Update.
5909
5910 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5911 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * jit.c (struct jit_program_space_data): Remove.
5914 (jit_program_space_key): Remove.
5915 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5916 stuff.
5917 (get_jit_program_space_data): Remove.
5918 (jit_breakpoint_deleted): Iterate on all of the program space's
5919 objfiles.
5920 (jit_inferior_init): Likewise.
5921 (jit_breakpoint_re_set_internal): Likewise. Also change return
5922 type to void.
5923 (jit_breakpoint_re_set): Pass current_program_space to
5924 jit_breakpoint_re_set_internal.
5925
5926 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * jit.h (struct jiter_objfile_data) <cached_code_address,
5929 jit_breakpoint>: Move to here from ...
5930 * jit.c (jit_program_space_data): ... here.
5931 (jiter_objfile_data::~jiter_objfile_data): Update.
5932 (jit_breakpoint_deleted): Update.
5933 (jit_breakpoint_re_set_internal): Update.
5934
5935 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5938 checks.
5939 (jit_read_descriptor): Remove NULL check.
5940 (jit_event_handler): Add an assertion.
5941
5942 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * jit.h (struct jit_objfile_data): Split into...
5945 (struct jiter_objfile_data): ... this ...
5946 (struct jited_objfile_data): ... and this.
5947 * objfiles.h (struct objfile) <jit_data>: Remove.
5948 <jiter_data, jited_data>: New fields.
5949 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5950 (jiter_objfile_data::~jiter_objfile_data): ... this.
5951 (get_jit_objfile_data): Rename to ...
5952 (get_jiter_objfile_data): ... this.
5953 (add_objfile_entry): Update.
5954 (jit_read_descriptor): Use get_jiter_objfile_data.
5955 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5956 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5957 (jit_inferior_exit_hook): Use objfile's jited_data field.
5958
5959 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * jit.h: Forward-declare `struct minimal_symbol`.
5962 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5963 constructor, destructor, and an objfile* field.
5964 * jit.c (jit_objfile_data): Remove.
5965 (struct jit_objfile_data): Migrate from here to jit.h.
5966 (jit_objfile_data::~jit_objfile_data): New destructor
5967 implementation with code moved from free_objfile_data.
5968 (free_objfile_data): Delete.
5969 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5970 (jit_find_objf_with_entry_addr): Ditto.
5971 (jit_inferior_exit_hook): Ditto.
5972 (_initialize_jit): Remove the call to
5973 register_objfile_data_with_cleanup.
5974 * objfiles.h (struct objfile) <jit_data>: New field.
5975
5976 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5977
5978 * jit.h: Forward-declare `struct objfile`.
5979 (jit_event_handler): Add a second parameter, the JITer objfile.
5980 * jit.c (jit_read_descriptor): Change the signature to take the
5981 JITer objfile as an argument instead of the jit_program_space_data.
5982 (jit_inferior_init): Update the call to jit_read_descriptor.
5983 (jit_event_handler): Use the new JITer objfile argument when calling
5984 jit_read_descriptor.
5985 * breakpoint.c (handle_jit_event): Update the call to
5986 jit_event_handler to pass the JITer objfile.
5987
5988 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5989
5990 * gdbarch.c: Regenerate.
5991 * gdbarch.h: Regenerate.
5992 * gdbarch.sh (handle_segmentation_fault): Remove method.
5993 * infrun.c (handle_segmentation_fault): Remove.
5994 (print_signal_received_reason): Remove call to
5995 handle_segmentation_fault.
5996
5997 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5998
5999 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6000 Rename to sparc64_linux_report_signal_info and add siggnal
6001 argument.
6002 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6003 instead of sparc64_linux_handle_segmentation_fault.
6004
6005 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6006
6007 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6008 i386_linux_report_signal_info instead of
6009 i386_linux_handle_segmentation_fault.
6010 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6011 to i386_linux_report_signal_info and add siggnal argument.
6012 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6013 of i386_linux_handle_segmentation_fault.
6014 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6015 to i386_linux_report_signal_info and add siggnal argument.
6016
6017 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6018
6019 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6020 hook if present.
6021
6022 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6023
6024 * gdbarch.c: Regenerate.
6025 * gdbarch.h: Regenerate.
6026 * gdbarch.sh (report_signal_info): New method.
6027 * infrun.c (print_signal_received_reason): Invoke gdbarch
6028 report_signal_info hook if present.
6029
6030 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * python/py-registers.c : Add 'unordered_map' include.
6033 (gdbpy_new_reggroup): Renamed to...
6034 (gdbpy_get_reggroup): ...this. Update to only create register
6035 group descriptors when needed.
6036 (gdbpy_reggroup_iter_next): Update.
6037
6038 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * python/py-registers.c (gdbpy_register_object_data): New static
6041 global.
6042 (gdbpy_register_object_data_init): New function.
6043 (gdbpy_new_register_descriptor): Renamed to...
6044 (gdbpy_get_register_descriptor): ...this, and update to reuse
6045 existing register descriptors where possible.
6046 (gdbpy_register_descriptor_iter_next): Update.
6047 (gdbpy_initialize_registers): Register new gdbarch data.
6048
6049 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * linux-nat.c (stopped_pids): Make static.
6052
6053 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 PR ada/26235
6056 * gdbtypes.c (ada_discrete_type_low_bound,
6057 ada_discrete_type_high_bound): Handle undefined bounds.
6058
6059 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6060
6061 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6062 declaration.
6063 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6064 function.
6065
6066 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6067
6068 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6069 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6070 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6071 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6072 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6073 method.
6074
6075 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6076
6077 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6078 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6079 which are deprecated in Guile 3.0.
6080 * configure.ac (try_guile_versions): Add "guile-3.0".
6081 * configure (try_guile_versions): Regenerate.
6082 * NEWS: Update entry.
6083
6084 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6085 Doug Evans <dje@google.com>
6086
6087 PR gdb/21104
6088 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6089 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6090 USING_GUILE_BEFORE_2_2.
6091 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6092 Change type to 'scm_t_port_type *'.
6093 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6094 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6095 parameter and honor it. Update callers.
6096 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6097 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6098 functions.
6099 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6100 USING_GUILE_BEFORE_2_2.
6101 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6102 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6103 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6104 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6105 and 'SCM_PORT_TYPE'.
6106 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6107 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6108 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6109 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6110 [!USING_GUILE_BEFORE_2_2]: New functions.
6111 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6112 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6113 'gdbscm_memory_port_read'.
6114 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6115 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6116 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6117 function.
6118 (ioscm_init_memory_port): Remove.
6119 (ioscm_init_memory_port_stream): New function
6120 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6121 function.
6122 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6123 Return scm_from_uint (0).
6124 (gdbscm_set_memory_port_read_buffer_size_x)
6125 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6126 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6127 Return scm_from_uint (0).
6128 (gdbscm_set_memory_port_write_buffer_size_x)
6129 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6130 * configure.ac (try_guile_versions): Add "guile-2.2".
6131 * configure: Regenerate.
6132 * NEWS: Add entry.
6133
6134 2020-07-18 Tom Tromey <tom@tromey.com>
6135
6136 * linux-nat.c (linux_multi_process): Remove.
6137 (linux_nat_target::supports_multi_process): Return true.
6138
6139 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6142 (riscv_lookup_target_description): Return pointer out of
6143 unique_ptr.
6144 * target-descriptions.c (allocate_target_description): Add
6145 comment.
6146 (target_desc_deleter::operator()): Likewise.
6147 * target-descriptions.h (struct target_desc_deleter): Moved to
6148 gdbsupport/tdesc.h.
6149 (target_desc_up): Likewise.
6150
6151 2020-07-17 Tom Tromey <tromey@adacore.com>
6152
6153 * linux-nat.c (linux_nat_target::supports_non_stop)
6154 (linux_nat_target::always_non_stop_p): Use "true".
6155 (linux_nat_target::supports_disable_randomization): Use "true" and
6156 "false".
6157
6158 2020-07-16 Caroline Tice <cmtice@google.com>
6159
6160 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6161 (RNGLIST_HEADER_SIZE64): New constant definition.
6162 (struct dwop_section_names): Add rnglists_dwo.
6163 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6164 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6165 (struct dwo_sections): Add rnglists field.
6166 (read_attribut_reprocess): Add tag parameter.
6167 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6168 (cu_debug_rnglists_section): New function (decl & definition).
6169 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6170 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6171 die whose range is being checked; get rnglist section from
6172 cu_debug_rnglists_section, to get from either objfile or dwo file as
6173 appropriate. Add cases for DW_RLE_base_addressx,
6174 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6175 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6176 test inside if-condition and updating complaint message.
6177 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6178 dwarf2_rnglists_process.
6179 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6180 dwarf2_ranges_process.
6181 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6182 need_ranges_base and update comment appropriately. Also pass die tag
6183 to dwarf2_ranges_read.
6184 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6185 need_ranges_base and update comment appropriately. Also pass die tag
6186 to dwarf2_ranges_process.
6187 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6188 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6189 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6190 need_ranges_base and update comment appropriately. Also pass die tag
6191 to read_attribute_reprocess and dwarf2_ranges_read.
6192 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6193 and update function comment appropriately.
6194 (read_loclist_index): Call read_loclists_rnglists_header instead of
6195 read_loclist_header.
6196 (read_rnglist_index): New function.
6197 (read_attribute_reprocess): Add tag parameter. Add code for
6198 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6199 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6200
6201 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6202
6203 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6204 being resolved.
6205
6206 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * arch-utils.c (show_architecture): Update formatting of messages.
6209
6210 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6211
6212 * gdbtypes.h (struct type) <bounds>: Handle array and string
6213 types.
6214 * ada-lang.c (assign_aggregate): Use type::bounds on
6215 array/string type.
6216 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6217 * c-varobj.c (c_number_of_children): Likewise.
6218 (c_describe_child): Likewise.
6219 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6220 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6221 (f_type_print_base): Likewise.
6222 * f-valprint.c (f77_array_offset_tbl): Likewise.
6223 (f77_get_upperbound): Likewise.
6224 (f77_print_array_1): Likewise.
6225 * guile/scm-type.c (gdbscm_type_range): Likewise.
6226 * m2-typeprint.c (m2_array): Likewise.
6227 (m2_is_long_set_of_type): Likewise.
6228 * m2-valprint.c (get_long_set_bounds): Likewise.
6229 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6230 * python/py-type.c (typy_range): Likewise.
6231 * rust-lang.c (rust_internal_print_type): Likewise.
6232 * type-stack.c (type_stack::follow_types): Likewise.
6233 * valarith.c (value_subscripted_rvalue): Likewise.
6234 * valops.c (value_cast): Likewise.
6235
6236 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6237
6238 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6239 callers to use the equivalent accessor methods.
6240
6241 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6244 (struct type) <bit_stride>: New method.
6245 (TYPE_BIT_STRIDE): Remove.
6246 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6247
6248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6249
6250 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6251 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6252 callers to use the equivalent accessor methods instead.
6253
6254 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6257 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6258 callers to use the equivalent accessor methods instead.
6259
6260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6263 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6264 to use dynamic_prop::kind.
6265
6266 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6269 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6270 to get the bound property's kind and check against
6271 PROP_UNDEFINED.
6272
6273 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6276 all callers to use type::range_bounds followed by
6277 dynamic_prop::{low,high}.
6278
6279 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6282 const_val, set_const_val, baton, set_locexpr, set_loclist,
6283 set_addr_offset, variant_parts, set_variant_parts,
6284 original_type, set_original_type>: New methods.
6285 <kind>: Rename to...
6286 <m_kind>: ... this. Update all users to use the new methods
6287 instead.
6288 <data>: Rename to...
6289 <m_data>: ... this. Update all users to use the new methods
6290 instead.
6291
6292 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6293
6294 * gdbtypes.c (get_discrete_bounds): Return failure if
6295 the range type's bounds are not both defined and constant
6296 values.
6297 (get_array_bounds): Update comment. Remove undefined bound check.
6298
6299 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6300
6301 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6302 the type::bounds method directly.
6303
6304 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6305
6306 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6307 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6308 are used to set the range type's bounds to use set_bounds.
6309
6310 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6311
6312 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6313
6314 2020-07-10 Pedro Alves <pedro@palves.net>
6315
6316 * gdbthread.h (inferior_ref): Define.
6317 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6318 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6319 * thread.c
6320 (scoped_restore_current_thread::restore):
6321 Adjust to gdb::ref_ptr.
6322 (scoped_restore_current_thread::~scoped_restore_current_thread):
6323 Remove manual decref handling.
6324 (scoped_restore_current_thread::scoped_restore_current_thread):
6325 Adjust to use
6326 inferior_ref::new_reference/thread_info_ref::new_reference.
6327 Incref the thread before calling get_frame_id instead of after.
6328 Let TARGET_CLOSE_ERROR propagate.
6329
6330 2020-07-10 Pedro Alves <pedro@palves.net>
6331
6332 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6333 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6334 NOT_AVAILABLE_ERROR.
6335 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6336 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6337
6338 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6339 Pedro Alves <pedro@palves.net>
6340
6341 PR gdb/26199
6342 * infrun.c (threads_are_resumed_pending_p): Delete.
6343 (do_target_wait): Remove threads_are_executing and
6344 threads_are_resumed_pending_p checks from the inferior_matches
6345 lambda. Update comments.
6346
6347 2020-07-10 Pedro Alves <pedro@palves.net>
6348
6349 PR gdb/26199
6350 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6351 executing threads.
6352
6353 2020-07-10 Pedro Alves <pedro@palves.net>
6354
6355 PR gdb/26199
6356 * infrun.c (handle_no_resumed): Handle multiple targets.
6357
6358 2020-07-10 Pedro Alves <pedro@palves.net>
6359
6360 PR gdb/26199
6361 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6362 target_is_async_p.
6363
6364 2020-07-10 Pedro Alves <pedro@palves.net>
6365
6366 PR gdb/26199
6367 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6368 threads, not all threads.
6369
6370 2020-07-10 Pedro Alves <pedro@palves.net>
6371
6372 PR gdb/26199
6373 * remote.c (remote_target::open_1): Pass remote target pointer as
6374 data to create_async_event_handler.
6375 (remote_async_inferior_event_handler): Mark async event handler
6376 before returning if the remote target still has either pending
6377 events or unacknowledged notifications.
6378
6379 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6380
6381 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6382 declaration.
6383 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6384 function.
6385
6386 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6387
6388 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6389 inferior_ptid.
6390
6391 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6392
6393 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6394 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6395 AT_FREEBSD_PS_STRINGS.
6396
6397 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6398
6399 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6400 of debugfile path on Windows.
6401
6402 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6403
6404 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6405 argument to 'data'.
6406
6407 2020-07-08 Tom Tromey <tromey@adacore.com>
6408
6409 * ada-lang.c (ada_exception_message_1): Use read_memory.
6410
6411 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 PR python/22748
6414 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6415 special handling for inline frames.
6416 * findvar.c (value_of_register_lazy): Skip inline frames when
6417 creating lazy register values.
6418 * frame.c (frame_id_computed_p): Delete definition.
6419 * frame.h (frame_id_computed_p): Delete declaration.
6420
6421 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * NEWS: Mention additions to Python API.
6424 * python/py-arch.c (archpy_register_groups): New function.
6425 (arch_object_methods): Add 'register_groups' method.
6426 * python/py-registers.c (reggroup_iterator_object): New struct.
6427 (reggroup_object): New struct.
6428 (gdbpy_new_reggroup): New function.
6429 (gdbpy_reggroup_to_string): New function.
6430 (gdbpy_reggroup_name): New function.
6431 (gdbpy_reggroup_iter): New function.
6432 (gdbpy_reggroup_iter_next): New function.
6433 (gdbpy_new_reggroup_iterator): New function
6434 (gdbpy_initialize_registers): Register new types.
6435 (reggroup_iterator_object_type): Define new Python type.
6436 (gdbpy_reggroup_getset): New static global.
6437 (reggroup_object_type): Define new Python type.
6438 * python/python-internal.h
6439
6440 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6443 * python/py-arch.c (archpy_registers): New function.
6444 (arch_object_methods): Add 'registers' method.
6445 * python/py-registers.c: New file.
6446 * python/python-internal.h
6447 (gdbpy_new_register_descriptor_iterator): Declare.
6448 (gdbpy_initialize_registers): Declare.
6449 * python/python.c (do_start_initialization): Call
6450 gdbpy_initialize_registers.
6451 * NEWS: Mention additions to the Python API.
6452
6453 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * NEWS: Mention new Python API method.
6456 * python/py-unwind.c (pending_framepy_architecture): New function.
6457 (pending_frame_object_methods): Add architecture method.
6458
6459 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6460
6461 * gdbarch.c: Regenerate.
6462 * gdbarch.h: Regenerate.
6463 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6464 (gdbarch_data): Use internal_error for the case where
6465 deprecated_set_gdbarch_data was originally needed.
6466 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6467 and use passed in obstack.
6468 (libunwind_frame_set_descr): Should no longer get back NULL from
6469 gdbarch_data.
6470 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6471 type.
6472 * user-regs.c (user_regs_init): Update parameters, and use passed
6473 in obstack.
6474 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6475 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6476
6477 2020-07-06 Tom de Vries <tdevries@suse.de>
6478
6479 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6480 End-Of-Sequence in lte_is_less_than.
6481 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6482 "gdb: Don't reorder line table entries too much when sorting".
6483
6484 2020-07-06 Tom de Vries <tdevries@suse.de>
6485
6486 PR tui/26205
6487 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6488
6489 2020-07-05 Tom de Vries <tdevries@suse.de>
6490
6491 PR build/26187
6492 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6493 std::uncaught_exceptions instead of deprecated
6494 std::uncaught_exception.
6495
6496 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * macroexp.h (macro_stringify): Return
6499 gdb::unique_xmalloc_ptr<char>.
6500 * macroexp.c (macro_stringify): Likewise.
6501 * macrotab.c (fixup_definition): Update.
6502
6503 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6504
6505 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6506 (lex_one_token): Update.
6507 * macroexp.c (struct macro_buffer) <release>: Return
6508 gdb::unique_xmalloc_ptr<char>.
6509 (macro_stringify): Update.
6510 (macro_expand): Update.
6511 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6512 * macroexp.h (macro_expand_next): Likewise.
6513
6514 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6515
6516 * macroexp.h (macro_lookup_ftype): Remove.
6517 (macro_expand, macro_expand_once, macro_expand_next): Remove
6518 lookup function parameters, add scope parameter.
6519 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6520 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6521 * macroscope.h (standard_macro_lookup): Change parameter type
6522 to macro_scope.
6523 * macroscope.c (standard_macro_lookup): Likewise.
6524 * c-exp.y (lex_one_token): Update.
6525 * macrocmd.c (macro_expand_command): Likewise.
6526 (macro_expand_once_command): Likewise.
6527
6528 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * inf-loop.c (inferior_event_handler): Remove client_data param.
6531 * inf-loop.h (inferior_event_handler): Likewise.
6532 * infcmd.c (step_1): Adjust.
6533 * infrun.c (proceed): Adjust.
6534 (fetch_inferior_event): Remove client_data param.
6535 (infrun_async_inferior_event_handler): Adjust.
6536 * infrun.h (fetch_inferior_event): Remove `void *` param.
6537 * linux-nat.c (handle_target_event): Adjust.
6538 * record-btrace.c (record_btrace_handle_async_inferior_event):
6539 Adjust.
6540 * record-full.c (record_full_async_inferior_event_handler):
6541 Adjust.
6542 * remote.c (remote_async_inferior_event_handler): Adjust.
6543
6544 2020-07-01 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6547 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6548
6549 2020-07-01 Tom Tromey <tom@tromey.com>
6550
6551 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6552 tui_gen_win_info.
6553 (tui_win_info::make_window): Merge with
6554 tui_gen_win_info::make_window.
6555 (tui_win_info::make_visible): Move from tui_gen_win_info.
6556 * tui/tui-win.c (tui_win_info::max_width): Move from
6557 tui_gen_win_info.
6558 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6559 type.
6560 <window_factory>: Likewise.
6561 * tui/tui-layout.c (tui_win_info::resize): Move from
6562 tui_gen_win_info.
6563 (make_standard_window): Change return type.
6564 (get_locator_window, tui_get_window_by_name): Likewise.
6565 (tui_layout_window::apply): Remove a cast.
6566 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6567 (struct tui_win_info): Merge with tui_gen_win_info.
6568 (struct tui_gen_win_info): Remove.
6569
6570 2020-07-01 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-stack.h (struct tui_locator_window): Derive from
6573 tui_win_info.
6574 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6575 <can_box>: New method.
6576
6577 2020-07-01 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6580
6581 2020-07-01 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-regs.c (tui_data_window::display_registers_from)
6584 (tui_data_window::display_registers_from)
6585 (tui_data_window::first_data_item_displayed)
6586 (tui_data_window::delete_data_content_windows): Update.
6587 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6588 Remove.
6589 (tui_data_window::check_register_values): Update.
6590 (tui_data_item_window::rerender): Add parameters. Update.
6591 (tui_data_item_window::refresh_window): Remove.
6592 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6593 virtual.
6594 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6595 tui_gen_win_info.
6596 <refresh_window, max_height, min_height>: Remove.
6597 <rerender>: Add parameters.
6598 <x, y, visible>: New members.
6599 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6600 <m_item_width>: New member.
6601
6602 2020-07-01 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-regs.c (tui_data_window::show_register_group)
6605 (tui_data_window::check_register_values): Update.
6606 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6607 from item_no.
6608
6609 2020-07-01 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6612 useless "if".
6613
6614 2020-07-01 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6617 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6618
6619 2020-07-01 Tom Tromey <tom@tromey.com>
6620
6621 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6622 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6623 (struct tui_line_or_address): Move from tui-data.h.
6624 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6625 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6626 (tui_cmd_window, tui_source_window_base, tui_source_window)
6627 (tui_disasm_window): Don't declare.
6628 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6629 to tui-winsource.h.
6630 (SINGLE_KEY): Move to tui-stack.c.
6631
6632 2020-07-01 Tom Tromey <tom@tromey.com>
6633
6634 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6635 std::string.
6636 * tui/tui-regs.c (class tab_expansion_file): New.
6637 (tab_expansion_file::write): New method.
6638 (tui_register_format): Change return type. Use
6639 tab_expansion_file.
6640 (tui_get_register, tui_data_window::display_registers_from)
6641 (tui_data_item_window::rerender): Update.
6642 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6643 * tui/tui-io.c (tui_expand_tabs): Remove.
6644
6645 2020-07-01 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6648
6649 2020-07-01 Fangrui Song <maskray@google.com>
6650
6651 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6652
6653 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6654
6655 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6656 forms for DW_AT_associated and DW_AT_allocated attributes,
6657 which is already checked in function attr_to_dynamic_prop.
6658
6659 2020-06-30 Tom Tromey <tromey@adacore.com>
6660
6661 * dwarf2/read.c (quirk_rust_enum): Correctly call
6662 alloc_rust_variant for default-less enum.
6663
6664 2020-06-30 Tom Tromey <tromey@adacore.com>
6665
6666 PR build/26183:
6667 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6668 gdb::to_string.
6669
6670 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6673 * gdbarch.h: Re-generate.
6674
6675 2020-06-28 Tom Tromey <tom@tromey.com>
6676
6677 * command.h (cmd_types): Remove.
6678 (cmd_type): Don't declare.
6679 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6680 typedef.
6681 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6682 * cli/cli-decode.c (cmd_type): Remove.
6683
6684 2020-06-27 Pedro Alves <palves@redhat.com>
6685
6686 * fork-child.c (prefork_hook): Adjust.
6687 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6688 Delete.
6689 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6690 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6691 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6692 Remove declarations.
6693 (struct inferior) <set_tty, tty>: New methods.
6694 (struct inferior) <terminal>: Rename to ...
6695 (struct inferior) <m_terminal>: ... this and make private.
6696 * main.c (captured_main_1): Adjust.
6697 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6698 (mi_cmd_inferior_tty_show): Adjust.
6699 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6700 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6701
6702 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6703
6704 * configure.ac: Add --enable-libctf: handle --disable-static
6705 properly.
6706 * acinclude.m4: sinclude ../config/enable.m4.
6707 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6708 (LIBCTF): Substitute in.
6709 (CTF_DEPS): New, likewise.
6710 (CLIBS): libctf needs symbols from libbfd: move earlier.
6711 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6712 flags.
6713 * ctfread.c: Surround in ENABLE_LIBCTF.
6714 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6715 * configure: Regenerate.
6716 * config.in: Likewise.
6717
6718 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6719
6720 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6721
6722 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6723
6724 * inferior.h (struct inferior) <terminal>: Change type to
6725 gdb::unique_xmalloc_ptr<char>.
6726 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6727 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6728 field, adjust to unique pointer.
6729 (get_inferior_io_terminal): Adjust to unique pointer.
6730
6731 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6734 registers, not just the known core set of registers.
6735
6736 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6739 fflags, frm, and fcsr registers.
6740 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6741 restore groups.
6742 (riscv_tdesc_unknown_reg): New function.
6743 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6744 tdesc_use_registers.
6745 * riscv-tdep.h (struct gdbarch_tdep): Add
6746 unknown_csrs_first_regnum, unknown_csrs_count,
6747 duplicate_fflags_regnum, duplicate_frm_regnum, and
6748 duplicate_fcsr_regnum fields.
6749
6750 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6751
6752 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6753 callback, use the callback (when not null) to help number unknown
6754 registers.
6755 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6756 (tdesc_use_registers): Add extra parameter to declaration.
6757
6758 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6761 in the file.
6762 (class riscv_pending_register_alias): Likewise.
6763 (riscv_register_feature::register_info): Change 'required_p' field
6764 to 'required', and change its type. Add 'check' member function.
6765 (riscv_register_feature::register_info::check): Define new member
6766 function.
6767 (riscv_xreg_feature): Change initialisation of 'required' field.
6768 (riscv_freg_feature): Likewise.
6769 (riscv_virtual_feature): Likewise.
6770 (riscv_csr_feature): Likewise.
6771 (riscv_check_tdesc_feature): Take extra parameter, the csr
6772 tdesc_feature, rewrite the function to use the new
6773 riscv_register_feature::register_info::check function.
6774 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6775
6776 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * features/Makefile: Remove all references to the deleted files
6779 below.
6780 * features/riscv/32bit-csr.c: Deleted.
6781 * features/riscv/32bit-csr.xml: Deleted.
6782 * features/riscv/64bit-csr.c: Deleted.
6783 * features/riscv/64bit-csr.xml: Deleted.
6784 * features/riscv/rebuild-csr-xml.sh: Deleted.
6785
6786 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6789 whitespace error for declaration of names member variable.
6790 (struct riscv_register_feature): Add new prefer_first_name member
6791 variable, and fix whitespace error in declaration of registers.
6792 (riscv_xreg_feature): Initialize prefer_first_name field.
6793 (riscv_freg_feature): Likewise.
6794 (riscv_virtual_feature): Likewise.
6795 (riscv_csr_feature): Likewise.
6796 (riscv_register_name): Expand on comments. Remove register name
6797 modifications for CSR and virtual registers.
6798
6799 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6802 errors.
6803
6804 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6807 riscv-opc.h.
6808 (class riscv_pending_register_alias): New class.
6809 (riscv_check_tdesc_feature): Take vector of pending aliases and
6810 populate it as appropriate.
6811 (riscv_setup_register_aliases): Delete.
6812 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6813 to riscv_check_tdesc_feature in all cases. Use the vector to
6814 create the register aliases.
6815
6816 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6817
6818 * sol2-tdep.c (sol2_static_transform_name): Remove.
6819 (sol2_init_abi): Don't register it.
6820 * gdbarch.sh (static_transform_name): Remove.
6821 * gdbarch.c, gdbarch.h: Regenerate.
6822
6823 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6824 gdbarch_static_transform_name.
6825 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6826 * stabsread.c (define_symbol) <'X'>: Remove.
6827 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6828 handling.
6829 <'V'>: Likewise.
6830 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6831 <'S'>: Remove call to gdbarch_static_transform_name.
6832
6833 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6834
6835 * procfs.c (procfs_pre_trace): New function.
6836 (procfs_target::create_inferior): Pass it to fork_inferior.
6837
6838 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6839
6840 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6841 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6842 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6843 sol2-tdep.o, sparc-sol2-tdep.o.
6844 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6845 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6846 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6847 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6848
6849 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6850
6851 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6852 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6853 Call sol2_init_abi.
6854 Remove calls to set_gdbarch_skip_solib_resolver,
6855 set_gdbarch_core_pid_to_str.
6856 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6857 (i386_sol2_static_transform_name): Remove.
6858 (i386_sol2_init_abi): Call sol2_init_abi.
6859 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6860 set_gdbarch_static_transform_name,
6861 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6862 Use sol2_sigtramp_p.
6863 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6864 (sol2_sigtramp_p): New function.
6865 (sol2_static_transform_name): New function.
6866 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6867 (sol2_init_abi): New function.
6868 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6869 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6870 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6871 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6872 (sparc_sol2_static_transform_name): Remove.
6873 (sparc32_sol2_init_abi): Call sol2_init_abi.
6874 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6875 set_gdbarch_static_transform_name,
6876 set_gdbarch_skip_solib_resolver,
6877 set_gdbarch_core_pid_to_str.
6878 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6879 (sparc_sol2_static_transform_name): Remove
6880 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6881 call sol2_sigtramp_p.
6882 (sparc64_sol2_init_abi): Call sol2_init_abi.
6883 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6884 set_gdbarch_static_transform_name,
6885 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6886
6887 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6888
6889 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6890 * exec.c (validate_exec_file): If from_tty, set both
6891 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6892 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6893 and from_tty, unconditionally ask a confirmation.
6894
6895 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * target-descriptions.c (tdesc_architecture_name): Protect against
6898 NULL pointer dereference.
6899 (maint_print_xml_tdesc_cmd): New function.
6900 (_initialize_target_descriptions): Register new 'maint print
6901 xml-tdesc' command and give it the filename completer.
6902 * NEWS: Mention new 'maint print xml-tdesc' command.
6903
6904 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * target-descriptions.c (class tdesc_compatible_info): New class.
6907 (struct target_desc): Change type of compatible vector.
6908 (tdesc_compatible_p): Update for change in type of
6909 target_desc::compatible.
6910 (tdesc_compatible_info_list): New function.
6911 (tdesc_compatible_info_arch_name): New function.
6912 (tdesc_add_compatible): Update for change in type of
6913 target_desc::compatible.
6914 (print_c_tdesc::visit_pre): Likewise.
6915
6916 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6919 whitespace to underscore.
6920 (maint_print_c_tdesc_cmd): Use fake filename for target
6921 descriptions that came from the target.
6922 (_initialize_target_descriptions): Add filename command completion
6923 for 'maint print c-tdesc'.
6924
6925 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6928 lines.
6929
6930 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6933 lines.
6934 (dwarf2_find_location_expression): Likewise.
6935 (call_site_parameter_matches): Likewise.
6936 (dwarf2_compile_expr_to_ax): Likewise.
6937 (disassemble_dwarf_expression): Likewise.
6938 (loclist_describe_location): Likewise.
6939
6940 2020-06-23 Pedro Alves <palves@redhat.com>
6941
6942 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6943 progspace-and-thread.h. Include scoped-mock-context.h instead.
6944 (register_to_value_test): Use scoped_mock_context.
6945 * regcache.c: Include "scoped-mock-context.h".
6946 (cooked_read_test): Don't error out if a target is already pushed.
6947 Use scoped_mock_context. Adjust.
6948 * scoped-mock-context.h: New file.
6949
6950 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6953 initializer.
6954 (ada_language::is_string_type_p): New member function.
6955 * c-lang.c (c_language_data): Delete la_is_string_type_p
6956 initializer.
6957 (cplus_language_data): Likewise.
6958 (asm_language_data): Likewise.
6959 (minimal_language_data): Likewise.
6960 * d-lang.c (d_language_data): Likewise.
6961 * f-lang.c (f_is_string_type_p): Delete function, implementation
6962 moved to f_language::is_string_type_p.
6963 (f_language_data): Delete la_is_string_type_p initializer.
6964 (f_language::is_string_type_p): New member function,
6965 implementation from f_is_string_type_p.
6966 * go-lang.c (go_is_string_type_p): Delete function, implementation
6967 moved to go_language::is_string_type_p.
6968 (go_language_data): Delete la_is_string_type_p initializer.
6969 (go_language::is_string_type_p): New member function,
6970 implementation from go_is_string_type_p.
6971 * language.c (language_defn::is_string_type_p): Define new member
6972 function.
6973 (default_is_string_type_p): Make static, add comment copied from
6974 header file.
6975 (unknown_language_data): Delete la_is_string_type_p initializer.
6976 (unknown_language::is_string_type_p): New member function.
6977 (auto_language_data): Delete la_is_string_type_p initializer.
6978 (auto_language::is_string_type_p): New member function.
6979 * language.h (language_data): Delete la_is_string_type_p field.
6980 (language_defn::is_string_type_p): Declare new function.
6981 (default_is_string_type_p): Delete desclaration, move comment to
6982 definition.
6983 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6984 moved to m2_language::is_string_type_p.
6985 (m2_language_data): Delete la_is_string_type_p initializer.
6986 (m2_language::is_string_type_p): New member function,
6987 implementation from m2_is_string_type_p.
6988 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6989 initializer.
6990 * opencl-lang.c (opencl_language_data): Likewise.
6991 * p-lang.c (pascal_is_string_type_p): Delete function,
6992 implementation moved to pascal_language::is_string_type_p.
6993 (pascal_language_data): Delete la_is_string_type_p initializer.
6994 (pascal_language::is_string_type_p): New member function,
6995 implementation from pascal_is_string_type_p.
6996 * rust-lang.c (rust_is_string_type_p): Delete function,
6997 implementation moved to rust_language::is_string_type_p.
6998 (rust_language_data): Delete la_is_string_type_p initializer.
6999 (rust_language::is_string_type_p): New member function,
7000 implementation from rust_is_string_type_p.
7001 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7002 is_string_type_p.
7003
7004 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7005
7006 * ada-lang.c (ada_language_data): Delete la_print_typedef
7007 initializer.
7008 (ada_language::print_typedef): New member function.
7009 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7010 (cplus_language_data): Likewise.
7011 (asm_language_data): Likewise.
7012 (minimal_language_data): Likewise.
7013 * d-lang.c (d_language_data): Likewise.
7014 * f-lang.c (f_language_data): Likewise.
7015 (f_language::print_typedef): New member function.
7016 * go-lang.c (go_language_data): Delete la_print_typedef
7017 initializer.
7018 * language.c (language_defn::print_typedef): Define member
7019 function.
7020 (unknown_language_data): Delete la_print_typedef initializer.
7021 (unknown_language::print_typedef): New member function.
7022 (auto_language_data): Delete la_print_typedef initializer.
7023 (auto_language::print_typedef): New member function.
7024 * language.h (language_data): Delete la_print_typedef field.
7025 (language_defn::print_typedef): Declare new member function.
7026 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7027 (default_print_typedef): Delete declaration.
7028 * m2-lang.c (m2_language_data): Delete la_print_typedef
7029 initializer.
7030 (m2_language::print_typedef): New member function.
7031 * objc-lang.c (objc_language_data): Delete la_print_typedef
7032 initializer.
7033 * opencl-lang.c (opencl_language_data): Likewise.
7034 * p-lang.c (pascal_language_data): Likewise.
7035 (pascal_language::print_typedef): New member function.
7036 * rust-lang.c (rust_print_typedef): Delete function,
7037 implementation moved to rust_language::print_typedef.
7038 (rust_language): Delete la_print_typedef initializer.
7039 (rust_language::print_typedef): New member function,
7040 implementation from rust_print_typedef.
7041 * typeprint.c (default_print_typedef): Delete.
7042
7043 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7046 (ada_language::printstr): New member function.
7047 * c-lang.c (c_language_data): Delete la_printstr initializer.
7048 (cplus_language_data): Likewise.
7049 (asm_language_data): Likewise.
7050 (minimal_language_data): Likewise.
7051 * d-lang.c (d_language_data): Likewise.
7052 * f-lang.c (f_printstr): Rename to f_language::printstr.
7053 (f_language_data): Delete la_printstr initializer.
7054 (f_language::printstr): New member function, implementation from
7055 f_printstr.
7056 * go-lang.c (go_language_data): Delete la_printstr initializer.
7057 * language.c (language_defn::printstr): Define new member
7058 function.
7059 (unk_lang_printstr): Delete.
7060 (unknown_language_data): Delete la_printstr initializer.
7061 (unknown_language::printstr): New member function.
7062 (auto_language_data): Delete la_printstr initializer.
7063 (auto_language::printstr): New member function.
7064 * language.h (language_data): Delete la_printstr field.
7065 (language_defn::printstr): Declare new member function.
7066 (LA_PRINT_STRING): Update call to printstr.
7067 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7068 (m2_language_data): Delete la_printstr initializer.
7069 (m2_language::printstr): New member function, implementation from
7070 m2_printstr.
7071 * objc-lang.c (objc_language_data): Delete la_printstr
7072 initializer.
7073 * opencl-lang.c (opencl_language_data): Likewise.
7074 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7075 (pascal_language_data): Delete la_printstr initializer.
7076 (pascal_language::printstr): New member function, implementation
7077 from pascal_printstr.
7078 * p-lang.h (pascal_printstr): Delete declaration.
7079 * rust-lang.c (rust_printstr): Update header comment.
7080 (rust_language_data): Delete la_printstr initializer.
7081 (rust_language::printstr): New member function.
7082
7083 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7086 (ada_language::printchar): New member function.
7087 * c-lang.c (c_language_data): Delete la_printchar initializer.
7088 (cplus_language_data): Likewise.
7089 (asm_language_data): Likewise.
7090 (minimal_language_data): Likewise.
7091 * d-lang.c (d_language_data): Likewise.
7092 * f-lang.c (f_printchar): Rename to f_language::printchar.
7093 (f_language_data): Delete la_printchar initializer.
7094 (f_language::printchar): New member function, implementation from
7095 f_printchar.
7096 * go-lang.c (go_language_data): Delete la_printchar initializer.
7097 * language.c (unk_lang_printchar): Delete.
7098 (language_defn::printchar): Define new member function.
7099 (unknown_language_data): Delete la_printchar initializer.
7100 (unknown_language::printchar): New member function.
7101 (auto_language_data): Delete la_printchar initializer.
7102 (auto_language::printchar): New member function.
7103 * language.h (language_data): Delete la_printchar field.
7104 (language_defn::printchar): Declare new member function.
7105 (LA_PRINT_CHAR): Update call to printchar.
7106 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7107 (m2_language::printchar): New member function.
7108 * objc-lang.c (objc_language_data): Delete la_printchar
7109 initializer.
7110 * opencl-lang.c (opencl_language_data): Likewise.
7111 * p-lang.c (pascal_language_data): Delete la_printchar
7112 initializer.
7113 (pascal_language::printchar): New member function.
7114 * rust-lang.c (rust_printchar): Rename to
7115 rust_language::printchar.
7116 (rust_language_data): Delete la_printchar initializer.
7117 (rust_language::printchar): New member function, implementation
7118 from rust_printchar.
7119
7120 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7121
7122 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7123 (ada_language_data): Delete la_emitchar initializer.
7124 (ada_language::emitchar): New member function, implementation from
7125 emit_char.
7126 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7127 (cplus_language_data): Likewise.
7128 (asm_language_data): Likewise.
7129 (minimal_language_data): Likewise.
7130 * d-lang.c (d_language_data): Likewise.
7131 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7132 (f_language_data): Delete la_emitchar initializer.
7133 (f_language::emitchar): New member function, implementation from
7134 f_emit_char.
7135 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7136 * language.c (unk_lang_emit_char): Delete.
7137 (language_defn::emitchar): New member function definition.
7138 (unknown_language_data): Delete la_emitchar initializer.
7139 (unknown_language::emitchar): New member function.
7140 (auto_language_data): Delete la_emitchar initializer.
7141 (auto_language::emitchar): New member function.
7142 * language.h (language_data): Delete la_emitchar field.
7143 (language_defn::emitchar): New member field declaration.
7144 (LA_EMIT_CHAR): Update call to emitchar.
7145 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7146 (m2_language_data): Delete la_emitchar initializer.
7147 (m2_language::emitchar): New member function, implementation from
7148 m2_emit_char.
7149 * objc-lang.c (objc_language_data): Delete la_emitchar
7150 initializer.
7151 * opencl-lang.c (opencl_language_data): Likewise.
7152 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7153 (pascal_language_data): Delete la_emitchar initializer.
7154 (pascal_language::emitchar): New member function, implementation
7155 from pascal_emit_char.
7156 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7157 (rust_language_data): Delete la_emitchar initializer.
7158 (rust_language::emitchar): New member function, implementation
7159 from rust_emitchar.
7160
7161 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7164 (ada_language_data): Delete la_post_parser initializer.
7165 (ada_language::post_parser): New member function.
7166 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7167 (cplus_language_data): Likewise.
7168 (asm_language_data): Likewise.
7169 (minimal_language_data): Likewise.
7170 * d-lang.c (d_language_data): Likewise.
7171 * f-lang.c (f_language_data): Likewise.
7172 * go-lang.c (go_language_data): Likewise.
7173 * language.c (unknown_language_data): Likewise.
7174 (auto_language_data): Likewise.
7175 * language.h (language_data): Delete la_post_parser field.
7176 (language_defn::post_parser): New member function.
7177 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7178 * objc-lang.c (objc_language_data): Likewise.
7179 * opencl-lang.c (opencl_language_data): Likewise.
7180 * p-lang.c (pascal_language_data): Likewise.
7181 * parse.c (parse_exp_in_context): Update call to post_parser.
7182 (null_post_parser): Delete definition.
7183 * parser-defs.h (null_post_parser): Delete declaration.
7184 * rust-lang.c (rust_language_data): Delete la_post_parser
7185 initializer.
7186
7187 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7188
7189 * ada-lang.c (parse): Rename to ada_language::parser.
7190 (ada_language_data): Delete la_parser initializer.
7191 (ada_language::parser): New member function, implementation from
7192 parse.
7193 * c-lang.c (c_language_data): Delete la_parser initializer.
7194 (cplus_language_data): Likewise.
7195 (asm_language_data): Likewise.
7196 (minimal_language_data): Likewise.
7197 * d-lang.c (d_language_data): Likewise.
7198 (d_language::parser): New member function.
7199 * f-lang.c (f_language_data): Delete la_parser initializer.
7200 (f_language::parser): New member function.
7201 * go-lang.c (go_language_data): Delete la_parser initializer.
7202 (go_language::parser): New member function.
7203 * language.c (unk_lang_parser): Delete.
7204 (language_defn::parser): Define new member function.
7205 (unknown_language_data): Delete la_parser initializer.
7206 (unknown_language::parser): New member function.
7207 (auto_language_data): Delete la_parser initializer.
7208 (auto_language::parser): New member function.
7209 * language.h (language_data): Delete la_parser field.
7210 (language_defn::parser): Declare new member function.
7211 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7212 (m2_language::parser): New member function.
7213 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7214 * opencl-lang.c (opencl_language_data): Likewise.
7215 * p-lang.c (pascal_language_data): Likewise.
7216 (pascal_language::parser): New member function.
7217 * parse.c (parse_exp_in_context): Update call to parser.
7218 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7219 (rust_language::parser): New member function.
7220
7221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * top.c (print_gdb_configuration): Print --with-python-libdir
7224 configuration value.
7225
7226 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7227
7228 * NEWS: Mention change to the alias command.
7229
7230 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7231
7232 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7233 (alias_command_completer)
7234 (make_alias_options_def_group): New functions.
7235 (alias_opts, alias_option_defs): New struct and array.
7236 (alias_usage_error): Update usage.
7237 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7238 Use option framework.
7239 (_initialize_cli_cmds): Update alias command help.
7240 Update aliases command help.
7241 (show_user):
7242 Add NULL for new default_args lookup_cmd argument.
7243 (valid_command_p): Rename to validate_aliased_command.
7244 Add NULL for new default_args lookup_cmd argument. Verify that the
7245 aliased_command has no default args.
7246 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7247 (lookup_cmd_1, lookup_cmd): New argument default_args.
7248 (add_alias_cmd):
7249 Add NULL for new default_args lookup_cmd argument.
7250 (print_help_for_command): Show default args under the layout
7251 alias some_alias = some_aliased_cmd some_alias_default_arg.
7252 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7253 xfree default_args in destructor.
7254 * cli/cli-script.c (process_next_line, do_define_command):
7255 Add NULL for new default_args lookup_cmd argument.
7256 * command.h: Declare new default_args argument in lookup_cmd
7257 and lookup_cmd_1.
7258 * completer.c (complete_line_internal_1):
7259 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7260 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7261 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7262 Likewise.
7263 * infcmd.c (_initialize_infcmd): Likewise.
7264 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7265 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7266 * python/py-param.c (add_setshow_generic): Likewise.
7267 * remote.c (_initialize_remote): Likewise.
7268 * top.c (execute_command): Prepend default_args if command has some.
7269 (set_verbose):
7270 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7271 * tracepoint.c (validate_actionline, encode_actions_1):
7272 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7273
7274 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7275
7276 * jit.c (jit_read_descriptor): Use bool as the return type.
7277 (jit_breakpoint_re_set_internal): Use bool as the return type.
7278 Invert the return value logic; return true if the jit breakpoint
7279 has been successfully initialized.
7280 (jit_inferior_init): Update the call to
7281 jit_breakpoint_re_set_internal.
7282
7283 2020-06-22 Pedro Alves <palves@redhat.com>
7284
7285 PR gdb/25939
7286 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7287 Use the current inferior instead. Don't return
7288 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7289 wait again.
7290 * sol-thread.c (sol_thread_target::wait): Don't reference
7291 inferior_ptid.
7292 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7293 (sol_update_thread_list_callback): Use the current inferior's pid
7294 instead of inferior_ptid.
7295
7296 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7297
7298 * procfs.c: Cleanup many comments.
7299
7300 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7301 (AFTER_WATCHFLAG): Replace by value.
7302
7303 (MAIN_PROC_NAME_FORMAT): Inline ...
7304 (create_procinfo): ... here.
7305
7306 (procfs_debug_inferior): Remove SYS_exec handling.
7307 (syscall_is_exec): Likewise.
7308 (procfs_set_exec_trap): Likewise.
7309
7310 (syscall_is_lwp_exit): Inline in callers.
7311 (syscall_is_exit): Likewise.
7312 (syscall_is_exec): Likewise.
7313 (syscall_is_lwp_create): Likewise.
7314
7315 (invalidate_cache): Remove #if 0 code.
7316
7317 (make_signal_thread_runnable): Remove.
7318 (procfs_target::resume): Remove #if 0 code.
7319
7320 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7321
7322 PR gdb/25939
7323 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7324 call ...
7325 (procfs_target::create_inferior): ... here.
7326
7327 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7328
7329 * exec.c (validate_exec_file): Ensure the build-id is up to
7330 date by calling reopen_exec_file (that checks file timestamp
7331 to decide to re-read the file).
7332
7333 2020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 PR gdb/25412
7336 * gdbthread.h (delete_thread, delete_thread_silent)
7337 (find_thread_ptid): Update comments.
7338 * thread.c (current_thread_): New global.
7339 (is_current_thread): Move higher, and reimplement.
7340 (inferior_thread): Reimplement.
7341 (set_thread_exited): Use bool. Add assertions.
7342 (add_thread_silent): Simplify thread-reuse handling by always
7343 calling delete_thread.
7344 (delete_thread): Remove intro comment.
7345 (find_thread_ptid): Skip exited threads.
7346 (switch_to_thread_no_regs): Write to current_thread_.
7347 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7348 INFERIOR_PTID. Clear current_thread_.
7349
7350 2020-06-18 Pedro Alves <palves@redhat.com>
7351
7352 * aix-thread.c (pd_update): Use switch_to_thread.
7353
7354 2020-06-18 Pedro Alves <palves@redhat.com>
7355
7356 * ravenscar-thread.c (ravenscar_thread_target): Update.
7357 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7358 (ravenscar_thread_target::add_active_thread): ... this. Don't
7359 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7360 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7361
7362 2020-06-18 Pedro Alves <palves@redhat.com>
7363
7364 * nat/windows-nat.c (current_windows_thread): Remove.
7365 * nat/windows-nat.h (current_windows_thread): Remove.
7366 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7367 Adjust.
7368 (display_selectors): Adjust to fetch the current
7369 windows_thread_info based on inferior_ptid.
7370 (fake_create_process): No longer write to current_windows_thread.
7371 (windows_nat_target::get_windows_debug_event):
7372 Don't set inferior_ptid or current_windows_thread.
7373 (windows_nat_target::wait): Adjust to not rely on
7374 current_windows_thread.
7375 (do_initial_windows_stuff): Now a method of windows_nat_target.
7376 Switch to the last_ptid thread.
7377 (windows_nat_target::attach): Adjust.
7378 (windows_nat_target::detach): Use switch_to_no_thread instead of
7379 writing to inferior_ptid directly.
7380 (windows_nat_target::create_inferior): Adjust.
7381
7382 2020-06-18 Pedro Alves <palves@redhat.com>
7383
7384 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7385
7386 2020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7389 after creating it, instead of writing to inferior_ptid. Don't
7390 write to inferior_ptid.
7391
7392 2020-06-18 Pedro Alves <palves@redhat.com>
7393
7394 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7395
7396 2020-06-18 Pedro Alves <palves@redhat.com>
7397
7398 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7399 it, instead of writing to inferior_ptid.
7400
7401 2020-06-18 Pedro Alves <palves@redhat.com>
7402
7403 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7404 to inferior_ptid.
7405
7406 2020-06-18 Pedro Alves <palves@redhat.com>
7407
7408 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7409 instead of writing to inferior_ptid directly.
7410
7411 2020-06-18 Pedro Alves <palves@redhat.com>
7412
7413 * corelow.c (core_target::close): Use switch_to_no_thread instead
7414 of writing to inferior_ptid directly.
7415 (add_to_thread_list, core_target_open): Use switch_to_thread
7416 instead of writing to inferior_ptid directly.
7417
7418 2020-06-18 Pedro Alves <palves@redhat.com>
7419
7420 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7421 inferior_ptid.
7422 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7423 inferior_ptid.
7424 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7425 inferior_ptid directly.
7426 (darwin_nat_target::init_thread_list): Switch to thread, instead
7427 of writing to inferior_ptid.
7428 (darwin_nat_target::attach): Don't write to inferior_ptid.
7429 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7430
7431 2020-06-18 Pedro Alves <palves@redhat.com>
7432
7433 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7434 thread.
7435 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7436 Instead use switch_to_thread.
7437 (gnu_nat_target::detach): Use switch_to_no_thread
7438 instead of writing to inferior_ptid directly. Used passed-in
7439 inferior instead of looking up the inferior by pid.
7440
7441 2020-06-18 Pedro Alves <palves@redhat.com>
7442
7443 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7444 inferior_ptid.
7445
7446 2020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7449 inferior_ptid.
7450 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7451 thread.
7452 (nto_procfs_target::detach): Avoid referencing
7453 inferior_ptid. Use switch_to_no_thread instead of writing to
7454 inferior_ptid directly.
7455 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7456 instead of writing to inferior_ptid directly.
7457 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7458 to thread.
7459
7460 2020-06-18 Pedro Alves <palves@redhat.com>
7461
7462 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7463 after creating it, instead of writing to inferior_ptid.
7464 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7465 to inferior_ptid directly.
7466 (gdbsim_target::wait): Don't write to inferior_ptid.
7467
7468 2020-06-18 Pedro Alves <palves@redhat.com>
7469
7470 * remote.c (remote_target::remote_notice_new_inferior): Use
7471 switch_to_thread instead of writing to inferior_ptid directly.
7472 (remote_target::add_current_inferior_and_thread): Use
7473 switch_to_no_thread instead of writing to inferior_ptid directly.
7474 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7475 and switch_to_thread instead of using set_current_inferior or
7476 writing to inferior_ptid directly.
7477
7478 2020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * tracectf.c (ctf_target_open): Switch to added thread instead of
7481 writing to inferior_ptid directly.
7482 (ctf_target::close): Use switch_to_no_thread instead of writing to
7483 inferior_ptid directly.
7484
7485 2020-06-18 Pedro Alves <palves@redhat.com>
7486
7487 * tracefile-tfile.c (tfile_target_open): Don't write to
7488 inferior_ptid directly, instead switch to added thread.
7489 (tfile_target::close): Use switch_to_no_thread instead of writing
7490 to inferior_ptid directly.
7491
7492 2020-06-18 Pedro Alves <palves@redhat.com>
7493
7494 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7495 (procfs_target::detach): Use switch_to_no_thread
7496 instead of writing to inferior_ptid directly.
7497 (do_attach): Change return type to void. Switch to the added
7498 thread.
7499 (procfs_target::create_inferior): Switch to the added thread.
7500 (procfs_do_thread_registers): Don't write to inferior_ptid.
7501
7502 2020-06-18 Pedro Alves <palves@redhat.com>
7503
7504 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7505 of writing to inferior_ptid.
7506 (scoped_restore_exited_inferior): Delete.
7507 (handle_vfork_child_exec_or_exit): Simplify using
7508 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7509 instead of writing to inferior_ptid.
7510 (THREAD_STOPPED_BY): Delete.
7511 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7512 (thread_stopped_by_hw_breakpoint): Delete.
7513 (save_waitstatus): Use
7514 scoped_restore_current_thread+switch_to_thread, and call
7515 target_stopped_by_watchpoint instead of
7516 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7517 instead of thread_stopped_by_sw_breakpoint, and
7518 target_stopped_by_hw_breakpoint instead of
7519 thread_stopped_by_hw_breakpoint.
7520 (handle_inferior_event)
7521 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7522 inferior_ptid directly, nor
7523 set_current_inferior/set_current_program_space. Use
7524 switch_to_thread / switch_to_inferior_no_thread instead.
7525
7526 2020-06-18 Pedro Alves <palves@redhat.com>
7527
7528 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7529 instead of writing to inferior_ptid.
7530
7531 2020-06-18 Pedro Alves <palves@redhat.com>
7532
7533 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7534 added thread.
7535 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7536 to the added thread.
7537 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7538 instead of writing to inferior_ptid.
7539
7540 2020-06-18 Pedro Alves <palves@redhat.com>
7541
7542 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7543 (register_to_value_test): Mock a program_space too. Heap-allocate
7544 the address space. Don't write to inferior_ptid. Use
7545 switch_to_thread instead.
7546
7547 2020-06-18 Pedro Alves <palves@redhat.com>
7548
7549 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7550 Delete.
7551 (find_signalled_thread()): New, factored out from
7552 linux_make_corefile_notes and adjusted to handle exited threads.
7553 (linux_make_corefile_notes): Adjust to use the new
7554 find_signalled_thread.
7555
7556 2020-06-18 Pedro Alves <palves@redhat.com>
7557
7558 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7559 of saving/restoring inferior_ptid.
7560
7561 2020-06-17 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7564 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7565 declare.
7566 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7567
7568 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7569
7570 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7571 of partial symtabs.
7572
7573 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * regformats/reg-arm.dat: Remove.
7576 * regformats/reg-bfin.dat: Remove.
7577 * regformats/reg-cris.dat: Remove.
7578 * regformats/reg-crisv32.dat: Remove.
7579 * regformats/reg-m32r.dat: Remove.
7580 * regformats/reg-tilegx.dat: Remove.
7581 * regformats/reg-tilegx32.dat: Remove.
7582
7583 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7584
7585 * features/Makefile (WHICH): Remove arm files.
7586 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7587 * regformats/arm/arm-with-neon.dat: Remove.
7588 * regformats/arm/arm-with-vfpv2.dat: Remove.
7589 * regformats/arm/arm-with-vfpv3.dat: Remove.
7590
7591 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * features/Makefile (XMLTOC): Remove rx.xml.
7594
7595 2020-06-17 Pedro Alves <palves@redhat.com>
7596
7597 * gdbthread.h (thread_control_state) <trap_expected> Update
7598 comments.
7599
7600 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7601
7602 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7603 ada_language::lookup_symbol_nonlocal.
7604 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7605 (ada_language::lookup_symbol_nonlocal): New member function,
7606 implementation from ada_lookup_symbol_nonlocal.
7607 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7608 initializer.
7609 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7610 initializer.
7611 (cplus_language::lookup_symbol_nonlocal): New member function.
7612 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7613 (minimal_language_data) Likewise.
7614 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7615 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7616 initializer.
7617 (d_language::lookup_symbol_nonlocal): New member function.
7618 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7619 initializer.
7620 (f_language::lookup_symbol_nonlocal): New member function.
7621 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7622 initializer.
7623 * language.c (unknown_language_data): Likewise.
7624 (auto_language_data): Likewise.
7625 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7626 field.
7627 (language_defn::lookup_symbol_nonlocal): New member function.
7628 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7629 initializer.
7630 * objc-lang.c (objc_language_data): Likewise.
7631 * opencl-lang.c (opencl_language_data): Likewise.
7632 * p-lang.c (pascal_language_data): Likewise.
7633 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7634 rust_language::lookup_symbol_nonlocal.
7635 (rust_language_data): Delete la_lookup_symbol_nonlocal
7636 initializer.
7637 (rust_language::lookup_symbol_nonlocal): New member function,
7638 implementation from rust_lookup_symbol_nonlocal.
7639 * symtab.c (lookup_symbol_aux): Update call to
7640 lookup_symbol_nonlocal.
7641 (basic_lookup_symbol_nonlocal): Rename to...
7642 (language_defn::lookup_symbol_nonlocal): ...this, and update
7643 header comment. Remove language_defn parameter, and replace with
7644 uses of `this'.
7645 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7646
7647 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7648
7649 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7650 initializer.
7651 (ada_language::value_print_inner): New member function.
7652 * c-lang.c (c_language_data): Delete la_value_print_inner
7653 initializer.
7654 (cplus_language_data): Likewise.
7655 (asm_language_data): Likewise.
7656 (minimal_language_data): Likewise.
7657 * d-lang.c (d_language_data): Likewise.
7658 (d_language::value_print_inner): New member function.
7659 * f-lang.c (f_language_data): Delete la_value_print_inner
7660 initializer.
7661 (f_language::value_print_inner): New member function.
7662 * f-lang.h (f_value_print_innner): Rename to...
7663 (f_value_print_inner): ...this (note spelling of 'inner').
7664 * f-valprint.c (f_value_print_innner): Rename to...
7665 (f_value_print_inner): ...this (note spelling of 'inner').
7666 * go-lang.c (go_language_data): Delete la_value_print_inner
7667 initializer.
7668 (go_language::value_print_inner): New member function.
7669 * language.c (language_defn::value_print_inner): Define new member
7670 function.
7671 (unk_lang_value_print_inner): Delete.
7672 (unknown_language_data): Delete la_value_print_inner initializer.
7673 (unknown_language::value_print_inner): New member function.
7674 (auto_language_data): Delete la_value_print_inner initializer.
7675 (auto_language::value_print_inner): New member function.
7676 * language.h (language_data): Delete la_value_print_inner field.
7677 (language_defn::value_print_inner): Delcare new member function.
7678 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7679 initializer.
7680 (m2_language::value_print_inner): New member function.
7681 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7682 initializer.
7683 * opencl-lang.c (opencl_language_data): Likewise.
7684 * p-lang.c (pascal_language_data): Likewise.
7685 (pascal_language::value_print_inner): New member function.
7686 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7687 initializer.
7688 (rust_language::value_print_inner): New member function.
7689 * valprint.c (do_val_print): Update call to value_print_inner.
7690
7691 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7692
7693 * ada-lang.c (ada_language_data): Delete la_value_print
7694 initializer.
7695 (ada_language::value_print): New member function.
7696 * c-lang.c (c_language_data): Delete la_value_print initializer.
7697 (cplus_language_data): Likewise.
7698 (asm_language_data): Likewise.
7699 (minimal_language_data): Likewise.
7700 * d-lang.c (d_language_data): Likewise.
7701 * f-lang.c (f_language_data): Likewise.
7702 * go-lang.c (go_language_data): Likewise.
7703 * language.c (unk_lang_value_print): Delete.
7704 (language_defn::value_print): Define new member function.
7705 (unknown_language_data): Delete la_value_print initializer.
7706 (unknown_language::value_print): New member function.
7707 (auto_language_data): Delete la_value_print initializer.
7708 (auto_language::value_print): New member function.
7709 * language.h (language_data): Delete la_value_print field.
7710 (language_defn::value_print): Declare new member function.
7711 (LA_VALUE_PRINT): Update call to value_print.
7712 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7713 * objc-lang.c (objc_language_data): Likewise.
7714 * opencl-lang.c (opencl_language_data): Likewise.
7715 * p-lang.c (pascal_language_data): Likewise.
7716 (pascal_language::value_print): New member function.
7717 * rust-lang.c (rust_language_data): Delete la_value_print
7718 initializer.
7719
7720 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7721
7722 * ada-lang.c (ada_watch_location_expression): Rename to
7723 ada_language::watch_location_expression.
7724 (ada_language_data): Delete la_watch_location_expression
7725 initializer.
7726 (ada_language::watch_location_expression): New member function,
7727 implementation from ada_watch_location_expression.
7728 * breakpoint.c (watch_command_1): Update call to
7729 watch_location_expression.
7730 * c-lang.c (c_watch_location_expression): Rename to
7731 language_defn::watch_location_expression.
7732 (c_language_data): Delete la_watch_location_expression
7733 initializer.
7734 (cplus_language_data): Likewise.
7735 (asm_language_data): Likewise.
7736 (minimal_language_data): Likewise.
7737 * c-lang.h (c_watch_location_expression): Delete declaration.
7738 * d-lang.c (d_language_data): Delete la_watch_location_expression
7739 initializer.
7740 * f-lang.c (f_language_data): Likewise.
7741 * go-lang.c (go_language_data): Likewise.
7742 * language.c (language_defn::watch_location_expression): Member
7743 function implementation from c_watch_location_expression.
7744 (unknown_language_data): Delete la_watch_location_expression
7745 initializer.
7746 (auto_language_data): Likewise.
7747 * language.h (language_data): Delete la_watch_location_expression
7748 field.
7749 (language_defn::watch_location_expression): Declare new member
7750 function.
7751 * m2-lang.c (m2_language_data): Delete
7752 la_watch_location_expression initializer.
7753 * objc-lang.c (objc_language_data): Likewise.
7754 * opencl-lang.c (opencl_language_data): Likewise.
7755 * p-lang.c (pascal_language_data): Likewise.
7756 * rust-lang.c (rust_watch_location_expression): Rename to
7757 rust_language::watch_location_expression.
7758 (rust_language_data): Delete la_watch_location_expression
7759 initializer.
7760 (rust_language::watch_location_expression): New member function,
7761 implementation from rust_watch_location_expression.
7762
7763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7766 ada_language::collect_symbol_completion_matches.
7767 (ada_language_data): Delete la_collect_symbol_completion_matches
7768 initializer.
7769 (ada_language::collect_symbol_completion_matches): New member
7770 function, implementation from
7771 ada_collect_symbol_completion_matches.
7772 * c-lang.c (c_language_data): Delete
7773 la_collect_symbol_completion_matches initializer.
7774 (cplus_language_data): Likewise.
7775 (asm_language_data): Likewise.
7776 (minimal_language_data): Likewise.
7777 * d-lang.c (d_language_data): Likewise.
7778 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7779 f_language::collect_symbol_completion_matches.
7780 (f_language_data): Delete la_collect_symbol_completion_matches
7781 initializer.
7782 (f_language::collect_symbol_completion_matches) New member
7783 function, implementation from f_collect_symbol_completion_matches.
7784 * go-lang.c (go_language_data): Delete
7785 la_collect_symbol_completion_matches initializer.
7786 * language.c (unknown_language_data): Likewise.
7787 (auto_language_data): Likewise.
7788 * language.h (language_data): Delete
7789 la_collect_symbol_completion_matches field.
7790 (language_defn::collect_symbol_completion_matches): New member
7791 function.
7792 * m2-lang.c (m2_language_data): Delete
7793 la_collect_symbol_completion_matches initializer.
7794 * objc-lang.c (objc_language_data): Likewise.
7795 * opencl-lang.c (opencl_language_data): Likewise.
7796 * p-lang.c (pascal_language_data): Likewise.
7797 * rust-lang.c (rust_language_data): Likewise.
7798 * symtab.c (default_collect_symbol_completion_matches): Delete.
7799 (collect_symbol_completion_matches): Update call to
7800 collect_symbol_completion_matches.
7801 (collect_symbol_completion_matches_type): Likewise.
7802 * symtab.h (default_collect_symbol_completion_matches): Delete
7803 declaration.
7804
7805 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7808 (ada_language_data): Delete la_word_break_characters initializer.
7809 (ada_language::word_break_characters): New member function.
7810 * c-lang.c (c_language_data): Delete la_word_break_characters
7811 initializer.
7812 (cplus_language_data): Likewise.
7813 (asm_language_data): Likewise.
7814 (minimal_language_data): Likewise.
7815 * completer.c: Update global comment.
7816 (advance_to_expression_complete_word_point): Update call to
7817 word_break_characters.
7818 (complete_files_symbols): Likewise.
7819 (complete_line_internal_1): Likewise.
7820 (default_completer_handle_brkchars): Likewise.
7821 (skip_quoted_chars): Likewise.
7822 * d-lang.c (d_language_data): Delete la_word_break_characters
7823 initializer.
7824 * f-lang.c (f_word_break_characters): Delete.
7825 (f_language_data): Delete la_word_break_characters initializer.
7826 (f_language::word_break_characters): New member function.
7827 * go-lang.c (go_language_data): Delete la_word_break_characters
7828 initializer.
7829 * language.c (unknown_language_data): Likewise.
7830 (auto_language_data): Likewise.
7831 * language.h (default_word_break_characters): Move declaration to
7832 earlier in the file.
7833 (language_data): Delete la_word_break_characters field.
7834 (language_defn::word_break_characters): New member function.
7835 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7836 initializer.
7837 * objc-lang.c (objc_language_data): Likewise.
7838 * opencl-lang.c (opencl_language_data): Likewise.
7839 * p-lang.c (pascal_language_data): Likewise.
7840 * rust-lang.c (rust_language_data): Likewise.
7841
7842 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7845 (ada_language_data): Delete la_get_symbol_name_matcher
7846 initializer.
7847 (language_defn::get_symbol_name_matcher_inner): New member
7848 function.
7849 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7850 initializer.
7851 (cplus_language_data): Likewise.
7852 (cplus_language::get_symbol_name_matcher_inner): New member
7853 function.
7854 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7855 (minimal_language_data): Likewise.
7856 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7857 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7858 initializer.
7859 * dictionary.c (iter_match_first_hashed): Update call to
7860 get_symbol_name_matcher.
7861 (iter_match_next_hashed): Likewise.
7862 (iter_match_next_linear): Likewise.
7863 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7864 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7865 initializer.
7866 (f_language::get_symbol_name_matcher_inner): New member function.
7867 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7868 initializer.
7869 * language.c (default_symbol_name_matcher): Update header comment,
7870 make static.
7871 (language_defn::get_symbol_name_matcher): New definition.
7872 (language_defn::get_symbol_name_matcher_inner): Likewise.
7873 (get_symbol_name_matcher): Delete.
7874 (unknown_language_data): Delete la_get_symbol_name_matcher
7875 initializer.
7876 (auto_language_data): Likewise.
7877 * language.h (language_data): Delete la_get_symbol_name_matcher
7878 field.
7879 (language_defn::get_symbol_name_matcher): New member function.
7880 (language_defn::get_symbol_name_matcher_inner): Likewise.
7881 (default_symbol_name_matcher): Delete declaration.
7882 * linespec.c (find_methods): Update call to
7883 get_symbol_name_matcher.
7884 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7885 initializer.
7886 * minsyms.c (lookup_minimal_symbol): Update call to
7887 get_symbol_name_matcher.
7888 (iterate_over_minimal_symbols): Likewise.
7889 * objc-lang.c (objc_language_data): Delete
7890 la_get_symbol_name_matcher initializer.
7891 * opencl-lang.c (opencl_language_data): Likewise.
7892 * p-lang.c (pascal_language_data): Likewise.
7893 * psymtab.c (psymbol_name_matches): Update call to
7894 get_symbol_name_matcher.
7895 * rust-lang.c (rust_language_data): Delete
7896 la_get_symbol_name_matcher initializer.
7897 * symtab.c (symbol_matches_search_name): Update call to
7898 get_symbol_name_matcher.
7899 (compare_symbol_name): Likewise.
7900
7901 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * ada-lang.c (ada_language_data): Delete la_compute_program
7904 initializer.
7905 * c-lang.c (c_language_data): Likewise.
7906 (c_language::compute_program): New member function.
7907 (cplus_language_data): Delete la_compute_program initializer.
7908 (cplus_language::compute_program): New member function.
7909 (asm_language_data): Delete la_compute_program initializer.
7910 (minimal_language_data): Likewise.
7911 * c-lang.h (c_compute_program): Update comment.
7912 (cplus_compute_program): Likewise.
7913 * compile/compile-c-support.c (c_compute_program): Likewise.
7914 (cplus_compute_program): Likewise.
7915 * compile/compile.c (compile_to_object): Update call to
7916 la_compute_program.
7917 * d-lang.c (d_language_data): Delete la_compute_program
7918 initializer.
7919 * f-lang.c (f_language_data): Likewise.
7920 * go-lang.c (go_language_data): Likewise.
7921 * language.c (unknown_language_data): Likewise.
7922 (auto_language_data): Likewise.
7923 * language.h (language_data): Delete la_compute_program field.
7924 (language_defn::compute_program): New member function.
7925 * m2-lang.c (m2_language_data): Delete la_compute_program
7926 initializer.
7927 * objc-lang.c (objc_language_data): Likewise.
7928 * opencl-lang.c (opencl_language_data): Likewise.
7929 * p-lang.c (pascal_language_data): Likewise.
7930 * rust-lang.c (rust_language_data): Likewise.
7931
7932 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7933
7934 * ada-lang.c (ada_language_data) Delete
7935 la_class_name_from_physname initializer.
7936 * c-lang.c (c_language_data): Likewise.
7937 (cplus_language_data): Likewise.
7938 (cplus_language::class_name_from_physname): New member function.
7939 (asm_language_data): Delete la_class_name_from_physname
7940 initializer.
7941 (minimal_language_data): Likewise.
7942 * d-lang.c (d_language_data): Likewise.
7943 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7944 method on language_defn class.
7945 (guess_full_die_structure_name): Likewise.
7946 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7947 initializer.
7948 * go-lang.c (go_language_data): Likewise.
7949 * language.c (language_class_name_from_physname): Delete.
7950 (unk_lang_class_name): Delete.
7951 (unknown_language_data): Delete la_class_name_from_physname
7952 initializer.
7953 (auto_language_data): Likewise.
7954 * language.h (language_data): Delete la_class_name_from_physname
7955 field.
7956 (language_defn::class_name_from_physname): New function.
7957 (language_class_name_from_physname): Delete declaration.
7958 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7959 initializer.
7960 * objc-lang.c (objc_language_data): Likewise.
7961 * opencl-lang.c (opencl_language_data): Likewise.
7962 * p-lang.c (pascal_language_data): Likewise.
7963 * rust-lang.c (rust_language_data): Likewise.
7964
7965 2020-06-16 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-data.h (STATUS_NAME): New macro.
7968 * tui/tui-layout.c (tui_remove_some_windows)
7969 (initialize_known_windows, tui_register_window)
7970 (tui_layout_split::remove_windows, initialize_layouts)
7971 (tui_new_layout_command): Don't use hard-coded window names.
7972
7973 2020-06-16 Tom Tromey <tom@tromey.com>
7974
7975 PR tui/25348:
7976 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7977 tui_initialize_readline. Only run once. Call rl_initialize.
7978 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7979 tui_initialize_readline.
7980 * tui/tui-io.c (tui_setup_io): Call
7981 tui_ensure_readline_initialized.
7982 * tui/tui-interp.c (tui_interp::init): Update.
7983
7984 2020-06-16 Tom Tromey <tom@tromey.com>
7985
7986 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7987 Also preserve the status window.
7988
7989 2020-06-16 Tom Tromey <tom@tromey.com>
7990
7991 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7992 where m_window==nullptr.
7993
7994 2020-06-15 Tom Tromey <tromey@adacore.com>
7995
7996 * windows-nat.c (windows_nat::handle_output_debug_string):
7997 Update.
7998 (windows_nat::handle_ms_vc_exception): Update.
7999 * target.h (target_read_string): Change API.
8000 * target.c (target_read_string): Change API.
8001 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8002 Update.
8003 * solib-frv.c (frv_current_sos): Update.
8004 * solib-dsbt.c (dsbt_current_sos): Update.
8005 * solib-darwin.c (darwin_current_sos): Update.
8006 * linux-thread-db.c (inferior_has_bug): Update.
8007 * expprint.c (print_subexp_standard): Update.
8008 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8009 (ada_exception_message_1): Update.
8010
8011 2020-06-15 Tom Tromey <tromey@adacore.com>
8012
8013 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8014
8015 2020-06-15 Tom Tromey <tromey@adacore.com>
8016
8017 * valprint.c (read_string): Update comment.
8018 * target.c (MIN): Remove.
8019 (target_read_string): Rewrite.
8020
8021 2020-06-15 Tom Tromey <tromey@adacore.com>
8022
8023 * corefile.c (read_memory_string): Remove.
8024 * ada-valprint.c (ada_value_print_ptr): Update.
8025 * ada-lang.h (ada_tag_name): Change return type.
8026 * ada-lang.c (type_from_tag): Update.
8027 (ada_tag_name_from_tsd): Change return type. Use
8028 target_read_string.
8029 (ada_tag_name): Likewise.
8030 * gdbcore.h (read_memory_string): Don't declare.
8031
8032 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8033
8034 * symtab.c (rbreak_command): Ignore Windows drive colon.
8035
8036 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * NEWS: Mention removed GDBserver host support.
8039
8040 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8041
8042 * features/riscv/rebuild-csr-xml.sh: Updated.
8043
8044 2020-06-11 Tom Tromey <tom@tromey.com>
8045
8046 PR gdb/18318:
8047 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8048
8049 2020-06-09 Jonny Grant <jg@jguk.org>
8050 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8051
8052 * main.c (captured_main_1): Don't print new line after help.
8053 (print_gdb_help): add mailing list and IRC channel information
8054 to --help. Add new lines between items in the footer. Remove
8055 quotes around bug url.
8056
8057 2020-06-11 Keith Seitz <keiths@redhat.com>
8058
8059 PR gdb/21356
8060 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8061 Resolve typedefs for type length calculations.
8062
8063 2020-06-10 Tom de Vries <tdevries@suse.de>
8064
8065 PR ada/24713
8066 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8067 (write_psymbols): Enable .gdb_index for ada.
8068 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8069 ada.
8070
8071 2020-06-10 Tom de Vries <tdevries@suse.de>
8072
8073 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8074 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8075 namei" instead of "const char *name" argument.
8076 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8077 dw2_symtab_iter_init.
8078
8079 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8082 to use type::field and field::type instead.
8083
8084 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8087 to use field::type instead.
8088
8089 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * gdbtypes.h (struct field) <type, set_type>: New methods.
8092 Rename `type` field to...
8093 <m_type>: ... this. Change references throughout to use type or
8094 set_type methods.
8095 (FIELD_TYPE): Use field::type. Change call sites that modify
8096 the field's type to use field::set_type instead.
8097
8098 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8101 to use type::index_type instead.
8102
8103 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8106 methods.
8107 (TYPE_INDEX_TYPE): Use type::index_type.
8108 * gdbtypes.c (create_array_type_with_stride): Likewise.
8109
8110 2020-06-07 Tom Tromey <tom@tromey.com>
8111
8112 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8113 parameter.
8114 (generic_value_print): Update.
8115
8116 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8117
8118 Revert commit 982a38f60b0.
8119 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8120
8121 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8122
8123 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8124 avoid use after free.
8125
8126 2020-06-05 Tom de Vries <tdevries@suse.de>
8127
8128 * NEWS: Fix typos.
8129
8130 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8133 the per_bfd object.
8134 (dwarf2_read_debug_names): Likewise.
8135 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8136 object when re-using a per_bfd object with an index.
8137
8138 2020-06-03 Tom de Vries <tdevries@suse.de>
8139
8140 PR symtab/26046
8141 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8142 children for C++.
8143 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8144 DW_TAG_subprogram.
8145
8146 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * ada-lang.c (ada_language_data): Delete skip_trampoline
8149 initializer.
8150 * c-lang.c (c_language_data): Likewise.
8151 (cplus_language_data): Likewise.
8152 (cplus_language::skip_trampoline): New member function.
8153 (asm_language_data): Delete skip_trampoline initializer.
8154 (minimal_language_data): Likewise.
8155 * d-lang.c (d_language_data): Likewise.
8156 * f-lang.c (f_language_data): Likewise.
8157 * go-lang.c (go_language_data): Likewise.
8158 * language.c (unk_lang_trampoline): Delete function.
8159 (skip_language_trampoline): Update.
8160 (unknown_language_data): Delete skip_trampoline initializer.
8161 (auto_language_data): Likewise.
8162 * language.h (language_data): Delete skip_trampoline field.
8163 (language_defn::skip_trampoline): New function.
8164 * m2-lang.c (m2_language_data): Delete skip_trampoline
8165 initializer.
8166 * objc-lang.c (objc_skip_trampoline): Delete function, move
8167 implementation to objc_language::skip_trampoline.
8168 (objc_language_data): Delete skip_trampoline initializer.
8169 (objc_language::skip_trampoline): New member function with
8170 implementation from objc_skip_trampoline.
8171 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8172 initializer.
8173 * p-lang.c (pascal_language_data): Likewise.
8174 * rust-lang.c (rust_language_data): Likewise.
8175
8176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8179 (ada_language::demangle): New member function.
8180 * c-lang.c (c_language_data): Delete la_demangle initializer.
8181 (cplus_language_data): Delete la_demangle initializer.
8182 (cplus_language::demangle): New member function.
8183 (asm_language_data): Delete la_demangle initializer.
8184 (minimal_language_data): Delete la_demangle initializer.
8185 * d-lang.c (d_language_data): Delete la_demangle initializer.
8186 (d_language::demangle): New member function.
8187 * f-lang.c (f_language_data): Delete la_demangle initializer.
8188 (f_language::demangle): New member function.
8189 * go-lang.c (go_language_data): Delete la_demangle initializer.
8190 (go_language::demangle): New member function.
8191 * language.c (language_demangle): Update.
8192 (unk_lang_demangle): Delete.
8193 (unknown_language_data): Delete la_demangle initializer.
8194 (unknown_language::demangle): New member function.
8195 (auto_language_data): Delete la_demangle initializer.
8196 (auto_language::demangle): New member function.
8197 * language.h (language_data): Delete la_demangle field.
8198 (language_defn::demangle): New function.
8199 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8200 * objc-lang.c (objc_language_data): Delete la_demangle
8201 initializer.
8202 (objc_language::demangle): New member function.
8203 * opencl-lang.c (opencl_language_data): Delete la_demangle
8204 initializer.
8205 * p-lang.c (pascal_language_data): Likewise.
8206 * rust-lang.c (rust_language_data): Likewise.
8207 (rust_language::demangle): New member function.
8208
8209 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * ada-lang.c (ada_language_data): Delete la_print_type
8212 initializer.
8213 (ada_language::print_type): New member function.
8214 * c-lang.c (c_language_data): Delete la_print_type initializer.
8215 (c_language::print_type): New member function.
8216 (cplus_language_data): Delete la_print_type initializer.
8217 (cplus_language::print_type): New member function.
8218 (asm_language_data): Delete la_print_type initializer.
8219 (asm_language::print_type): New member function.
8220 (minimal_language_data): Delete la_print_type initializer.
8221 (minimal_language::print_type): New member function.
8222 * d-lang.c (d_language_data): Delete la_print_type initializer.
8223 (d_language::print_type): New member function.
8224 * f-lang.c (f_language_data): Delete la_print_type initializer.
8225 (f_language::print_type): New member function.
8226 * go-lang.c (go_language_data): Delete la_print_type initializer.
8227 (go_language::print_type): New member function.
8228 * language.c (unk_lang_print_type): Delete.
8229 (unknown_language_data): Delete la_print_type initializer.
8230 (unknown_language::print_type): New member function.
8231 (auto_language_data): Delete la_print_type initializer.
8232 (auto_language::print_type): New member function.
8233 * language.h (language_data): Delete la_print_type field.
8234 (language_defn::print_type): New function.
8235 (LA_PRINT_TYPE): Update.
8236 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8237 (m2_language::print_type): New member function.
8238 * objc-lang.c (objc_language_data): Delete la_print_type
8239 initializer.
8240 (objc_language::print_type): New member function.
8241 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8242 to opencl_language::print_type.
8243 (opencl_language_data): Delete la_print_type initializer.
8244 (opencl_language::print_type): New member function, implementation
8245 from opencl_print_type.
8246 * p-lang.c (pascal_language_data): Delete la_print_type
8247 initializer.
8248 (pascal_language::print_type): New member function.
8249 * rust-lang.c (rust_print_type): Delete, implementation moved to
8250 rust_language::print_type.
8251 (rust_language_data): Delete la_print_type initializer.
8252 (rust_language::print_type): New member function, implementation
8253 from rust_print_type.
8254
8255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8258 implementation moves to...
8259 (ada_language::sniff_from_mangled_name): ...here. Update return
8260 type.
8261 (ada_language_data): Delete la_sniff_from_mangled_name
8262 initializer.
8263 * c-lang.c (c_language_data): Likewise.
8264 (cplus_language_data): Likewise.
8265 (cplus_language::sniff_from_mangled_name): New member function,
8266 implementation taken from gdb_sniff_from_mangled_name.
8267 (asm_language_data): Delete la_sniff_from_mangled_name
8268 initializer.
8269 (minimal_language_data): Likewise.
8270 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8271 implementation moves to cplus_language::sniff_from_mangled_name.
8272 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8273 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8274 moves to...
8275 (d_language::sniff_from_mangled_name): ...here.
8276 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8277 * f-lang.c (f_language_data): Likewise.
8278 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8279 moves to...
8280 (go_language::sniff_from_mangled_name): ...here.
8281 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8282 * language.c (language_sniff_from_mangled_name): Delete.
8283 (unknown_language_data): Delete la_sniff_from_mangled_name
8284 initializer.
8285 (auto_language_data): Likewise.
8286 * language.h (language_data): Delete la_sniff_from_mangled_name
8287 field.
8288 (language_defn::sniff_from_mangled_name): New function.
8289 (language_sniff_from_mangled_name): Delete declaration.
8290 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8291 field.
8292 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8293 implementation moves to...
8294 (objc_language::sniff_from_mangled_name): ...here.
8295 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8296 * opencl-lang.c (opencl_language_data): Likewise.
8297 * p-lang.c (pascal_language_data): Likewise.
8298 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8299 implementation moves to...
8300 (rust_language::sniff_from_mangled_name): ...here.
8301 (rust_language_data): Delete la_sniff_from_mangled_name
8302 initializer.
8303 * symtab.c (symbol_find_demangled_name): Call
8304 sniff_from_mangled_name member function.
8305
8306 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8307
8308 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8309 initializer.
8310 * c-lang.c (c_language_data): Likewise.
8311 (cplus_language_data): Likewise.
8312 (cplus_language::search_name_hash): New member function.
8313 (asm_language_data): Delete la_search_name_hash initializer.
8314 (minimal_language_data): Likewise.
8315 * d-lang.c (d_language_data): Likewise.
8316 * dictionary.c (default_search_name_hash): Rename to...
8317 (language_defn::search_name_hash): ...this.
8318 * f-lang.c (f_language_data): Likewise.
8319 (f_language::search_name_hash): New member function.
8320 * go-lang.c (go_language_data): Delete la_search_name_hash
8321 initializer.
8322 * language.c (unknown_language_data): Likewise.
8323 (auto_language_data): Likewise.
8324 * language.h (struct language_data): Delete la_search_name_hash
8325 field.
8326 (language_defn::search_name_hash): Declare new member function.
8327 (default_search_name_hash): Delete declaration.
8328 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8329 initializer.
8330 * objc-lang.c (objc_language_data): Likewise.
8331 * opencl-lang.c (opencl_language_data): Likewise.
8332 * p-lang.c (pascal_language_data): Likewise.
8333 * rust-lang.c (rust_language_data): Likewise.
8334 * symtab.c (search_name_hash): Update call.
8335
8336 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8339 initializer.
8340 * c-lang.c (class compile_instance): Declare.
8341 (c_language_data): Delete la_get_compile_instance initializer.
8342 (c_language::get_compile_instance): New member function.
8343 (cplus_language_data): Delete la_get_compile_instance initializer.
8344 (cplus_language::get_compile_instance): New member function.
8345 (asm_language_data): Delete la_get_compile_instance initializer.
8346 (minimal_language_data): Likewise.
8347 * c-lang.h (c_get_compile_context): Update comment.
8348 (cplus_get_compile_context): Update comment.
8349 * compile/compile.c (compile_to_object): Update calls, don't rely
8350 on function pointer being NULL.
8351 * d-lang.c (d_language_data): Delete la_get_compile_instance
8352 initializer.
8353 * f-lang.c (f_language_data): Likewise.
8354 * go-lang.c (go_language_data): Likewise.
8355 * language.c (unknown_language_data): Likewise.
8356 (auto_language_data): Likewise.
8357 * language.h (language_data): Delete la_get_compile_instance field.
8358 (language_defn::get_compile_instance): New member function.
8359 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8360 initializer.
8361 * objc-lang.c (objc_language_data): Likewise.
8362 * opencl-lang.c (opencl_language_data): Likewise.
8363 * p-lang.c (pascal_language_data): Likewise.
8364 * rust-lang.c (rust_language_data): Likewise.
8365
8366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * ada-lang.c (ada_add_all_symbols): Update comment.
8369 (ada_iterate_over_symbols): Delete, move implementation to...
8370 (ada_language::iterate_over_symbols): ...here, a new member
8371 function, rewrite to use range based for loop.
8372 (ada_language_data): Delete la_iterate_over_symbols initializer.
8373 * c-lang.c (c_language_data): Likewise.
8374 (cplus_language_data): Likewise.
8375 (asm_language_data): Likewise.
8376 (minimal_language_data): Likewise.
8377 * d-lang.c (d_language_data): Likewise.
8378 * f-lang.c (f_language_data): Likewise.
8379 * go-lang.c (go_language_data): Likewise.
8380 * language.c (unknown_language_data): Likewise.
8381 (auto_language_data): Likewise.
8382 * language.h (language_data): Delete la_iterate_over_symbols field.
8383 (language_defn::iterate_over_symbols): New member function.
8384 (LA_ITERATE_OVER_SYMBOLS): Update.
8385 * linespec.c (iterate_over_all_matching_symtabs): Update.
8386 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8387 initializer.
8388 * objc-lang.c (objc_language_data): Likewise.
8389 * opencl-lang.c (opencl_language_data): Likewise.
8390 * p-lang.c (pascal_language_data): Likewise.
8391 * rust-lang.c (rust_language_data): Likewise.
8392
8393 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8394
8395 * ada-lang.c (ada_language_data): Delete
8396 la_lookup_transparent_type initializer.
8397 * c-lang.c (c_language_data): Likewise.
8398 (cplus_language_data): Likewise.
8399 (cplus_language::lookup_transparent_type): New member function.
8400 (asm_language_data): Delete la_lookup_transparent_type
8401 initializer.
8402 (minimal_language_data): Likewise.
8403 * d-lang.c (d_language_data): Likewise.
8404 * f-lang.c (f_language_data): Likewise.
8405 * go-lang.c (go_language_data): Likewise.
8406 * language.c (unknown_language_data): Likewise.
8407 (auto_language_data): Likewise.
8408 * language.h (struct language_data): Delete
8409 la_lookup_transparent_type field.
8410 (language_defn::lookup_transparent_type): New member function.
8411 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8412 initializer.
8413 * objc-lang.c (objc_language_data): Likewise.
8414 * opencl-lang.c (opencl_language_data): Likewise.
8415 * p-lang.c (pascal_language_data): Likewise.
8416 * rust-lang.c (rust_language_data): Likewise.
8417 * symtab.c (symbol_matches_domain): Update call.
8418
8419 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (ada_language_arch_info): Delete function, move
8422 implementation to...
8423 (ada_language::language_arch_info): ...here, a new member
8424 function.
8425 (ada_language_data): Delete la_language_arch_info.
8426 * c-lang.c (c_language_data): Likewise.
8427 (c_language::language_arch_info): New member function.
8428 (cplus_language_arch_info): Delete function, move
8429 implementation to...
8430 (cplus_language::language_arch_info): ...here, a new member
8431 function.
8432 (cplus_language_data): Delete la_language_arch_info.
8433 (asm_language_data): Likewise.
8434 (asm_language::language_arch_info): New member function.
8435 (minimal_language_data): Delete la_language_arch_info.
8436 (minimal_language::language_arch_info): New member function.
8437 * d-lang.c (d_language_arch_info): Delete function, move
8438 implementation to...
8439 (d_language::language_arch_info): ...here, a new member
8440 function.
8441 (d_language_data): Delete la_language_arch_info.
8442 * f-lang.c (f_language_arch_info): Delete function, move
8443 implementation to...
8444 (f_language::language_arch_info): ...here, a new member
8445 function.
8446 (f_language_data): Delete la_language_arch_info.
8447 * go-lang.c (go_language_arch_info): Delete function, move
8448 implementation to...
8449 (go_language::language_arch_info): ...here, a new member
8450 function.
8451 (go_language_data): Delete la_language_arch_info.
8452 * language.c (unknown_language_data): Likewise.
8453 (unknown_language::language_arch_info): New member function.
8454 (auto_language_data): Delete la_language_arch_info.
8455 (auto_language::language_arch_info): New member function.
8456 (language_gdbarch_post_init): Update call to
8457 la_language_arch_info.
8458 * language.h (language_data): Delete la_language_arch_info
8459 function pointer.
8460 (language_defn::language_arch_info): New function.
8461 * m2-lang.c (m2_language_arch_info): Delete function, move
8462 implementation to...
8463 (m2_language::language_arch_info): ...here, a new member
8464 function.
8465 (m2_language_data): Delete la_language_arch_info.
8466 * objc-lang.c (objc_language_arch_info): Delete function, move
8467 implementation to...
8468 (objc_language::language_arch_info): ...here, a new member
8469 function.
8470 (objc_language_data): Delete la_language_arch_info.
8471 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8472 implementation to...
8473 (opencl_language::language_arch_info): ...here, a new member
8474 function.
8475 (opencl_language_data): Delete la_language_arch_info.
8476 * p-lang.c (pascal_language_arch_info): Delete function, move
8477 implementation to...
8478 (pascal_language::language_arch_info): ...here, a new member
8479 function.
8480 (pascal_language_data): Delete la_language_arch_info.
8481 * rust-lang.c (rust_language_arch_info): Delete function, move
8482 implementation to...
8483 (rust_language::language_arch_info): ...here, a new member
8484 function.
8485 (rust_language_data): Delete la_language_arch_info.
8486
8487 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8488
8489 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8490 initializer.
8491 * c-lang.c (c_language_data): Likewise.
8492 (cplus_language_data): Likewise.
8493 (cplus_language::pass_by_reference_info): New method.
8494 (asm_language_data): Delete la_pass_by_reference initializer.
8495 (minimal_language_data): Likewise.
8496 * cp-abi.c (cp_pass_by_reference): Remove use of
8497 default_pass_by_reference.
8498 * d-lang.c (d_language_data): Likewise.
8499 * f-lang.c (f_language_data): Likewise.
8500 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8501 default_pass_by_reference.
8502 * go-lang.c (go_language_data): Likewise.
8503 * language.c (language_pass_by_reference): Update.
8504 (default_pass_by_reference): Delete.
8505 (unknown_language_data): Delete la_pass_by_reference
8506 initializer.
8507 (auto_language_data): Likewise.
8508 * language.h (struct language_data): Delete la_pass_by_reference
8509 field.
8510 (language_defn::pass_by_reference_info): New member function.
8511 (default_pass_by_reference): Delete declaration.
8512 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8513 initializer.
8514 * objc-lang.c (objc_language_data): Likewise.
8515 * opencl-lang.c (opencl_language_data): Likewise.
8516 * p-lang.c (pascal_language_data): Likewise.
8517 * rust-lang.c (rust_language_data): Likewise.
8518
8519 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 * ada-lang.c (ada_read_var_value): Delete function, move
8522 implementation to...
8523 (ada_language::read_var_value): ...here.
8524 (ada_language_data): Delete la_read_var_value initializer.
8525 * c-lang.c (c_language_data): Likewise.
8526 (cplus_language_data): Likewise.
8527 (minimal_language_data): Likewise.
8528 * d-lang.c (d_language_data): Likewise.
8529 * f-lang.c (f_language_data): Likewise.
8530 * findvar.c (default_read_var_value): Rename to...
8531 (language_defn::read_var_value): ...this.
8532 * findvar.c (read_var_value): Update header comment, and change to
8533 call member function instead of function pointer.
8534 * go-lang.c (go_language_data): Likewise.
8535 * language.c (unknown_language_data): Delete la_read_var_value
8536 initializer.
8537 (auto_language_data): Likewise.
8538 * language.h (struct language_data): Delete la_read_var_value
8539 field.
8540 (language_defn::read_var_value): New member function.
8541 (default_read_var_value): Delete declaration.
8542 * m2-lang.c (m2_language_data): Delete la_read_var_value
8543 initializer.
8544 * objc-lang.c (objc_language_data): Likewise.
8545 * opencl-lang.c (opencl_language_data): Likewise.
8546 * p-lang.c (pascal_language_data): Likewise.
8547 * rust-lang.c (rust_language_data): Likewise.
8548 * value.h (default_read_var_value): Delete declaration.
8549
8550 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8551
8552 * ada-lang.c (ada_print_array_index): Delete function, move
8553 implementation to...
8554 (ada_language::print_array_index): ...here.
8555 (ada_language_data): Delete la_print_array_index initializer.
8556 * c-lang.c (c_language_data): Likewise.
8557 (cplus_language_data): Likewise.
8558 (minimal_language_data): Likewise.
8559 * d-lang.c (d_language_data): Likewise.
8560 * f-lang.c (f_language_data): Likewise.
8561 * go-lang.c (go_language_data): Likewise.
8562 * language.c (default_print_array_index): Delete function, move
8563 implementation to...
8564 (language_defn::print_array_index): ...here.
8565 (unknown_language_data): Delete la_print_array_index initializer.
8566 (auto_language_data): Likewise.
8567 * language.h (struct language_data): Delete la_print_array_index
8568 field.
8569 (language_defn::print_array_index): New member function.
8570 (LA_PRINT_ARRAY_INDEX): Update.
8571 (default_print_array_index): Delete declaration.
8572 * m2-lang.c (m2_language_data): Delete la_print_array_index
8573 initializer.
8574 * objc-lang.c (objc_language_data): Likewise.
8575 * opencl-lang.c (opencl_language_data): Likewise.
8576 * p-lang.c (pascal_language_data): Likewise.
8577 * rust-lang.c (rust_language_data): Likewise.
8578
8579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * gdb/ada-lang.c (ada_language_defn): Convert to...
8582 (ada_language_data): ...this.
8583 (class ada_language): New class.
8584 (ada_language_defn): New static global.
8585 * gdb/c-lang.c (c_language_defn): Convert to...
8586 (c_language_data): ...this.
8587 (class c_language): New class.
8588 (c_language_defn): New static global.
8589 (cplus_language_defn): Convert to...
8590 (cplus_language_data): ...this.
8591 (class cplus_language): New class.
8592 (cplus_language_defn): New static global.
8593 (asm_language_defn): Convert to...
8594 (asm_language_data): ...this.
8595 (class asm_language): New class.
8596 (asm_language_defn): New static global.
8597 (minimal_language_defn): Convert to...
8598 (minimal_language_data): ...this.
8599 (class minimal_language): New class.
8600 (minimal_language_defn): New static global.
8601 * gdb/d-lang.c (d_language_defn): Convert to...
8602 (d_language_data): ...this.
8603 (class d_language): New class.
8604 (d_language_defn): New static global.
8605 * gdb/f-lang.c (f_language_defn): Convert to...
8606 (f_language_data): ...this.
8607 (class f_language): New class.
8608 (f_language_defn): New static global.
8609 * gdb/go-lang.c (go_language_defn): Convert to...
8610 (go_language_data): ...this.
8611 (class go_language): New class.
8612 (go_language_defn): New static global.
8613 * gdb/language.c (unknown_language_defn): Remove declaration.
8614 (current_language): Initialize to nullptr, real initialization is
8615 moved to _initialize_language.
8616 (languages): Delete global.
8617 (language_defn::languages): Define.
8618 (set_language_command): Use language_defn::languages.
8619 (set_language): Likewise.
8620 (range_error): Likewise.
8621 (language_enum): Likewise.
8622 (language_def): Likewise.
8623 (add_set_language_command): Use language_def::languages for the
8624 language list, and language_def to lookup language pointers.
8625 (skip_language_trampoline): Use language_defn::languages.
8626 (unknown_language_defn): Convert to...
8627 (unknown_language_data): ...this.
8628 (class unknown_language): New class.
8629 (unknown_language_defn): New static global.
8630 (auto_language_defn): Convert to...
8631 (auto_language_data): ...this.
8632 (class auto_language): New class.
8633 (auto_language_defn): New static global.
8634 (language_gdbarch_post_init): Use language_defn::languages.
8635 (_initialize_language): Initialize current_language.
8636 * gdb/language.h (struct language_defn): Rename to...
8637 (struct language_data): ...this.
8638 (struct language_defn): New.
8639 (auto_language_defn): Delete.
8640 (unknown_language_defn): Delete.
8641 (minimal_language_defn): Delete.
8642 (ada_language_defn): Delete.
8643 (asm_language_defn): Delete.
8644 (c_language_defn): Delete.
8645 (cplus_language_defn): Delete.
8646 (d_language_defn): Delete.
8647 (f_language_defn): Delete.
8648 (go_language_defn): Delete.
8649 (m2_language_defn): Delete.
8650 (objc_language_defn): Delete.
8651 (opencl_language_defn): Delete.
8652 (pascal_language_defn): Delete.
8653 (rust_language_defn): Delete.
8654 * gdb/m2-lang.c (m2_language_defn): Convert to...
8655 (m2_language_data): ...this.
8656 (class m2_language): New class.
8657 (m2_language_defn): New static global.
8658 * gdb/objc-lang.c (objc_language_defn): Convert to...
8659 (objc_language_data): ...this.
8660 (class objc_language): New class.
8661 (objc_language_defn): New static global.
8662 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8663 (opencl_language_data): ...this.
8664 (class opencl_language): New class.
8665 (opencl_language_defn): New static global.
8666 * gdb/p-lang.c (pascal_language_defn): Convert to...
8667 (pascal_language_data): ...this.
8668 (class pascal_language): New class.
8669 (pascal_language_defn): New static global.
8670 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8671 language pointer, update comment format.
8672 * gdb/rust-lang.c (rust_language_defn): Convert to...
8673 (rust_language_data): ...this.
8674 (class rust_language): New class.
8675 (rust_language_defn): New static global.
8676
8677 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8680 member variable.
8681 <m_stmt_at_address>: New member variable.
8682 (lnp_state_machine::record_line): Don't record some lines, update
8683 tracking of is_stmt at the same address.
8684 (lnp_state_machine::lnp_state_machine): Initialise new member
8685 variables.
8686
8687 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8688
8689 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8690 "-include gnu-nat-mig.h".
8691 * gnu-nat-mig.h: New file.
8692 * gnu-nat.c: Include "gnu-nat-mig.h".
8693 (exc_server, msg_reply_server, notify_server,
8694 process_reply_server): Remove declarations.
8695
8696 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8697
8698 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8699 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8700 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8701 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8702 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8703 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8704 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8705 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8706 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8707 to gnu_nat_target class.
8708 * gnu-nat.c: Likewise.
8709 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8710 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8711 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8712 object.
8713 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8714 instead of `gnu_target'.
8715
8716 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8717
8718 * i386-gnu-tdep.c: Include "gdbcore.h"
8719 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8720 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8721 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8722 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8723 i386_gnu_sigcontext_addr): New functions
8724 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8725 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8726 tdep.
8727
8728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8729
8730 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8731 before fork_inferior call. Avoid calling it if target_is_pushed returns
8732 true.
8733
8734 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8735
8736 * gnu-nat.h (gnu_target): New variable declaration.
8737 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8738 gnu_target.
8739 * gnu-nat.c (gnu_target): New variable.
8740 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8741 add_thread_silent, and add_thread calls.
8742 (gnu_nat_target::create_inferior): Pass gnu_target to
8743 add_thread_silent, thread_change_ptid call.
8744 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8745 call.
8746
8747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8748
8749 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8750 (gnu_nat_target::find_memory_regions): Remove unused
8751 `old_address' variable.
8752
8753 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8754
8755 * gnu-nat.c: Include "gdbarch.h".
8756
8757 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8758
8759 * reply_mig_hack.awk (Error return): Cast function through
8760 void *, to bypass compiler function call check.
8761
8762 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8763
8764 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8765 $(srcdir)/reply_mig_hack.awk.
8766
8767 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8768
8769 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8770
8771 2020-05-30 Jonny Grant <jg@jguk.org>
8772
8773 * configure.ac (ACX_BUGURL): change bug URL to https.
8774
8775 2020-05-30 Pedro Alves <palves@redhat.com>
8776
8777 * cp-support.c (replace_typedefs_template): New.
8778 (replace_typedefs_qualified_name): Handle
8779 DEMANGLE_COMPONENT_TEMPLATE.
8780
8781 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8782
8783 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8784 dwarf2/index-cache.h, dwarf2/index-write.c,
8785 dwarf2/index-write.h, dwarf2/line-header.c,
8786 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8787 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8788 variables and fields from `dwarf2_per_objfile` to just
8789 `per_objfile` throughout.
8790
8791 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8792
8793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8794 <push_dwarf_reg_entry_value>: Add comment.
8795
8796 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8797 Keith Seitz <keiths@redhat.com>
8798
8799 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8800 instead of PyEval_ReleaseLock.
8801 (class gdbpy_gil): Move to earlier in file.
8802 (finalize_python): Set gdb_python_initialized.
8803 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8804 when not initialized.
8805
8806 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8807
8808 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8809 <push_dwarf_reg_entry_value>: Remove assert. Override
8810 per_objfile with caller_per_objfile.
8811
8812 2020-05-28 Tom de Vries <tdevries@suse.de>
8813
8814 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8815 PR gold/15646 workaround to symbol kind "type".
8816
8817 2020-05-27 Tom Tromey <tromey@adacore.com>
8818
8819 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8820
8821 2020-05-27 Tom Tromey <tromey@adacore.com>
8822
8823 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8824 Use htab_find_with_hash.
8825 <add_abbrev>: Remove "abbrev_number" parameter.
8826 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8827 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8828 (hash_abbrev): Add comment.
8829 (abbrev_table::lookup_abbrev): Move to header file.
8830 (abbrev_table::read): Update.
8831
8832 2020-05-27 Tom Tromey <tromey@adacore.com>
8833
8834 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8835 method.
8836 <canonical_name>: New member.
8837 <raw_name>: Rename from "name".
8838 (partial_die_info): Initialize canonical_name.
8839 (scan_partial_symbols): Check raw_name.
8840 (partial_die_parent_scope, partial_die_full_name)
8841 (add_partial_symbol, add_partial_subprogram)
8842 (add_partial_enumeration, load_partial_dies): Use "name" method.
8843 (partial_die_info::name): New method.
8844 (partial_die_info::read, guess_partial_die_structure_name)
8845 (partial_die_info::fixup): Update.
8846
8847 2020-05-27 Tom Tromey <tromey@adacore.com>
8848
8849 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8850 <get_ref_die_offset>: Inline.
8851 <get_ref_die_offset_complaint>: New method.
8852 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8853 (attribute::get_ref_die_offset_complaint): Rename from
8854 get_ref_die_offset. Just issue complaint.
8855
8856 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8857
8858 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8859
8860 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8861
8862 * exec.c (exec_file_attach): Use errno value of first openp failure.
8863
8864 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8865
8866 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8867 Don't close thread handle.
8868
8869 2020-05-27 Tom Tromey <tom@tromey.com>
8870 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8873 shared_ptr.
8874 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8875 member.
8876 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8877 dwarf2_per_bfd_objfile_data_key>: New globals.
8878 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8879 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8880 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8881 shared.
8882 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8883 short-circuit when sharing.
8884 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8885 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8886
8887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8890 to...
8891 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8892 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8893
8894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8897 build_name_components, find_name_components_bounds>:
8898 Add per_objfile parameter.
8899 (struct mapped_index) <symbol_name_at>: Likewise.
8900 (struct mapped_debug_names): Remove constructor.
8901 <dwarf2_per_objfile>: Remove field.
8902 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8903 (mapped_index_base::find_name_components_bounds,
8904 mapped_index_base::build_name_components,
8905 dw2_expand_symtabs_matching_symbol): Likewise.
8906 (class mock_mapped_index) <symbol_name_at>: Likewise.
8907 (check_match): Likewise.
8908 (check_find_bounds_finds): Likewise.
8909 (test_mapped_index_find_name_component_bounds): Update.
8910 (CHECK_MATCH): Update.
8911 (dw2_expand_symtabs_matching): Update.
8912 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8913 per_objfile parameter.
8914 <find_vec_in_debug_names>: Likewise.
8915 <m_per_objfile>: New field.
8916 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8917 parameter.
8918 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8919 (dw2_debug_names_iterator::next): Update.
8920 (dw2_debug_names_lookup_symbol): Update.
8921 (dw2_debug_names_expand_symtabs_for_function): Update.
8922 (dw2_debug_names_map_matching_symbols): Update.
8923 (dw2_debug_names_expand_symtabs_matching): Update.
8924 (dwarf2_read_debug_names): Update.
8925
8926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8929 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8930 move to dwarf2_per_objfile.
8931 <read_in_chain>: Remove.
8932 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8933 remove_all_cus, age_comp_units>: New methods.
8934 <m_dwarf2_cus>: New member.
8935 (struct dwarf2_per_cu_data) <cu>: Remove.
8936 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8937 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8938 moved to methods of dwarf2_per_objfile.
8939 (dwarf2_clear_marks): Remove.
8940 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8941 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8942 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8943 (dwarf2_per_objfile::remove_all_cus): New.
8944 (class free_cached_comp_units) <~free_cached_comp_units>:
8945 Update.
8946 (load_cu): Update.
8947 (dw2_do_instantiate_symtab): Adjust.
8948 (fill_in_sig_entry_from_dwo_entry): Adjust.
8949 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8950 (cutu_reader::cutu_reader): Likewise.
8951 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8952 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8953 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8954 and dwarf2_per_objfile::age_comp_units.
8955 (load_partial_comp_unit): Update.
8956 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8957 (process_queue): Likewise.
8958 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8959 backlink.
8960 (dwarf2_read_addr_index): Likewise.
8961 (follow_die_offset): Likewise.
8962 (dwarf2_fetch_die_loc_sect_off): Likewise.
8963 (dwarf2_fetch_constant_bytes): Likewise.
8964 (dwarf2_fetch_die_type_sect_off): Likewise.
8965 (follow_die_sig_1): Likewise.
8966 (load_full_type_unit): Likewise.
8967 (read_signatured_type): Likewise.
8968 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8969 (dwarf2_cu::~dwarf2_cu): Remove.
8970 (dwarf2_per_objfile::get_cu): New.
8971 (dwarf2_per_objfile::set_cu): New.
8972 (age_cached_comp_units): Rename to...
8973 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8974 to std::unordered_map.
8975 (free_one_cached_comp_unit): Rename to...
8976 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8977 to std::unordered_map.
8978 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8979 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8980 a dwarf2_per_objfile in data.
8981 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8982 (dwarf2_clear_marks): Remove.
8983
8984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8987 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8988 (init_tu_and_read_dwo_dies): Likewise.
8989 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8990 (cutu_reader::cutu_reader): Likewise.
8991 (load_partial_comp_unit): Likewise.
8992 (process_psymtab_comp_unit): Update.
8993 (build_type_psymtabs_1): Update.
8994 (process_skeletonless_type_unit): Update.
8995 (load_full_comp_unit): Update.
8996 (find_partial_die): Update.
8997 (dwarf2_read_addr_index): Update.
8998 (read_signatured_type): Update.
8999
9000 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9001
9002 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9003 m_header_read_in>: New fields.
9004 <get_header>: New method.
9005 * dwarf2/read.c (per_cu_header_read_in): Remove.
9006 (dwarf2_per_cu_data::get_header): New.
9007 (dwarf2_per_cu_data::addr_size): Update.
9008 (dwarf2_per_cu_data::offset_size): Update.
9009 (dwarf2_per_cu_data::ref_addr_size): Update.
9010
9011 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9012
9013 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9014 (dw2_do_instantiate_symtab): Update.
9015 (queue_and_load_all_dwo_tus): Change parameter from
9016 dwarf2_per_cu_data to dwarf2_cu.
9017 (dwarf2_fetch_die_loc_sect_off): Update.
9018 (dwarf2_fetch_constant_bytes): Update.
9019 (dwarf2_fetch_die_type_sect_off): Update.
9020
9021 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9022
9023 * dwarf2/read.c (process_full_comp_unit,
9024 process_full_type_unit): Remove per_cu, per_objfile paramters.
9025 Add dwarf2_cu parameter.
9026 (process_queue): Update.
9027
9028 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9029
9030 * dwarf2/read.c (create_cu_from_index_list): Replace
9031 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9032 (create_cus_from_index_list): Likewise.
9033 (create_cus_from_index): Likewise.
9034 (create_signatured_type_table_from_index): Likewise.
9035 (create_cus_from_debug_names_list): Likewise.
9036 (create_cus_from_debug_names): Likewise.
9037 (dwarf2_read_gdb_index): Update.
9038 (dwarf2_read_debug_names): Update.
9039
9040 2020-05-27 Tom Tromey <tom@tromey.com>
9041 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * dwarf2/read.h (struct dwarf2_per_objfile)
9044 <get_type_for_signatured_type, set_type_for_signatured_type>:
9045 New methods.
9046 <m_type_map>: New member.
9047 (struct signatured_type) <type>: Remove.
9048 * dwarf2/read.c
9049 (dwarf2_per_objfile::get_type_for_signatured_type,
9050 dwarf2_per_objfile::set_type_for_signatured_type): New.
9051 (get_signatured_type): Use new methods.
9052
9053 2020-05-27 Tom Tromey <tom@tromey.com>
9054 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9057 (struct dwarf2_per_objfile) <type_units>: New member.
9058 <get_type_unit_group_unshareable>: New method.
9059 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9060 num_symtabs, symtabs>: Remove; move to
9061 type_unit_group_unshareable.
9062 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9063 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9064 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9065
9066 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2/read.h (struct dwarf2_per_cu_data):
9069 <dwarf2_per_objfile>: Remove.
9070 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9071 dwarf2_per_objfile.
9072 (create_signatured_type_table_from_index): Likewise.
9073 (create_signatured_type_table_from_debug_names): Likewise.
9074 (create_debug_type_hash_table): Likewise.
9075 (fill_in_sig_entry_from_dwo_entry): Likewise.
9076 (create_type_unit_group): Likewise.
9077 (read_comp_units_from_section): Likewise.
9078 (create_cus_hash_table): Likewise.
9079
9080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9083 dwarf2_per_cu_data::dwarf2_per_objfile.
9084 (compute_compunit_symtab_includes): Likewise.
9085 (dwarf2_cu::start_symtab): Likewise.
9086
9087 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9088
9089 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9090 parameter.
9091 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9092 (read_namespace_alias): Update.
9093 (lookup_die_type): Update.
9094 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9095 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9096 Update.
9097 (disassemble_dwarf_expression): Update.
9098
9099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * dwarf2/read.h (struct dwarf2_queue_item): Add
9102 dwarf2_per_objfile parameter, assign new parameter.
9103 <per_objfile>: New field.
9104 * dwarf2/read.c (free_one_cached_comp_unit): Add
9105 dwarf2_per_objfile parameter.
9106 (queue_comp_unit): Likewise.
9107 (dw2_do_instantiate_symtab): Update.
9108 (process_psymtab_comp_unit): Update.
9109 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9110 (process_imported_unit_die): Update.
9111 (queue_and_load_dwo_tu): Update.
9112 (follow_die_offset): Update.
9113 (follow_die_sig_1): Update.
9114
9115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9118 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9119 (read_call_site_scope): Assign per_objfile.
9120 (dwarf2_per_cu_data::objfile): Remove.
9121 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9122 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9123 dwarf2_per_objfile parameter.
9124 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9125 dwarf2_per_objfile parameter.
9126 (dwarf_expr_reg_to_entry_parameter): Add output
9127 dwarf2_per_objfile parameter.
9128 (locexpr_get_frame_base): Update.
9129 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9130 <push_dwarf_reg_entry_value>: Update.
9131 <call_site_to_target_addr>: Update.
9132 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9133 parameter.
9134 (value_of_dwarf_reg_entry): Update.
9135 (rw_pieced_value): Update.
9136 (indirect_synthetic_pointer): Update.
9137 (dwarf2_evaluate_property): Update.
9138 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9139 parameter.
9140 (locexpr_read_variable): Update.
9141 (locexpr_get_symbol_read_needs): Update.
9142 (loclist_read_variable): Update.
9143
9144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9147 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9148 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9149 parameter.
9150 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9151 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9152 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9153 parameter.
9154 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9155 sect_variable_value): Add dwarf2_per_objfile parameter.
9156 (class dwarf_evaluate_loc_desc) <dwarf_call,
9157 dwarf_variable_value>: Update.
9158 (fetch_const_value_from_synthetic_pointer): Add
9159 dwarf2_per_objfile parameter.
9160 (fetch_const_value_from_synthetic_pointer): Update.
9161 (coerced_pieced_ref): Update.
9162 (class symbol_needs_eval_context) <dwarf_call,
9163 dwarf_variable_value>: Update.
9164 (dwarf2_compile_expr_to_ax): Update.
9165
9166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9169 parameter.
9170 (dwarf2_evaluate_loc_desc_full): Update.
9171
9172 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9175 parameter.
9176 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9177 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9178 dwarf2_per_objfile parameter.
9179 (decode_debug_loc_dwo_addresses): Likewise.
9180 (dwarf2_find_location_expression): Update.
9181 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9182 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9183 parameter.
9184 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9185 parameter.
9186 (locexpr_describe_location_1): Likewise.
9187 (locexpr_describe_location): Update.
9188
9189 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9190
9191 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9192 Remove.
9193 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9194 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9195 (dwarf2_compile_property_to_c): Update.
9196 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9197 use text offset from objfile.
9198 (locexpr_tracepoint_var_ref): Update.
9199 (locexpr_generate_c_location): Update.
9200 (loclist_describe_location): Update.
9201 (loclist_tracepoint_var_ref): Update.
9202 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9203 dwarf2_per_objfile parameter.
9204 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9205 use text offset from objfile.
9206 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9207
9208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * dwarf2/expr.h (struct dwarf_expr_context)
9211 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9212 <offset>: Remove.
9213 <per_objfile>: New member.
9214 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9215 dwarf2_per_objfile parameter. Don't set offset, set
9216 per_objfile.
9217 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9218 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9219 a dwarf2_per_objfile object instead of an offset.
9220 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9221 constructor.
9222 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9223 to dwarf2_expr_executor constructor. Don't set offset.
9224 (dwarf2_fetch_cfa_info): Update.
9225 (struct dwarf2_frame_cache) <text_offset>: Remove.
9226 <per_objfile>: New field.
9227 (dwarf2_frame_cache): Update.
9228 (dwarf2_frame_prev_register): Update.
9229 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9230 <dwarf_evaluate_loc_desc>: Add constructor.
9231 (dwarf2_evaluate_loc_desc_full): Update.
9232 (dwarf2_locexpr_baton_eval): Update.
9233 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9234 Add constructor.
9235 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9236
9237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9240 addr_sized_int_type>: Move to dwarf2_cu.
9241 <int_type>: Move to dwarf2_per_objfile.
9242 (struct dwarf2_per_objfile) <int_type>: Move here.
9243 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9244 addr_sized_int_type>: Move here.
9245 (read_func_scope): Update.
9246 (read_array_type): Update.
9247 (read_tag_string_type): Update.
9248 (attr_to_dynamic_prop): Update.
9249 (dwarf2_per_cu_data::int_type): Rename to...
9250 (dwarf2_per_objfile::int_type): ... this.
9251 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9252 (dwarf2_cu::addr_sized_int_type): ... this.
9253 (read_subrange_type): Update.
9254 (dwarf2_per_cu_data::addr_type): Rename to...
9255 (dwarf2_cu::addr_type): ... this.
9256 (set_die_type): Update.
9257
9258 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9261 data through per_cu->cu.
9262
9263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9266 dwarf2_per_cu_data parameter fo dwarf2_cu.
9267 (lookup_dwo_type_unit): Likewise.
9268 (read_cutu_die_from_dwo): Likewise.
9269 (lookup_dwo_unit): Likewise.
9270 (open_and_init_dwo_file): Likewise.
9271 (lookup_dwo_cutu): Likewise.
9272 (lookup_dwo_comp_unit): Likewise.
9273 (lookup_dwo_type_unit): Likewise.
9274 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9275 (cutu_reader::cutu_reader): Update.
9276
9277 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9280 parameter.
9281 (process_full_type_unit): Likewise.
9282 (process_queue): Update.
9283
9284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * dwarf2/read.c (recursively_compute_inclusions): Add
9287 dwarf2_per_objfile parameter.
9288 (compute_compunit_symtab_includes): Likewise.
9289 (process_cu_includes): Update.
9290
9291 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9294 parameter.
9295 (create_type_unit_group): Update.
9296 (process_psymtab_comp_unit_reader): Update.
9297 (build_type_psymtabs_reader): Update.
9298
9299 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9302 object through m_this_cu->cu.
9303
9304 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9305
9306 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9307 the info parameter.
9308 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9309
9310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9311
9312 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9313 per_objfile parameter.
9314 (load_full_type_unit): Add per_objfile parameter.
9315 (read_signatured_type): Likewise.
9316 (load_full_comp_unit): Likewise.
9317 (load_cu): Likewise.
9318 (dw2_do_instantiate_symtab): Likewise.
9319 (dw2_get_file_names): Likewise.
9320 (dw2_map_symtabs_matching_filename): Update.
9321 (dw_expand_symtabs_matching_file_matcher): Update.
9322 (dw2_map_symbol_filenames): Update.
9323 (process_psymtab_comp_unit): Add per_objfile parameter.
9324 (build_type_psymtabs_1): Update.
9325 (process_skeletonless_type_unit): Update.
9326 (dwarf2_build_psymtabs_hard): Update.
9327 (load_partial_comp_unit): Add per_objfile parameter.
9328 (scan_partial_symbols): Update.
9329 (load_full_comp_unit): Add per_objfile parameter.
9330 (process_imported_unit_die): Update.
9331 (create_cus_hash_table): Update.
9332 (find_partial_die): Update.
9333 (dwarf2_read_addr_index): Update.
9334 (follow_die_offset): Update.
9335 (dwarf2_fetch_die_loc_sect_off): Update.
9336 (dwarf2_fetch_constant_bytes): Update.
9337 (dwarf2_fetch_die_type_sect_off): Update.
9338 (follow_die_sig_1): Update.
9339 (load_full_type_unit): Add per_objfile parameter.
9340 (read_signatured_type): Likewise.
9341
9342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9343
9344 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9345 of objfile_name.
9346
9347 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9350 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9351 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9352 field.
9353 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9354 (create_cus_from_index): Update.
9355 (dwarf2_read_gdb_index): Update.
9356 (create_cus_from_debug_names): Update.
9357 (dwarf2_read_debug_names): Update.
9358 (get_abbrev_section_for_cu): Update.
9359 (create_all_comp_units): Update.
9360 (read_attribute_value): Update.
9361 (get_debug_line_section): Update.
9362 * dwarf2/index-cache.c (index_cache::store): Update.
9363 * dwarf2/index-write.c (save_gdb_index_command): Update.
9364 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9365
9366 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9367
9368 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9369 member.
9370 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9371 dwarf2_per_cu_data::per_bfd.
9372 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9373 (create_type_unit_group): Likewise.
9374 (queue_comp_unit): Remove reference to
9375 per_cu->dwarf2_per_objfile.
9376 (maybe_queue_comp_unit): Likewise.
9377 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9378 (create_cus_hash_table): Assign new field.
9379
9380 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.c: Replace
9383 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9384 dwarf2_cu->per_objfile throughout.
9385
9386 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9387
9388 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9389 parameter, don't use per_cu->dwarf2_per_objfile.
9390 (dw2_instantiate_symtab): Likewise.
9391 (dw2_find_last_source_symtab): Update.
9392 (dw2_map_expand_apply): Update.
9393 (dw2_lookup_symbol): Update.
9394 (dw2_expand_symtabs_for_function): Update.
9395 (dw2_expand_all_symtabs): Update.
9396 (dw2_expand_symtabs_with_fullname): Update.
9397 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9398 don't use per_cu->dwarf2_per_objfile.
9399 (dw2_expand_marked_cus): Update.
9400 (dw2_find_pc_sect_compunit_symtab): Update.
9401 (dw2_debug_names_lookup_symbol): Update.
9402 (dw2_debug_names_expand_symtabs_for_function): Update.
9403 (dw2_debug_names_map_matching_symbols): Update.
9404 (dwarf2_psymtab::expand_psymtab): Update.
9405
9406 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9409 <per_objfile>: New member.
9410 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9411 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9412 call to dwarf2_cu.
9413 (cutu_reader::cutu_reader): Update.
9414 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9415
9416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9419 struct dwarf2_per_objfile.
9420 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9421 dwarf2_per_bfd.
9422 * dwarf2/read.c (set_die_type): Update.
9423 (get_die_type_at_offset): Update.
9424
9425 2020-05-27 Tom Tromey <tom@tromey.com>
9426 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9429 method.
9430 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9431 get_symtab, set_symtab>: New methods.
9432 <m_symtabs>: New field.
9433 (struct dwarf2_psymtab): Derive from partial_symtab.
9434 <readin_p, get_compunit_symtab>: Declare methods.
9435 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9436 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9437 New methods.
9438 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9439 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9440 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9441 (dw2_symtab_iter_next, dw2_print_stats)
9442 (dw2_expand_symtabs_with_fullname)
9443 (dw2_expand_symtabs_matching_one)
9444 (dw_expand_symtabs_matching_file_matcher)
9445 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9446 (dw2_debug_names_iterator::next)
9447 (dw2_debug_names_map_matching_symbols)
9448 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9449 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9450 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9451 New methods.
9452 (get_compunit_symtab, process_full_comp_unit)
9453 (process_full_type_unit): Update.
9454 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9455
9456 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9457
9458 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9459 then introduce a new dwarf2_per_objfile type.
9460 <read_line_string>: Move to the new dwarf2_per_objfile type.
9461 <objfile>: Likewise.
9462 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9463 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9464 dwarf2_per_objfile->per_bfd.
9465 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9466 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9467 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9468 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9469 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9470 (dwarf2_per_objfile::locate_sections): Rename to...
9471 (dwarf2_per_bfd::locate_sections): ... this.
9472 (dwarf2_per_objfile::get_cutu): Rename to...
9473 (dwarf2_per_bfd::get_cutu): ... this.
9474 (dwarf2_per_objfile::get_cu): Rename to...
9475 (dwarf2_per_bfd::get_cu): ... this.
9476 (dwarf2_per_objfile::get_tu): Rename to...
9477 (dwarf2_per_bfd::get_tu): ... this.
9478 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9479 (dwarf2_per_bfd::allocate_per_cu): ... this.
9480 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9481 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9482 (get_gdb_index_contents_ftype): Change parameter from
9483 dwarf2_per_objfile to dwarf2_per_bfd.
9484 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9485 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9486
9487 2020-05-27 Tom Tromey <tom@tromey.com>
9488 Simon Marchi <simon.marchi@efficios.com>
9489
9490 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9491 (allocate_piece_closure): Set "per_objfile" member.
9492 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9493 (locexpr_describe_location, loclist_describe_location): Use new
9494 member.
9495 * dwarf2/read.c (read_call_site_scope)
9496 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9497 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9498 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9499 handle_data_member_location): Set per_objfile member.
9500 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9501 member.
9502 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9503
9504 2020-05-27 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9507 allocate_signatured_type>: Declare new methods.
9508 <m_num_psymtabs>: New member.
9509 (struct dwarf2_per_cu_data) <index>: New member.
9510 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9511 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9512 (create_cu_from_index_list): Use allocate_per_cu.
9513 (create_signatured_type_table_from_index)
9514 (create_signatured_type_table_from_debug_names)
9515 (create_debug_type_hash_table, add_type_unit)
9516 (read_comp_units_from_section): Use allocate_signatured_type.
9517
9518 2020-05-27 Tom Tromey <tom@tromey.com>
9519
9520 * psymtab.c (partial_map_expand_apply)
9521 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9522 (psym_lookup_global_symbol_language)
9523 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9524 (psym_print_stats, psym_expand_symtabs_for_function)
9525 (psym_map_symbol_filenames, psym_map_matching_symbols)
9526 (psym_expand_symtabs_matching)
9527 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9528 (maintenance_check_psymtabs): Update.
9529 * psympriv.h (struct partial_symtab) <readin_p,
9530 get_compunit_symtab>: Add objfile parameter.
9531 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9532 Likewise.
9533 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9534 get_compunit_symtab>: Likewise.
9535 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9536
9537 2020-05-27 Tom Tromey <tom@tromey.com>
9538
9539 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9540 member.
9541 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9542 (create_cu_from_index_list)
9543 (create_signatured_type_table_from_index)
9544 (create_signatured_type_table_from_debug_names)
9545 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9546 (dwarf2_create_include_psymtab)
9547 (create_debug_type_hash_table, add_type_unit)
9548 (create_type_unit_group, read_comp_units_from_section)
9549 (dwarf2_compute_name, create_cus_hash_table)
9550 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9551 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9552 obstack.
9553 (dw2_get_real_path): Likewise. Change argument to
9554 dwarf2_per_objfile.
9555
9556 2020-05-27 Luis Machado <luis.machado@linaro.org>
9557
9558 PR tdep/26000
9559 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9560 for ldrd (immediate).
9561
9562 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563
9564 * command.h: Add comment giving the name of class_tui.
9565 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9566 create the fake command for the help for class_tui.
9567
9568 2020-05-26 Tom Tromey <tromey@adacore.com>
9569
9570 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9571 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9572 (val_atr): New function.
9573 (value_val_atr): Use it.
9574 * ada-valprint.c (print_optional_low_bound): Change low bound
9575 handling for enums.
9576 (val_print_packed_array_elements): Don't call discrete_position.
9577 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9578 discrete_position for enum types.
9579 * language.c (default_print_array_index): Change type.
9580 * language.h (struct language_defn) <la_print_array_index>: Add
9581 index_type parameter, change type of index_value.
9582 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9583 (default_print_array_index): Update.
9584 * valprint.c (maybe_print_array_index): Don't call
9585 value_from_longest. Update.
9586 (value_print_array_elements): Don't call discrete_position.
9587
9588 2020-05-26 Tom Tromey <tromey@adacore.com>
9589
9590 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9591 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9592
9593 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9594
9595 PR gdb/13519
9596 * avr-tdep.c (avr_integer_to_address): Return data or code
9597 address accordingly to the second 'type' argument of the
9598 function.
9599
9600 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9601
9602 * infcmd.c, inferior.h: (construct_inferior_arguments):
9603 Moved function from here to gdbsupport/common-inferior.{h,cc}
9604
9605 2020-05-23 Tom Tromey <tom@tromey.com>
9606
9607 Revert commit eca1f90c:
9608 * NEWS: Remove entry for completion styling.
9609 * completer.c (_rl_completion_prefix_display_length): Move
9610 declaration later.
9611 (gdb_fnprint): Revert.
9612 (gdb_display_match_list_1): Likewise.
9613 * cli/cli-style.c (completion_prefix_style)
9614 (completion_difference_style, completion_suffix_style): Remove.
9615 (_initialize_cli_style): Revert.
9616 * cli/cli-style.h (completion_prefix_style)
9617 (completion_difference_style, completion_suffix_style): Don't
9618 declare.
9619
9620 2020-05-24 Pedro Alves <palves@redhat.com>
9621
9622 * symtab.c (completion_list_add_name): Return boolean indication
9623 of whether the symbol matched.
9624 (completion_list_add_symbol): Don't try to remove C++ aliases if
9625 the symbol didn't match in the first place.
9626 * symtab.h (completion_list_add_name): Return bool.
9627
9628 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9629
9630 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9631 type::field.
9632
9633 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9634
9635 GDB 9.2 released.
9636
9637 2020-05-23 Tom Tromey <tom@tromey.com>
9638
9639 * NEWS: Add entry for completion styling.
9640 * completer.c (_rl_completion_prefix_display_length): Move
9641 declaration earlier.
9642 (gdb_fnprint): Use completion_style.
9643 (gdb_display_match_list_1): Likewise.
9644 * cli/cli-style.c (completion_prefix_style)
9645 (completion_difference_style, completion_suffix_style): New
9646 globals.
9647 (_initialize_cli_style): Register new globals.
9648 * cli/cli-style.h (completion_prefix_style)
9649 (completion_difference_style, completion_suffix_style): Declare.
9650
9651 2020-05-23 Pedro Alves <palves@redhat.com>
9652
9653 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9654 (parse_escape): Use ISDIGIT instead of isdigit.
9655 (puts_debug): Use gdb_isprint instead of isprint.
9656 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9657 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9658 ISSPACE instead of isspace.
9659 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9660 instead of isspace.
9661 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9662 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9663 instead of isxdigit and ISDIGIT instead of isdigit.
9664
9665 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * gdbtypes.h (struct type) <field>: New method.
9668 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9669 or type::field.
9670
9671 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9674 (TYPE_FIELDS): Use type::fields. Change all call sites that
9675 modify the propery to use type::set_fields instead.
9676
9677 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9680 type::num_fields instead.
9681
9682 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9685 methods.
9686 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9687 that modify the number of fields to use type::set_num_fields
9688 instead.
9689
9690 2020-05-22 Tom Tromey <tromey@adacore.com>
9691
9692 * compile/compile-object-load.h (munmap_list_free): Don't
9693 declare.
9694
9695 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9696
9697 * annotate.c (annotate_source_line): Update return type, add call
9698 to update current symtab and line.
9699 * annotate.h (annotate_source_line): Update return type, and
9700 extend header comment.
9701 * source.c (info_line_command): Check annotation_level before
9702 calling annotate_source_line.
9703 * stack.c (print_frame_info): If calling annotate_source_line
9704 returns true, then don't print any other source line information.
9705
9706 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9709
9710 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * coffread.c (patch_type): Remove NULL check before xfree.
9713 * corefile.c (set_gnutarget): Likewise.
9714 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9715 * exec.c (build_section_table): Likewise.
9716 * remote.c (remote_target::pass_signals): Likewise.
9717 * utils.c (n_spaces): Likewise.
9718 * cli/cli-script.c (document_command): Likewise.
9719 * i386-windows-tdep.c (core_process_module_section): Likewise.
9720 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9721
9722 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9723
9724 * symfile.c (reread_symbols): Clear objfile's section_offsets
9725 vector and section indices, re-compute them by calling
9726 sym_offsets.
9727
9728 2020-05-20 Tom Tromey <tromey@adacore.com>
9729
9730 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9731 (desc_one_bound, desc_index_type): Compute field name.
9732
9733 2020-05-20 Tom de Vries <tdevries@suse.de>
9734
9735 PR symtab/25833
9736 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9737
9738 2020-05-20 Alan Modra <amodra@gmail.com>
9739
9740 PR 25993
9741 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9742 bfd_set_filename.
9743 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9744 passed to bfd_set_filename.
9745 * symfile-mem.c (add_vsyscall_page): Likewise for string
9746 passed to symbol_file_add_from_memory.
9747 (symbol_file_add_from_memory): Make name param a const char* and
9748 don't strdup.
9749
9750 2020-05-20 Alan Modra <amodra@gmail.com>
9751
9752 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9753 rather than accessing bfd->filename directly.
9754 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9755 and use bfd_section_name.
9756 * dwarf2/frame.c (decode_frame_entry): Likewise.
9757 * exec.c (exec_set_section_address): Likewise.
9758 * solib-aix.c (solib_aix_bfd_open): Likewise.
9759 * stap-probe.c (get_stap_base_address): Likewise.
9760 * symfile.c (reread_symbols): Likewise.
9761
9762 2020-05-19 Tom Tromey <tromey@adacore.com>
9763
9764 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9765
9766 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9769
9770 2020-05-19 Pedro Alves <palves@redhat.com>
9771
9772 * NEWS (set exec-file-mismatch): Adjust entry.
9773 * exec.c: Include "build-id.h".
9774 (validate_exec_file): Try to match build IDs instead of filenames.
9775 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9776 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9777 and pass down 'warn_if_slow'.
9778 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9779 gdb_bfd_open_closure to pass it down.
9780 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9781
9782 2020-05-19 Pedro Alves <palves@redhat.com>
9783
9784 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9785 * target.c (target_fileio_open_1): Rename to target_fileio_open
9786 and make extern. Use bool.
9787 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9788 (target_fileio_read_alloc_1): Adjust.
9789 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9790 (target_fileio_open_warn_if_slow): Delete declaration.
9791
9792 2020-05-19 Pedro Alves <palves@redhat.com>
9793
9794 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9795 Adjust all callers.
9796
9797 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9798
9799 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9800 whether disp is negative.
9801
9802 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * symfile.h (struct symfile_segment_data)
9805 <~symfile_segment_data>: Remove.
9806 <segment_info>: Change to std::vector.
9807 * symfile.c (default_symfile_segments): Update.
9808 * elfread.c (elf_symfile_segments): Update.
9809
9810 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9811
9812 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9813 <segments>: New.
9814 <segment_bases, segment_sizes>: Remove.
9815 * symfile.c (default_symfile_segments): Update.
9816 * elfread.c (elf_symfile_segments): Update.
9817 * remote.c (remote_target::get_offsets): Update.
9818 * solib-target.c (solib_target_relocate_section_addresses):
9819 Update.
9820
9821 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * symfile.h (struct symfile_segment_data): Initialize fields.
9824 <~symfile_segment_data>: Add.
9825 (symfile_segment_data_up): New.
9826 (struct sym_fns) <sym_segments>: Return a
9827 symfile_segment_data_up.
9828 (default_symfile_segments): Return a symfile_segment_data_up.
9829 (free_symfile_segment_data): Remove.
9830 (get_symfile_segment_data): Return a symfile_segment_data_up.
9831 * symfile.c (default_symfile_segments): Likewise.
9832 (get_symfile_segment_data): Likewise.
9833 (free_symfile_segment_data): Remove.
9834 (symfile_find_segment_sections): Update.
9835 * elfread.c (elf_symfile_segments): Return a
9836 symfile_segment_data_up.
9837 * remote.c (remote_target::get_offsets): Update.
9838 * solib-target.c (solib_target_relocate_section_addresses):
9839 Update.
9840 * symfile-debug.c (debug_sym_segments): Return a
9841 symfile_segment_data_up.
9842
9843 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9844
9845 PR build/25981
9846 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9847 Hardcode register numbers.
9848
9849 PR build/25981
9850 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9851 procfs_find_LDT_entry): Remove.
9852 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9853 procfs_find_LDT_entry): Remove.
9854 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9855 Remove.
9856
9857 2020-05-17 Pedro Alves <palves@redhat.com>
9858 Andrew Burgess <andrew.burgess@embecosm.com>
9859 Keno Fischer <keno@juliacomputing.com>
9860
9861 PR gdb/25741
9862 * breakpoint.c (build_target_condition_list): Update comments.
9863 (build_target_command_list): Update comments and skip matching
9864 locations.
9865 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9866 a separate function. Simplify "set breakpoint auto-hw off"
9867 handling.
9868 (insert_breakpoints): Update comment.
9869 (tracepoint_locations_match): New parameter. For breakpoints,
9870 compare location types too, if the caller wants to.
9871 (handle_automatic_hardware_breakpoints): New functions.
9872 (bp_location_is_less_than): Also sort by location type and
9873 hardware breakpoint length.
9874 (update_global_location_list): Handle "set breakpoint auto-hw on"
9875 here.
9876 (update_breakpoint_locations): Ask breakpoint_locations_match to
9877 ignore location types.
9878
9879 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9880
9881 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9882 type::name instead.
9883
9884 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * gdbtypes.h (struct type) <name, set_name>: New methods.
9887 (TYPE_CODE): Use type::name. Change all call sites used to set
9888 the name to use type::set_name instead.
9889
9890 2020-05-16 Tom Tromey <tom@tromey.com>
9891
9892 * top.c (quit_force): Update.
9893 * infrun.c (handle_no_resumed): Update.
9894 * top.h (all_uis): New function.
9895 (ALL_UIS): Remove.
9896
9897 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9900
9901 2020-05-16 Pedro Alves <palves@redhat.com>
9902
9903 * ia64-linux-nat.c
9904 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9905 Declare method.
9906 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9907
9908 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9909
9910 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9911 (sparc64_adi_info): Likewise.
9912
9913 2020-05-15 Tom Tromey <tom@tromey.com>
9914
9915 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9916 block_objfile.
9917 (lookup_objfile_from_block): Remove.
9918 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9919 (lookup_global_symbol): Use block_objfile.
9920 * symtab.h (lookup_objfile_from_block): Don't declare.
9921 * printcmd.c (clear_dangling_display_expressions): Use
9922 block_objfile.
9923 * parse.c (operator_check_standard): Use block_objfile.
9924
9925 2020-05-15 Tom Tromey <tom@tromey.com>
9926
9927 * language.c (language_alloc_type_symbol): Set
9928 SYMBOL_SECTION.
9929 * symtab.c (initialize_objfile_symbol): Remove.
9930 (allocate_symbol): Remove.
9931 (allocate_template_symbol): Remove.
9932 * dwarf2/read.c (fixup_go_packaging): Use "new".
9933 (new_symbol): Use "new".
9934 (read_variable): Don't call initialize_objfile_symbol. Use
9935 "new".
9936 (read_func_scope): Use "new".
9937 * xcoffread.c (process_xcoff_symbol): Don't call
9938 initialize_objfile_symbol.
9939 (SYMBOL_DUP): Remove.
9940 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9941 "new".
9942 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9943 (allocate_template_symbol): Don't declare.
9944 (struct symbol): Add copy constructor. Change defaults.
9945 * jit.c (finalize_symtab): Use "new".
9946 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9947 Use "new".
9948 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9949 (common_block_end): Use "new".
9950 * mdebugread.c (parse_symbol): Use "new".
9951 (new_symbol): Likewise.
9952
9953 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9954
9955 * NEWS: Mention changes to help and apropos.
9956
9957 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9958
9959 * command.h (enum command_class): Improve comments, document
9960 that class_alias is for user-defined aliases, give the class
9961 name for each class, remove unused class_xdb.
9962 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9963 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9964 by a precise class.
9965 * infcmd.c (_initialize_infcmd): Likewise.
9966 * reverse.c (_initialize_reverse): Likewise.
9967 * stack.c (_initialize_stack): Likewise.
9968 * symfile.c (_initialize_symfile): Likewise.
9969 * tracepoint.c (_initialize_tracepoint): Likewise.
9970
9971 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9972
9973 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9974 when their aliased command is traversed.
9975 (help_cmd): Add fput_command_names_styled call to
9976 output command name and aliases when command has an alias.
9977
9978 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9979
9980 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9981 * cli/cli-decode.c (help_cmd_list): Declare as static,
9982 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9983 a command together with the command.
9984 (fput_command_name_styled, fput_command_names_styled): New functions.
9985 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9986 fput_command_name_styled.
9987 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9988 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9989
9990 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9991
9992 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9993 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9994 * command.h (cmd_show_list): Likewise.
9995 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9996 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9997
9998 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9999
10000 * unittests/command-def-selftests.c (traverse_command_structure):
10001 Verify all commands of a list have the same prefix command and
10002 that only the top cmdlist commands have a null prefix.
10003
10004 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10005
10006 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10007 as prefix, not one of its aliases.
10008 (set_cmd_prefix): Remove.
10009 (do_add_cmd): Centralize the setting of the prefix of a command, when
10010 command is defined after its full chain of prefix commands.
10011 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10012 (add_setshow_cmd_full): Likewise.
10013 (update_prefix_field_of_prefixed_commands): New function.
10014 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10015 update_prefix_field_of_prefixed_commands.
10016 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10017 addresses of remote_set_cmdlist and remote_show_cmdlist given
10018 as argument, not the address of an argument.
10019 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10020 * gdb/remote.c (_initialize_remote): Likewise.
10021
10022 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10023
10024 * cli/cli-cmds.c (alias_command): Check for an existing alias
10025 using lookup_cmd_composition, as valid_command_p is too strict
10026 and forbids aliases that are the prefix of an existing alias
10027 or command.
10028 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10029 command is properly recognised as a valid command.
10030
10031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10032
10033 * unittests/help-doc-selftests.c: Rename to
10034 unittests/command-def-selftests.c
10035 * unittests/command-def-selftests.c (help_doc_tests): Update some
10036 comments.
10037 (command_structure_tests, traverse_command_structure): New namespace
10038 and function.
10039 (command_structure_invariants_tests): New function.
10040 (_initialize_command_def_selftests) Renamed from
10041 _initialize_help_doc_selftests, register command_structure_invariants
10042 selftest.
10043
10044 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10045
10046 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10047 an alias of 'show'.
10048
10049 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10050
10051 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10052 ada_is_fixed_point_type. Update all callers.
10053 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10054 all callers.
10055 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10056 Update all callers.
10057 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10058 print_fixed_point_type. Update all callers.
10059 * ada-valprint.c (ada_value_print_num): Replace call to
10060 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10061
10062 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10063
10064 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10065 processors.
10066 (cpu_supports_bts): Add CV_AMD case.
10067
10068 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10069 Simon Marchi <simon.marchi@efficios.com>
10070
10071 * infrun.c (stop_all_threads): Collect multiple wait events at
10072 each pass.
10073
10074 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10077 type::code instead.
10078
10079 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * gdbtypes.h (struct type) <code, set_code>: New methods.
10082 (TYPE_CODE): Use type::code. Change all call sites used to set
10083 the code to use type::set_code instead.
10084
10085 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10086 Tom de Vries <tdevries@suse.de>
10087 Pedro Alves <palves@redhat.com>
10088
10089 PR threads/25478
10090 * infrun.c (stop_all_threads): Do NOT ignore
10091 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10092 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10093 received.
10094 (handle_no_resumed): Remove code handling a live inferior with no
10095 threads.
10096 * remote.c (has_single_non_exited_thread): New.
10097 (remote_target::update_thread_list): Do not delete a thread if is
10098 the last thread of the process.
10099 * thread.c (thread_select): Call delete_exited_threads instead of
10100 prune_threads.
10101
10102 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10103
10104 * infrun.c (stop_all_threads): Enable/disable thread events of all
10105 targets. Move a debug message denoting the end of the function
10106 into the SCOPED_EXIT block.
10107
10108 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10109
10110 * process-stratum-target.h: Include <set>.
10111 (all_non_exited_process_targets, switch_to_target_no_thread): New
10112 function declarations.
10113 * process-stratum-target.c (all_non_exited_process_targets)
10114 (switch_to_target_no_thread): New function implementations.
10115
10116 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10117
10118 * infrun.c (handle_inferior_event): Extract out a piece of code
10119 into...
10120 (mark_non_executing_threads): ...this new function.
10121
10122 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10123
10124 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10125 use.
10126
10127 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10128
10129 * regcache.c (regcache_read_pc_protected): New function
10130 implementation that returns 0 if the PC cannot read via
10131 'regcache_read_pc'.
10132 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10133 instead of 'regcache_read_pc'.
10134 (keep_going_pass_signal): Ditto.
10135
10136 2020-05-13 Tom Tromey <tromey@adacore.com>
10137
10138 * ada-lang.c (align_value): Remove.
10139 (ada_template_to_fixed_record_type_1): Use align_up.
10140
10141 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10142
10143 * async-event.c: Update the copyright year.
10144 * async-event.h: Update the copyright year.
10145
10146 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * objfiles.h (is_addr_in_objfile,
10149 shared_objfile_contains_address_p): Return bool.
10150 * objfile.c (is_addr_in_objfile,
10151 shared_objfile_contains_address_p): Return bool.
10152
10153 2020-05-11 Tom Tromey <tromey@adacore.com>
10154
10155 * cli/cli-cmds.c (info_command): Restore.
10156 (_initialize_cli_cmds): Use add_prefix_command for "info".
10157 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10158
10159 2020-05-11 Tom Tromey <tromey@adacore.com>
10160
10161 * ada-lang.c (ada_value_primitive_field): Now public.
10162 * ada-lang.h (ada_value_primitive_field): Declare.
10163 * ada-valprint.c (print_field_values): Use
10164 ada_value_primitive_field for wrapper fields.
10165
10166 2020-05-11 Tom de Vries <tdevries@suse.de>
10167
10168 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10169 MODULE_DOMAIN.
10170
10171 2020-05-11 Tom de Vries <tdevries@suse.de>
10172
10173 PR symtab/25941
10174 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10175 with length 0, if not gdb-produced.
10176 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10177
10178 2020-05-09 Tom de Vries <tdevries@suse.de>
10179
10180 PR gdb/25955
10181 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10182 calculation.
10183
10184 2020-05-09 Tom Tromey <tom@tromey.com>
10185
10186 * top.c (server_command): Now bool.
10187 * top.h (server_command): Now bool.
10188
10189 2020-05-08 Tom Tromey <tromey@adacore.com>
10190
10191 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10192 already being processed.
10193
10194 2020-05-08 Tom Tromey <tom@tromey.com>
10195
10196 * printcmd.c (struct display) <next>: Remove.
10197 <display>: New constructor.
10198 <exp_string>: Now a std::string.
10199 <enabled_p>: Now a bool.
10200 (display_number): Move definition earlier.
10201 (displays): Rename from display_chain. Now a std::vector.
10202 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10203 (display_command): Update.
10204 (do_one_display, disable_display)
10205 (enable_disable_display_command, do_enable_disable_display):
10206 Update.
10207 (free_display): Remove.
10208 (clear_displays): Rewrite.
10209 (delete_display): Update.
10210 (map_display_numbers): Use function_view. Remove "data"
10211 parameter. Update.
10212 (do_delete_display): Remove.
10213 (undisplay_command): Update.
10214 (do_one_display, do_displays, disable_display)
10215 (info_display_command): Update.
10216 (do_enable_disable_display): Remove.
10217 (enable_disable_display_command)
10218 (clear_dangling_display_expressions): Update.
10219
10220 2020-05-08 Tom Tromey <tom@tromey.com>
10221
10222 * symtab.c (set_symbol_cache_size)
10223 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10224 (maintenance_print_symbol_cache_statistics): Update.
10225 * symmisc.c (print_symbol_bcache_statistics)
10226 (print_objfile_statistics, maintenance_print_objfiles)
10227 (maintenance_info_symtabs, maintenance_check_symtabs)
10228 (maintenance_expand_symtabs, maintenance_info_line_tables):
10229 Update.
10230 * symfile-debug.c (set_debug_symfile): Update.
10231 * source.c (forget_cached_source_info): Update.
10232 * python/python.c (gdbpy_progspaces): Update.
10233 * psymtab.c (maintenance_info_psymtabs): Update.
10234 * probe.c (parse_probes): Update.
10235 * linespec.c (iterate_over_all_matching_symtabs)
10236 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10237 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10238 * exec.c (exec_target::close): Update.
10239 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10240 * breakpoint.c (print_one_breakpoint_location)
10241 (create_longjmp_master_breakpoint)
10242 (create_std_terminate_master_breakpoint): Update.
10243 * progspace.c (program_spaces): Now a std::vector.
10244 (maybe_new_address_space): Update.
10245 (add_program_space): Remove.
10246 (program_space::program_space): Update.
10247 (remove_program_space): Update.
10248 (number_of_program_spaces): Remove.
10249 (print_program_space, update_address_spaces): Update.
10250 * progspace.h (program_spaces): Change type.
10251 (ALL_PSPACES): Remove.
10252 (number_of_program_spaces): Don't declare.
10253 (struct program_space) <next>: Remove.
10254
10255 2020-05-08 Tom Tromey <tom@tromey.com>
10256
10257 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10258 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10259 (enable_break): Update.
10260 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10261 (frv_fdpic_find_canonical_descriptor): Update.
10262 (frv_fetch_objfile_link_map): Update.
10263 * progspace.c (program_space::free_all_objfiles): Update.
10264 (program_space::solibs): New method.
10265 * progspace.h (struct program_space) <solibs>: New method.
10266 * solist.h (master_so_list): Don't declare.
10267 (ALL_SO_LIBS): Remove.
10268 * solib.h (so_list_head): Remove.
10269 (update_solib_list): Update comment.
10270 * solib.c (master_so_list): Remove.
10271 (solib_used, update_solib_list, solib_add)
10272 (info_sharedlibrary_command, clear_solib)
10273 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10274
10275 2020-05-08 Tom Tromey <tom@tromey.com>
10276
10277 * extension.c (extension_languages): Now a std::array.
10278 (ALL_EXTENSION_LANGUAGES): Remove.
10279 (get_ext_lang_defn, get_ext_lang_of_file)
10280 (eval_ext_lang_from_control_command): Update.
10281 (finish_ext_lang_initialization)
10282 (auto_load_ext_lang_scripts_for_objfile)
10283 (ext_lang_type_printers::ext_lang_type_printers)
10284 (apply_ext_lang_type_printers)
10285 (ext_lang_type_printers::~ext_lang_type_printers)
10286 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10287 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10288 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10289 (get_matching_xmethod_workers, ext_lang_colorize)
10290 (ext_lang_before_prompt): Update.
10291 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10292
10293 2020-05-08 Tom Tromey <tom@tromey.com>
10294
10295 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10296 overload.
10297 <swap_string, m_string>: Remove.
10298 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10299 Update.
10300 * stabsread.c (define_symbol, read_type): Update.
10301 * linespec.c (find_linespec_symbols): Update.
10302 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10303 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10304 * dbxread.c (read_dbx_symtab): Update.
10305 * cp-support.h (cp_canonicalize_string_full)
10306 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10307 Return unique_xmalloc_ptr.
10308 * cp-support.c (inspect_type): Update.
10309 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10310 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10311 Likewise.
10312 * c-typeprint.c (print_name_maybe_canonical): Update.
10313 * break-catch-throw.c (check_status_exception_catchpoint):
10314 Update.
10315
10316 2020-05-08 Tom de Vries <tdevries@suse.de>
10317
10318 * infrun.c (follow_fork): Copy current_line and current_symtab to
10319 child thread.
10320
10321 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10322
10323 * async-event.c (struct async_signal_handler, struct
10324 async_event_handler): Reformat, remove typedef.
10325
10326 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10329 access thistype->main_type->dyn_prop_list directly.
10330
10331 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10334 (remove_dyn_prop): Remove. Update all users to use
10335 type::remove_dyn_prop.
10336 * gdbtypes.c (remove_dyn_prop): Rename to...
10337 (type::remove_dyn_prop): ... this.
10338
10339 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10340
10341 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10342 (add_dyn_prop): Remove. Update all users to use
10343 type::add_dyn_prop.
10344 * gdbtypes.c (add_dyn_prop): Rename to...
10345 (type::add_dyn_prop): ... this.
10346
10347 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10350 (get_dyn_prop): Remove. Update all users to use
10351 type::dyn_prop.
10352 * gdbtypes.c (get_dyn_prop): Rename to...
10353 (type::dyn_prop): ... this.
10354
10355 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10358
10359 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10360
10361 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10362 instruction, skip it if it's there.
10363
10364 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10367
10368 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10371 * gdbtypes.c (recursive_dump_type): Remove use of
10372 TYPE_INCOMPLETE.
10373
10374 2020-05-03 Tom Tromey <tom@tromey.com>
10375
10376 * breakpoint.c (catch_command, tcatch_command): Remove.
10377 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10378 add_show_prefix_cmd.
10379 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10380 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10381 Remove.
10382 (add_internal_problem_command): Use add_basic_prefix_cmd,
10383 add_show_prefix_cmd.
10384 * mips-tdep.c (set_mipsfpu_command): Remove.
10385 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10386 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10387 (_initialize_index_cache): Use add_basic_prefix_cmd.
10388 * memattr.c (dummy_cmd): Remove.
10389 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10390 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10391 (_initialize_tui_win): Use add_basic_prefix_cmd,
10392 add_show_prefix_cmd.
10393 * cli/cli-logging.c (set_logging_command): Remove.
10394 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10395 add_show_prefix_cmd.
10396 (show_logging_command): Remove.
10397 * target.c (target_command): Remove.
10398 (add_target): Use add_basic_prefix_cmd.
10399
10400 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10401
10402 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10403
10404 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10405
10406 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10407 info_command.
10408
10409 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10410
10411 * nbsd-nat.c (nbsd_enable_proc_events)
10412 (nbsd_nat_target::post_startup_inferior): Add.
10413 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10414 (nbsd_nat_target::update_thread_list): Rewrite.
10415 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10416 "PTRACE_LWP_CREATE".
10417 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10418
10419 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10420
10421 * stack.c (_initialize_stack): Remove duplicated creation
10422 of "frame" command and "f" alias.
10423
10424 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10425
10426 PR gdb/18706
10427 * gdbtypes.c (check_typedef): Calculate size of array of
10428 stubbed type.
10429
10430 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10431
10432 PR gdb/15559
10433 * i386-tdep.c (i386_push_dummy_call): Call
10434 i386_thiscall_push_dummy_call.
10435 (i386_thiscall_push_dummy_call): New function.
10436 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10437 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10438 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10439
10440 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * gdbarch.sh (do_read): Add shellcheck disable directive for
10443 warning SC2162.
10444
10445 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10446
10447 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10448 "referenced but not assigned" warning.
10449
10450 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * gdbarch.sh: Remove code that sets fallbackdefault.
10453
10454 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10455
10456 * gdbarch.sh: Use shell operators && and || instead of
10457 -a and -o.
10458
10459 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * gdbarch.sh: Use $(...) instead of `...`.
10462
10463 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10464
10465 * gdbarch.sh: Use double quotes around variables.
10466
10467 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * gdbarch.sh: Use %s with printf, instead of variables in the
10470 format string.
10471
10472 2020-04-29 Tom Tromey <tromey@adacore.com>
10473
10474 PR ada/25875:
10475 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10476 type fields here.
10477 (read_enumeration_type): Call
10478 update_enumeration_type_from_children later. Update comments.
10479 (process_enumeration_scope): Don't create type fields.
10480
10481 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10482
10483 * nbsd-tdep.c: Include "xml-syscall.h".
10484 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10485
10486 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10487
10488 * nbsd-nat.c: Include "sys/wait.h".
10489 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10490 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10491 (nbsd_nat_target::remove_exec_catchpoint)
10492 (nbsd_nat_target::set_syscall_catchpoint): Add.
10493 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10494 (nbsd_nat_target::insert_exec_catchpoint)
10495 (nbsd_nat_target::remove_exec_catchpoint)
10496 (nbsd_nat_target::set_syscall_catchpoint): Add.
10497 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10498 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10499 `nbsd_get_syscall_number'.
10500
10501 2020-04-29 Tom Tromey <tom@tromey.com>
10502
10503 * stack.c (print_block_frame_labels): Remove.
10504
10505 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10506
10507 PR gdb/17320
10508 * ada-valprint.c (val_print_packed_array_elements): Move array
10509 end bracket to new line.
10510 (ada_val_print_string): Remove extra spaces before first array
10511 element.
10512 * c-valprint.c (c_value_print_array): Likewise.
10513 * m2-valprint.c (m2_print_array_contents): Likewise.
10514 (m2_value_print_inner): Likewise.
10515 * p-valprint.c (pascal_value_print_inner): Likewise.
10516 * valprint.c (generic_val_print_array): Likewise.
10517 (value_print_array_elements): Move first array element and array
10518 end bracket to new line.
10519
10520 2020-04-29 Tom de Vries <tdevries@suse.de>
10521
10522 PR symtab/25889
10523 * linespec.c (find_method): Fix ix calculation.
10524
10525 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10526
10527 * syscalls/update-netbsd.sh: New file.
10528 * syscalls/netbsd.xml: Regenerate.
10529 * data-directory/Makefile.in: Register `netbsd.xml' in
10530 `SYSCALLS_FILES'.
10531
10532 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10533
10534 * syscalls/update-freebsd.sh: Add double quotes.
10535
10536 2020-04-28 Tom Tromey <tom@tromey.com>
10537
10538 * NEWS: Update.
10539 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10540 (cmdpy_init): Allow class_tui.
10541
10542 2020-04-28 Mark Williams <mark@myosotissp.com>
10543
10544 PR gdb/24480
10545 * dwarf2read.c: Add missing assingments to list_in_scope when
10546 start_symtab was already called.
10547
10548 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10549
10550 PR gdb/25881
10551 * dwarf2/read.c (offset_map_type): Use
10552 gdb:hash_enum<sect_offset> as hash function.
10553
10554 2020-04-28 Tom de Vries <tdevries@suse.de>
10555
10556 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10557 with DW_AT_signature.
10558
10559 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10560
10561 * configure.ac: Remove check for fs_base/gs_base in
10562 user_regs_struct.
10563 * configure: Re-generate.
10564 * config.in: Re-generate.
10565 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10566 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10567 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10568
10569 2020-04-27 Luis Machado <luis.machado@linaro.org>
10570
10571 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10572 problematic inline frame unwinding situation.
10573 * frame.c (frame_id_computed_p): New function.
10574 * frame.h (frame_id_computed_p): New prototype.
10575
10576 2020-04-26 Tom Tromey <tom@tromey.com>
10577
10578 * command.h (enum command_class) <class_pseudo>: Remove.
10579
10580 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10581
10582 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10583 and whitespace.
10584
10585 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10586
10587 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10588 `PT_GET_PROCESS_STATE' block.
10589
10590 2020-04-24 Tom Tromey <tom@tromey.com>
10591
10592 * symtab.h (symbol_get_demangled_name): Don't declare.
10593 * symtab.c (symbol_get_demangled_name): Remove.
10594 (general_symbol_info::natural_name)
10595 (general_symbol_info::demangled_name): Update.
10596
10597 2020-04-24 Tom Tromey <tom@tromey.com>
10598
10599 PR rust/25025:
10600 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10601
10602 2020-04-24 Tom Tromey <tom@tromey.com>
10603
10604 PR symtab/12707:
10605 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10606 exists.
10607 (new_symbol): Likewise.
10608 * compile/compile-object-load.c (get_out_value_type): Use
10609 symbol_matches_search_name.
10610
10611 2020-04-24 Tom Tromey <tom@tromey.com>
10612
10613 * dwarf2/read.c (add_partial_symbol): Do not call
10614 compute_and_set_names.
10615
10616 2020-04-24 Tom Tromey <tom@tromey.com>
10617
10618 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10619 overload.
10620
10621 2020-04-24 Tom Tromey <tom@tromey.com>
10622
10623 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10624 (add_psymbol_to_list): New overload. Make old overload call new
10625 one.
10626 * psympriv.h (add_psymbol_to_list): New overload.
10627
10628 2020-04-24 Tom Tromey <tom@tromey.com>
10629
10630 * dwarf2/read.c (partial_die_info::read) <case
10631 DW_AT_linkage_name>: Use value_as_string.
10632 (dwarf2_string_attr): Use value_as_string.
10633 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10634 method.
10635 * dwarf2/attribute.c (attribute::value_as_string): New method.
10636
10637 2020-04-24 Tom Tromey <tom@tromey.com>
10638
10639 * symtab.c (general_symbol_info::natural_name)
10640 (general_symbol_info::demangled_name): Check for language_rust.
10641
10642 2020-04-24 Tom Tromey <tom@tromey.com>
10643
10644 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10645 (dwarf2_physname): ... from here.
10646 (partial_die_info::read): Add Rust "{" hack.
10647
10648 2020-04-24 Tom Tromey <tom@tromey.com>
10649
10650 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10651 method.
10652 (symbol_set_demangled_name): Don't declare.
10653 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10654 symbol_set_demangled_name.
10655 (general_symbol_info::set_language)
10656 (general_symbol_info::compute_and_set_names): Update.
10657 * minsyms.c (minimal_symbol_reader::install): Update.
10658 * dwarf2/read.c (new_symbol): Update.
10659
10660 2020-04-24 Tom Tromey <tromey@adacore.com>
10661
10662 PR python/23662:
10663 * python/py-type.c (convert_field): Handle
10664 FIELD_LOC_KIND_DWARF_BLOCK.
10665 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10666 (typy_get_dynamic): Nw function.
10667 (type_object_getset): Add "dynamic".
10668 * NEWS: Add entry.
10669
10670 2020-04-24 Tom Tromey <tromey@adacore.com>
10671
10672 * ada-typeprint.c (print_choices, print_variant_part)
10673 (print_record_field_types_dynamic): New functions.
10674 (print_record_field_types): Use print_record_field_types_dynamic.
10675
10676 2020-04-24 Tom Tromey <tromey@adacore.com>
10677
10678 * dwarf2/read.c (handle_data_member_location): New overload.
10679 (dwarf2_add_field): Use it.
10680 (decode_locdesc): Add "computed" parameter. Update comment.
10681 * gdbtypes.c (is_dynamic_type_internal): Also look for
10682 FIELD_LOC_KIND_DWARF_BLOCK.
10683 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10684 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10685 virtual base classes.
10686 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10687 FIELD_LOC_KIND_DWARF_BLOCK.
10688
10689 2020-04-24 Tom Tromey <tromey@adacore.com>
10690
10691 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10692 * gdbtypes.c (is_dynamic_type_internal): Check
10693 TYPE_HAS_DYNAMIC_LENGTH.
10694 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10695 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10696 New macros.
10697 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10698 constant.
10699
10700 2020-04-24 Tom Tromey <tromey@adacore.com>
10701
10702 * dwarf2/read.c (struct variant_field): Rewrite.
10703 (struct variant_part_builder): New.
10704 (struct nextfield): Remove "variant" field. Add "offset".
10705 (struct field_info): Add "current_variant_part" and
10706 "variant_parts".
10707 (alloc_discriminant_info): Remove.
10708 (alloc_rust_variant): New function.
10709 (quirk_rust_enum): Update.
10710 (dwarf2_add_field): Set "offset" member. Don't handle
10711 DW_TAG_variant_part.
10712 (offset_map_type): New typedef.
10713 (convert_variant_range, create_one_variant)
10714 (create_one_variant_part, create_variant_parts)
10715 (add_variant_property): New functions.
10716 (dwarf2_attach_fields_to_type): Call add_variant_property.
10717 (read_structure_type): Don't handle DW_TAG_variant_part.
10718 (handle_variant_part, handle_variant): New functions.
10719 (handle_struct_member_die): Use them.
10720 (process_structure_scope): Don't handle variant parts.
10721 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10722 (struct discriminant_info): Remove.
10723 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10724 (struct main_type) <flag_discriminated_union>: Remove.
10725 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10726 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10727 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10728 Update.
10729 * valops.c (value_union_variant): Remove.
10730 * value.h (value_union_variant): Don't declare.
10731
10732 2020-04-24 Tom Tromey <tromey@adacore.com>
10733
10734 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10735 (ada_value_primitive_packed_val): Update.
10736 * ada-valprint.c (ada_value_print_1): Update.
10737 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10738 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10739 just an address. Use evaluate_for_locexpr_baton.
10740 (dwarf2_evaluate_property): Update.
10741 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10742 array_view.
10743 * findvar.c (default_read_var_value): Update.
10744 * gdbtypes.c (compute_variant_fields_inner)
10745 (resolve_dynamic_type_internal): Update.
10746 (resolve_dynamic_type): Change type of valaddr parameter.
10747 * gdbtypes.h (resolve_dynamic_type): Update.
10748 * valarith.c (value_subscripted_rvalue): Update.
10749 * value.c (value_from_contents_and_address): Update.
10750
10751 2020-04-24 Tom Tromey <tromey@adacore.com>
10752
10753 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10754 "push_initial_value" parameter.
10755 (dwarf2_evaluate_property): Likewise.
10756 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10757
10758 2020-04-24 Tom Tromey <tromey@adacore.com>
10759
10760 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10761 (variant::matches, compute_variant_fields_recurse)
10762 (compute_variant_fields_inner, compute_variant_fields): New
10763 functions.
10764 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10765 Use resolved_type after type is made.
10766 (operator==): Add new cases.
10767 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10768 (struct discriminant_range, struct variant, struct variant_part):
10769 New.
10770 (union dynamic_prop_data) <variant_parts, original_type>: New
10771 members.
10772 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10773 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10774 constants.
10775 * value.c (unpack_bits_as_long): Now public.
10776 * value.h (unpack_bits_as_long): Declare.
10777
10778 2020-04-24 Tom Tromey <tromey@adacore.com>
10779
10780 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10781 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10782
10783 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10784
10785 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10786
10787 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10788
10789 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10790 (remove_fork_catchpoint, post_startup_inferior)
10791 (post_attach): Move...
10792 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10793 (remove_fork_catchpoint, post_startup_inferior)
10794 (post_attach): ...here.
10795 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10796 (remove_fork_catchpoint, post_startup_inferior)
10797 (post_attach): Move...
10798 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10799 (remove_fork_catchpoint, post_startup_inferior)
10800 (post_attach): ...here.
10801
10802 2020-04-24 Tom Tromey <tromey@adacore.com>
10803
10804 * nat/windows-nat.h (struct windows_thread_info)
10805 <pc_adjusted>: New member.
10806 * windows-nat.c (windows_fetch_one_register): Check
10807 pc_adjusted.
10808 (windows_nat_target::get_windows_debug_event)
10809 (windows_nat_target::wait): Set pc_adjusted.
10810
10811 2020-04-24 Tom de Vries <tdevries@suse.de>
10812
10813 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10814 Run gdb-add-index inside temp dir.
10815
10816 2020-04-23 Tom Tromey <tromey@adacore.com>
10817
10818 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10819 in loop.
10820
10821 2020-04-23 Luis Machado <luis.machado@linaro.org>
10822
10823 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10824 get_frame_register instead of gdbarch_unwind_pc.
10825
10826 2020-04-23 Tom de Vries <tdevries@suse.de>
10827
10828 * symtab.c (lookup_global_symbol): Prefer def over decl.
10829
10830 2020-04-23 Tom de Vries <tdevries@suse.de>
10831
10832 PR symtab/25807
10833 * block.c (best_symbol, better_symbol): Promote to external.
10834 * block.h (best_symbol, better_symbol): Declare.
10835 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10836 decl.
10837
10838 2020-04-23 Tom Tromey <tromey@adacore.com>
10839
10840 PR ada/25837:
10841 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10842 "const char *", not a "const std::string &".
10843 <name_and_matcher::operator==>: Update.
10844 * unittests/lookup_name_info-selftests.c: Change type of
10845 "result".
10846
10847 2020-04-23 Tom Tromey <tom@tromey.com>
10848
10849 * inferior.h (iterate_over_inferiors): Don't declare.
10850 * inferior.c (iterate_over_inferiors): Remove.
10851 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10852 Remove.
10853 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10854 use iterate_over_inferiors.
10855 (darwin_resume_inferior_it)
10856 (struct resume_inferior_threads_param)
10857 (darwin_resume_inferior_threads_it): Remove.
10858 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10859
10860 2020-04-23 Tom de Vries <tdevries@suse.de>
10861
10862 * blockframe.c (find_pc_partial_function): Use
10863 find_pc_sect_compunit_symtab rather than
10864 objfile->sf->qf->find_pc_sect_compunit_symtab.
10865
10866 2020-04-22 Tom de Vries <tdevries@suse.de>
10867
10868 PR symtab/25764
10869 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10870 in psymtabs.
10871
10872 2020-04-22 Tom de Vries <tdevries@suse.de>
10873
10874 PR symtab/25801
10875 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10876 symtabs.
10877
10878 2020-04-22 Tom de Vries <tdevries@suse.de>
10879
10880 PR symtab/25700
10881 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10882 CU if already created.
10883
10884 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10885
10886 * infrun.c (displaced_step_fixup): Switch to the event_thread
10887 before calling displaced_step_restore, not after.
10888
10889 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10890
10891 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10892 its inferior is not recorded by us.
10893 (record_btrace_target_open): Replace call to
10894 all_non_exited_threads () with call to current_inferior
10895 ()->non_exited_threads ().
10896 (record_btrace_target::stop_recording): Likewise.
10897 (record_btrace_target::close): Likewise.
10898 (record_btrace_target::wait): Likewise.
10899 (record_btrace_target::record_stop_replaying): Likewise.
10900
10901 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10902
10903 * btrace.c (btrace_enable): Throw an error on double enables and
10904 when enabling recording fails.
10905 (btrace_disable): Throw an error if the thread is not recorded.
10906
10907 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10908
10909 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10910 request if we do not have a thread_info.
10911
10912 2020-04-21 Tom de Vries <tdevries@suse.de>
10913
10914 PR gdb/25471
10915 * thread.c
10916 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10917 exception in get_frame_id.
10918
10919 2020-04-20 Tom Tromey <tromey@adacore.com>
10920
10921 * python/python.c (struct gdbpy_event): Mark move constructor as
10922 noexcept.
10923 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10924 constructor as noexcept.
10925 * completer.h (struct completion_result): Mark move constructor as
10926 noexcept.
10927 * completer.c (completion_result::completion_result): Use
10928 initialization style. Don't call reset_match_list.
10929
10930 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10931
10932 * MAINTAINERS (Write After Approval): Add myself.
10933
10934 2020-04-18 Tom Tromey <tom@tromey.com>
10935
10936 * windows-tdep.c (init_w32_command_list)
10937 (w32_prefix_command_valid): Restore.
10938 (_initialize_windows_tdep): Call init_w32_command_list.
10939
10940 2020-04-18 Tom Tromey <tom@tromey.com>
10941
10942 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10943 * value.c (value_fn_field): Update.
10944 * valops.c (find_function_in_inferior)
10945 (value_allocate_space_in_inferior): Update.
10946 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10947 Update.
10948 * tui/tui-source.c (tui_source_window::set_contents): Update.
10949 * symtab.c (lookup_global_or_static_symbol)
10950 (find_function_start_sal_1, skip_prologue_sal)
10951 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10952 * symmisc.c (dump_msymbols, dump_symtab_1)
10953 (maintenance_print_one_line_table): Update.
10954 * symfile.c (init_entry_point_info, section_is_mapped)
10955 (list_overlays_command, simple_read_overlay_table)
10956 (simple_overlay_update_1): Update.
10957 * stap-probe.c (handle_stap_probe): Update.
10958 * stabsread.c (dbx_init_float_type, define_symbol)
10959 (read_one_struct_field, read_enum_type, read_range_type): Update.
10960 * source.c (info_line_command): Update.
10961 * python/python.c (gdbpy_source_objfile_script)
10962 (gdbpy_execute_objfile_script): Update.
10963 * python/py-type.c (save_objfile_types): Update.
10964 * python/py-objfile.c (py_free_objfile): Update.
10965 * python/py-inferior.c (python_new_objfile): Update.
10966 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10967 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10968 (maintenance_check_psymtabs): Update.
10969 * printcmd.c (info_address_command): Update.
10970 * objfiles.h (struct objfile) <arch>: New method, from
10971 get_objfile_arch.
10972 (get_objfile_arch): Don't declare.
10973 * objfiles.c (get_objfile_arch): Remove.
10974 (filter_overlapping_sections): Update.
10975 * minsyms.c (msymbol_is_function): Update.
10976 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10977 (output_nondebug_symbol): Update.
10978 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10979 (mdebug_expand_psymtab): Update.
10980 * machoread.c (macho_add_oso_symfile): Update.
10981 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10982 Update.
10983 * linux-fork.c (checkpoint_command): Update.
10984 * linespec.c (convert_linespec_to_sals): Update.
10985 * jit.c (finalize_symtab): Update.
10986 * infrun.c (insert_exception_resume_from_probe): Update.
10987 * ia64-tdep.c (ia64_find_unwind_table): Update.
10988 * hppa-tdep.c (internalize_unwinds): Update.
10989 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10990 Update.
10991 * gcore.c (call_target_sbrk): Update.
10992 * elfread.c (record_minimal_symbol, elf_symtab_read)
10993 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10994 (elf_gnu_ifunc_resolve_by_got): Update.
10995 * dwarf2/read.c (create_addrmap_from_index)
10996 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10997 (read_debug_names_from_section)
10998 (process_psymtab_comp_unit_reader, add_partial_symbol)
10999 (add_partial_subprogram, process_full_comp_unit)
11000 (read_file_scope, read_func_scope, read_lexical_block_scope)
11001 (read_call_site_scope, dwarf2_ranges_read)
11002 (dwarf2_record_block_ranges, dwarf2_add_field)
11003 (mark_common_block_symbol_computed, read_tag_pointer_type)
11004 (read_tag_string_type, dwarf2_init_float_type)
11005 (dwarf2_init_complex_target_type, read_base_type)
11006 (partial_die_info::read, partial_die_info::read)
11007 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11008 (dwarf2_fetch_die_loc_sect_off): Update.
11009 * dwarf2/loc.c (dwarf2_find_location_expression)
11010 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11011 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11012 (dwarf2_loc_desc_get_symbol_read_needs)
11013 (locexpr_describe_location_piece, locexpr_describe_location_1)
11014 (loclist_describe_location): Update.
11015 * dwarf2/index-write.c (write_debug_names): Update.
11016 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11017 * dtrace-probe.c (dtrace_process_dof): Update.
11018 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11019 (process_one_symbol): Update.
11020 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11021 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11022 (coff_read_enum_type): Update.
11023 * cli/cli-cmds.c (edit_command, list_command): Update.
11024 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11025 * breakpoint.c (create_overlay_event_breakpoint)
11026 (create_longjmp_master_breakpoint)
11027 (create_std_terminate_master_breakpoint)
11028 (create_exception_master_breakpoint, get_sal_arch): Update.
11029 * block.c (block_gdbarch): Update.
11030 * annotate.c (annotate_source_line): Update.
11031
11032 2020-04-17 Tom Tromey <tromey@adacore.com>
11033
11034 * auto-load.c (show_auto_load_cmd): Remove.
11035 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11036 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11037 (maintenance_print_arc_command): Remove.
11038 * tui/tui-win.c (tui_command): Remove.
11039 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11040 * tui/tui-layout.c (tui_layout_command): Remove.
11041 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11042 * python/python.c (user_set_python, user_show_python): Remove.
11043 (_initialize_python): Use add_basic_prefix_cmd,
11044 add_show_prefix_cmd.
11045 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11046 (install_gdb_commands): Use add_basic_prefix_cmd,
11047 add_show_prefix_cmd.
11048 (info_guile_command): Remove.
11049 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11050 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11051 add_show_prefix_cmd.
11052 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11053 Remove do_set and do_show parameters.
11054 * cli/cli-style.c (set_style, show_style): Remove.
11055 (_initialize_cli_style): Use add_basic_prefix_cmd,
11056 add_show_prefix_cmd.
11057 (cli_style_option::add_setshow_commands): Remove do_set and
11058 do_show parameters.
11059 (cli_style_option::add_setshow_commands): Use
11060 add_basic_prefix_cmd, add_show_prefix_cmd.
11061 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11062 (set_style_name): Remove.
11063 * cli/cli-dump.c (dump_command, append_command): Remove.
11064 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11065 (tekhex_dump_command, binary_dump_command)
11066 (binary_append_command): Remove.
11067 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11068 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11069 (init_w32_command_list): Remove; move into ...
11070 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11071 * valprint.c (set_print, show_print, set_print_raw)
11072 (show_print_raw): Remove.
11073 (_initialize_valprint): Use add_basic_prefix_cmd,
11074 add_show_prefix_cmd.
11075 * typeprint.c (set_print_type, show_print_type): Remove.
11076 (_initialize_typeprint): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 * record.c (set_record_command, show_record_command): Remove.
11079 (_initialize_record): Use add_basic_prefix_cmd,
11080 add_show_prefix_cmd.
11081 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 (info_command, show_command, set_debug, show_debug): Remove.
11084 * top.h (set_history, show_history): Don't declare.
11085 * top.c (set_history, show_history): Remove.
11086 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11087 (unset_tdesc_cmd): Remove.
11088 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11089 add_show_prefix_cmd.
11090 * symtab.c (info_module_command): Remove.
11091 (_initialize_symtab): Use add_basic_prefix_cmd.
11092 * symfile.c (overlay_command): Remove.
11093 (_initialize_symfile): Use add_basic_prefix_cmd.
11094 * sparc64-tdep.c (info_adi_command): Remove.
11095 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11096 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11097 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11098 add_show_prefix_cmd.
11099 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11100 (_initialize_serial): Use add_basic_prefix_cmd,
11101 add_show_prefix_cmd.
11102 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11103 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11104 add_show_prefix_cmd.
11105 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11106 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11107 add_show_prefix_cmd.
11108 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11109 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11110 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * remote.c (remote_command, set_remote_cmd): Remove.
11113 (_initialize_remote): Use add_basic_prefix_cmd.
11114 * record-full.c (set_record_full_command)
11115 (show_record_full_command): Remove.
11116 (_initialize_record_full): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * record-btrace.c (cmd_set_record_btrace)
11119 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11120 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11121 (cmd_show_record_btrace_pt): Remove.
11122 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11123 add_show_prefix_cmd.
11124 * ravenscar-thread.c (set_ravenscar_command)
11125 (show_ravenscar_command): Remove.
11126 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11127 add_show_prefix_cmd.
11128 * mips-tdep.c (show_mips_command, set_mips_command)
11129 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11130 add_show_prefix_cmd.
11131 * maint.c (maintenance_command, maintenance_info_command)
11132 (maintenance_check_command, maintenance_print_command)
11133 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11134 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 (show_per_command_cmd): Remove.
11137 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11138 Remove.
11139 (maintenance_show_test_settings_cmd): Remove.
11140 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11141 add_show_prefix_cmd.
11142 * maint-test-options.c (maintenance_test_options_command):
11143 Remove.
11144 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11145 * macrocmd.c (macro_command): Remove
11146 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11147 * language.c (set_check, show_check): Remove.
11148 (_initialize_language): Use add_basic_prefix_cmd,
11149 add_show_prefix_cmd.
11150 * infcmd.c (unset_command): Remove.
11151 (_initialize_infcmd): Use add_basic_prefix_cmd.
11152 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11153 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 * go32-nat.c (go32_info_dos_command): Remove.
11156 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11157 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11158 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11159 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11160 (_initialize_frame): Use add_basic_prefix_cmd,
11161 add_show_prefix_cmd.
11162 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11163 (_initialize_dcache): Use add_basic_prefix_cmd,
11164 add_show_prefix_cmd.
11165 * cp-support.c (maint_cplus_command): Remove.
11166 (_initialize_cp_support): Use add_basic_prefix_cmd.
11167 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11168 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11169 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11170 add_basic_prefix_cmd, add_show_prefix_cmd.
11171 * breakpoint.c (save_command): Remove.
11172 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11173 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11174 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11175 add_show_prefix_cmd.
11176 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11177 (set_ada_command, show_ada_command): Remove.
11178 (_initialize_ada_language): Use add_basic_prefix_cmd,
11179 add_show_prefix_cmd.
11180 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11181
11182 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11183
11184 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11185 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11186
11187 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11188
11189 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11190 warning messages.
11191
11192 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11195 import table is not at beginning of .idata section.
11196
11197 2020-04-16 Pedro Alves <palves@redhat.com>
11198
11199 * inferior.c (delete_inferior): Use delete operator directly
11200 instead of delete_program_space.
11201 * progspace.c (add_program_space): New, factored out from
11202 program_space::program_space.
11203 (remove_program_space): New, factored out from
11204 delete_program_space.
11205 (program_space::program_space): Remove intro comment. Rewrite.
11206 (program_space::~program_space): Remove intro comment. Call
11207 remove_program_space.
11208 (delete_program_space): Delete.
11209 * progspace.h (program_space::program_space): Make explicit. Move
11210 intro comment here, adjusted.
11211 (program_space::~program_space): Move intro comment here,
11212 adjusted.
11213 (delete_program_space): Remove.
11214
11215 2020-04-16 Tom Tromey <tromey@adacore.com>
11216
11217 * windows-nat.c (windows_nat::handle_access_violation): New
11218 function.
11219 * nat/windows-nat.h (handle_access_violation): Declare.
11220 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11221 windows-nat.c. Call handle_access_violation.
11222
11223 2020-04-16 Tom de Vries <tdevries@suse.de>
11224
11225 PR symtab/25791
11226 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11227 CUs without psymtab.
11228
11229 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11230
11231 * python/python.c (do_start_initialization): Don't call
11232 PyEval_InitThreads for Python 3.9 and beyond.
11233
11234 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11235
11236 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11237 thread functions.
11238 (obsd_nat_target::wait): Likewise.
11239
11240 2020-04-15 Tom Tromey <tromey@adacore.com>
11241
11242 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11243 (DEBUG_EXCEPT): Use debug_printf.
11244
11245 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * completer.c (class completion_tracker::completion_hash_entry)
11248 <hash_name>: New member function.
11249 (completion_tracker::discard_completions): New callback to hash a
11250 completion_hash_entry, pass this to htab_create_alloc.
11251
11252 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11253
11254 * windows-nat.c (windows_make_so): Warn rather than stopping with
11255 an error if realpath() fails.
11256
11257 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11258
11259 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11260 (nbsd_nat_target::info_proc): Add do_status.
11261
11262 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11263 Tom de Vries <tdevries@suse.de>
11264
11265 PR symtab/25718
11266 * psympriv.h (struct partial_symtab::read_symtab)
11267 (struct partial_symtab::expand_psymtab)
11268 (struct partial_symtab::read_dependencies): Update comments.
11269 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11270 read_symtab for includer.
11271 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11272 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11273 (struct dwarf2_include_psymtab::m_readin): Remove.
11274 (struct dwarf2_include_psymtab::includer): New member function.
11275 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11276
11277 2020-04-14 Tom de Vries <tdevries@suse.de>
11278
11279 PR symtab/25720
11280 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11281 with NULL symbol_matcher and lookup_name.
11282 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11283 and lookup_name.
11284 * dwarf2/read.c (dw2_expand_symtabs_matching)
11285 (dw2_debug_names_expand_symtabs_matching): Same.
11286 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11287 Make lookup_name a pointer. Update comment.
11288 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11289 lookup_name being a pointer.
11290 * symfile.c (expand_symtabs_matching): Same.
11291 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11292 * linespec.c (iterate_over_all_matching_symtabs): Same.
11293
11294 2020-04-13 Tom Tromey <tom@tromey.com>
11295
11296 * run-on-main-thread.c: Update include.
11297 * unittests/main-thread-selftests.c: Update include.
11298 * tui/tui-win.c: Update include.
11299 * tui/tui-io.c: Update include.
11300 * tui/tui-interp.c: Update include.
11301 * tui/tui-hooks.c: Update include.
11302 * top.h: Update include.
11303 * top.c: Update include.
11304 * ser-base.c: Update include.
11305 * remote.c: Update include.
11306 * remote-notif.c: Update include.
11307 * remote-fileio.c: Update include.
11308 * record-full.c: Update include.
11309 * record-btrace.c: Update include.
11310 * python/python.c: Update include.
11311 * posix-hdep.c: Update include.
11312 * mingw-hdep.c: Update include.
11313 * mi/mi-main.c: Update include.
11314 * mi/mi-interp.c: Update include.
11315 * main.c: Update include.
11316 * linux-nat.c: Update include.
11317 * interps.c: Update include.
11318 * infrun.c: Update include.
11319 * inf-loop.c: Update include.
11320 * event-top.c: Update include.
11321 * event-loop.c: Move to ../gdbsupport/.
11322 * event-loop.h: Move to ../gdbsupport/.
11323 * async-event.h: Update include.
11324 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11325
11326 2020-04-13 Tom Tromey <tom@tromey.com>
11327
11328 * tui/tui-win.c: Include async-event.h.
11329 * remote.c: Include async-event.h.
11330 * remote-notif.c: Include async-event.h.
11331 * record-full.c: Include async-event.h.
11332 * record-btrace.c: Include async-event.h.
11333 * infrun.c: Include async-event.h.
11334 * event-top.c: Include async-event.h.
11335 * event-loop.h: Move some declarations to async-event.h.
11336 * event-loop.c: Don't include ser-event.h or top.h. Move some
11337 code to async-event.c.
11338 * async-event.h: New file.
11339 * async-event.c: New file.
11340 * Makefile.in (COMMON_SFILES): Add async-event.c.
11341 (HFILES_NO_SRCDIR): Add async-event.h.
11342
11343 2020-04-13 Tom Tromey <tom@tromey.com>
11344
11345 * utils.c (flush_streams): New function.
11346 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11347
11348 2020-04-13 Tom Tromey <tom@tromey.com>
11349
11350 * event-loop.c (handle_file_event): Use warning, not
11351 printf_unfiltered.
11352
11353 2020-04-13 Tom Tromey <tom@tromey.com>
11354
11355 * event-loop.c: Include <chrono>.
11356
11357 2020-04-13 Tom Tromey <tom@tromey.com>
11358
11359 * gdb_select.h: Move to ../gdbsupport/.
11360 * event-loop.c: Update include path.
11361 * top.c: Update include path.
11362 * ser-base.c: Update include path.
11363 * ui-file.c: Update include path.
11364 * ser-tcp.c: Update include path.
11365 * guile/scm-ports.c: Update include path.
11366 * posix-hdep.c: Update include path.
11367 * ser-unix.c: Update include path.
11368 * gdb_usleep.c: Update include path.
11369 * mingw-hdep.c: Update include path.
11370 * inflow.c: Update include path.
11371 * infrun.c: Update include path.
11372 * event-top.c: Update include path.
11373
11374 2020-04-13 Tom Tromey <tom@tromey.com>
11375
11376 * configure: Rebuild.
11377 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11378
11379 2020-04-13 Tom Tromey <tom@tromey.com>
11380
11381 * event-loop.h (start_event_loop): Don't declare.
11382 * event-loop.c (start_event_loop): Move...
11383 * main.c (start_event_loop): ...here. Now static.
11384
11385 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11386
11387 * MAINTAINERS: Update my email address.
11388
11389 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11390
11391 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11392 IP_ALL.
11393
11394 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11395
11396 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11397 (nbsd_nat_target::info_proc): Add do_cmdline.
11398
11399 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11400
11401 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11402 (nbsd_nat_target::info_proc): Add do_cwd.
11403
11404 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11405
11406 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11407
11408 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11409
11410 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11411 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11412 (nbsd_nat_target::info_proc): New functions.
11413 * nbsd-nat.c (kinfo_get_vmmap): New function.
11414 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11415 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11416 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11417 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11418 functions.
11419 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11420 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11421 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11422 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11423 (KINFO_VME_FLAG_GROWS_DOWN): New.
11424
11425 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11426
11427 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11428 bit shift.
11429
11430 2020-04-10 Tom Tromey <tromey@adacore.com>
11431
11432 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11433
11434 2020-04-10 Tom Tromey <tromey@adacore.com>
11435
11436 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11437 separate debug files.
11438
11439 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11440
11441 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11442 Move to...
11443 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11444 ... here.
11445 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11446 Check for STATUS_WX86_BREAKPOINT.
11447 (windows_nat_target::wait): Same.
11448
11449 2020-04-10 Tom de Vries <tdevries@suse.de>
11450
11451 PR cli/25808
11452 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11453
11454 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11455
11456 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11457 (Write After Approval): Remove Tom de Vries.
11458
11459 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11460
11461 revert partially:
11462 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11463
11464 * buildsym.c (record_line): Fix undefined behavior and preserve
11465 lines at eof.
11466
11467 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11468
11469 * auxv.h (svr4_auxv_parse): New.
11470 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11471 and generic_auxv_parse.
11472 (svr4_auxv_parse): Add.
11473 * obsd-tdep.c: Include "auxv.h".
11474 (obsd_auxv_parse): Remove.
11475 (obsd_init_abi): Remove comment.
11476 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11477 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11478 * nbsd-tdep.c: Include "auxv.h".
11479 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11480
11481 2020-04-08 Tom Tromey <tromey@adacore.com>
11482
11483 * nat/windows-nat.h (last_wait_event): Don't declare.
11484 (wait_for_debug_event): Update comment.
11485 * nat/windows-nat.c (last_wait_event): Now static.
11486
11487 2020-04-08 Tom Tromey <tromey@adacore.com>
11488
11489 * windows-nat.c (wait_for_debug_event): Move to
11490 nat/windows-nat.c.
11491 * nat/windows-nat.h (wait_for_debug_event): Declare.
11492 * nat/windows-nat.c (wait_for_debug_event): Move from
11493 windows-nat.c. No longer static.
11494
11495 2020-04-08 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c (get_windows_debug_event): Use
11498 fetch_pending_stop.
11499 * nat/windows-nat.h (fetch_pending_stop): Declare.
11500 * nat/windows-nat.c (fetch_pending_stop): New function.
11501
11502 2020-04-08 Tom Tromey <tromey@adacore.com>
11503
11504 * windows-nat.c (windows_continue): Use matching_pending_stop and
11505 continue_last_debug_event.
11506 * nat/windows-nat.h (matching_pending_stop)
11507 (continue_last_debug_event): Declare.
11508 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11509 (matching_pending_stop, continue_last_debug_event): New
11510 functions.
11511
11512 2020-04-08 Tom Tromey <tromey@adacore.com>
11513
11514 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11515 (handle_exception_result): Move to nat/windows-nat.h.
11516 (DEBUG_EXCEPTION_SIMPLE): Remove.
11517 (windows_nat::handle_ms_vc_exception): New function.
11518 (handle_exception): Move to nat/windows-nat.c.
11519 (get_windows_debug_event): Update.
11520 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11521 nat/windows-nat.c.
11522 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11523 (handle_exception_result): Move from windows-nat.c.
11524 (handle_exception): Declare.
11525 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11526 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11527 windows-nat.c.
11528
11529 2020-04-08 Tom Tromey <tromey@adacore.com>
11530
11531 * windows-nat.c (exception_count, event_count): Remove.
11532 (handle_exception, get_windows_debug_event)
11533 (do_initial_windows_stuff): Update.
11534
11535 2020-04-08 Tom Tromey <tromey@adacore.com>
11536
11537 * windows-nat.c (windows_nat::handle_load_dll)
11538 (windows_nat::handle_unload_dll): Rename. No longer static.
11539 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11540 Declare.
11541
11542 2020-04-08 Tom Tromey <tromey@adacore.com>
11543
11544 * complaints.h (stop_whining): Declare at top-level.
11545 (complaint): Don't declare stop_whining.
11546
11547 2020-04-08 Tom Tromey <tromey@adacore.com>
11548
11549 * windows-nat.c (windows_nat::handle_output_debug_string):
11550 Rename. No longer static.
11551 * nat/windows-nat.h (handle_output_debug_string): Declare.
11552
11553 2020-04-08 Tom Tromey <tromey@adacore.com>
11554
11555 * windows-nat.c (current_process_handle, current_process_id)
11556 (main_thread_id, last_sig, current_event, last_wait_event)
11557 (current_windows_thread, desired_stop_thread_id, pending_stops)
11558 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11559 (display_selectors, fake_create_process)
11560 (get_windows_debug_event): Update.
11561 * nat/windows-nat.h (current_process_handle, current_process_id)
11562 (main_thread_id, last_sig, current_event, last_wait_event)
11563 (current_windows_thread, desired_stop_thread_id, pending_stops)
11564 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11565 * nat/windows-nat.c (current_process_handle, current_process_id)
11566 (main_thread_id, last_sig, current_event, last_wait_event)
11567 (current_windows_thread, desired_stop_thread_id, pending_stops)
11568 (siginfo_er): New globals. Move from windows-nat.c.
11569
11570 2020-04-08 Tom Tromey <tromey@adacore.com>
11571
11572 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11573 (handle_load_dll): Update.
11574 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11575
11576 2020-04-08 Tom Tromey <tromey@adacore.com>
11577
11578 * windows-nat.c (enum thread_disposition_type): Move to
11579 nat/windows-nat.h.
11580 (windows_nat::thread_rec): Rename from thread_rec. No longer
11581 static.
11582 (windows_add_thread, windows_nat_target::fetch_registers)
11583 (windows_nat_target::store_registers, handle_exception)
11584 (windows_nat_target::resume, get_windows_debug_event)
11585 (windows_nat_target::get_tib_address)
11586 (windows_nat_target::thread_name)
11587 (windows_nat_target::thread_alive): Update.
11588 * nat/windows-nat.h (enum thread_disposition_type): Move from
11589 windows-nat.c.
11590 (thread_rec): Declare.
11591
11592 2020-04-08 Tom Tromey <tromey@adacore.com>
11593
11594 * windows-nat.c: Add "using namespace".
11595 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11596 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11597
11598 2020-04-08 Tom Tromey <tromey@adacore.com>
11599
11600 * nat/windows-nat.h (struct windows_thread_info): Declare
11601 destructor.
11602 * nat/windows-nat.c (~windows_thread_info): New.
11603
11604 2020-04-08 Tom Tromey <tromey@adacore.com>
11605
11606 PR gdb/22992
11607 * windows-nat.c (current_event): Update comment.
11608 (last_wait_event, desired_stop_thread_id): New globals.
11609 (struct pending_stop): New.
11610 (pending_stops): New global.
11611 (windows_nat_target) <stopped_by_sw_breakpoint>
11612 <supports_stopped_by_sw_breakpoint>: New methods.
11613 (windows_fetch_one_register): Add assertions. Adjust PC.
11614 (windows_continue): Handle pending stops. Suspend other threads
11615 when stepping. Use last_wait_event
11616 (wait_for_debug_event): New function.
11617 (get_windows_debug_event): Use wait_for_debug_event. Handle
11618 pending stops. Queue spurious stops.
11619 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11620 (windows_nat_target::kill): Use wait_for_debug_event.
11621 * nat/windows-nat.h (struct windows_thread_info)
11622 <stopped_at_software_breakpoint>: New field.
11623 * nat/windows-nat.c (windows_thread_info::resume): Clear
11624 stopped_at_software_breakpoint.
11625
11626 2020-04-08 Tom Tromey <tromey@adacore.com>
11627
11628 * windows-nat.c (enum thread_disposition_type): New.
11629 (thread_rec): Replace "get_context" parameter with "disposition";
11630 change type.
11631 (windows_add_thread, windows_nat_target::fetch_registers)
11632 (windows_nat_target::store_registers, handle_exception)
11633 (windows_nat_target::resume, get_windows_debug_event)
11634 (windows_nat_target::get_tib_address)
11635 (windows_nat_target::thread_name)
11636 (windows_nat_target::thread_alive): Update.
11637
11638 2020-04-08 Tom Tromey <tromey@adacore.com>
11639
11640 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11641 (windows_continue): Use windows_continue::resume.
11642 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11643 resume>: Declare new methods.
11644 * nat/windows-nat.c: New file.
11645 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11646
11647 2020-04-08 Tom Tromey <tromey@adacore.com>
11648
11649 * windows-nat.c (windows_add_thread, windows_delete_thread)
11650 (windows_nat_target::fetch_registers)
11651 (windows_nat_target::store_registers, fake_create_process)
11652 (windows_nat_target::resume, windows_nat_target::resume)
11653 (get_windows_debug_event, windows_nat_target::wait)
11654 (windows_nat_target::pid_to_str)
11655 (windows_nat_target::get_tib_address)
11656 (windows_nat_target::get_ada_task_ptid)
11657 (windows_nat_target::thread_name)
11658 (windows_nat_target::thread_alive): Use lwp, not tid.
11659
11660 2020-04-08 Tom Tromey <tromey@adacore.com>
11661
11662 * windows-nat.c (handle_exception)
11663 (windows_nat_target::thread_name): Update.
11664 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11665 <name>: Now unique_xmalloc_ptr.
11666
11667 2020-04-08 Tom Tromey <tromey@adacore.com>
11668
11669 * windows-nat.c (thread_rec)
11670 (windows_nat_target::fetch_registers): Update.
11671 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11672 Update comment.
11673 <debug_registers_changed, reload_context>: Now bool.
11674
11675 2020-04-08 Tom Tromey <tromey@adacore.com>
11676
11677 * windows-nat.c (windows_add_thread): Use new.
11678 (windows_init_thread_list, windows_delete_thread): Use delete.
11679 (get_windows_debug_event): Update.
11680 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11681 destructor, and initializers.
11682
11683 2020-04-08 Tom Tromey <tromey@adacore.com>
11684
11685 * windows-nat.c (struct windows_thread_info): Remove.
11686 * nat/windows-nat.h: New file.
11687
11688 2020-04-08 Tom Tromey <tromey@adacore.com>
11689
11690 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11691 (thread_rec, windows_add_thread, windows_delete_thread)
11692 (windows_continue): Update.
11693
11694 2020-04-08 Tom Tromey <tromey@adacore.com>
11695
11696 * windows-nat.c (struct windows_thread_info): Remove typedef.
11697 (thread_head): Remove.
11698 (thread_list): New global.
11699 (thread_rec, windows_add_thread, windows_init_thread_list)
11700 (windows_delete_thread, windows_continue): Update.
11701
11702 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11703
11704 * windows-tdep.h (windows_init_abi): Add comment.
11705 (cygwin_init_abi): New declaration.
11706 * windows-tdep.c: Split signal enumeration in two, one for
11707 Windows and one for Cygwin.
11708 (windows_gdb_signal_to_target): Only deal with signal of the
11709 Windows OS ABI.
11710 (cygwin_gdb_signal_to_target): New function.
11711 (windows_init_abi): Rename to windows_init_abi_common, don't set
11712 gdb_signal_to_target gdbarch method. Add new new function with
11713 this name.
11714 (cygwin_init_abi): New function.
11715 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11716 comment. Don't call windows_init_abi.
11717 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11718 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11719 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11720 i386_windows_init_abi_common, don't call windows_init_abi. Add
11721 a new function of this name.
11722 (i386_cygwin_init_abi): New function.
11723 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11724 OS ABI Cygwin.
11725
11726 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11727
11728 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11729 parameter.c.
11730 (dwarf2_read_gdb_index): Update.
11731
11732 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11733
11734 * nbsd-tdep.c: Include "objfiles.h".
11735 (nbsd_skip_solib_resolver): New.
11736 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11737
11738 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11739
11740 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11741 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11742 with DW_LLE_base_addressx are being emitted in DWARFv5.
11743 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11744 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11745 unsigned integer.
11746
11747 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11748
11749 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11750 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11751 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11752 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11753 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11754 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11755 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11756
11757
11758 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11759
11760 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11761 (read_loclist_index): New function definition.
11762 (lookup_loclist_base): New function definition.
11763 (read_loclist_header): New function definition.
11764 (dwarf2_cu): Add loclist_base and loclist_header field.
11765 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11766 (read_full_die_1): Read the value of DW_AT_loclists_base.
11767 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11768 (read_attribute_value): Handle DW_FORM_loclistx.
11769 (skip_one_die): Handle DW_FORM_loclistx.
11770 (loclist_header): New structure declaration.
11771 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11772
11773 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11774
11775 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11776 constructor. Remove `addr` parameter from other constructor and
11777 add `per_cu` parameter.
11778 * dwarf2/read.c (create_partial_symtab): Update.
11779
11780 2020-04-07 Tom de Vries <tdevries@suse.de>
11781
11782 PR symtab/25796
11783 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11784 (partial_die_info::fixup): Inherit has_const_value.
11785
11786 2020-04-07 Tom de Vries <tdevries@suse.de>
11787
11788 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11789 symbols without address.
11790
11791 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11792
11793 * nbsd-nat.h (struct thread_info): Add forward declaration.
11794 (nbsd_nat_target::thread_alive): Add.
11795 (nbsd_nat_target::thread_name): Likewise.
11796 (nbsd_nat_target::update_thread_list): Likewise.
11797 (update_thread_list::post_attach): Likewise.
11798 (post_attach::pid_to_str): Likewise.
11799 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11800 (nbsd_thread_lister): Add.
11801 (nbsd_nat_target::thread_alive): Likewise.
11802 (nbsd_nat_target::thread_name): Likewise.
11803 (nbsd_add_threads): Likewise.
11804 (update_thread_list::post_attach): Likewise.
11805 (nbsd_nat_target::update_thread_list): Likewise.
11806 (post_attach::pid_to_str): Likewise.
11807
11808 2020-04-06 Tom Tromey <tromey@adacore.com>
11809
11810 * ada-valprint.c (print_variant_part): Extract the variant field.
11811 (print_field_values): Use the field as the outer value when
11812 recursing.
11813
11814 2020-04-06 Tom Tromey <tromey@adacore.com>
11815
11816 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11817 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11818 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11819 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11820 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11821
11822 2020-04-06 Tom Tromey <tromey@adacore.com>
11823
11824 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11825 TYPE_CODE_ERROR.
11826
11827 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11828
11829 * nbsd-tdep.c: Include "gdbarch.h".
11830 Define enum with NetBSD signal numbers.
11831 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11832 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11833 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11834 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11835 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11836 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11837 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11838 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11839 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11840 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11841 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11842 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11843
11844 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11845
11846 PR gdb/25325
11847 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11848
11849 2020-04-03 Tom Tromey <tromey@adacore.com>
11850
11851 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11852 Read constant block.
11853
11854 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11855
11856 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11857 (gdb_bfd_get_full_section_contents): New declaration.
11858 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11859 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11860 gdb_bfd_get_full_section_contents.
11861
11862 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11863
11864 * exec.c (build_section_table): Replace internal_error with
11865 gdb_assert.
11866 (section_table_xfer_memory_partial): Likewise.
11867 * mdebugread.c (parse_partial_symbols): Likewise.
11868 * psymtab.c (lookup_partial_symbol): Likewise.
11869 * utils.c (wrap_here): Likewise.
11870
11871 2020-04-02 Tom Tromey <tromey@adacore.com>
11872
11873 * f-lang.c (build_fortran_types): Use arch_type to initialize
11874 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11875
11876 2020-04-02 Tom Tromey <tromey@adacore.com>
11877
11878 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11879 of attributes.
11880
11881 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11882 Bernd Edlinger <bernd.edlinger@hotmail.de>
11883 Tom Tromey <tromey@adacore.com>
11884
11885 * buildsym.c (buildsym_compunit::record_line): Remove
11886 deduplication code.
11887
11888 2020-04-02 Tom de Vries <tdevries@suse.de>
11889
11890 PR ada/24671
11891 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11892
11893 2020-04-02 Tom de Vries <tdevries@suse.de>
11894
11895 * dwarf2/read.c (dwarf2_gdb_index_functions,
11896 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11897 NULL.
11898 * psymtab.c (psym_lookup_global_symbol_language): New function.
11899 (psym_functions): Init psym_lookup_global_symbol_language with
11900 psym_lookup_global_symbol_language.
11901 * symfile-debug.c (debug_sym_quick_functions): Init
11902 lookup_global_symbol_language with NULL.
11903 * symfile.c (set_initial_language): Remove fixme comment.
11904 * symfile.h (struct quick_symbol_functions): Add
11905 lookup_global_symbol_language.
11906 * symtab.c (find_quick_global_symbol_language): New function.
11907 (find_main_name): Use find_quick_global_symbol_language.
11908
11909 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11910
11911 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11912
11913 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11914
11915 * buildsym.c (record_line): Fix undefined behavior and preserve
11916 lines at eof.
11917
11918 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11919
11920 * buildsym.c (record_line): Fix the resizing condition.
11921
11922 2020-04-01 Tom Tromey <tom@tromey.com>
11923
11924 * value.h (value_literal_complex): Add comment.
11925 * valops.c (value_literal_complex): Refer to value.h.
11926
11927 2020-04-01 Tom Tromey <tom@tromey.com>
11928
11929 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11930 (scalar_type): New rule, from typebase.
11931 (typebase): Use scalar_type. Recognize complex types.
11932 (field_name): Handle FLOAT_KEYWORD.
11933 (ident_tokens): Add _Complex and __complex__.
11934
11935 2020-04-01 Tom Tromey <tom@tromey.com>
11936
11937 PR exp/25299:
11938 * valarith.c (promotion_type, complex_binop): New functions.
11939 (scalar_binop): Handle complex numbers. Use promotion_type.
11940 (value_pos, value_neg, value_complement): Handle complex numbers.
11941
11942 2020-04-01 Tom Tromey <tom@tromey.com>
11943
11944 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11945 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11946 (parse_number): Handle complex numbers.
11947
11948 2020-04-01 Tom Tromey <tom@tromey.com>
11949
11950 * c-valprint.c (c_decorations): Change complex suffix to "i".
11951
11952 2020-04-01 Tom Tromey <tom@tromey.com>
11953
11954 * valprint.c (generic_value_print_complex): Use accessors.
11955 * value.h (value_real_part, value_imaginary_part): Declare.
11956 * valops.c (value_real_part, value_imaginary_part): New
11957 functions.
11958 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11959
11960 2020-04-01 Tom Tromey <tom@tromey.com>
11961
11962 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11963 (read_range_type): Update.
11964 * mdebugread.c (basic_type): Update.
11965 * go-lang.c (build_go_types): Use init_complex_type.
11966 * gdbtypes.h (struct main_type) <complex_type>: New member.
11967 (init_complex_type): Update.
11968 (arch_complex_type): Don't declare.
11969 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11970 Make name if none given. Use alloc_type_copy. Look for cached
11971 complex type.
11972 (arch_complex_type): Remove.
11973 (gdbtypes_post_init): Use init_complex_type.
11974 * f-lang.c (build_fortran_types): Use init_complex_type.
11975 * dwarf2/read.c (read_base_type): Update.
11976 * d-lang.c (build_d_types): Use init_complex_type.
11977 * ctfread.c (read_base_type): Update.
11978
11979 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11980
11981 * infrun.c (stop_all_threads): Update assertion, plus when
11982 stopping threads, take into account that we might be trying
11983 to stop an all-stop target.
11984 (stop_waiting): Call 'stop_all_threads' if there exists a
11985 non-stop target.
11986
11987 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11988
11989 * target.h (exists_non_stop_target): New function declaration.
11990 * target.c (exists_non_stop_target): New function.
11991
11992 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11993
11994 PR gdb/24789
11995 * eval.c (is_integral_or_integral_reference): New function.
11996 (evaluate_subexp_standard): Allow integer references in
11997 pointer arithmetic.
11998
11999 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12000
12001 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12002 check for no ptid in the stop reply when the target is non-stop.
12003
12004 2020-04-01 Tom Tromey <tromey@adacore.com>
12005
12006 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12007 "name" parameter to rvalue reference. Initialize m_name_holder.
12008 <lookup_name_info>: New overloads.
12009 <name>: Return gdb::string_view.
12010 <c_str>: New method.
12011 <make_ignore_params>: Update.
12012 <search_name_hash>: Update.
12013 <language_lookup_name>: Return const char *.
12014 <m_name>: Change type.
12015 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12016 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12017 (lookup_name_info::match_any): Update.
12018 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12019 Update.
12020 * minsyms.c (linkage_name_str): Update.
12021 * language.c (default_symbol_name_matcher): Update.
12022 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12023 Update.
12024 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12025 (ada_lookup_name_info::ada_lookup_name_info): Update.
12026 (literal_symbol_name_matcher): Update.
12027
12028 2020-04-01 Tom Tromey <tromey@adacore.com>
12029
12030 * psymtab.c (psymtab_search_name): Remove function.
12031 (psym_lookup_symbol): Create search name and lookup name here.
12032 (lookup_partial_symbol): Remove "name" parameter; add
12033 lookup_name.
12034 (psym_expand_symtabs_for_function): Update.
12035
12036 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12037
12038 PR tui/25597:
12039 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12040
12041 2020-03-31 Tom Tromey <tromey@adacore.com>
12042
12043 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12044 memcpy.
12045
12046 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12047
12048 * features/riscv/32bit-csr.xml: Regenerated.
12049 * features/riscv/64bit-csr.xml: Regenerated.
12050
12051 2020-03-30 Tom Tromey <tromey@adacore.com>
12052
12053 * ada-valprint.c (print_variant_part): Update.
12054 * ada-lang.h (ada_which_variant_applies): Update.
12055 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12056 outer_valaddr parameters; replace with "outer" value parameter.
12057 (to_fixed_variant_branch_type): Update.
12058
12059 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12060
12061 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12062 <list>. Remove inclusion of observable.h.
12063 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12064 (struct arch_lwp_info): New struct.
12065 (class ppc_linux_dreg_interface): New class.
12066 (struct ppc_linux_process_info): New struct.
12067 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12068 <low_new_clone, low_forget_process, low_prepare_to_resume>
12069 <copy_thread_dreg_state, mark_thread_stale>
12070 <mark_debug_registers_changed, register_hw_breakpoint>
12071 <clear_hw_breakpoint, register_wp, clear_wp>
12072 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12073 <num_memory_accesses, get_trigger_type>
12074 <create_watchpoint_request, hwdebug_point_cmp>
12075 <init_arch_lwp_info, get_arch_lwp_info>
12076 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12077 methods.
12078 <struct ptid_hash>: New inner struct.
12079 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12080 members.
12081 (saved_dabr_value, hwdebug_info, max_slots_number)
12082 (struct hw_break_tuple, struct thread_points, ppc_threads)
12083 (have_ptrace_hwdebug_interface)
12084 (hwdebug_find_thread_points_by_tid)
12085 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12086 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12087 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12088 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12089 use m_dreg_interface.
12090 (hwdebug_point_cmp): Change to...
12091 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12092 reference arguments instead of pointers.
12093 (ppc_linux_nat_target::ranged_break_num_registers): Use
12094 m_dreg_interface.
12095 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12096 m_dreg_interface. Call register_hw_breakpoint.
12097 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12098 m_dreg_interface. Call clear_hw_breakpoint.
12099 (get_trigger_type): Change to...
12100 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12101 comment.
12102 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12103 use m_dreg_interface. Call register_hw_breakpoint.
12104 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12105 use m_dreg_interface. Call clear_hw_breakpoint.
12106 (can_use_watchpoint_cond_accel): Change to...
12107 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12108 method. Update comment, use m_dreg_interface and
12109 m_process_info.
12110 (calculate_dvc): Change to...
12111 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12112 m_dreg_interface.
12113 (num_memory_accesses): Change to...
12114 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12115 (check_condition): Change to...
12116 (ppc_linux_nat_target::check_condition): ...this method.
12117 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12118 comment, use m_dreg_interface.
12119 (create_watchpoint_request): Change to...
12120 (ppc_linux_nat_target::create_watchpoint_request): ...this
12121 method. Use m_dreg_interface.
12122 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12123 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12124 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12125 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12126 (ppc_linux_nat_target::low_forget_process)
12127 (ppc_linux_nat_target::low_new_fork)
12128 (ppc_linux_nat_target::low_new_clone)
12129 (ppc_linux_nat_target::low_delete_thread)
12130 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12131 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12132 only call mark_thread_stale.
12133 (ppc_linux_thread_exit): Remove.
12134 (ppc_linux_nat_target::stopped_data_address): Change to...
12135 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12136 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12137 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12138 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12139 comment. Call low_stopped_data_address.
12140 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12141 m_dreg_interface.
12142 (ppc_linux_nat_target::masked_watch_num_registers): Use
12143 m_dreg_interface.
12144 (ppc_linux_nat_target::copy_thread_dreg_state)
12145 (ppc_linux_nat_target::mark_thread_stale)
12146 (ppc_linux_nat_target::mark_debug_registers_changed)
12147 (ppc_linux_nat_target::register_hw_breakpoint)
12148 (ppc_linux_nat_target::clear_hw_breakpoint)
12149 (ppc_linux_nat_target::register_wp)
12150 (ppc_linux_nat_target::clear_wp)
12151 (ppc_linux_nat_target::init_arch_lwp_info)
12152 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12153 (_initialize_ppc_linux_nat): Remove observer callback.
12154
12155 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12156
12157 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12158 (ppc_linux_nat_target::auxv_parse)
12159 (ppc_linux_nat_target::read_description)
12160 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12161 Move up.
12162
12163 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12164
12165 * linux-nat.h (low_new_clone): New method.
12166 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12167
12168 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12169
12170 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12171 (dbx_expand_psymtab): ... this.
12172 (start_psymtab): Update.
12173 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12174 (mdebug_expand_psymtab): ... this.
12175 (parse_partial_symbols): Update.
12176 (new_psymtab): Update.
12177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12178 (xcoff_expand_psymtab): ... this.
12179 (xcoff_start_psymtab): Update.
12180
12181 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12182
12183 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12184 <expand_dependencies>: ... this.
12185 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12186 (partial_symtab::expand_dependencies): ... this.
12187 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12188 Update.
12189 (dwarf2_psymtab::expand_psymtab): Update.
12190 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12191 * mdebugread.c (psymtab_to_symtab_1): Update.
12192 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12193
12194 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12195
12196 * psympriv.h (discard_psymtab): Remove.
12197 * dbxread.c (dbx_end_psymtab): Update.
12198 * xcoffread.c (xcoff_end_psymtab): Update.
12199
12200 2020-03-28 Tom Tromey <tom@tromey.com>
12201
12202 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12203 comment.
12204
12205 2020-03-28 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12208
12209 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12210
12211 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12212
12213 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12214
12215 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12216
12217 2020-03-26 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12220 (mark_common_block_symbol_computed, read_tag_string_type)
12221 (attr_to_dynamic_prop, read_subrange_type): Update.
12222 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12223 to be methods on struct attribute.
12224 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12225 (read_call_site_scope, partial_die_info::read)
12226 (partial_die_info::read, lookup_die_type, follow_die_ref):
12227 Update.
12228 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12229 from dwarf2_get_ref_die_offset.
12230 (attribute::constant_value): New method, from
12231 dwarf2_get_attr_constant_value.
12232 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12233 Declare method.
12234 <constant_value>: New method.
12235
12236 2020-03-26 Tom Tromey <tom@tromey.com>
12237
12238 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12239 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12240 (dwarf_type_encoding_name): Move to stringify.c.
12241 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12242 * dwarf2/stringify.c: New file.
12243 * dwarf2/stringify.h: New file.
12244
12245 2020-03-26 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12248 Rewrite.
12249
12250 2020-03-26 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12253 methods.
12254 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12255 (lookup_ranges_base): Likewise.
12256 (read_cutu_die_from_dwo, read_full_die_1): Update.
12257
12258 2020-03-26 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/read.c (read_import_statement, read_file_scope)
12261 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12262 (read_lexical_block_scope, read_call_site_scope)
12263 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12264 (handle_struct_member_die, process_structure_scope)
12265 (update_enumeration_type_from_children)
12266 (process_enumeration_scope, read_array_type, read_common_block)
12267 (read_namespace, read_module, read_subroutine_type): Update.
12268 (sibling_die): Remove.
12269
12270 2020-03-26 Tom Tromey <tom@tromey.com>
12271
12272 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12273 (build_type_psymtabs_reader, read_structure_type)
12274 (read_enumeration_type, read_full_die_1): Update.
12275 (dwarf2_attr_no_follow): Move to die.h.
12276 * dwarf2/die.h (struct die_info) <attr>: New method.
12277
12278 2020-03-26 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12281 <base_address>: Now an optional.
12282 (dwarf2_find_base_address, dwarf2_rnglists_process)
12283 (dwarf2_ranges_process, fill_in_loclist_baton)
12284 (dwarf2_symbol_mark_computed): Update.
12285
12286 2020-03-26 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2/read.c (struct die_info): Move to die.h.
12289 * dwarf2/die.h: New file.
12290
12291 2020-03-26 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12294 * dwarf2/read.c
12295 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12296 Move to line-header.c.
12297 (read_checked_initial_length_and_offset, read_formatted_entries):
12298 Likewise.
12299 (dwarf_decode_line_header): Split into two.
12300 * dwarf2/line-header.c
12301 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12302 Move from read.c.
12303 (read_checked_initial_length_and_offset, read_formatted_entries):
12304 Likewise.
12305 (dwarf_decode_line_header): New function, split from read.c.
12306
12307 2020-03-26 Tom Tromey <tom@tromey.com>
12308
12309 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12310 Declare method.
12311 * dwarf2/read.c (read_attribute_value): Update.
12312 (dwarf2_per_objfile::read_line_string): Rename from
12313 read_indirect_line_string.
12314 (read_formatted_entries): Update.
12315
12316 2020-03-26 Tom Tromey <tom@tromey.com>
12317
12318 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12319 variable.
12320
12321 2020-03-26 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12324 const.
12325 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12326 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12327 parameter const.
12328
12329 2020-03-26 Tom Tromey <tom@tromey.com>
12330
12331 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12332 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12333 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12334 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12335
12336 2020-03-26 Tom Tromey <tom@tromey.com>
12337
12338 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12339 file_names_size, file_full_name, file_file_name>: Use const.
12340 <file_name_at, file_names>: Add const overload.
12341 * dwarf2/line-header.c (line_header::file_file_name)
12342 (line_header::file_full_name): Update.
12343
12344 2020-03-26 Tom Tromey <tom@tromey.com>
12345
12346 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12347 (macro_start_file, consume_improper_spaces)
12348 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12349 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12350 (dwarf_decode_macros): Move to macro.c.
12351 * dwarf2/macro.c: New file.
12352 * dwarf2/macro.h: New file.
12353 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12354
12355 2020-03-26 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12358 method.
12359 * dwarf2/section.c: New method. From
12360 read_indirect_string_at_offset_from.
12361 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12362 (read_indirect_string_at_offset_from): Move to section.c.
12363 (read_indirect_string_at_offset): Rewrite.
12364 (read_indirect_line_string_at_offset): Remove.
12365 (read_indirect_string, read_indirect_line_string)
12366 (dwarf_decode_macro_bytes): Update.
12367
12368 2020-03-26 Tom Tromey <tom@tromey.com>
12369
12370 * dwarf2/section.h (struct dwarf2_section_info)
12371 <overload_complaint>: Declare.
12372 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12373 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12374 Rename from dwarf2_section_buffer_overflow_complaint.
12375 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12376 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12377
12378 2020-03-26 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12381 Declare.
12382 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12383 Move from read.c.
12384 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12385 to section.c.
12386
12387 2020-03-26 Tom Tromey <tom@tromey.com>
12388
12389 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12390
12391 2020-03-26 Tom Tromey <tom@tromey.com>
12392
12393 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12394 "builder".
12395 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12396 parameter.
12397 (dwarf_decode_macros): Update.
12398
12399 2020-03-26 Tom Tromey <tom@tromey.com>
12400
12401 * dwarf2/read.c (read_attribute_value): Update.
12402 (read_indirect_string_from_dwz): Move to dwz.c; change into
12403 method.
12404 (dwarf_decode_macro_bytes): Update.
12405 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12406 * dwarf2/dwz.c: New file.
12407 * Makefile.in (COMMON_SFILES): Add dwz.c.
12408
12409 2020-03-26 Tom Tromey <tom@tromey.com>
12410
12411 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12412 * dwarf2/read.c: Add include.
12413 * dwarf2/index-write.c: Add include.
12414 * dwarf2/index-cache.c: Add include.
12415 * dwarf2/dwz.h: New file.
12416
12417 2020-03-25 Tom Tromey <tom@tromey.com>
12418
12419 * compile/compile-object-load.c (get_out_value_type): Mention
12420 correct symbol name in error message.
12421
12422 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12423
12424 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12425
12426 2020-03-25 Tom de Vries <tdevries@suse.de>
12427
12428 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12429 * symmisc.c (dump_symtab_1): Print user and includes fields.
12430 (maintenance_info_symtabs): Same.
12431
12432 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12433
12434 PR gdb/25534
12435 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12436 (riscv_regcache_cooked_write): New function.
12437 (riscv_push_dummy_call): Use new function.
12438 (riscv_return_value): Likewise.
12439
12440 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12441
12442 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12443 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12444 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12445 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12446 * infrun.c (follow_fork): Likewise.
12447 (follow_fork_inferior): Likewise.
12448 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12449 * linux-nat.h (class linux_nat_target): Likewise.
12450 * remote.c (class remote_target) <follow_fork>: Likewise.
12451 (remote_target::follow_fork): Likewise.
12452 * target-delegates.c: Re-generate.
12453 * target.c (default_follow_fork): Likewise.
12454 (target_follow_fork): Likewise.
12455 * target.h (struct target_ops) <follow_fork>: Likewise.
12456 (target_follow_fork): Likewise.
12457
12458 2020-03-24 Tom de Vries <tdevries@suse.de>
12459
12460 * psymtab.c (maintenance_info_psymtabs): Print user field.
12461
12462 2020-03-20 Tom Tromey <tromey@adacore.com>
12463
12464 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12465 const.
12466 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12467 const.
12468
12469 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * ptrace.m4: Don't check for ptrace declaration.
12472 * config.in: Re-generate.
12473 * configure: Re-generate.
12474 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12475 not defined.
12476
12477 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12478
12479 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12480 `PTRACE_TYPE_RET'.
12481 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12482 * sparc-nat.c (gdb_ptrace): Likewise.
12483 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12484
12485 2020-03-20 Tom Tromey <tromey@adacore.com>
12486
12487 * c-exp.y (lex_one_token): Fix assert.
12488
12489 2020-03-20 Tom Tromey <tromey@adacore.com>
12490
12491 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12492 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12493 strncpy call.
12494
12495 2020-03-20 Tom Tromey <tromey@adacore.com>
12496
12497 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12498
12499 2020-03-20 Tom Tromey <tromey@adacore.com>
12500
12501 * ada-valprint.c (print_variant_part): Remove parameters; switch
12502 to value-based API.
12503 (print_field_values): Likewise.
12504 (ada_val_print_struct_union): Likewise.
12505 (ada_value_print_1): Update.
12506
12507 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12508
12509 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12510 nbsd_nat_target instead of inf_ptrace_target.
12511 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12512 nbsd_nat_target.
12513
12514 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12515
12516 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12517 it to the ptrace call.
12518 * (store_registers): Likewise.
12519
12520 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12521
12522 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12523 it to the ptrace call.
12524 * (store_registers): Likewise.
12525
12526 2020-03-19 Luis Machado <luis.machado@linaro.org>
12527
12528 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12529 valid, fetch vg value from ptrace.
12530
12531 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12532 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12533 * inf-ptrace.c: Likewise.
12534 * (gdb_ptrace): Add.
12535 * (inf_ptrace_target::resume): Update.
12536 * (inf_ptrace_target::xfer_partial): Likewise.
12537 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12538 * (inf_ptrace_peek_poke): Update.
12539
12540 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12541
12542 * x86-bsd-nat.c (gdb_ptrace): New.
12543 * (x86bsd_dr_set): Add new argument `ptid'.
12544 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12545 x86bsd_dr_set_addr): Update.
12546
12547 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12548
12549 * remote.c (remote_target::process_stop_reply): Handle events for
12550 all threads differently.
12551
12552 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12553
12554 * completer.c (completion_tracker::remove_completion): Define new
12555 function.
12556 * completer.h (completion_tracker::remove_completion): Declare new
12557 function.
12558 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12559 when adding a C++ function symbol.
12560
12561 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12562
12563 * completer.c (completion_tracker::completion_hash_entry): Define
12564 new class.
12565 (advance_to_filename_complete_word_point): Call
12566 recompute_lowest_common_denominator.
12567 (completion_tracker::completion_tracker): Call discard_completions
12568 to setup the hash table.
12569 (completion_tracker::discard_completions): Allow for being called
12570 from the constructor, pass new equal function, and element deleter
12571 when constructing the hash table. Initialise new class member
12572 variables.
12573 (completion_tracker::maybe_add_completion): Remove use of
12574 m_entries_vec, and store more information into m_entries_hash.
12575 (completion_tracker::recompute_lcd_visitor): New function, most
12576 content taken from...
12577 (completion_tracker::recompute_lowest_common_denominator):
12578 ...here, this now just visits each item in the hash calling the
12579 above visitor.
12580 (completion_tracker::build_completion_result): Remove use of
12581 m_entries_vec, call recompute_lowest_common_denominator.
12582 * completer.h (completion_tracker::have_completions): Remove use
12583 of m_entries_vec.
12584 (completion_tracker::completion_hash_entry): Declare new class.
12585 (completion_tracker::recompute_lowest_common_denominator): Change
12586 function signature.
12587 (completion_tracker::recompute_lcd_visitor): Declare new function.
12588 (completion_tracker::m_entries_vec): Delete.
12589 (completion_tracker::m_entries_hash): Initialize to NULL.
12590 (completion_tracker::m_lowest_common_denominator_valid): New
12591 member variable.
12592 (completion_tracker::m_lowest_common_denominator_max_length): New
12593 member variable.
12594
12595 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12596
12597 * regformats/regdef.h: Put reg in gdb namespace.
12598
12599 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12600
12601 * i386-bsd-nat.c (gdb_ptrace): New.
12602 * (i386bsd_fetch_inferior_registers,
12603 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12604 * (i386bsd_fetch_inferior_registers,
12605 i386bsd_store_inferior_registers) Use gdb_ptrace.
12606
12607 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12608
12609 * amd64-bsd-nat.c (gdb_ptrace): New.
12610 * (amd64bsd_fetch_inferior_registers,
12611 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12612 * (amd64bsd_fetch_inferior_registers,
12613 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12614
12615 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12616
12617 * user-regs.c (user_reg::read): Rename to...
12618 (user_reg::xread): ...this.
12619 * (append_user_reg): Rename argument `read' to `xread'.
12620 * (user_reg_add_builtin): Likewise.
12621 * (user_reg_add): Likewise.
12622 * (value_of_user_reg): Likewise.
12623
12624 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12625
12626 * sparc-nat.c (gdb_ptrace): New.
12627 * sparc-nat.c (sparc_fetch_inferior_registers)
12628 (sparc_store_inferior_registers) Remove obsolete comment.
12629 * sparc-nat.c (sparc_fetch_inferior_registers)
12630 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12631 * sparc-nat.c (sparc_fetch_inferior_registers)
12632 (sparc_store_inferior_registers) Use gdb_ptrace.
12633
12634 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12635
12636 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12637 it to the ptrace call.
12638 * sh-nbsd-nat.c (store_registers): Likewise.
12639
12640 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12641
12642 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12643 nbsd_nat_target instead of inf_ptrace_target.
12644 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12645 nbsd_nat_target.
12646
12647 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12648
12649 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12650
12651 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12652
12653 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12654 <sys/sysctl.h>.
12655 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12656
12657 2020-03-17 Tom de Vries <tdevries@suse.de>
12658
12659 PR gdb/23710
12660 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12661 fields.
12662 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12663 fields.
12664 (process_imported_unit_die): Skip import of c++ CUs.
12665
12666 2020-03-16 Tom Tromey <tom@tromey.com>
12667
12668 * p-valprint.c (pascal_object_print_value): Initialize
12669 base_value.
12670
12671 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12672 Shahab Vahedi <shahab@synopsys.com>
12673
12674 * Makefile.in: Add arch/arc.o
12675 * configure.tgt: Likewise.
12676 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12677 (_initialize_arc_tdep): Don't initialize old target descriptions.
12678 (arc_read_description): New function to cache target descriptions.
12679 * arc-tdep.h (arc_read_description): Add proto type.
12680 * arch/arc.c: New file.
12681 * arch/arc.h: Likewise.
12682 * features/Makefile: Replace old target descriptions with new.
12683 * features/arc-arcompact.c: Remove.
12684 * features/arc-arcompact.xml: Likewise.
12685 * features/arc-v2.c: Likewise
12686 * features/arc-v2.xml: Likewise
12687 * features/arc/aux-arcompact.xml: New file.
12688 * features/arc/aux-v2.xml: Likewise.
12689 * features/arc/core-arcompact.xml: Likewise.
12690 * features/arc/core-v2.xml: Likewise.
12691 * features/arc/aux-arcompact.c: Generate.
12692 * features/arc/aux-v2.c: Likewise.
12693 * features/arc/core-arcompact.c: Likewise.
12694 * features/arc/core-v2.c: Likewise.
12695 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12696
12697 2020-03-16 Tom Tromey <tromey@adacore.com>
12698
12699 PR gdb/25663:
12700 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12701 putting value into bcache.
12702
12703 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12704
12705 PR gdb/21500
12706 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12707 to...
12708 (amd64_windows_init_abi_common): ... this. Don't set size of
12709 long type.
12710 (amd64_windows_init_abi): New function.
12711 (amd64_cygwin_init_abi): New function.
12712 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12713 the Cygwin OS ABI.
12714 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12715 comment.
12716
12717 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12720 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12721 (pe_import_directory_entry): New struct type.
12722 (is_linked_with_cygwin_dll): New function.
12723 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12724 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12725 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12726
12727 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12728
12729 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12730 i386_cygwin_core_osabi_sniffer.
12731
12732 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * i386-cygwin-tdep.c: Rename to...
12735 * i386-windows-tdep.c: ... this.
12736 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12737 i386-windows-tdep.c.
12738 * configure.tgt: Likewise.
12739
12740 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12741
12742 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12743 * osabi.c (gdb_osabi_names): Add "Windows".
12744 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12745 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12746 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12747 i386_cygwin_osabi_sniffer.
12748 (_initialize_i386_cygwin_tdep): Register OS ABI
12749 GDB_OSABI_WINDOWS for i386.
12750 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12751 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12752 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12753 for x86-64.
12754 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12755 when the target matches '*-*-mingw*'.
12756
12757 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * defs.h (enum gdb_osabi): Move to...
12760 * osabi.h (enum gdb_osabi): ... here.
12761 * gdbarch.sh: Include osabi.h in gdbarch.h.
12762 * gdbarch.h: Re-generate.
12763
12764 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12767 function.
12768 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12769
12770 2020-03-14 Tom Tromey <tom@tromey.com>
12771
12772 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12773 for C++.
12774 (c_type_print_modifier): Likewise. Add "language" parameter.
12775 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12776 (c_type_print_base_1): Update.
12777 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12778 constants.
12779 * type-stack.c (type_stack::insert): Handle tp_atomic and
12780 tp_restrict.
12781 (type_stack::follow_type_instance_flags): Likewise.
12782 (type_stack::follow_types): Likewise. Merge type-following code.
12783 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12784 (space_identifier, cv_with_space_id)
12785 (const_or_volatile_or_space_identifier_noopt)
12786 (const_or_volatile_or_space_identifier): Remove.
12787 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12788 rules.
12789 (ptr_operator, typebase): Update.
12790 (enum token_flag) <FLAG_C>: New constant.
12791 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12792 "_Atomic".
12793 (lex_one_token): Handle FLAG_C.
12794
12795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12798 it to the ptrace call.
12799 * m68k-bsd-nat.c (store_registers): Likewise.
12800
12801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12802
12803 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12804 gdb_byte *.
12805 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12806 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12807 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12808
12809 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12810
12811 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12812 nbsd_nat_target instead of inf_ptrace_target.
12813 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12814 nbsd_nat_target.
12815
12816 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12817
12818 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12819 register_t.
12820
12821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12822
12823 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12824 it to the ptrace call.
12825 * alpha-bsd-nat.c (store_registers): Likewise.
12826
12827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12828
12829 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12830 includes.
12831 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12832 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12833 fill_fpregset): Likewise.
12834
12835 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12836
12837 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12838 nbsd_nat_target instead of inf_ptrace_target.
12839 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12840 nbsd_nat_target.
12841
12842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12843
12844 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12845 register_t.
12846
12847 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12848
12849 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12850 it to the ptrace call.
12851 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12852 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12853 * arm-nbsd-nat.c (store_register): Likewise.
12854 * arm-nbsd-nat.c (store_regs): Likewise.
12855 * arm-nbsd-nat.c (store_fp_register): Likewise.
12856 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12857
12858 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12859
12860 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12861 nbsd_nat_target instead of inf_ptrace_target.
12862 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12863 nbsd_nat_target.
12864
12865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12866
12867 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12868 it to the ptrace call.
12869 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12870
12871 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12872
12873 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12874 it to the ptrace call.
12875 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12876
12877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12878
12879 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12880 gdb_byte *.
12881 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12882
12883 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12884
12885 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12886 instead of inf_ptrace_target.
12887 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12888 nbsd_nat_target.
12889
12890 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12891
12892 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12893 register_t.
12894
12895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12898 register_t.
12899
12900 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12901
12902 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12903 register_t.
12904
12905 2020-03-13 Tom Tromey <tom@tromey.com>
12906
12907 * value.h (val_print): Don't declare.
12908 * valprint.h (val_print_array_elements)
12909 (val_print_scalar_formatted, generic_val_print): Don't declare.
12910 * valprint.c (generic_val_print_array): Take a struct value.
12911 (generic_val_print_ptr, generic_val_print_memberptr)
12912 (generic_val_print_bool, generic_val_print_int)
12913 (generic_val_print_char, generic_val_print_complex)
12914 (generic_val_print): Remove.
12915 (generic_value_print): Update.
12916 (do_val_print): Remove unused parameters. Don't call
12917 la_val_print.
12918 (val_print): Remove.
12919 (common_val_print): Update. Don't call value_check_printable.
12920 (val_print_scalar_formatted, val_print_array_elements): Remove.
12921 * rust-lang.c (rust_val_print): Remove.
12922 (rust_language_defn): Update.
12923 * p-valprint.c (pascal_val_print): Remove.
12924 (pascal_value_print_inner): Update.
12925 (pascal_object_print_val_fields, pascal_object_print_val):
12926 Remove.
12927 (pascal_object_print_static_field): Update.
12928 * p-lang.h (pascal_val_print): Don't declare.
12929 * p-lang.c (pascal_language_defn): Update.
12930 * opencl-lang.c (opencl_language_defn): Update.
12931 * objc-lang.c (objc_language_defn): Update.
12932 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12933 * m2-lang.h (m2_val_print): Don't declare.
12934 * m2-lang.c (m2_language_defn): Update.
12935 * language.h (struct language_defn) <la_val_print>: Remove.
12936 * language.c (unk_lang_value_print_inner): Rename. Change
12937 argument types.
12938 (unknown_language_defn, auto_language_defn): Update.
12939 * go-valprint.c (go_val_print): Remove.
12940 * go-lang.h (go_val_print): Don't declare.
12941 * go-lang.c (go_language_defn): Update.
12942 * f-valprint.c (f_val_print): Remove.
12943 * f-lang.h (f_value_print): Don't declare.
12944 * f-lang.c (f_language_defn): Update.
12945 * d-valprint.c (d_val_print): Remove.
12946 * d-lang.h (d_value_print): Don't declare.
12947 * d-lang.c (d_language_defn): Update.
12948 * cp-valprint.c (cp_print_value_fields)
12949 (cp_print_value_fields_rtti, cp_print_value): Remove.
12950 (cp_print_static_field): Update.
12951 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12952 (c_val_print_struct, c_val_print_union, c_val_print_int)
12953 (c_val_print_memberptr, c_val_print): Remove.
12954 * c-lang.h (c_val_print_array, cp_print_value_fields)
12955 (cp_print_value_fields_rtti): Don't declare.
12956 * c-lang.c (c_language_defn, cplus_language_defn)
12957 (asm_language_defn, minimal_language_defn): Update.
12958 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12959 (ada_val_print_enum): Take a struct value.
12960 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12961 (ada_val_print): Remove.
12962 (ada_value_print_1): Update.
12963 (printable_val_type): Remove.
12964 * ada-lang.h (ada_val_print): Don't declare.
12965 * ada-lang.c (ada_language_defn): Update.
12966
12967 2020-03-13 Tom Tromey <tom@tromey.com>
12968
12969 * valprint.c (do_val_print): Update.
12970 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12971 a struct value.
12972 (value_to_value_object_no_release): Declare.
12973 * python/py-value.c (value_to_value_object_no_release): New
12974 function.
12975 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12976 struct value.
12977 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12978 function.
12979 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12980 a struct value.
12981 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12982 Declare.
12983 (gdbscm_apply_val_pretty_printer): Take a struct value.
12984 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12985 value.
12986 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12987 value.
12988 * extension-priv.h (struct extension_language_ops)
12989 <apply_val_pretty_printer>: Take a struct value.
12990 * cp-valprint.c (cp_print_value): Create a struct value.
12991 (cp_print_value): Update.
12992
12993 2020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * ada-valprint.c (print_field_values): Call common_val_print.
12996
12997 2020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * ada-valprint.c (val_print_packed_array_elements): Remove
13000 bitoffset and val parameters. Call common_val_print.
13001 (ada_val_print_string): Remove offset, address, and original_value
13002 parameters.
13003 (ada_val_print_array): Update.
13004 (ada_value_print_array): New function.
13005 (ada_value_print_1): Call it.
13006
13007 2020-03-13 Tom Tromey <tom@tromey.com>
13008
13009 * ada-valprint.c (ada_value_print): Use common_val_print.
13010
13011 2020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13014
13015 2020-03-13 Tom Tromey <tom@tromey.com>
13016
13017 * ada-valprint.c (ada_value_print_num): New function.
13018 (ada_value_print_1): Use it.
13019
13020 2020-03-13 Tom Tromey <tom@tromey.com>
13021
13022 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * ada-valprint.c (ada_value_print_ptr): New function.
13027 (ada_value_print_1): Use it.
13028
13029 2020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13032 call common_val_print.
13033 (ada_val_print_1): Update.
13034 (ada_value_print_1): New function.
13035 (ada_value_print_inner): Rewrite.
13036
13037 2020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * cp-valprint.c (cp_print_value_fields): Update.
13040 (cp_print_value): New function.
13041
13042 2020-03-13 Tom Tromey <tom@tromey.com>
13043
13044 * m2-valprint.c (m2_value_print_inner): Use
13045 cp_print_value_fields.
13046 * cp-valprint.c (cp_print_value_fields): New function.
13047 * c-valprint.c (c_value_print_struct): New function.
13048 (c_value_print_inner): Use c_value_print_struct.
13049 * c-lang.h (cp_print_value_fields): Declare.
13050
13051 2020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * c-valprint.c (c_value_print_array): New function.
13054 (c_value_print_inner): Use it.
13055
13056 2020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * c-valprint.c (c_value_print_memberptr): New function.
13059 (c_value_print_inner): Use it.
13060
13061 2020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * c-valprint.c (c_value_print_int): New function.
13064 (c_value_print_inner): Use it.
13065
13066 2020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * c-valprint.c (c_value_print_ptr): New function.
13069 (c_value_print_inner): Use it.
13070
13071 2020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * c-valprint.c (c_value_print_inner): Rewrite.
13074
13075 2020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * valprint.c (generic_value_print_complex): New function.
13078 (generic_value_print): Use it.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_val_print_float): Don't call
13083 val_print_scalar_formatted.
13084 (generic_val_print, generic_value_print): Update.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * valprint.c (generic_value_print_char): New function
13089 (generic_value_print): Use it.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * valprint.c (generic_value_print_int): New function.
13094 (generic_value_print): Use it.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.c (generic_value_print_bool): New function.
13099 (generic_value_print): Use it.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * valprint.c (generic_val_print_func): Simplify.
13104 (generic_val_print, generic_value_print): Update.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.c (generic_val_print_flags): Remove.
13109 (generic_val_print, generic_value_print): Update.
13110 (val_print_type_code_flags): Add original_value parameter.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * valprint.c (generic_val_print): Update.
13115 (generic_value_print): Update.
13116 * valprint.c (generic_val_print_enum): Don't call
13117 val_print_scalar_formatted.
13118
13119 2020-03-13 Tom Tromey <tom@tromey.com>
13120
13121 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13122 * valprint.c (generic_value_print_ptr): New function.
13123
13124 2020-03-13 Tom Tromey <tom@tromey.com>
13125
13126 * valprint.c (generic_value_print): Rewrite.
13127
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * p-valprint.c (pascal_object_print_value_fields)
13131 (pascal_object_print_value): New functions.
13132
13133 2020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * p-valprint.c (pascal_value_print_inner): Rewrite.
13136
13137 2020-03-13 Tom Tromey <tom@tromey.com>
13138
13139 * f-valprint.c (f_value_print_innner): Rewrite.
13140
13141 2020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * m2-valprint.c (m2_print_unbounded_array): New overload.
13144 (m2_print_unbounded_array): Update.
13145 (m2_print_array_contents): Take a struct value.
13146 (m2_value_print_inner): Rewrite.
13147
13148 2020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13151 (d_value_print_inner): New function.
13152 * d-lang.h (d_value_print_inner): Declare.
13153 * d-lang.c (d_language_defn): Use d_value_print_inner.
13154
13155 2020-03-13 Tom Tromey <tom@tromey.com>
13156
13157 * go-valprint.c (go_value_print_inner): New function.
13158 * go-lang.h (go_value_print_inner): Declare.
13159 * go-lang.c (go_language_defn): Use go_value_print_inner.
13160
13161 2020-03-13 Tom Tromey <tom@tromey.com>
13162
13163 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13164 API.
13165 (rust_val_print): Rewrite.
13166 (rust_value_print_inner): New function, from rust_val_print.
13167 (rust_language_defn): Use rust_value_print_inner.
13168
13169 2020-03-13 Tom Tromey <tom@tromey.com>
13170
13171 * ada-valprint.c (ada_value_print_inner): New function.
13172 * ada-lang.h (ada_value_print_inner): Declare.
13173 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13174
13175 2020-03-13 Tom Tromey <tom@tromey.com>
13176
13177 * f-valprint.c (f_value_print_innner): New function.
13178 * f-lang.h (f_value_print_innner): Declare.
13179 * f-lang.c (f_language_defn): Use f_value_print_innner.
13180
13181 2020-03-13 Tom Tromey <tom@tromey.com>
13182
13183 * p-valprint.c (pascal_value_print_inner): New function.
13184 * p-lang.h (pascal_value_print_inner): Declare.
13185 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13186
13187 2020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * m2-valprint.c (m2_value_print_inner): New function.
13190 * m2-lang.h (m2_value_print_inner): Declare.
13191 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13192
13193 2020-03-13 Tom Tromey <tom@tromey.com>
13194
13195 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13196 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13197 * c-valprint.c (c_value_print_inner): New function.
13198 * c-lang.h (c_value_print_inner): Declare.
13199 * c-lang.c (c_language_defn, cplus_language_defn)
13200 (asm_language_defn, minimal_language_defn): Use
13201 c_value_print_inner.
13202
13203 2020-03-13 Tom Tromey <tom@tromey.com>
13204
13205 * p-valprint.c (pascal_object_print_value_fields): Now static.
13206 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13207
13208 2020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * c-valprint.c (c_val_print_array): Simplify.
13211
13212 2020-03-13 Tom Tromey <tom@tromey.com>
13213
13214 * valprint.c (value_print_array_elements): New function.
13215 * valprint.h (value_print_array_elements): Declare.
13216
13217 2020-03-13 Tom Tromey <tom@tromey.com>
13218
13219 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13220 * mips-tdep.c (mips_print_register): Use
13221 value_print_scalar_formatted.
13222
13223 2020-03-13 Tom Tromey <tom@tromey.com>
13224
13225 * valprint.h (value_print_scalar_formatted): Declare.
13226 * valprint.c (value_print_scalar_formatted): New function.
13227
13228 2020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * valprint.h (generic_value_print): Declare.
13231 * valprint.c (generic_value_print): New function.
13232
13233 2020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * valprint.c (do_val_print): Call la_value_print_inner, if
13236 available.
13237 * rust-lang.c (rust_language_defn): Update.
13238 * p-lang.c (pascal_language_defn): Update.
13239 * opencl-lang.c (opencl_language_defn): Update.
13240 * objc-lang.c (objc_language_defn): Update.
13241 * m2-lang.c (m2_language_defn): Update.
13242 * language.h (struct language_defn) <la_value_print_inner>: New
13243 member.
13244 * language.c (unknown_language_defn, auto_language_defn): Update.
13245 * go-lang.c (go_language_defn): Update.
13246 * f-lang.c (f_language_defn): Update.
13247 * d-lang.c (d_language_defn): Update.
13248 * c-lang.c (c_language_defn, cplus_language_defn)
13249 (asm_language_defn, minimal_language_defn): Update.
13250 * ada-lang.c (ada_language_defn): Update.
13251
13252 2020-03-13 Tom Tromey <tom@tromey.com>
13253
13254 * c-valprint.c (c_value_print): Use common_val_print.
13255
13256 2020-03-13 Tom Tromey <tom@tromey.com>
13257
13258 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13259
13260 2020-03-13 Tom Tromey <tom@tromey.com>
13261
13262 * f-valprint.c (f77_print_array_1, f_val_print): Use
13263 common_val_print.
13264
13265 2020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * riscv-tdep.c (riscv_print_one_register_info): Use
13268 common_val_print.
13269
13270 2020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * mi/mi-main.c (output_register): Use common_val_print.
13273
13274 2020-03-13 Tom Tromey <tom@tromey.com>
13275
13276 * infcmd.c (default_print_one_register_info): Use
13277 common_val_print.
13278
13279 2020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * valprint.h (common_val_print_checked): Declare.
13282 * valprint.c (common_val_print_checked): New function.
13283 * stack.c (print_frame_arg): Use common_val_print_checked.
13284
13285 2020-03-13 Tom Tromey <tom@tromey.com>
13286
13287 * valprint.c (do_val_print): New function, from val_print.
13288 (val_print): Use do_val_print.
13289 (common_val_print): Use do_val_print.
13290
13291 2020-03-13 Tom Tromey <tom@tromey.com>
13292
13293 * valprint.c (value_print): Use scoped_value_mark.
13294
13295 2020-03-13 Tom de Vries <tdevries@suse.de>
13296
13297 PR symtab/25646
13298 * psymtab.c (partial_symtab::partial_symtab): Don't set
13299 globals_offset and statics_offset. Push element onto
13300 current_global_psymbols and current_static_psymbols stacks.
13301 (concat): New function.
13302 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13303 element from current_global_psymbols and current_static_psymbols
13304 stacks. Concat popped elements to global_psymbols and
13305 static_symbols.
13306 (add_psymbol_to_list): Use current_global_psymbols and
13307 current_static_psymbols stacks.
13308 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13309 current_static_psymbols fields.
13310
13311 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13312
13313 * corelow.c (sniff_core_bfd): Remove.
13314 (class core_target) <m_core_vec>: Remove.
13315 (core_target::core_target): Update.
13316 (core_file_fns): Remove.
13317 (deprecated_add_core_fns): Remove.
13318 (default_core_sniffer): Remove.
13319 (sniff_core_bfd): Remove.
13320 (default_check_format): Remove.
13321 (gdb_check_format): Remove.
13322 (core_target_open): Update.
13323 (core_target::get_core_register_section): Update.
13324 (get_core_registers_cb): Update.
13325 (core_target::fetch_registers): Update.
13326 * gdbcore.h (struct core_fns): Remove.
13327 (deprecated_add_core_fns): Remove.
13328 (default_core_sniffer): Remove.
13329 (default_check_format): Remove.
13330
13331 2020-03-12 Tom Tromey <tom@tromey.com>
13332
13333 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13334 CORE_ADDR.
13335 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13336
13337 2020-03-12 Tom Tromey <tom@tromey.com>
13338
13339 * remote.c (remote_target::download_tracepoint)
13340 (remote_target::enable_tracepoint)
13341 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13342 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13343 sprintf_vma.
13344
13345 2020-03-12 Tom Tromey <tom@tromey.com>
13346
13347 * symfile-mem.c: Update CORE_ADDR size assert.
13348
13349 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13350
13351 * selftest.m4: Move to gdbsupport/.
13352 * acinclude.m4: Update path to selftest.m4.
13353
13354 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13355
13356 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13357 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13358 gdbarch-selfselftests.c and selftest-arch.c.
13359 (SUBDIR_UNITTESTS_OBS): Rename to...
13360 (SELFTESTS_OBS): ... this.
13361 (COMMON_SFILES): Remove disasm-selftests.c and
13362 gdbarch-selftests.c.
13363 * configure.ac: Don't add selftest-arch.{c,o} to
13364 CONFIG_{SRCS,OBS}.
13365 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13366 preprocessor conditions.
13367
13368 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * configure.ac: Don't source bfd/development.sh.
13371 * selftest.m4: Modify comment.
13372 * configure: Re-generate.
13373
13374 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13375
13376 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13377 not "true" or "false".
13378 * configure: Re-generate.
13379
13380 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13381
13382 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13383 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13384 renamed to arm_nbsd_supply_gregset.
13385 (fetch_register): Update to call arm_nbsd_supply_gregset.
13386 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13387 (arm_netbsd_nat_target::fetch_registers): Update.
13388 (fetch_elfcore_registers): Removed.
13389 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13390 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13391 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13392 not require NetBSD system headers.
13393 (arm_nbsd_regset): New struct.
13394 (arm_nbsd_iterate_over_regset_sections): New function.
13395 (arm_netbsd_init_abi_common): Updated to call
13396 set_gdbarch_iterate_over_regset_sections.
13397 * arm-nbsd-tdep.h: New file.
13398
13399 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13400
13401 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13402 recursion.
13403
13404 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * configure: Re-generate.
13407
13408 2020-03-11 Tom Tromey <tromey@adacore.com>
13409
13410 * ada-typeprint.c (print_choices): Fix comment.
13411
13412 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13413
13414 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13415 previous item in the list, when the list has no items.
13416
13417 2020-03-11 Tom de Vries <tdevries@suse.de>
13418
13419 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13420 PROP_LOCLIST handling code.
13421
13422 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13423
13424 * buildsym-legacy.c (record_line): Pass extra parameter to
13425 record_line.
13426 * buildsym.c (buildsym_compunit::record_line): Take an extra
13427 parameter, reduce duplication in the line table, and record the
13428 is_stmt flag in the line table.
13429 * buildsym.h (buildsym_compunit::record_line): Add extra
13430 parameter.
13431 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13432 non-statement lines.
13433 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13434 this to the symtab builder.
13435 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13436 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13437 through to dwarf_record_line_1.
13438 * infrun.c (process_event_stop_test): When stepping, don't stop at
13439 a non-statement instruction, and only refresh the step info when
13440 we land in the middle of a line's range. Also add an extra
13441 comment.
13442 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13443 field.
13444 * record-btrace.c (btrace_find_line_range): Only record lines
13445 marked as is-statement.
13446 * stack.c (frame_show_address): Show the frame address if we are
13447 in a non-statement sal.
13448 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13449 (maintenance_print_one_line_table): Print a header for the is_stmt
13450 column, and include is_stmt information in the output.
13451 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13452 preference to non-statements.
13453 (find_pcs_for_symtab_line): Prefer is-statement entries.
13454 (find_line_common): Likewise.
13455 * symtab.h (struct linetable_entry): Add is_stmt field.
13456 (struct symtab_and_line): Likewise.
13457 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13458 arranging the line table.
13459
13460 2020-03-07 Tom de Vries <tdevries@suse.de>
13461
13462 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13463 DIE.
13464
13465 2020-03-07 Tom Tromey <tom@tromey.com>
13466
13467 * valops.c (value_literal_complex): Remove obsolete comment.
13468 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13469 comment.
13470
13471 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13472
13473 * infrun.h: Forward-declare thread_info.
13474 (set_step_info): Add thread_info parameter, add doc.
13475 * infrun.c (set_step_info): Add thread_info parameter, move doc
13476 to header.
13477 * infrun.c (process_event_stop_test): Pass thread to
13478 set_step_info call.
13479 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13480 set_step_info.
13481 (prepare_one_step): Add thread_info parameter, pass it to
13482 set_step_frame and prepare_one_step (recursive) call.
13483 (step_1): Pass thread to prepare_one_step call.
13484 (step_command_fsm::should_stop): Pass thread to
13485 prepare_one_step.
13486 (until_next_fsm): Pass thread to set_step_frame call.
13487 (finish_command): Pass thread to set_step_info call.
13488
13489 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13490
13491 * windows-tdep.c (windows_solib_create_inferior_hook):
13492 Check if inferior is running.
13493
13494 2020-03-06 Tom de Vries <tdevries@suse.de>
13495
13496 * NEWS: Fix "the the".
13497 * ctfread.c: Same.
13498
13499 2020-03-06 Tom de Vries <tdevries@suse.de>
13500
13501 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13502
13503 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13504
13505 * .dir-locals.el: Add a comment referencing the other copies of
13506 this file.
13507
13508 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13509
13510 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13511 psargs.
13512
13513 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13514
13515 * .gitattributes: New file.
13516
13517 2020-03-04 Tom Tromey <tom@tromey.com>
13518
13519 * symmisc.c (print_symbol_bcache_statistics)
13520 (print_objfile_statistics): Update.
13521 * symfile.c (allocate_symtab): Use intern.
13522 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13523 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13524 macro_cache>: Remove.
13525 <string_cache>: New member.
13526 (struct objfile) <intern>: New methods.
13527 * elfread.c (elf_symtab_read): Use intern.
13528 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13529 (dwarf2_compute_name, dwarf2_physname)
13530 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13531 names.
13532 (guess_partial_die_structure_name): Update.
13533 (partial_die_info::fixup): Intern name.
13534 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13535 name.
13536 (dwarf2_name): Intern name. Update.
13537 * buildsym.c (buildsym_compunit::get_macro_table): Use
13538 string_cache.
13539
13540 2020-03-04 Tom Tromey <tom@tromey.com>
13541
13542 * jit.c (bfd_open_from_target_memory): Make "target" const.
13543 * corefile.c (gnutarget): Now const.
13544 * gdbcore.h (gnutarget): Now const.
13545
13546 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13547
13548 * NEWS: Mention support for WOW64 processes.
13549 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13550 (amd64_windows_segment_register_p): Remove static.
13551 (_initialize_amd64_windows_nat): Update.
13552 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13553 * i386-windows-nat.c (context_offset): Update.
13554 (i386_mappings): Rename and remove static.
13555 (i386_windows_segment_register_p): Remove static.
13556 (_initialize_i386_windows_nat): Update.
13557 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13558 (STATUS_WX86_SINGLE_STEP): New macro.
13559 (EnumProcessModulesEx): New macro.
13560 (Wow64SuspendThread): New macro.
13561 (Wow64GetThreadContext): New macro.
13562 (Wow64SetThreadContext): New macro.
13563 (Wow64GetThreadSelectorEntry): New macro.
13564 (windows_set_context_register_offsets): Add static.
13565 (windows_set_segment_register_p): Likewise.
13566 (windows_add_thread): Adapt for WOW64 processes.
13567 (windows_fetch_one_register): Likewise.
13568 (windows_nat_target::fetch_registers): Likewise.
13569 (windows_store_one_register): Likewise.
13570 (display_selector): Likewise.
13571 (display_selectors): Likewise.
13572 (handle_exception): Likewise.
13573 (windows_continue): Likewise.
13574 (windows_nat_target::resume): Likewise.
13575 (windows_add_all_dlls): Likewise.
13576 (do_initial_windows_stuff): Likewise.
13577 (windows_nat_target::attach): Likewise.
13578 (windows_get_exec_module_filename): Likewise.
13579 (windows_nat_target::create_inferior): Likewise.
13580 (windows_xfer_siginfo): Likewise.
13581 (_initialize_loadable): Initialize Wow64SuspendThread,
13582 Wow64GetThreadContext, Wow64SetThreadContext,
13583 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13584 * windows-nat.h (windows_set_context_register_offsets):
13585 Remove declaration.
13586 (windows_set_segment_register_p): Likewise.
13587 (i386_windows_segment_register_p): Add declaration.
13588 (amd64_windows_segment_register_p): Likewise.
13589
13590 2020-03-04 Luis Machado <luis.machado@linaro.org>
13591
13592 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13593 in "info registers" for AArch64/ARM.
13594
13595 The change caused "info registers" to not print GPR's.
13596
13597 gdb/ChangeLog:
13598
13599 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13600
13601 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13602 when reg->group is empty and reggroup is not.
13603
13604 2020-03-03 Tom Tromey <tromey@adacore.com>
13605
13606 * dwarf2/frame.c (struct dwarf2_frame_cache)
13607 <checked_tailcall_bottom, entry_cfa_sp_offset,
13608 entry_cfa_sp_offset_p>: Remove members.
13609 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13610 (dwarf2_frame_prev_register): Don't call
13611 dwarf2_tailcall_sniffer_first.
13612 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13613 * frame-unwind.c (add_unwinder): New fuction.
13614 (frame_unwind_init): Use it. Add tailcall unwinder.
13615
13616 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13617 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13618
13619 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13620 value should be printed as true.
13621
13622 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13623
13624 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13625 (windows_init_abi): Set and use windows_so_ops.
13626
13627 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13628
13629 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13630 when verifying if dealing with a convenience variable.
13631
13632 2020-03-03 Luis Machado <luis.machado@linaro.org>
13633
13634 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13635
13636 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13637
13638 * infrun.c (gdbarch_supports_displaced_stepping): New.
13639 (use_displaced_stepping): Break up conditions in smaller pieces.
13640 Use gdbarch_supports_displaced_stepping.
13641 (displaced_step_prepare_throw): Use
13642 gdbarch_supports_displaced_stepping.
13643
13644 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13645
13646 * NEWS: Mention new behaviour of the history filename.
13647 * top.c (write_history_p): Add comment.
13648 (show_write_history_p): Add header comment, give a different
13649 message when history writing is on, but the history filename is
13650 empty.
13651 (history_filename): Add comment.
13652 (history_filename_empty): New function.
13653 (show_history_filename): Add header comment, give a different
13654 message when the filename is empty.
13655 (init_history): Compare history_filename against nullptr, and only
13656 read history if the filename is not empty.
13657 (set_history_filename): Add header comment, and only make
13658 non-empty filenames absolute.
13659 (init_main): Make the filename argument to 'set history filename'
13660 optional.
13661
13662 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13663
13664 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13665 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13666 (fetch_fp_register): Update.
13667 (fetch_fp_regs): Update.
13668 (store_fp_register): Update.
13669 (store_fp_regs): Update.
13670 (arm_netbsd_nat_target::read_description): New function.
13671 (fetch_elfcore_registers): Update.
13672
13673 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13674
13675 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13676 general_thread if the stop reply is missing a thread-id.
13677 (remote_target::process_stop_reply): Use the first non-exited
13678 thread if the target didn't pass a thread-id.
13679 * infrun.c (do_target_wait): Move call to
13680 switch_to_inferior_no_thread to ....
13681 (do_target_wait_1): ... here.
13682
13683 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13684
13685 * debuginfod-support.c: Include defs.h first.
13686
13687 2020-02-28 Tom de Vries <tdevries@suse.de>
13688
13689 * symfile.c (set_initial_language): Use default language for lookup.
13690
13691 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13692
13693 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13694 reader variable, pass `this` to read_cutu_die_from_dwo.
13695
13696 2020-02-27 Aaron Merey <amerey@redhat.com>
13697
13698 * source.c (open_source_file): Check for nullptr when computing
13699 srcpath.
13700
13701 2020-02-27 Tom Tromey <tromey@adacore.com>
13702
13703 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13704 member.
13705 (dwarf2_add_field): Don't update nfields.
13706 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13707
13708 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13709
13710 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13711 abs.
13712
13713 2020-02-26 Tom Tromey <tom@tromey.com>
13714
13715 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13716 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13717 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13718 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13719 per_cu_data.
13720
13721 2020-02-26 Tom Tromey <tom@tromey.com>
13722
13723 * dwarf2/index-write.c (psym_index_map): Change type.
13724 (add_address_entry_worker, write_one_signatured_type)
13725 (recursively_count_psymbols, recursively_write_psymbols)
13726 (class debug_names, psyms_seen_size, write_gdbindex)
13727 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13728
13729 2020-02-26 Aaron Merey <amerey@redhat.com>
13730
13731 * Makefile.in: Handle optional debuginfod support.
13732 * NEWS: Update.
13733 * README: Add --with-debuginfod summary.
13734 * config.in: Regenerate.
13735 * configure: Regenerate.
13736 * configure.ac: Handle optional debuginfod support.
13737 * debuginfod-support.c: debuginfod helper functions.
13738 * debuginfod-support.h: Ditto.
13739 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13740 summary.
13741 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13742 when a dwz file cannot be found.
13743 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13744 debuginfo file cannot be found.
13745 * source.c (open_source_file): Query debuginfod servers when a
13746 source file cannot be found.
13747 * top.c (print_gdb_configuration): Include
13748 --{with,without}-debuginfod in the output.
13749
13750 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13751
13752 * thread.c (thr_try_catch_cmd): Print thread name.
13753
13754 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13755
13756 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13757 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13758 dwarf2_fetch_die_type_sect_off): Move to...
13759 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13760 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13761 dwarf2_fetch_die_type_sect_off): ... here.
13762 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13763 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13764 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13765
13766 2020-02-26 Tom de Vries <tdevries@suse.de>
13767
13768 PR gdb/25603
13769 * symfile.c (set_initial_language): Exit-early if
13770 language_mode == language_mode_manual.
13771
13772 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13773
13774 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13775 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13776 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13777
13778 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13779
13780 * gdbtypes.c (create_array_type_with_stride): Handle negative
13781 array strides.
13782 * valarith.c (value_subscripted_rvalue): Likewise.
13783
13784 2020-02-25 Luis Machado <luis.machado@linaro.org>
13785
13786 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13787
13788 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13789
13790 * loc.h (dwarf2_get_die_type): Move to...
13791 * read.h (dwarf2_get_die_type): ... here.
13792 * read.c (dwarf2_get_die_type): Move doc to header.
13793
13794 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13795
13796 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13797 'gnulib/Makefile.in' to the list.
13798
13799 2020-02-24 Tom Tromey <tom@tromey.com>
13800
13801 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13802 Remove.
13803 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13804 XOBNEWVEC.
13805
13806 2020-02-24 Tom Tromey <tom@tromey.com>
13807
13808 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13809 New method.
13810 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13811 (dw2_do_instantiate_symtab, dw2_get_file_names)
13812 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13813
13814 2020-02-24 Tom Tromey <tom@tromey.com>
13815
13816 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13817 make_scoped_restore.
13818 (dwarf2_psymtab::read_symtab): Don't clear
13819 reading_partial_symbols.
13820
13821 2020-02-24 Tom de Vries <tdevries@suse.de>
13822
13823 PR gdb/25592
13824 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13825
13826 2020-02-24 Tom de Vries <tdevries@suse.de>
13827
13828 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13829 commands layout next/prev/regs.
13830
13831 2020-02-22 Tom Tromey <tom@tromey.com>
13832
13833 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13834 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13835
13836 2020-02-22 Tom Tromey <tom@tromey.com>
13837
13838 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13839
13840 2020-02-22 Tom Tromey <tom@tromey.com>
13841
13842 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13843 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13844 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13845 * tui/tui.c (_initialize_tui): Add usage text.
13846
13847 2020-02-22 Tom Tromey <tom@tromey.com>
13848
13849 * tui/tui-win.c (tui_set_focus_command)
13850 (tui_set_win_height_command): Use error_no_arg.
13851 (_initialize_tui_win): Update help text.
13852 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13853
13854 2020-02-22 Tom Tromey <tom@tromey.com>
13855
13856 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13857 * tui/tui-disasm.h (struct tui_disasm_window)
13858 <display_start_addr>: Declare.
13859 * tui/tui-source.h (struct tui_source_window)
13860 <display_start_addr>: Declare.
13861 * tui/tui-winsource.h (struct tui_source_window_base)
13862 <show_source_line, display_start_addr>: New methods.
13863 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13864 Rename and move to protected section.
13865 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13866 (tui_source_window_base::do_erase_source_content): Update.
13867 (tui_source_window_base::show_source_line): Now a method.
13868 (tui_source_window_base::show_source_content)
13869 (tui_source_window_base::tui_source_window_base)
13870 (tui_source_window_base::rerender)
13871 (tui_source_window_base::refill)
13872 (tui_source_window_base::do_scroll_horizontal)
13873 (tui_source_window_base::set_is_exec_point_at)
13874 (tui_source_window_base::update_breakpoint_info)
13875 (tui_source_window_base::update_exec_info): Update.
13876 * tui/tui-source.c (tui_source_window::set_contents)
13877 (tui_source_window::showing_source_p)
13878 (tui_source_window::do_scroll_vertical)
13879 (tui_source_window::location_matches_p)
13880 (tui_source_window::line_is_displayed): Update.
13881 (tui_source_window::display_start_addr): New method.
13882 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13883 (tui_disasm_window::do_scroll_vertical)
13884 (tui_disasm_window::location_matches_p): Update.
13885 (tui_disasm_window::display_start_addr): New method.
13886
13887 2020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * NEWS: Add entry for gdb.register_window_type.
13890 * tui/tui-layout.h (window_factory): New typedef.
13891 (tui_register_window): Declare.
13892 * tui/tui-layout.c (saved_tui_windows): New global.
13893 (tui_apply_current_layout): Use it.
13894 (tui_register_window): New function.
13895 * python/python.c (do_start_initialization): Call
13896 gdbpy_initialize_tui.
13897 (python_GdbMethods): Add "register_window_type" function.
13898 * python/python-internal.h (gdbpy_register_tui_window)
13899 (gdbpy_initialize_tui): Declare.
13900 * python/py-tui.c: New file.
13901 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13902
13903 2020-02-22 Tom Tromey <tom@tromey.com>
13904
13905 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13906
13907 2020-02-22 Tom Tromey <tom@tromey.com>
13908
13909 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13910 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13911 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13912 (tui_set_win_focus_to): Move from tui-win.c.
13913
13914 2020-02-22 Tom Tromey <tom@tromey.com>
13915
13916 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13917 functions.
13918 (known_window_types): New global.
13919 (tui_get_window_by_name): Reimplement.
13920 (initialize_known_windows): New function.
13921 (validate_window_name): Rewrite.
13922 (_initialize_tui_layout): Call initialize_known_windows.
13923
13924 2020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13927 Remove constants.
13928 * tui/tui-winsource.h (struct tui_source_window_base)
13929 <tui_source_window_base>: Remove parameter.
13930 * tui/tui-winsource.c
13931 (tui_source_window_base::tui_source_window_base): Remove
13932 parameter.
13933 (tui_source_window_base::refill): Update.
13934 * tui/tui-stack.h (struct tui_locator_window)
13935 <tui_locator_window>: Update.
13936 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13937 Default the constructor.
13938 * tui/tui-regs.h (struct tui_data_item_window)
13939 <tui_data_item_window>: Default the constructor.
13940 (struct tui_data_window) <tui_data_window>: Likewise.
13941 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13942 Default the constructor.
13943 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13944 Default the constructor.
13945 <type>: Remove.
13946 (struct tui_win_info) <tui_win_info>: Default the constructor.
13947 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13948 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13949 Default the constructor.
13950
13951 2020-02-22 Tom Tromey <tom@tromey.com>
13952
13953 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13954 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13955 * tui/tui-win.c (tui_resize_all): Don't call
13956 tui_delete_invisible_windows.
13957 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13958 done.
13959 (tui_set_layout): Update.
13960 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13961 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13962 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13963
13964 2020-02-22 Tom Tromey <tom@tromey.com>
13965
13966 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13967 correctly.
13968
13969 2020-02-22 Tom Tromey <tom@tromey.com>
13970
13971 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13972
13973 2020-02-22 Tom Tromey <tom@tromey.com>
13974
13975 * tui/tui-winsource.h (struct tui_source_window_iterator)
13976 <inner_iterator>: New etytypedef.
13977 <tui_source_window_iterator>: Take "end" parameter.
13978 <tui_source_window_iterator>: Take iterator.
13979 <operator*, advance>: Update.
13980 <m_iter>: Change type.
13981 <m_end>: New field.
13982 (struct tui_source_windows) <begin, end>: Update.
13983 * tui/tui-layout.c (tui_windows): New global.
13984 (tui_apply_current_layout): Clear tui_windows.
13985 (tui_layout_window::apply): Update tui_windows.
13986 * tui/tui-data.h (tui_windows): Declare.
13987 (all_tui_windows): Now inline function.
13988 (class tui_window_iterator, struct all_tui_windows): Remove.
13989
13990 2020-02-22 Tom Tromey <tom@tromey.com>
13991
13992 PR tui/17850:
13993 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13994 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13995 "height" argument.
13996 (class tui_layout_window) <get_sizes>: Likewise.
13997 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13998 argument.
13999 <get_sizes>: Add "height" argument.
14000 <m_vertical>: New field.
14001 * tui/tui-layout.c (tui_layout_split::clone): Update.
14002 (tui_layout_split::get_sizes): Add "height" argument.
14003 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14004 (tui_new_layout_command): Parse "-horizontal".
14005 (_initialize_tui_layout): Update help string.
14006 (tui_layout_split::specification): Add "-horizontal" when needed.
14007 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14008 argument.
14009 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14010 New methods.
14011
14012 2020-02-22 Tom Tromey <tom@tromey.com>
14013
14014 * tui/tui-layout.h (enum tui_adjust_result): New.
14015 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14016 (class tui_layout_window) <adjust_size>: Return
14017 tui_adjust_result. Rewrite.
14018 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14019 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14020
14021 2020-02-22 Tom Tromey <tom@tromey.com>
14022
14023 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14024 parameter and return types.
14025 (class tui_layout_base) <specification>: Add "depth".
14026 (class tui_layout_window) <specification>: Add "depth".
14027 (class tui_layout_split) <specification>: Add "depth".
14028 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14029 and return types.
14030 (tui_new_layout_command): Parse sub-layouts.
14031 (_initialize_tui_layout): Update help string.
14032 (tui_layout_window::specification): Add "depth".
14033 (add_layout_command): Update.
14034
14035 2020-02-22 Tom Tromey <tom@tromey.com>
14036
14037 * NEWS: Add "tui new-layout" item.
14038 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14039 Add new-layout command to help text.
14040 (validate_window_name): New function.
14041 (tui_new_layout_command): New function.
14042 (_initialize_tui_layout): Register "new-layout".
14043 (tui_layout_window::specification): New method.
14044 (tui_layout_window::specification): New method.
14045 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14046 method.
14047 (class tui_layout_window) <specification>: New method.
14048 (class tui_layout_split) <specification>: New method.
14049
14050 2020-02-22 Tom Tromey <tom@tromey.com>
14051
14052 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14053 * tui/tui-win.c (window_name_completer): Update comment.
14054 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14055 Declare method.
14056 (class tui_layout_window) <replace_window>: Likewise.
14057 (class tui_layout_split) <replace_window>: Likewise.
14058 (tui_set_layout): Don't declare.
14059 (tui_set_initial_layout): Declare function.
14060 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14061 (asm_regs_layout): New globals.
14062 (tui_current_layout, show_layout): Remove.
14063 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14064 (find_layout, tui_apply_layout): New function.
14065 (layout_completer): Remove.
14066 (tui_next_layout): Reimplement.
14067 (tui_next_layout_command): New function.
14068 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14069 (tui_regs_layout): Reimplement.
14070 (tui_regs_layout_command): New function.
14071 (extract_display_start_addr): Rewrite.
14072 (next_layout, prev_layout): Remove.
14073 (tui_layout_window::replace_window): New method.
14074 (tui_layout_split::replace_window): New method.
14075 (destroy_layout): New function.
14076 (layout_list): New global.
14077 (add_layout_command): New function.
14078 (initialize_layouts): Update.
14079 (tui_layout_command): New function.
14080 (_initialize_tui_layout): Install "layout" commands.
14081 * tui/tui-data.h (enum tui_layout_type): Remove.
14082 (tui_current_layout): Don't declare.
14083
14084 2020-02-22 Tom Tromey <tom@tromey.com>
14085
14086 * tui/tui-regs.c (tui_reg_layout): Remove.
14087 (tui_reg_command): Use tui_regs_layout.
14088 * tui/tui-layout.h (tui_reg_command): Declare.
14089 * tui/tui-layout.c (tui_reg_command): New function.
14090
14091 2020-02-22 Tom Tromey <tom@tromey.com>
14092
14093 * tui/tui.c (tui_rl_delete_other_windows): Call
14094 tui_remove_some_windows.
14095 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14096 Declare method.
14097 (class tui_layout_window) <remove_windows>: New method.
14098 (class tui_layout_split) <remove_windows>: Declare.
14099 (tui_remove_some_windows): Declare.
14100 * tui/tui-layout.c (tui_remove_some_windows): New function.
14101 (tui_layout_split::remove_windows): New method.
14102
14103 2020-02-22 Tom Tromey <tom@tromey.com>
14104
14105 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14106 * tui/tui-layout.h (tui_next_layout): Declare.
14107 * tui/tui-layout.c (tui_next_layout): New function.
14108
14109 2020-02-22 Tom Tromey <tom@tromey.com>
14110
14111 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14112 correct coordinates.
14113
14114 2020-02-22 Tom Tromey <tom@tromey.com>
14115
14116 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14117 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14118 DATA_WIN case.
14119
14120 2020-02-22 Tom Tromey <tom@tromey.com>
14121
14122 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14123 TUI_DISASM_WIN, not tui_win_list.
14124
14125 2020-02-22 Tom Tromey <tom@tromey.com>
14126
14127 * valprint.c (generic_val_print_enum_1)
14128 (val_print_type_code_flags): Style member names.
14129 * rust-lang.c (val_print_struct, rust_print_enum)
14130 (rust_print_struct_def, rust_internal_print_type): Style member
14131 names.
14132 * p-valprint.c (pascal_object_print_value_fields): Style member
14133 names. Only call fprintf_symbol_filtered for static members.
14134 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14135 * f-valprint.c (f_val_print): Style member names.
14136 * f-typeprint.c (f_type_print_base): Style member names.
14137 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14138 call fprintf_symbol_filtered for static members.
14139 (cp_print_class_member): Style member names.
14140 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14141 member names.
14142 * ada-valprint.c (ada_print_scalar): Style enum names.
14143 (ada_val_print_enum): Likewise.
14144 * ada-typeprint.c (print_enum_type): Style enum names.
14145
14146 2020-02-21 Tom Tromey <tom@tromey.com>
14147
14148 * psympriv.h (struct partial_symtab): Update comment.
14149
14150 2020-02-21 Tom Tromey <tromey@adacore.com>
14151
14152 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14153 type is CORE_ADDR.
14154
14155 2020-02-21 Tom de Vries <tdevries@suse.de>
14156
14157 PR gdb/25534
14158 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14159 if dependencies[i]->user != NULL.
14160
14161 2020-02-21 Ali Tamur <tamur@google.com>
14162
14163 * dwarf2/read.c (dwarf2_name): Add null check.
14164
14165 2020-02-20 Tom Tromey <tom@tromey.com>
14166
14167 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14168 ">=", in binary search.
14169 (dwarf2_find_containing_comp_unit): New overload.
14170 (run_test): New self-test.
14171 (_initialize_dwarf2_read): Register new test.
14172
14173 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14174
14175 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14176 * riscv-tdep.h: Likewise.
14177 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14178 rv32-only CSR.
14179 * features/riscv/64bit-csr.xml: Regenerated.
14180
14181 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14182 Tom Tromey <tom@tromey.com>
14183
14184 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14185 of 'fputc_unfiltered'.
14186 (putchar_unfiltered): Call 'fputc_unfiltered'.
14187 (fputc_unfiltered): Call 'fputs_unfiltered'.
14188
14189 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14190
14191 * config.in: Regenerate.
14192 * configure: Regenerate.
14193 * configure.ac: Add --with-python-libdir option.
14194 * main.c: Use WITH_PYTHON_LIBDIR.
14195
14196 2020-02-19 Tom Tromey <tom@tromey.com>
14197
14198 * symtab.c (general_symbol_info::compute_and_set_names): Use
14199 obstack_strndup. Simplify call to symbol_set_demangled_name.
14200
14201 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14202
14203 * dwarf2/read.c (allocate_signatured_type_table,
14204 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14205 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14206 Remove objfile parameter, update all callers.
14207
14208 2020-02-19 Doug Evans <dje@google.com>
14209
14210 PR rust/25535
14211 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14212 rust_enum_variant calculation.
14213
14214 2020-02-19 Tom Tromey <tromey@adacore.com>
14215
14216 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14217
14218 2020-02-19 Tom Tromey <tromey@adacore.com>
14219
14220 * ada-lang.c (cache_symbol): Use obstack_strdup.
14221
14222 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14223
14224 * configure: Regenerate.
14225
14226 2020-02-19 Tom Tromey <tromey@adacore.com>
14227
14228 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14229 NULL check.
14230
14231 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14232
14233 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14234
14235 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14236
14237 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14238 if GDBSERVER is not defined.
14239 (riscv_tdesc_cache): Likewise, also store const target_desc.
14240 (STATIC_IN_GDB): Define.
14241 (riscv_create_target_description): Update declaration with
14242 STATIC_IN_GDB.
14243 (riscv_lookup_target_description): New function, only define if
14244 GDBSERVER is not defined.
14245 * arch/riscv.h (riscv_create_target_description): Declare only
14246 when GDBSERVER is defined.
14247 (riscv_lookup_target_description): New declaration when GDBSERVER
14248 is not defined.
14249 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14250 (riscv_linux_read_features): ...this, and return
14251 riscv_gdbarch_features instead of target_desc.
14252 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14253 (riscv_linux_read_description): Rename to...
14254 (riscv_linux_read_features): ...this.
14255 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14256 Update to use riscv_gdbarch_features and
14257 riscv_lookup_target_description.
14258 * riscv-tdep.c (riscv_find_default_target_description): Use
14259 riscv_lookup_target_description instead of
14260 riscv_create_target_description.
14261
14262 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14263
14264 * valprint.c (generic_val_print_enum_1): When printing a flag
14265 enum with value 0 and there is no enumerator with value 0, print
14266 just "0" instead of "(unknown: 0x0)".
14267
14268 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * valprint.c (generic_val_print_enum_1): Print unknown part of
14271 flag enum in hex.
14272
14273 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14274
14275 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14276 flag enums to contain duplicate enumerators.
14277 * valprint.c (generic_val_print_enum_1): Update comment.
14278
14279 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14280
14281 * dwarf2/read.c: Include "count-one-bits.h".
14282 (update_enumeration_type_from_children): If an enumerator has
14283 multiple bits set, don't treat the enumeration as a "flag enum".
14284 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14285 of flag enums have 0 or 1 bit set.
14286
14287 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14288
14289 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14290 conversion.
14291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14292 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14293 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14294 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14295 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14296
14297 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14298
14299 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14300
14301 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14302
14303 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14304 displaced_step_closure_up.
14305 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14306 (struct displaced_step_closure_up):
14307 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14308 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14309 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14310 Likewise.
14311 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14312 * gdbarch.c, gdbarch.h: Re-generate.
14313 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14314 displaced_step_closure_up.
14315 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14316 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14317 * infrun.h (displaced_step_closure_up): New type alias.
14318 (struct displaced_step_inferior_state) <step_closure>: Change
14319 type to displaced_step_closure_up.
14320 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14321 displaced_step_closure_up.
14322 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14323
14324 2020-02-14 Tom Tromey <tom@tromey.com>
14325
14326 * minidebug.c (gnu_debug_key): New global.
14327 (find_separate_debug_file_in_section): Use it.
14328
14329 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14330
14331 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14332 std::unique_ptr.
14333 * gdbarch.c: Re-generate.
14334 * gdbarch.h: Re-generate.
14335 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14336 change.
14337 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14338 type to std::unique_ptr.
14339 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14340 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14341 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14342 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14343 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14344 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14345 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14346 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14347 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14348
14349 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14350
14351 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14352 std::unique_ptr.
14353 (displaced_step_clear): Rename to...
14354 (displaced_step_reset): ... this. Just call displaced->reset ().
14355 (displaced_step_clear_cleanup): Rename to...
14356 (displaced_step_reset_cleanup): ... this.
14357 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14358 (displaced_step_fixup): Likewise.
14359 (resume_1): Likewise.
14360 (handle_inferior_event): Restore child's memory before calling
14361 displaced_step_fixup on the parent.
14362 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14363 to std::unique_ptr.
14364 <step_closure>: Change type to std::unique_ptr.
14365
14366 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * arm-tdep.c: Include count-one-bits.h.
14369 (cleanup_block_store_pc): Use count_one_bits.
14370 (cleanup_block_load_pc): Use count_one_bits.
14371 (arm_copy_block_xfer): Use count_one_bits.
14372 (thumb2_copy_block_xfer): Use count_one_bits.
14373 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14374 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14375 (thumb_get_next_pcs_raw): Use count_one_bits.
14376 (arm_get_next_pcs_raw): Use count_one_bits_l.
14377 * arch/arm.c (bitcount): Remove.
14378 * arch/arm.h (bitcount): Remove.
14379
14380 2020-02-14 Tom Tromey <tromey@adacore.com>
14381
14382 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14383 Update.
14384 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14385 * dwarf2/loc.c (call_site_find_chain_1): Return
14386 unique_xmalloc_ptr.
14387 (call_site_find_chain): Likewise.
14388
14389 2020-02-14 Richard Biener <rguenther@suse.de>
14390
14391 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14392 on expression with division operators.
14393
14394 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14395
14396 * MAINTAINERS (Write After Approval): Adding myself.
14397
14398 2020-02-12 Tom Tromey <tom@tromey.com>
14399
14400 * event-loop.c (event_data, gdb_event, event_handler_func):
14401 Remove.
14402
14403 2020-02-12 Tom Tromey <tom@tromey.com>
14404
14405 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14406 (dwarf2_frame_objfile_data): Add comment.
14407 (find_comp_unit, set_comp_unit): New functions.
14408 (dwarf2_frame_find_fde): Use find_comp_unit.
14409 (dwarf2_build_frame_info): Use set_comp_unit.
14410
14411 2020-02-12 Tom Tromey <tom@tromey.com>
14412
14413 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14414 (comp_unit): Don't initialize objfile.
14415 (execute_cfa_program): Add text_offset parameter.
14416 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14417 (dwarf2_frame_cache): Update.
14418 (dwarf2_build_frame_info): Don't set "objfile" member.
14419
14420 2020-02-12 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14423 (decode_frame_entry): Likewise.
14424 (dwarf2_build_frame_info): Update.
14425
14426 2020-02-12 Tom Tromey <tom@tromey.com>
14427
14428 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14429 (decode_frame_entry_1): Use the comp_unit obstack.
14430
14431 2020-02-12 Tom Tromey <tom@tromey.com>
14432
14433 * dwarf2/frame.c (struct comp_unit): Add initializers and
14434 constructor.
14435 (dwarf2_frame_objfile_data): Store a comp_unit.
14436 (dwarf2_frame_find_fde): Update.
14437 (dwarf2_build_frame_info): Use "new".
14438
14439 2020-02-12 Tom Tromey <tom@tromey.com>
14440
14441 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14442 (dwarf2_fde_table): Typedef for std::vector.
14443 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14444 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14445 (decode_frame_entry): Update.
14446 (dwarf2_build_frame_info): Use "new".
14447
14448 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14449
14450 * arm-tdep.c (arm_gdbarch_init): Update.
14451 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14452 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14453 have_neon, is_m>: Change to bool.
14454
14455 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14456
14457 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14458
14459 2020-02-12 Tom Tromey <tom@tromey.com>
14460
14461 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14462
14463 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14464
14465 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14466 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14467
14468 2020-02-11 Tom Tromey <tom@tromey.com>
14469
14470 * psymtab.h: Update comment.
14471
14472 2020-02-11 Tom Tromey <tom@tromey.com>
14473
14474 * gdb_obstack.h (struct auto_obstack): Use
14475 DISABLE_COPY_AND_ASSIGN.
14476
14477 2020-02-11 Tom Tromey <tom@tromey.com>
14478
14479 * dwarf2/frame.h (struct objfile): Don't forward declare.
14480
14481 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14482
14483 * cris-tdep.c (cris_supply_gregset): Change signature to match
14484 what struct regset expects.
14485 (cris_regset): New struct.
14486 (fetch_core_registers): Remove.
14487 (cris_iterate_over_regset_sections): New function.
14488 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14489 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14490
14491 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14492
14493 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14494 registers.
14495
14496 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14497
14498 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14499
14500 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14501
14502 * configure: Re-generate.
14503
14504 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14505
14506 * configure: Re-generate.
14507
14508 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14509
14510 * acinclude: Update warning.m4 path.
14511 * warning.m4: Move to gdbsupport.
14512
14513 2020-02-11 Tom Tromey <tromey@adacore.com>
14514
14515 * remote.c (remote_console_output): Update.
14516 * printcmd.c (printf_command): Update.
14517 * event-loop.c (gdb_wait_for_event): Update.
14518 * linux-nat.c (sigchld_handler): Update.
14519 * remote-sim.c (gdb_os_write_stdout): Update.
14520 (gdb_os_flush_stdout): Update.
14521 (gdb_os_flush_stderr): Update.
14522 (gdb_os_write_stderr): Update.
14523 * exceptions.c (print_exception): Update.
14524 * remote-fileio.c (remote_fileio_func_read): Update.
14525 (remote_fileio_func_write): Update.
14526 * tui/tui.c (tui_enable): Update.
14527 * tui/tui-interp.c (tui_interp::init): Update.
14528 * utils.c (init_page_info): Update.
14529 (putchar_unfiltered, fputc_unfiltered): Update.
14530 (gdb_flush): Update.
14531 (emit_style_escape): Update.
14532 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14533 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14534 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14535 (stderr_file::write): Update.
14536 (stderr_file::puts): Update.
14537 * ui-file.h (ui_file_isatty, ui_file_write)
14538 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14539 (ui_file_puts): Don't declare.
14540
14541 2020-02-10 Tom de Vries <tdevries@suse.de>
14542
14543 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14544 sentinel to char *.
14545
14546 2020-02-09 Tom de Vries <tdevries@suse.de>
14547
14548 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14549 filename if it matches "<artificial>".
14550
14551 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14552
14553 * windows-tdep.c (struct enum_value_name): New struct.
14554 (create_enum): New function.
14555 (windows_get_siginfo_type): Create and use enum types.
14556
14557 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14558
14559 * NEWS: Mention $_siginfo support for Windows.
14560 * windows-nat.c (handle_exception): Set siginfo_er.
14561 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14562 (windows_xfer_siginfo): New function.
14563 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14564 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14565 (init_windows_gdbarch_data): New function.
14566 (get_windows_gdbarch_data): New function.
14567 (windows_get_siginfo_type): New function.
14568 (windows_init_abi): Register windows_get_siginfo_type.
14569 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14570
14571 2020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14574 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14575 <keep>: Declare method.
14576 <m_keep>: Remove member.
14577 <~cutu_reader>: Remove.
14578 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14579 (cutu_reader::cutu_reader): Update.
14580 (cutu_reader::keep): Rename from ~cutu_reader.
14581 (process_psymtab_comp_unit, build_type_psymtabs_1)
14582 (process_skeletonless_type_unit, load_partial_comp_unit)
14583 (load_full_comp_unit, dwarf2_read_addr_index)
14584 (read_signatured_type): Update.
14585
14586 2020-02-08 Tom Tromey <tom@tromey.com>
14587
14588 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14589 "want_partial_unit" parameter.
14590 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14591 Inline check for DW_TAG_partial_unit.
14592 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14593
14594 2020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14597 read.c.
14598 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14599 read.c.
14600
14601 2020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2/read.c (read_address): Move to comp-unit.c.
14604 (dwarf2_rnglists_process, dwarf2_ranges_process)
14605 (read_attribute_value, dwarf_decode_lines_1)
14606 (var_decode_location, decode_locdesc): Update.
14607 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14608 read.c. Remove "cu" parameter.
14609 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14610 method.
14611
14612 2020-02-08 Tom Tromey <tom@tromey.com>
14613
14614 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14615 (read_indirect_line_string): Update.
14616 * dwarf2/comp-unit.c (read_offset): Remove.
14617 (read_comp_unit_head): Update.
14618 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14619 method.
14620 (read_offset): Don't declare.
14621
14622 2020-02-08 Tom Tromey <tom@tromey.com>
14623
14624 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14625 * dwarf2/read.c (struct comp_unit_head): Move to
14626 dwarf2/comp-unit.h.
14627 (enum class rcuh_kind): Move to comp-unit.h.
14628 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14629 (read_comp_unit_head, error_check_comp_unit_head)
14630 (read_and_check_comp_unit_head): Move to comp-unit.c.
14631 (read_offset, dwarf_unit_type_name): Likewise.
14632 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14633 (cutu_reader::cutu_reader, read_call_site_scope)
14634 (find_partial_die, follow_die_offset): Update.
14635 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14636
14637 2020-02-08 Tom Tromey <tom@tromey.com>
14638
14639 * dwarf2/read.c (read_offset_1): Move to leb.c.
14640 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14641 (dwarf_decode_macro_bytes): Update.
14642 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14643 * dwarf2/leb.h (read_offset): Declare.
14644
14645 2020-02-08 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2/read.c (dwarf2_section_size): Remove.
14648 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14649 Update.
14650 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14651
14652 2020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.c (read_initial_length): Move to leb.c.
14655 * dwarf2/leb.h (read_initial_length): Declare.
14656 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14657 handle_nonstd parameter.
14658 * dwarf2/frame.c (read_initial_length): Remove.
14659 (decode_frame_entry_1): Update.
14660
14661 2020-02-08 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/loc.c (dwarf2_find_location_expression)
14664 (dwarf_evaluate_loc_desc::get_tls_address)
14665 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14666 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14667 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14668 (dwarf2_compile_property_to_c)
14669 (dwarf2_loc_desc_get_symbol_read_needs)
14670 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14671 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14672 (loclist_describe_location, loclist_tracepoint_var_ref)
14673 (loclist_generate_c_location): Update.
14674 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14675 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14676 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14677 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14678 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14679 (dwarf2_per_cu_data::addr_size)
14680 (dwarf2_per_cu_data::ref_addr_size)
14681 (dwarf2_per_cu_data::text_offset)
14682 (dwarf2_per_cu_data::addr_type): Now methods.
14683 (per_cu_header_read_in): Make per_cu "const".
14684 (dwarf2_version): Remove.
14685 (dwarf2_per_cu_data::int_type): Now a method.
14686 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14687 (set_die_type, read_array_type, read_subrange_index_type)
14688 (read_tag_string_type, read_subrange_type): Update.
14689 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14690 offset_size, ref_addr_size, text_offset, addr_type, version,
14691 objfile, int_type, addr_sized_int_type>: Declare methods.
14692
14693 2020-02-08 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14696 Move earlier.
14697
14698 2020-02-08 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/read.h (dwarf_line_debug): Declare.
14701 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14702 * dwarf2/read.c: Move line_header code to new files.
14703 (dwarf_line_debug): No longer static.
14704 * dwarf2/line-header.c: New file.
14705 * dwarf2/line-header.h: New file.
14706
14707 2020-02-08 Tom Tromey <tom@tromey.com>
14708
14709 * dwarf2/read.c (struct line_header) <file_full_name,
14710 file_file_name>: Return unique_xmalloc_ptr.
14711 (line_header::file_file_name): Update.
14712 (line_header::file_full_name): Update.
14713 (dw2_get_file_names_reader): Update.
14714 (macro_start_file): Update.
14715
14716 2020-02-08 Tom Tromey <tom@tromey.com>
14717
14718 * dwarf2/read.c (struct line_header) <file_full_name,
14719 file_file_name>: Declare methods.
14720 (dw2_get_file_names_reader): Update.
14721 (file_file_name): Now a method.
14722 (file_full_name): Likewise.
14723 (macro_start_file): Update.
14724
14725 2020-02-08 Tom Tromey <tom@tromey.com>
14726
14727 * dwarf2/read.c (dwarf_always_disassemble)
14728 (show_dwarf_always_disassemble): Move to loc.c.
14729 (_initialize_dwarf2_read): Move "always-disassemble" registration
14730 to loc.c.
14731 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14732 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14733 static.
14734 (show_dwarf_always_disassemble): Move from read.c.
14735 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14736
14737 2020-02-08 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14740 (create_quick_file_names_table): Return htab_up.
14741 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14742 Update.
14743 * dwarf2/read.h (struct dwarf2_per_objfile)
14744 <quick_file_names_table>: Now htab_up.
14745
14746 2020-02-08 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14749
14750 2020-02-08 Tom Tromey <tom@tromey.com>
14751
14752 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14753 Rewrite.
14754 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14755 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14756 (abbrev_table::abbrev_table): No longer inline.
14757 (ABBREV_HASH_SIZE): Remove.
14758 (abbrev_table::m_abbrevs): Now an htab_up.
14759
14760 2020-02-08 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14763 (cutu_reader): Update.
14764 (build_type_psymtabs_1): Update.
14765 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14766 (abbrev_table::alloc_abbrev): Update.
14767 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14768 (abbrev_table::read): New static method, renamed from
14769 abbrev_table_read_table.
14770 (abbrev_table::alloc_abbrev)
14771 (abbrev_table::add_abbrev): Now private.
14772 (abbrev_table::abbrev_table): Now private.
14773 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14774
14775 2020-02-08 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14778 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14779 htab_up.
14780
14781 2020-02-08 Tom Tromey <tom@tromey.com>
14782
14783 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14784 htab_up.
14785 (lookup_dwo_unit_in_dwp): Update.
14786 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14787 on obstack.
14788
14789 2020-02-08 Tom Tromey <tom@tromey.com>
14790
14791 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14792 obstack.
14793
14794 2020-02-08 Tom Tromey <tom@tromey.com>
14795
14796 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14797 line_header_hash.
14798 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14799 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14800 Change type to htab_up.
14801
14802 2020-02-08 Tom Tromey <tom@tromey.com>
14803
14804 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14805 htab_up. Don't allocate on obstack.
14806 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14807 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14808 Change type to htab_up.
14809
14810 2020-02-08 Tom Tromey <tom@tromey.com>
14811
14812 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14813 Change type to htab_up.
14814 * dwarf2/read.c (create_signatured_type_table_from_index)
14815 (create_signatured_type_table_from_debug_names)
14816 (create_all_type_units, add_type_unit)
14817 (lookup_dwo_signatured_type, lookup_signatured_type)
14818 (process_skeletonless_type_unit): Update.
14819 (create_debug_type_hash_table, create_debug_types_hash_table):
14820 Change type of types_htab.
14821 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14822 htab_up. Don't allocate on obstack.
14823 (create_cus_hash_table): Change type of cus_htab parameter.
14824 (struct dwo_file) <cus, tus>: Now htab_up.
14825 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14826 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14827 (queue_and_load_all_dwo_tus): Update.
14828 * dwarf2/index-write.c (write_gdbindex): Update.
14829 (write_debug_names): Update.
14830
14831 2020-02-08 Tom Tromey <tom@tromey.com>
14832
14833 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14834 dwarf2/read.c. Remove "next" member. Add constructor ntad
14835 destructor.
14836 (struct dwarf2_per_objfile) <queue>: New member.
14837 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14838 dwarf2/read.h.
14839 (dwarf2_queue, dwarf2_queue_tail): Remove.
14840 (class dwarf2_queue_guard): Add parameter to constructor. Use
14841 DISABLE_COPY_AND_ASSIGN.
14842 <m_per_objfile>: New member.
14843 <~dwarf2_queue_guard>: Rewrite.
14844 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14845 Update.
14846 (~dwarf2_queue_item): New.
14847
14848 2020-02-08 Tom Tromey <tom@tromey.com>
14849
14850 * dwarf2/read.c (struct die_info) <has_children>: New member.
14851 (dw2_get_file_names_reader): Remove has_children.
14852 (dw2_get_file_names): Update.
14853 (read_cutu_die_from_dwo): Remove has_children.
14854 (cutu_reader::init_tu_and_read_dwo_dies)
14855 (cutu_reader::cutu_reader): Update.
14856 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14857 Remove has_children.
14858 (build_type_psymtabs_1, process_skeletonless_type_unit)
14859 (load_partial_comp_unit, load_full_comp_unit): Update.
14860 (create_dwo_cu_reader): Remove has_children.
14861 (create_cus_hash_table, read_die_and_children): Update.
14862 (read_full_die_1,read_full_die): Remove has_children.
14863 (read_signatured_type): Update.
14864 (class cutu_reader) <has_children>: Remove.
14865
14866 2020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * dwarf2/expr.c: Rename from dwarf2expr.c.
14869 * dwarf2/expr.h: Rename from dwarf2expr.h.
14870 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14871 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14872 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14873 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14874 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14875 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14876 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14877 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14878 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14879 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14880 * dwarf2/loc.c: Rename from dwarf2loc.c.
14881 * dwarf2/loc.h: Rename from dwarf2loc.h.
14882 * dwarf2/read.c: Rename from dwarf2read.c.
14883 * dwarf2/read.h: Rename from dwarf2read.h.
14884 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14885 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14886 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14887 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14888 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14889 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14890 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14891 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14892 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14893 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14894 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14895 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14896 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14897 Update.
14898 * Makefile.in (COMMON_SFILES): Update.
14899 (HFILES_NO_SRCDIR): Update.
14900
14901 2020-02-08 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14904 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14905
14906 2020-02-08 Tom Tromey <tom@tromey.com>
14907
14908 * dwarf2read.h (struct die_info): Don't declare.
14909
14910 2020-02-08 Tom Tromey <tom@tromey.com>
14911
14912 * dwarf2read.h (die_info_ptr): Remove typedef.
14913
14914 2020-02-08 Tom Tromey <tom@tromey.com>
14915
14916 * dwarf2read.c (read_call_site_scope)
14917 (handle_data_member_location, dwarf2_add_member_fn)
14918 (mark_common_block_symbol_computed, read_common_block)
14919 (attr_to_dynamic_prop, partial_die_info::read)
14920 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14921 (dwarf2_symbol_mark_computed, set_die_type): Update.
14922 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14923 method.
14924 (attr_form_is_block): Don't declare.
14925 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14926
14927 2020-02-08 Tom Tromey <tom@tromey.com>
14928
14929 * dwarf2read.c (dwarf2_find_base_address, )
14930 (read_call_site_scope, rust_containing_type)
14931 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14932 (handle_data_member_location, dwarf2_add_member_fn)
14933 (get_alignment, read_structure_type, process_structure_scope)
14934 (mark_common_block_symbol_computed, read_common_block)
14935 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14936 (partial_die_info::read, read_attribute_value, new_symbol)
14937 (lookup_die_type, dwarf2_get_ref_die_offset)
14938 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14939 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14940 (dwarf2_symbol_mark_computed): Update.
14941 * dwarf2/attribute.h (struct attribute) <value_as_address,
14942 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14943 methods.
14944 (value_as_address, attr_form_is_section_offset)
14945 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14946 * dwarf2/attribute.c (attribute::value_as_address)
14947 (attribute::form_is_section_offset, attribute::form_is_constant)
14948 (attribute::form_is_ref): Now methods.
14949
14950 2020-02-08 Tom Tromey <tom@tromey.com>
14951
14952 * dwarf2read.c (struct attribute, DW_STRING)
14953 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14954 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14955 (attr_form_is_block, attr_form_is_section_offset)
14956 (attr_form_is_constant, attr_form_is_ref): Move.
14957 * dwarf2/attribute.h: New file.
14958 * dwarf2/attribute.c: New file, from dwarf2read.c.
14959 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14960
14961 2020-02-08 Tom Tromey <tom@tromey.com>
14962
14963 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14964 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14965 Move.
14966 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14967 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14968 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14969 abbrev.c.
14970 * dwarf2/abbrev.h: New file.
14971 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14972 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14973
14974 2020-02-08 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14977 (dwarf2_section_size, dwarf2_get_section_info)
14978 (create_signatured_type_table_from_debug_names)
14979 (create_addrmap_from_aranges, read_debug_names_from_section)
14980 (get_gdb_index_contents_from_section, read_comp_unit_head)
14981 (error_check_comp_unit_head, read_abbrev_offset)
14982 (create_debug_type_hash_table, init_cu_die_reader)
14983 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14984 (read_comp_units_from_section, create_cus_hash_table)
14985 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14986 (create_dwp_v2_section, dwarf2_rnglists_process)
14987 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14988 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14989 (read_indirect_string_from_dwz, read_addr_index_1)
14990 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14991 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14992 (fill_in_loclist_baton): Update.
14993 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14994 get_containing_section, get_bfd_owner, get_bfd_section,
14995 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14996 (dwarf2_read_section, get_section_name, get_section_file_name)
14997 (get_containing_section, get_section_bfd_owner)
14998 (get_section_bfd_section, get_section_name, get_section_file_name)
14999 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15000 declare.
15001 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15002 (dwarf2_section_info::get_bfd_owner)
15003 (dwarf2_section_info::get_bfd_section)
15004 (dwarf2_section_info::get_name)
15005 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15006 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15007 (dwarf2_section_info::read): Now methods.
15008 * dwarf-index-write.c (class debug_names): Update.
15009
15010 2020-02-08 Tom Tromey <tom@tromey.com>
15011
15012 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15013 Move to dwarf2/section.h.
15014 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15015 (get_section_bfd_section, get_section_name)
15016 (get_section_file_name, get_section_id, get_section_flags)
15017 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15018 dwarf2/section.c.
15019 * dwarf2/section.h: New file.
15020 * dwarf2/section.c: New file, from dwarf2read.c.
15021 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15022
15023 2020-02-08 Tom Tromey <tom@tromey.com>
15024
15025 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15026 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15027 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15028 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15029 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15030 * dwarf2/leb.h: New file, from dwarf2read.c.
15031 * dwarf2/leb.c: New file, from dwarf2read.c.
15032 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15033 Remove.
15034 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15035 (COMMON_SFILES): Add dwarf2/leb.c.
15036
15037 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15038
15039 GDB 9.1 released.
15040
15041 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15042
15043 PR gdb/25190:
15044 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15045 * gdb/remote.c (remote_console_output): Update.
15046 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15047 (ui_file_puts): ...this.
15048 * gdb/ui-file.h (ui_file_puts): Add declaration.
15049 * gdb/utils.c (emit_style_escape): Update.
15050 (flush_wrap_buffer): Update.
15051 (fputs_maybe_filtered): Update.
15052 (fputs_unfiltered): Add function.
15053
15054 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15055
15056 * gdb/event-loop.c (gdb_wait_for_event): Update.
15057 * gdb/printcmd.c (printf_command): Update.
15058 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15059 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15060 (gdb_os_flush_stderr): Update.
15061 * gdb/remote.c (remote_console_output): Update.
15062 * gdb/ui-file.c (gdb_flush): Rename to...
15063 (ui_file_flush): ...this.
15064 (stderr_file::write): Update.
15065 (stderr_file::puts): Update.
15066 * gdb/ui-file.h (gdb_flush): Rename to...
15067 (ui_file_flush): ...this.
15068 * gdb/utils.c (gdb_flush): Add function.
15069 * gdb/utils.h (gdb_flush): Add declaration.
15070
15071 2020-02-07 Tom Tromey <tromey@adacore.com>
15072
15073 PR breakpoints/24915:
15074 * source.c (find_and_open_source): Do not check basenames_may_differ.
15075
15076 2020-02-07 Tom Tromey <tom@tromey.com>
15077
15078 * README: Update gdbserver documentation.
15079 * gdbserver: Move to top level.
15080 * configure.tgt (build_gdbserver): Remove.
15081 * configure.ac: Remove --enable-gdbserver.
15082 * configure: Rebuild.
15083 * Makefile.in (distclean): Don't mention gdbserver.
15084
15085 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15086
15087 * source-cache.c (source_cache::ensure): Surround
15088 get_plain_source_lines with a try/catch.
15089 (source_cache::get_line_charpos): Get rid of try/catch
15090 and only check for the return value of "ensure".
15091 * tui/tui-source.c (tui_source_window::set_contents):
15092 Simplify "nlines" calculation.
15093
15094 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15095
15096 * MAINTAINERS (Write After Approval): Add myself.
15097
15098 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15099
15100 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15101 function call.
15102
15103 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15104
15105 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15106
15107 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15108
15109 * nat/riscv-linux-tdesc.h: New file.
15110 * nat/riscv-linux-tdesc.c: New file, taking code from...
15111 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15112 ... here.
15113 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15114 NATDEPFILES.
15115
15116 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15117
15118 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15119 we don't set the fake simulator ptid to the null_ptid.
15120
15121 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15122
15123 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15124 * gdbthread.h (class thread_info) <resumed>: Likewise.
15125 * infrun.c (resume_1): Likewise.
15126 (proceed): Likewise.
15127 (infrun_thread_stop_requested): Likewise.
15128 (stop_all_threads): Likewise.
15129 (handle_inferior_event): Likewise.
15130 (restart_threads): Likewise.
15131 (finish_step_over): Likewise.
15132 (keep_going_stepped_thread): Likewise.
15133 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15134 (linux_handle_extended_wait): Likewise.
15135 * record-btrace.c (get_thread_current_frame_id): Likewise.
15136 * record-full.c (record_full_wait_1): Likewise.
15137 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15138 * target.c (target_resume): Likewise.
15139 * thread.c (set_running_thread): Likewise.
15140
15141 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15142
15143 * f-valprint.c (f77_print_array_1): Changed datatype of index
15144 variable to LONGEST from int to enable it to contain bound
15145 values correctly.
15146
15147 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15148
15149 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15150 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15151 offsets according to FLEN determined.
15152 (riscv_linux_nat_target::read_description): Determine FLEN
15153 dynamically.
15154 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15155 according to FLEN determined.
15156 (riscv_linux_nat_target::store_registers): Likewise.
15157
15158 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15159
15160 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15161 when reg->group is empty and reggroup is not.
15162
15163 2020-01-31 Tom Tromey <tromey@adacore.com>
15164
15165 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15166 Call beneath target's mourn_inferior after unpushing.
15167
15168 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15169
15170 PR tui/9765
15171 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15172 have enough lines to fill the screen, still return the lowest
15173 address we found.
15174
15175 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15176
15177 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15178 '-', '<', and '>' commands.
15179
15180 2020-01-29 Pedro Alves <palves@redhat.com>
15181 Sergio Durigan Junior <sergiodj@redhat.com>
15182
15183 * infcmd.c (construct_inferior_arguments): Assert that
15184 'argc' is greater than 0.
15185
15186 2020-01-29 Luis Machado <luis.machado@linaro.org>
15187
15188 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15189 (BRK_INSN_MASK): Define to 0xd4200000.
15190 (aarch64_program_breakpoint_here_p): New function.
15191 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15192 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15193 breakpoint.c.
15194 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15195 breakpoint.h
15196 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15197 call gdbarch_program_breakpoint_here_p.
15198 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15199 default_program_breakpoint_here_p, changed return type to bool and
15200 simplified.
15201 * breakpoint.h (program_breakpoint_here): Moved prototype to
15202 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15203 return type to bool.
15204 * gdbarch.c: Regenerate.
15205 * gdbarch.h: Regenerate.
15206 * gdbarch.sh (program_breakpoint_here_p): New method.
15207 * infrun.c (handle_signal_stop): Call
15208 gdbarch_program_breakpoint_here_p.
15209
15210 2020-01-26 Tom Tromey <tom@tromey.com>
15211
15212 * ctfread.c (struct ctf_fp_info): Reindent.
15213 (_initialize_ctfread): Remove.
15214
15215 2020-01-26 Tom Tromey <tom@tromey.com>
15216
15217 * psymtab.c (partial_map_expand_apply)
15218 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15219 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15220 (psym_print_stats, psym_expand_symtabs_for_function)
15221 (psym_map_symbol_filenames, psym_map_matching_symbols)
15222 (psym_expand_symtabs_matching)
15223 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15224 (maintenance_check_psymtabs): Use new methods.
15225 * psympriv.h (struct partial_symtab) <readin_p,
15226 get_compunit_symtab>: New methods.
15227 <readin, compunit_symtab>: Remove members.
15228 (struct standard_psymtab): New.
15229 (struct legacy_psymtab): Derive from standard_psymtab.
15230 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15231 standard_psymtab.
15232 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15233
15234 2020-01-26 Tom Tromey <tom@tromey.com>
15235
15236 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15237 read_dependencies. Add assert.
15238 * psymtab.c (partial_symtab::read_dependencies): New method.
15239 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15240 method.
15241 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15242 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15243 read_dependencies.
15244 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15245 Add assert.
15246
15247 2020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15250 Call expand_psymtab.
15251 (xcoff_read_symtab): Call expand_psymtab.
15252 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15253 legacy_expand_psymtab.
15254 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15255 method.
15256 (struct legacy_psymtab) <expand_psymtab>: Implement.
15257 <legacy_expand_psymtab>: New member.
15258 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15259 (parse_partial_symbols): Set legacy_expand_psymtab.
15260 (psymtab_to_symtab_1): Change argument order. Call
15261 expand_psymtab.
15262 (new_psymtab): Set legacy_expand_psymtab.
15263 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15264 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15265 expand_psymtab.
15266 (dwarf2_psymtab::expand_psymtab): Rename from
15267 psymtab_to_symtab_1. Call expand_psymtab.
15268 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15269 (dbx_end_psymtab): Likewise.
15270 (dbx_psymtab_to_symtab_1): Change argument order. Call
15271 expand_psymtab.
15272 (dbx_read_symtab): Call expand_psymtab.
15273 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15274 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15275 (ctf_psymtab::read_symtab): Call expand_psymtab.
15276
15277 2020-01-26 Tom Tromey <tom@tromey.com>
15278
15279 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15280 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15281 messages.
15282 * mdebugread.c (mdebug_read_symtab): Remove prints.
15283 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15284 assert.
15285 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15286
15287 2020-01-26 Tom Tromey <tom@tromey.com>
15288
15289 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15290 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15291 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15292 legacy_symtab.
15293 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15294 * psymtab.c (psymtab_to_symtab): Call method.
15295 (dump_psymtab): Update.
15296 * psympriv.h (struct partial_symtab): Add virtual destructor.
15297 <read_symtab>: New method.
15298 (struct legacy_symtab): New.
15299 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15300 (struct pst_map) <pst>: Now a legacy_psymtab.
15301 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15302 (new_psymtab): Use legacy_psymtab.
15303 * dwarf2read.h (struct dwarf2_psymtab): New.
15304 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15305 * dwarf2read.c (dwarf2_create_include_psymtab)
15306 (dwarf2_build_include_psymtabs, create_type_unit_group)
15307 (create_partial_symtab, process_psymtab_comp_unit_reader)
15308 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15309 (set_partial_user): Use dwarf2_psymtab.
15310 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15311 (psymtab_to_symtab_1, process_full_comp_unit)
15312 (process_full_type_unit, dwarf2_ranges_read)
15313 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15314 (dwarf_decode_lines): Use dwarf2_psymtab.
15315 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15316 (add_address_entry_worker, write_one_signatured_type)
15317 (recursively_count_psymbols, recursively_write_psymbols)
15318 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15319 (write_debug_names): Likewise.
15320 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15321 <pst>: Now a legacy_psymtab.
15322 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15323 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15324 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15325 * ctfread.c (struct ctf_psymtab): New.
15326 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15327 ctf_psymtab.
15328 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15329 (create_partial_symtab): Return a ctf_psymtab.
15330 (scan_partial_symbols): Update.
15331
15332 2020-01-26 Tom Tromey <tom@tromey.com>
15333
15334 * xcoffread.c (xcoff_start_psymtab): Use new.
15335 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15336 renamed from start_psymtab_common.
15337 * psympriv.h (struct partial_symtab): Add new constructor.
15338 (start_psymtab_common): Don't declare.
15339 * mdebugread.c (parse_partial_symbols): Use new.
15340 * dwarf2read.c (create_partial_symtab): Use new.
15341 * dbxread.c (start_psymtab): Use new.
15342 * ctfread.c (create_partial_symtab): Use new.
15343
15344 2020-01-26 Tom Tromey <tom@tromey.com>
15345
15346 * xcoffread.c (xcoff_end_psymtab): Use new.
15347 * psymtab.c (start_psymtab_common): Use new.
15348 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15349 Update.
15350 * psympriv.h (struct partial_symtab): Add parameters to
15351 constructor. Don't inline.
15352 (allocate_psymtab): Don't declare.
15353 * mdebugread.c (new_psymtab): Use new.
15354 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15355 * dbxread.c (dbx_end_psymtab): Use new.
15356
15357 2020-01-26 Tom Tromey <tom@tromey.com>
15358
15359 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15360 allocate_psymtab. Update documentation.
15361 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15362 allocate_psymtab. Do not use new.
15363 (allocate_psymtab): Use new. Update.
15364
15365 2020-01-26 Tom Tromey <tom@tromey.com>
15366
15367 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15368 * psymtab.c (psym_print_stats): Update.
15369 * psympriv.h (struct partial_symtab) <readin,
15370 psymtabs_addrmap_supported, anonymous>: Now bool.
15371 * mdebugread.c (psymtab_to_symtab_1): Update.
15372 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15373 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15374 (process_full_comp_unit, process_full_type_unit): Update.
15375 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15376 * ctfread.c (psymtab_to_symtab): Update.
15377
15378 2020-01-26 Tom Tromey <tom@tromey.com>
15379
15380 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15381 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15382 * psymtab.c (psymtab_storage): Delete psymtabs.
15383 (psymtab_storage::allocate_psymtab): Use new.
15384 (psymtab_storage::discard_psymtab): Use delete.
15385 * psympriv.h (struct partial_symtab): Add constructor and
15386 initializers.
15387
15388 2020-01-26 Tom Tromey <tom@tromey.com>
15389
15390 * machoread.c: Do not include psympriv.h.
15391
15392 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15393
15394 * NEWS: Mention the new option and the set/show commands.
15395
15396 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15397
15398 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15399 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15400 (validate_exec_file): New variables, enums, functions.
15401 (exec_file_locate_attach, print_section_info): Style the filenames.
15402 (_initialize_exec): Install show_exec_file_mismatch_command and
15403 set_exec_file_mismatch_command.
15404 * gdbcore.h (validate_exec_file): Declare.
15405 * infcmd.c (attach_command): Call validate_exec_file.
15406 * remote.c ( remote_target::remote_add_inferior): Likewise.
15407
15408 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15409
15410 * frame.c (find_frame_sal): Move call to get_next_frame into more
15411 inner scope.
15412 * inline-frame.c (inilne_state) <inline_state>: Update argument
15413 types.
15414 (inilne_state) <skipped_symbol>: Rename to...
15415 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15416 (skip_inline_frames): Build vector of skipped symbols and use this
15417 to reate the inline_state.
15418 (inline_skipped_symbol): Add a comment and some assertions, fetch
15419 skipped symbol from the list.
15420
15421 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15422
15423 * buildsym.c (lte_is_less_than): Delete.
15424 (buildsym_compunit::end_symtab_with_blockvector): Create local
15425 lambda function to sort line table entries, and use
15426 std::stable_sort instead of std::sort.
15427 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15428 markers when looking for a previous line.
15429
15430 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15431
15432 * dwarf2read.c (lnp_state_machine::record_line): Include
15433 end_sequence parameter in debug print out. Record the line if we
15434 are at an end_sequence marker even if it's not the start of a
15435 statement.
15436 * symmisc.c (maintenance_print_one_line_table): Print end of
15437 sequence markers with 'END' not '0'.
15438
15439 2020-01-24 Pedro Alves <palves@redhat.com>
15440
15441 PR gdb/25410
15442 * thread.c (scoped_restore_current_thread::restore): Use
15443 switch_to_inferior_no_thread.
15444 * exec.c: Include "progspace-and-thread.h".
15445 (add_target_sections, remove_target_sections):
15446 scoped_restore_current_pspace_and_thread instead of
15447 scoped_restore_current_thread.
15448 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15449 and aspace to the inferior before calling clone_program_space.
15450 Remove stale comment.
15451
15452 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15453
15454 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15455 (arm_netbsd_nat_target::fetch_registers): ...this.
15456 (arm_nbsd_nat_target::store_registers): Rename to...
15457 (arm_netbsd_nat_target::store_registers): ...this.
15458
15459 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15460
15461 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15462 register_t.
15463
15464 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15465
15466 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15467 Update comment.
15468 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15469 Likewise.
15470 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15471 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15472 the correct replacement (iterate_over_regset_sections).
15473 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15474 Update comment.
15475
15476 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15477
15478 PR gdb/23718
15479 * gdb/python/python.c (execute_gdb_command): Call
15480 async_enable_stdin in catch block.
15481
15482 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15483
15484 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15485 SWITCH_THRU_ALL_UIS.
15486
15487 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15488
15489 PR tui/9765
15490 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15491 comment, add extra parameter, and update to store previous symbol
15492 when appropriate.
15493 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15494 add extra parameter.
15495 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15496 remove unneeded parameter, add try/catch around gdb_print_insn,
15497 rewrite to add items to asm_lines vector.
15498 (tui_find_backward_disassembly_start_address): New function.
15499 (tui_find_disassembly_address): Updated throughout.
15500 (tui_disasm_window::set_contents): Update for changes to
15501 tui_disassemble.
15502 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15503 number of lines to scroll.
15504
15505 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15506
15507 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15508 (SECT_OFF_DATA): Likewise.
15509 (SECT_OFF_RODATA): Likewise.
15510 (SECT_OFF_TEXT): Likewise.
15511 (SECT_OFF_BSS): Likewise.
15512 (struct objfile) <text_section_offset, data_section_offset>: New
15513 methods.
15514 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15515 objfile::text_section_offset.
15516 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15517 * coffread.c (coff_symtab_read): Likewise.
15518 (enter_linenos): Likewise.
15519 (process_coff_symbol): Likewise.
15520 * ctfread.c (get_objfile_text_range): Likewise.
15521 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15522 Use objfile::data_section_offset.
15523 * dwarf2-frame.c (execute_cfa_program): Use
15524 objfile::text_section_offset.
15525 (dwarf2_frame_find_fde): Likewise.
15526 * dwarf2read.c (create_addrmap_from_index): Likewise.
15527 (create_addrmap_from_aranges): Likewise.
15528 (dw2_find_pc_sect_compunit_symtab): Likewise.
15529 (process_psymtab_comp_unit_reader): Likewise.
15530 (add_partial_symbol): Likewise.
15531 (add_partial_subprogram): Likewise.
15532 (process_full_comp_unit): Likewise.
15533 (read_file_scope): Likewise.
15534 (read_func_scope): Likewise.
15535 (read_lexical_block_scope): Likewise.
15536 (read_call_site_scope): Likewise.
15537 (dwarf2_rnglists_process): Likewise.
15538 (dwarf2_ranges_process): Likewise.
15539 (dwarf2_ranges_read): Likewise.
15540 (dwarf_decode_lines_1): Likewise.
15541 (new_symbol): Likewise.
15542 (dwarf2_fetch_die_loc_sect_off): Likewise.
15543 (dwarf2_per_cu_text_offset): Likewise.
15544 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15545 * hppa-tdep.c (read_unwind_info): Likewise.
15546 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15547 * psympriv.h (struct partial_symtab): Likewise.
15548 * psymtab.c (find_pc_sect_psymtab): Likewise.
15549 * solib-svr4.c (enable_break): Likewise.
15550 * stap-probe.c (relocate_address): Use
15551 objfile::data_section_offset.
15552 * xcoffread.c (enter_line_range): Use
15553 objfile::text_section_offset.
15554 (read_xcoff_symtab): Likewise.
15555
15556 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15557
15558 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15559 declaration to narrower scopes.
15560
15561 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15562
15563 * darwin-nat.h (struct darwin_exception_msg, enum
15564 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15565 Move up.
15566 (class darwin_nat_target) <wait_1, check_new_threads,
15567 decode_exception_message, decode_message, stop_inferior,
15568 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15569 * darwin-nat.c (darwin_check_new_threads): Rename to...
15570 (darwin_nat_target::check_new_threads): ... this.
15571 (darwin_suspend_inferior_it): Remove.
15572 (darwin_decode_exception_message): Rename to...
15573 (darwin_nat_target::decode_exception_message): ... this.
15574 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15575 (darwin_decode_message): Rename to...
15576 (darwin_nat_target::decode_message): ... this.
15577 (cancel_breakpoint): Rename to...
15578 (darwin_nat_target::cancel_breakpoint): ... this.
15579 (darwin_wait): Rename to...
15580 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15581 instead of iterate_over_inferiors.
15582 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15583 (darwin_stop_inferior): Rename to...
15584 (darwin_nat_target::stop_inferior): ... this.
15585 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15586 (darwin_init_thread_list): Rename to...
15587 (darwin_nat_target::init_thread_list): ... this.
15588 (darwin_ptrace_him): Rename to...
15589 (darwin_nat_target::ptrace_him): ... this.
15590 (darwin_nat_target::create_inferior): Pass lambda function to
15591 fork_inferior.
15592 (darwin_nat_target::detach): Call stop_inferior instead of
15593 darwin_stop_inferior.
15594 * fork-inferior.h (fork_inferior): Change init_trace_fun
15595 parameter to gdb::function_view.
15596 * fork-inferior.c (fork_inferior): Likewise.
15597
15598 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15599
15600 * i386-cygwin-tdep.c (core_process_module_section): Update.
15601 * windows-nat.c (struct lm_info_windows): Add text_offset.
15602 (windows_xfer_shared_libraries): Update.
15603 * windows-tdep.c (windows_xfer_shared_library):
15604 Add text_offset_cached argument.
15605 * windows-tdep.h (windows_xfer_shared_library): Update.
15606
15607 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15608
15609 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15610
15611 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15612
15613 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15614 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15615 replace with range-based for.
15616 (gdbsim_interrupt_inferior): Remove.
15617 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15618 with a range-based for. Inline code from
15619 gdbsim_interrupt_inferior.
15620
15621 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15622
15623 * infrun.c (proceed): Fix indentation.
15624
15625 2020-01-21 Tom Tromey <tromey@adacore.com>
15626
15627 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15628 * python/python.c (python_extension_ops): Update.
15629 (gdbpy_colorize): New function.
15630 * python/lib/gdb/__init__.py (colorize): New function.
15631 * extension.h (ext_lang_colorize): Declare.
15632 * extension.c (ext_lang_colorize): New function.
15633 * extension-priv.h (struct extension_language_ops) <colorize>: New
15634 member.
15635 * cli/cli-style.c (_initialize_cli_style): Update help text.
15636
15637 2020-01-21 Luis Machado <luis.machado@linaro.org>
15638
15639 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15640 <cond>: Change type to bool.
15641 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15642 (aarch64_displaced_step_cb): Likewise.
15643 (aarch64_displaced_step_tb): Likewise.
15644
15645 2020-01-21 Luis Machado <luis.machado@linaro.org>
15646
15647 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15648 output.
15649
15650 2020-01-21 Luis Machado <luis.machado@linaro.org>
15651
15652 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15653 <pc_adjust>: Adjust the documentation.
15654 (aarch64_displaced_step_fixup): Check if PC really moved before
15655 adjusting it.
15656
15657 2020-01-19 Tom Tromey <tom@tromey.com>
15658
15659 * disasm.c (~gdb_disassembler): New destructor.
15660 (gdb_buffered_insn_length): Call disassemble_free_target.
15661 * disasm.h (class gdb_disassembler): Declare destructor. Use
15662 DISABLE_COPY_AND_ASSIGN.
15663
15664 2020-01-19 Tom Tromey <tom@tromey.com>
15665
15666 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15667 (die_reader_func_ftype): Remove.
15668 (cutu_reader): New class.
15669 (dw2_get_file_names_reader): Remove "data" parameter.
15670 (dw2_get_file_names): Use cutu_reader.
15671 (create_debug_type_hash_table): Update.
15672 (read_cutu_die_from_dwo): Update comment.
15673 (lookup_dwo_unit): Add dwo_name parameter.
15674 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15675 die_reader_func_ftype and data parameters.
15676 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15677 Remove die_reader_func_ftype and data parameters.
15678 (~cutu_reader): New; from init_cutu_and_read_dies.
15679 (cutu_reader::cutu_reader): Rename from
15680 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15681 and data parameters.
15682 (init_cutu_and_read_dies_simple): Remove.
15683 (struct process_psymtab_comp_unit_data): Remove.
15684 (process_psymtab_comp_unit_reader): Remove data parameter; add
15685 want_partial_unit and pretend_language parameters.
15686 (process_psymtab_comp_unit): Use cutu_reader.
15687 (build_type_psymtabs_reader): Remove data parameter.
15688 (build_type_psymtabs_1): Use cutu_reader.
15689 (process_skeletonless_type_unit): Likewise.
15690 (load_partial_comp_unit_reader): Remove.
15691 (load_partial_comp_unit): Use cutu_reader.
15692 (load_full_comp_unit_reader): Remove.
15693 (load_full_comp_unit): Use cutu_reader.
15694 (struct create_dwo_cu_data): Remove.
15695 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15696 dwo_unit parameters.
15697 (create_cus_hash_table): Use cutu_reader.
15698 (struct dwarf2_read_addr_index_data): Remove.
15699 (dwarf2_read_addr_index_reader): Remove.
15700 (dwarf2_read_addr_index): Use cutu_reader.
15701 (read_signatured_type_reader): Remove.
15702 (read_signatured_type): Use cutu_reader.
15703
15704 2020-01-19 Tom Tromey <tom@tromey.com>
15705
15706 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15707 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15708 (tui_wrefresh): Declare.
15709 * tui/tui-wingeneral.c (suppress_output): New global.
15710 (tui_suppress_output, ~tui_suppress_output): New constructor and
15711 destructor.
15712 (tui_wrefresh): New function.
15713 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15714 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15715 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15716 method.
15717 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15718 tui_wrefresh.
15719 (tui_data_window::no_refresh): New method.
15720 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15721 (tui_reg_command): Use tui_suppress_output
15722 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15723 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15724 method.
15725 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15726
15727 2020-01-19 Tom Tromey <tom@tromey.com>
15728
15729 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15730 Handle case where symtab is null.
15731
15732 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15733
15734 * linux-fork.c (one_fork_p): Simplify.
15735
15736 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15737
15738 * top.c (struct qt_args): Remove.
15739 (kill_or_detach): Change return type to void, replace `void *`
15740 parameter with a proper one.
15741 (print_inferior_quit_action): Likewise.
15742 (quit_confirm): Use range-based for loop to iterate over inferiors.
15743 (quit_force): Likewise.
15744
15745 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15746
15747 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15748 `void *` parameter with proper parameters.
15749 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15750 (print_one_inferior): Change return type to void, replace `void *`
15751 parameter with proper parameters.
15752 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15753 inferiors.
15754 (get_other_inferior): Remove.
15755 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15756 inferiors.
15757
15758 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15759
15760 * mi/mi-interp.c (report_initial_inferior): Remove.
15761 (mi_interp::init): Use range-based for to iterate over inferiors.
15762
15763 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15764
15765 * python/py-inferior.c (build_inferior_list): Remove.
15766 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15767
15768 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15769
15770 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15771 (btrace_stitch_trace): Likewise.
15772 * charset.c (intermediate_encoding): Likewise (vaild).
15773 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15774 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15775 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15776
15777 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15778
15779 * windows-tdep.c (windows_get_tlb_type):
15780 Add rtl_user_process_parameters type.
15781
15782 2020-01-16 Pedro Alves <palves@redhat.com>
15783 Norbert Lange <nolange79@gmail.com>
15784
15785 PR build/24805
15786 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15787 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15788 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15789 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15790 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15791 (ps_plog): Redeclare exported functions with default visibility.
15792
15793 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15794
15795 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15796 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15797
15798 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15799
15800 * infcmd.c (post_create_inferior): Use get_thread_regcache
15801 instead of get_current_regcache.
15802
15803 2020-01-14 Tom Tromey <tom@tromey.com>
15804
15805 PR symtab/12535:
15806 * python/python.c (gdbpy_decode_line): Treat empty string the same
15807 as no argument.
15808
15809 2020-01-14 Tom Tromey <tom@tromey.com>
15810
15811 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15812
15813 2020-01-14 Tom Tromey <tom@tromey.com>
15814
15815 * nat/linux-btrace.c: Don't include <config.h>.
15816 * nat/linux-ptrace.c: Don't include <config.h>.
15817 * nat/x86-linux-dregs.c: Don't include <config.h>.
15818
15819 2020-01-14 Tom Tromey <tom@tromey.com>
15820
15821 * configure: Rebuild.
15822 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15823
15824 2020-01-14 Tom Tromey <tom@tromey.com>
15825
15826 * nat/x86-linux-dregs.c: Include configh.h.
15827 * nat/linux-ptrace.c: Include configh.h.
15828 * nat/linux-btrace.c: Include configh.h.
15829 * defs.h: Include config.h, bfd.h.
15830 * configure.ac: Don't source common.host.
15831 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15832 * configure: Rebuild.
15833 * acinclude.m4: Update path.
15834 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15835 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15836 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15837 (CLIBS): Add LIBSUPPORT.
15838 (CDEPS): Likewise.
15839 (COMMON_SFILES): Remove gdbsupport files.
15840 (HFILES_NO_SRCDIR): Likewise.
15841 (stamp-version): Update path to create-version.sh.
15842 (ALLDEPFILES): Remove gdbsupport files.
15843
15844 2020-01-14 Tom Tromey <tom@tromey.com>
15845
15846 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15847 USE_WIN32API when needed.
15848 * configure.ac (USE_WIN32API): Don't define.
15849 (WIN32LIBS): Use WIN32APILIBS.
15850 * configure: Rebuild.
15851
15852 2020-01-14 Tom Tromey <tom@tromey.com>
15853
15854 * configure: Rebuild.
15855 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15856
15857 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15858
15859 * skip.c (skip_function_command): Make skip w/o arguments use the
15860 name of the inlined function if pc is inside any inlined function.
15861
15862 2020-01-14 Luis Machado <luis.machado@linaro.org>
15863
15864 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15865 * infrun.c (resume_1): Likewise.
15866 (handle_inferior_event): Remove stale comment.
15867 * linux-nat.c (linux_nat_target::resume): Update comments.
15868 (save_stop_reason): Likewise.
15869 (linux_nat_filter_event): Likewise.
15870 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15871
15872 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15873
15874 * elfread.c (record_minimal_symbol): Set section index to 0 for
15875 non-allocatable sections.
15876
15877
15878 2020-01-13 Ali Tamur <tamur@google.com>
15879
15880 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15881 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15882 to gdb::optional. Update comments.
15883 (dwo_file): Update comments.
15884 (read_attribute): Update API to take an additional out parameter,
15885 need_reprocess. This is used to mark attributes that need other
15886 attributes (e.g. str_offsets_base) for correct computation which may not
15887 have been read yet.
15888 (read_attribute_reprocess): New function declaration.
15889 (read_addr_index): Likewise.
15890 (read_dwo_str_index): Likewise.
15891 (read_stub_str_index): Likewise.
15892 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15893 (lookup_addr_base): New function definition.
15894 (lookup_ranges_base): Likewise.
15895 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15896 lookup_ranges_base.
15897 (init_cutu_and_read_dies): Update comments.
15898 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15899 unit. This is used to inherit parent's str_offsets_base and addr_base.
15900 Update comments.
15901 (init_cutu_and_read_dies_simple): Reflect API changes.
15902 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15903 (create_cus_hash_table): Change API to take parent compile unit.
15904 Reflect API changes.
15905 (open_and_init_dwo_file): Reflect API changes.
15906 (dwarf2_get_pc_bounds): Update comments.
15907 (dwarf2_record_block_ranges): Likewise.
15908 (read_full_die_1): Change implementation to reprocess attributes that
15909 need str_offsets_base and addr_base.
15910 (partial_die_info::read): Likewise.
15911 (read_attribute_reprocess): New function definition.
15912 (read_attribute_value): Change API to take an additional out parameter,
15913 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15914 when a non-dwo compile unit has index based attributes.
15915 (read_attribute): Reflect API changes.
15916 (read_addr_index_1): Reflect API changes. Update comments.
15917 (dwarf2_read_addr_index_data): Reflect API changes.
15918 (dwarf2_read_addr_index): Likewise.
15919 (read_str_index): Change API and implementation. This becomes a helper
15920 to be used by the new string index related methods. Update error
15921 message and comments.
15922 (read_dwo_str_index): New function definition.
15923 (read_stub_str_index): Likewise.
15924 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15925 * symfile.h (dwarf2_debug_sections): Likewise.
15926 * xcoffread.c (dwarf2_debug_sections): Likewise.
15927
15928 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15929
15930 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15931 core_reg_sect type to gdb_byte *.
15932 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15933 * cris-tdep.c (fetch_core_registers): Likewise.
15934 * corelow.c (core_target::get_core_register_section): Change
15935 type of `contents` to gdb::byte_vector.
15936
15937 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15938
15939 * tui/tui-wingeneral.c (box_win): Position the title in the center
15940 of the border.
15941
15942 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15943
15944 * corelow.c (core_target::get_core_register_section): Use
15945 std::vector instead of alloca.
15946
15947 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15948
15949 * warning.m4: Add -Wmissing-declarations to build_warnings.
15950 * configure: Re-generate.
15951
15952 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15953
15954 * python/python.c (init__gdb_module): Add declaration.
15955
15956 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15957
15958 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15959 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15960 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15961 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15962 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15963 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15964 * ada-exp.y (_initialize_ada_exp): Add declaration.
15965 * ada-lang.c (_initialize_ada_language): Add declaration.
15966 * ada-tasks.c (_initialize_tasks): Add declaration.
15967 * agent.c (_initialize_agent): Add declaration.
15968 * aix-thread.c (_initialize_aix_thread): Add declaration.
15969 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15970 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15971 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15972 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15973 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15974 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15975 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15976 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15977 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15978 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15979 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15980 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15981 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15982 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15983 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15984 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15985 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15986 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15987 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15988 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15989 * annotate.c (_initialize_annotate): Add declaration.
15990 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15991 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15992 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15993 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15994 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15995 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15996 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15997 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15998 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15999 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16000 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16001 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16002 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16003 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16004 * auto-load.c (_initialize_auto_load): Add declaration.
16005 * auxv.c (_initialize_auxv): Add declaration.
16006 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16007 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16008 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16009 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16010 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16011 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16012 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16013 * breakpoint.c (_initialize_breakpoint): Add declaration.
16014 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16015 * btrace.c (_initialize_btrace): Add declaration.
16016 * charset.c (_initialize_charset): Add declaration.
16017 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16018 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16019 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16020 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16021 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16022 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16023 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16024 * coffread.c (_initialize_coffread): Add declaration.
16025 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16026 * compile/compile.c (_initialize_compile): Add declaration.
16027 * complaints.c (_initialize_complaints): Add declaration.
16028 * completer.c (_initialize_completer): Add declaration.
16029 * copying.c (_initialize_copying): Add declaration.
16030 * corefile.c (_initialize_core): Add declaration.
16031 * corelow.c (_initialize_corelow): Add declaration.
16032 * cp-abi.c (_initialize_cp_abi): Add declaration.
16033 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16034 * cp-support.c (_initialize_cp_support): Add declaration.
16035 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16036 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16037 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16038 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16039 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16040 * ctfread.c (_initialize_ctfread): Add declaration.
16041 * d-lang.c (_initialize_d_language): Add declaration.
16042 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16043 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16044 * dbxread.c (_initialize_dbxread): Add declaration.
16045 * dcache.c (_initialize_dcache): Add declaration.
16046 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16047 * disasm.c (_initialize_disasm): Add declaration.
16048 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16049 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16050 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16051 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16052 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16053 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16054 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16055 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16056 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16057 * elfread.c (_initialize_elfread): Add declaration.
16058 * exec.c (_initialize_exec): Add declaration.
16059 * extension.c (_initialize_extension): Add declaration.
16060 * f-lang.c (_initialize_f_language): Add declaration.
16061 * f-valprint.c (_initialize_f_valprint): Add declaration.
16062 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16063 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16064 * filesystem.c (_initialize_filesystem): Add declaration.
16065 * findcmd.c (_initialize_mem_search): Add declaration.
16066 * findvar.c (_initialize_findvar): Add declaration.
16067 * fork-child.c (_initialize_fork_child): Add declaration.
16068 * frame-base.c (_initialize_frame_base): Add declaration.
16069 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16070 * frame.c (_initialize_frame): Add declaration.
16071 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16072 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16073 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16074 * gcore.c (_initialize_gcore): Add declaration.
16075 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16076 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16077 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16078 * gdbarch.c (_initialize_gdbarch): Add declaration.
16079 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16080 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16081 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16082 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16083 * go-lang.c (_initialize_go_language): Add declaration.
16084 * go32-nat.c (_initialize_go32_nat): Add declaration.
16085 * guile/guile.c (_initialize_guile): Add declaration.
16086 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16087 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16088 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16089 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16090 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16091 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16092 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16093 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16094 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16095 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16096 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16097 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16098 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16099 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16100 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16101 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16102 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16103 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16104 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16105 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16106 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16107 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16108 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16109 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16110 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16111 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16112 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16113 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16114 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16115 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16116 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16117 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16118 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16119 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16120 * infcall.c (_initialize_infcall): Add declaration.
16121 * infcmd.c (_initialize_infcmd): Add declaration.
16122 * inflow.c (_initialize_inflow): Add declaration.
16123 * infrun.c (_initialize_infrun): Add declaration.
16124 * interps.c (_initialize_interpreter): Add declaration.
16125 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16126 * jit.c (_initialize_jit): Add declaration.
16127 * language.c (_initialize_language): Add declaration.
16128 * linux-fork.c (_initialize_linux_fork): Add declaration.
16129 * linux-nat.c (_initialize_linux_nat): Add declaration.
16130 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16131 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16132 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16133 * m2-lang.c (_initialize_m2_language): Add declaration.
16134 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16135 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16136 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16137 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16138 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16139 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16140 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16141 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16142 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16143 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16144 * machoread.c (_initialize_machoread): Add declaration.
16145 * macrocmd.c (_initialize_macrocmd): Add declaration.
16146 * macroscope.c (_initialize_macroscope): Add declaration.
16147 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16148 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16149 * maint.c (_initialize_maint_cmds): Add declaration.
16150 * mdebugread.c (_initialize_mdebugread): Add declaration.
16151 * memattr.c (_initialize_mem): Add declaration.
16152 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16153 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16154 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16155 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16156 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16157 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16158 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16159 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16160 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16161 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16162 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16163 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16164 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16165 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16166 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16167 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16168 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16169 * mipsread.c (_initialize_mipsread): Add declaration.
16170 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16171 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16172 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16173 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16174 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16175 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16176 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16177 * nto-procfs.c (_initialize_procfs): Add declaration.
16178 * objc-lang.c (_initialize_objc_language): Add declaration.
16179 * observable.c (_initialize_observer): Add declaration.
16180 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16181 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16182 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16183 * osabi.c (_initialize_gdb_osabi): Add declaration.
16184 * osdata.c (_initialize_osdata): Add declaration.
16185 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16186 * parse.c (_initialize_parse): Add declaration.
16187 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16188 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16189 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16190 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16191 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16192 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16193 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16194 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16195 * printcmd.c (_initialize_printcmd): Add declaration.
16196 * probe.c (_initialize_probe): Add declaration.
16197 * proc-api.c (_initialize_proc_api): Add declaration.
16198 * proc-events.c (_initialize_proc_events): Add declaration.
16199 * proc-service.c (_initialize_proc_service): Add declaration.
16200 * procfs.c (_initialize_procfs): Add declaration.
16201 * producer.c (_initialize_producer): Add declaration.
16202 * psymtab.c (_initialize_psymtab): Add declaration.
16203 * python/python.c (_initialize_python): Add declaration.
16204 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16205 * record-btrace.c (_initialize_record_btrace): Add declaration.
16206 * record-full.c (_initialize_record_full): Add declaration.
16207 * record.c (_initialize_record): Add declaration.
16208 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16209 * regcache.c (_initialize_regcache): Add declaration.
16210 * reggroups.c (_initialize_reggroup): Add declaration.
16211 * remote-notif.c (_initialize_notif): Add declaration.
16212 * remote-sim.c (_initialize_remote_sim): Add declaration.
16213 * remote.c (_initialize_remote): Add declaration.
16214 * reverse.c (_initialize_reverse): Add declaration.
16215 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16216 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16217 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16218 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16219 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16220 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16221 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16222 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16223 Add declaration.
16224 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16225 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16226 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16227 * rust-exp.y (_initialize_rust_exp): Add declaration.
16228 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16229 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16230 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16231 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16232 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16233 * score-tdep.c (_initialize_score_tdep): Add declaration.
16234 * ser-go32.c (_initialize_ser_dos): Add declaration.
16235 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16236 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16237 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16238 * ser-uds.c (_initialize_ser_socket): Add declaration.
16239 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16240 * serial.c (_initialize_serial): Add declaration.
16241 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16242 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16243 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16244 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16245 * skip.c (_initialize_step_skip): Add declaration.
16246 * sol-thread.c (_initialize_sol_thread): Add declaration.
16247 * solib-aix.c (_initialize_solib_aix): Add declaration.
16248 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16249 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16250 * solib-frv.c (_initialize_frv_solib): Add declaration.
16251 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16252 * solib-target.c (_initialize_solib_target): Add declaration.
16253 * solib.c (_initialize_solib): Add declaration.
16254 * source-cache.c (_initialize_source_cache): Add declaration.
16255 * source.c (_initialize_source): Add declaration.
16256 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16257 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16258 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16259 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16260 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16261 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16262 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16263 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16264 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16265 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16266 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16267 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16268 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16269 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16270 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16271 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16272 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16273 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16274 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16275 * stabsread.c (_initialize_stabsread): Add declaration.
16276 * stack.c (_initialize_stack): Add declaration.
16277 * stap-probe.c (_initialize_stap_probe): Add declaration.
16278 * std-regs.c (_initialize_frame_reg): Add declaration.
16279 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16280 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16281 * symfile.c (_initialize_symfile): Add declaration.
16282 * symmisc.c (_initialize_symmisc): Add declaration.
16283 * symtab.c (_initialize_symtab): Add declaration.
16284 * target.c (_initialize_target): Add declaration.
16285 * target-connection.c (_initialize_target_connection): Add
16286 declaration.
16287 * target-dcache.c (_initialize_target_dcache): Add declaration.
16288 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16289 * thread.c (_initialize_thread): Add declaration.
16290 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16291 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16292 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16293 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16294 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16295 * tracectf.c (_initialize_ctf): Add declaration.
16296 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16297 * tracefile.c (_initialize_tracefile): Add declaration.
16298 * tracepoint.c (_initialize_tracepoint): Add declaration.
16299 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16300 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16301 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16302 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16303 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16304 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16305 * tui/tui.c (_initialize_tui): Add declaration.
16306 * typeprint.c (_initialize_typeprint): Add declaration.
16307 * ui-style.c (_initialize_ui_style): Add declaration.
16308 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16309 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16310 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16311 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16312 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16313 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16314 * unittests/filtered_iterator-selftests.c
16315 (_initialize_filtered_iterator_selftests): Add declaration.
16316 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16317 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16318 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16319 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16320 * unittests/main-thread-selftests.c
16321 (_initialize_main_thread_selftests): Add declaration.
16322 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16323 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16324 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16325 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16326 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16327 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16328 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16329 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16330 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16331 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16332 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16333 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16334 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16335 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16336 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16337 declaration.
16338 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16339 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16340 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16341 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16342 * user-regs.c (_initialize_user_regs): Add declaration.
16343 * utils.c (_initialize_utils): Add declaration.
16344 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16345 * valops.c (_initialize_valops): Add declaration.
16346 * valprint.c (_initialize_valprint): Add declaration.
16347 * value.c (_initialize_values): Add declaration.
16348 * varobj.c (_initialize_varobj): Add declaration.
16349 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16350 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16351 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16352 * windows-nat.c (_initialize_windows_nat): Add declaration.
16353 (_initialize_check_for_gdb_ini): Add declaration.
16354 (_initialize_loadable): Add declaration.
16355 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16356 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16357 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16358 * xcoffread.c (_initialize_xcoffread): Add declaration.
16359 * xml-support.c (_initialize_xml_support): Add declaration.
16360 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16361 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16362 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16363 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16364
16365 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16366
16367 * regformats/regdat.sh: Generate declaration for init function.
16368
16369 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16370
16371 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16372 up.
16373 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16374 close_one_inferior>: New methods.
16375 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16376 pass down target to find_inferior_pid.
16377 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16378 Pass down target to find_inferior_ptid.
16379 (gdbsim_target::create_inferior): Pass down target to
16380 add_thread_silent.
16381 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16382 target down to find_inferior_ptid and switch_to_thread.
16383 (gdbsim_target::close): Update to call close_one_inferior.
16384 (struct resume_data): Remove.
16385 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16386 directly, rather than through a void pointer.
16387 (gdbsim_target::resume): Update to call resume_one_inferior.
16388
16389 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16390
16391 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16392
16393 2020-01-12 Pedro Alves <palves@redhat.com>
16394
16395 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16396 directly for the current inferior instead of
16397 discard_all_inferiors.
16398 (discard_all_inferiors): Delete.
16399
16400 2020-01-11 Tom Tromey <tom@tromey.com>
16401
16402 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16403 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16404 deprecated_safe_get_selected_frame.
16405
16406 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16407
16408 * inferior.c (print_inferior): Switch inferior before printing it.
16409
16410 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16411 Pedro Alves <palves@redhat.com>
16412
16413 * progspace-and-thread.c (switch_to_program_space_and_thread):
16414 Assert there's an inferior for PSPACE. Use
16415 switch_to_inferior_no_thread to switch the inferior too.
16416 * progspace.c (program_space::~program_space): Call
16417 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16418 (program_space::free_all_objfiles): Don't call clear_symtab_users
16419 here.
16420 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16421
16422 2020-01-10 Pedro Alves <palves@redhat.com>
16423
16424 * NEWS: Mention multi-target debugging, "info connections", and
16425 "add-inferior -no-connection".
16426
16427 2020-01-10 Pedro Alves <palves@redhat.com>
16428
16429 * infrun.c: Include "target-connection.h".
16430 (check_multi_target_resumption): New.
16431 (proceed): Call it.
16432 * target-connection.c (make_target_connection_string): Make
16433 extern.
16434 * target-connection.h (make_target_connection_string): Declare.
16435
16436 2020-01-10 Pedro Alves <palves@redhat.com>
16437
16438 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16439 * inferior.c (uiout_field_connection): New function.
16440 (print_inferior): Add new "connection-id" column.
16441 (add_inferior_command): Show connection number/string of added
16442 inferior.
16443 * process-stratum-target.h
16444 (process_stratum_target::connection_string): New virtual method.
16445 (process_stratum_target::connection_number): New field.
16446 * remote.c (remote_target::connection_string): New override.
16447 * target-connection.c: New file.
16448 * target-connection.h: New file.
16449 * target.c (decref_target): Remove process_stratum targets from
16450 the connection list.
16451 (target_stack::push): Add process_stratum targets to the
16452 connection list.
16453
16454 2020-01-10 Pedro Alves <palves@redhat.com>
16455
16456 Revert:
16457 2016-04-12 Pedro Alves <palves@redhat.com>
16458 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16459 Remove references to name.
16460 * serial.h (struct serial) <name>: Delete.
16461
16462 2020-01-10 Pedro Alves <palves@redhat.com>
16463
16464 * gdbarch-selftests.c (register_to_value_test): Remove "target
16465 already pushed" check.
16466
16467 2020-01-10 Pedro Alves <palves@redhat.com>
16468 John Baldwin <jhb@FreeBSD.org>
16469
16470 * aarch64-linux-nat.c
16471 (aarch64_linux_nat_target::thread_architecture): Adjust.
16472 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16473 (task_command_1): Likewise.
16474 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16475 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16476 (aix_thread_target::store_registers)
16477 (aix_thread_target::thread_alive): Adjust.
16478 * amd64-fbsd-tdep.c: Include "inferior.h".
16479 (amd64fbsd_get_thread_local_address): Pass down target.
16480 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16481 thread's gdbarch instead of target_gdbarch.
16482 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16483 get_last_target_status.
16484 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16485 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16486 inferiors.
16487 (update_inserted_breakpoint_locations): Skip if inferiors with no
16488 execution.
16489 (update_global_location_list): When handling moribund locations,
16490 find representative inferior for location's pspace, and use thread
16491 count of its process_stratum target.
16492 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16493 * bsd-uthread.c (bsd_uthread_target::wait): Use
16494 as_process_stratum_target and adjust thread_change_ptid and
16495 add_thread calls.
16496 (bsd_uthread_target::update_thread_list): Use
16497 as_process_stratum_target and adjust find_thread_ptid,
16498 thread_change_ptid and add_thread calls.
16499 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16500 find_thread_ptid call.
16501 * corelow.c (add_to_thread_list): Adjust add_thread call.
16502 (core_target_open): Adjust add_thread_silent and thread_count
16503 calls.
16504 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16505 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16506 * event-top.c (async_disconnect): Pop targets from all inferiors.
16507 * exec.c (add_target_sections): Push exec target on all inferiors
16508 sharing the program space.
16509 (remove_target_sections): Remove the exec target from all
16510 inferiors sharing the program space.
16511 (exec_on_vfork): New.
16512 * exec.h (exec_on_vfork): Declare.
16513 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16514 Pass it down.
16515 (fbsd_nat_target::update_thread_list): Adjust.
16516 (fbsd_nat_target::resume): Adjust.
16517 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16518 down.
16519 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16520 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16521 get_thread_arch_regcache call.
16522 * fork-child.c (gdb_startup_inferior): Pass target down to
16523 startup_inferior and set_executing.
16524 * gdbthread.h (struct process_stratum_target): Forward declare.
16525 (add_thread, add_thread_silent, add_thread_with_info)
16526 (in_thread_list): Add process_stratum_target parameter.
16527 (find_thread_ptid(inferior*, ptid_t)): New overload.
16528 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16529 parameter.
16530 (all_threads()): Delete overload.
16531 (all_threads, all_non_exited_threads): Add process_stratum_target
16532 parameter.
16533 (all_threads_safe): Use brace initialization.
16534 (thread_count): Add process_stratum_target parameter.
16535 (set_resumed, set_running, set_stop_requested, set_executing)
16536 (threads_are_executing, finish_thread_state): Add
16537 process_stratum_target parameter.
16538 (switch_to_thread): Use is_current_thread.
16539 * i386-fbsd-tdep.c: Include "inferior.h".
16540 (i386fbsd_get_thread_local_address): Pass down target.
16541 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16542 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16543 have_inferiors check.
16544 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16545 (inf_ptrace_target::attach): Adjust.
16546 * infcall.c (run_inferior_call): Adjust.
16547 * infcmd.c (run_command_1): Pass target to
16548 scoped_finish_thread_state.
16549 (proceed_thread_callback): Skip inferiors with no execution.
16550 (continue_command): Rename 'all_threads' local to avoid hiding
16551 'all_threads' function. Adjust get_last_target_status call.
16552 (prepare_one_step): Adjust set_running call.
16553 (signal_command): Use user_visible_resume_target. Compare thread
16554 pointers instead of inferior_ptid.
16555 (info_program_command): Adjust to pass down target.
16556 (attach_command): Mark target's 'thread_executing' flag.
16557 (stop_current_target_threads_ns): New, factored out from ...
16558 (interrupt_target_1): ... this. Switch inferior before making
16559 target calls.
16560 * inferior-iter.h
16561 (struct all_inferiors_iterator, struct all_inferiors_range)
16562 (struct all_inferiors_safe_range)
16563 (struct all_non_exited_inferiors_range): Filter on
16564 process_stratum_target too. Remove explicit.
16565 * inferior.c (inferior::inferior): Push dummy target on target
16566 stack.
16567 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16568 Add process_stratum_target parameter, and pass it down.
16569 (have_live_inferiors): Adjust.
16570 (switch_to_inferior_and_push_target): New.
16571 (add_inferior_command, clone_inferior_command): Handle
16572 "-no-connection" parameter. Use
16573 switch_to_inferior_and_push_target.
16574 (_initialize_inferior): Mention "-no-connection" option in
16575 the help of "add-inferior" and "clone-inferior" commands.
16576 * inferior.h: Include "process-stratum-target.h".
16577 (interrupt_target_1): Use bool.
16578 (struct inferior) <push_target, unpush_target, target_is_pushed,
16579 find_target_beneath, top_target, process_target, target_at,
16580 m_stack>: New.
16581 (discard_all_inferiors): Delete.
16582 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16583 (all_inferiors, all_non_exited_inferiors): Add
16584 process_stratum_target parameter.
16585 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16586 (target_last_proc_target): New global.
16587 (follow_fork_inferior): Push target on new inferior. Pass target
16588 to add_thread_silent. Call exec_on_vfork. Handle target's
16589 reference count.
16590 (follow_fork): Adjust get_last_target_status call. Also consider
16591 target.
16592 (follow_exec): Push target on new inferior.
16593 (struct execution_control_state) <target>: New field.
16594 (user_visible_resume_target): New.
16595 (do_target_resume): Call target_async.
16596 (resume_1): Set target's threads_executing flag. Consider resume
16597 target.
16598 (commit_resume_all_targets): New.
16599 (proceed): Also consider resume target. Skip threads of inferiors
16600 with no execution. Commit resumtion in all targets.
16601 (start_remote): Pass current inferior to wait_for_inferior.
16602 (infrun_thread_stop_requested): Consider target as well. Pass
16603 thread_info pointer to clear_inline_frame_state instead of ptid.
16604 (infrun_thread_thread_exit): Consider target as well.
16605 (random_pending_event_thread): New inferior parameter. Use it.
16606 (do_target_wait): Rename to ...
16607 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16608 down.
16609 (threads_are_resumed_pending_p, do_target_wait): New.
16610 (prepare_for_detach): Adjust calls.
16611 (wait_for_inferior): New inferior parameter. Handle it. Use
16612 do_target_wait_1 instead of do_target_wait.
16613 (fetch_inferior_event): Adjust. Switch to representative
16614 inferior. Pass target down.
16615 (set_last_target_status): Add process_stratum_target parameter.
16616 Save target in global.
16617 (get_last_target_status): Add process_stratum_target parameter and
16618 handle it.
16619 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16620 (context_switch): Check inferior_ptid == null_ptid before calling
16621 inferior_thread().
16622 (get_inferior_stop_soon): Pass down target.
16623 (wait_one): Rename to ...
16624 (poll_one_curr_target): ... this.
16625 (struct wait_one_event): New.
16626 (wait_one): New.
16627 (stop_all_threads): Adjust.
16628 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16629 event's target.
16630 (switch_back_to_stepped_thread): Also consider target.
16631 (print_stop_event): Update.
16632 (normal_stop): Update. Also consider the resume target.
16633 * infrun.h (wait_for_inferior): Remove declaration.
16634 (user_visible_resume_target): New declaration.
16635 (get_last_target_status, set_last_target_status): New
16636 process_stratum_target parameter.
16637 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16638 process_stratum_target parameter, and use it.
16639 (clear_inline_frame_state (thread_info*)): New.
16640 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16641 process_stratum_target parameter.
16642 (clear_inline_frame_state (thread_info*)): Declare.
16643 * linux-fork.c (delete_checkpoint_command): Pass target down to
16644 find_thread_ptid.
16645 (checkpoint_command): Adjust.
16646 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16647 instead of just tweaking inferior_ptid.
16648 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16649 (exit_lwp): Pass target down to find_thread_ptid.
16650 (attach_proc_task_lwp_callback): Pass target down to
16651 add_thread/set_running/set_executing.
16652 (linux_nat_target::attach): Pass target down to
16653 thread_change_ptid.
16654 (get_detach_signal): Pass target down to find_thread_ptid.
16655 Consider last target status's target.
16656 (linux_resume_one_lwp_throw, resume_lwp)
16657 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16658 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16659 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16660 (linux_nat_target::async_wait_fd): New.
16661 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16662 target down.
16663 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16664 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16665 * linux-thread-db.c (struct thread_db_info::process_target): New
16666 field.
16667 (add_thread_db_info): Save target.
16668 (get_thread_db_info): New process_stratum_target parameter. Also
16669 match target.
16670 (delete_thread_db_info): New process_stratum_target parameter.
16671 Also match target.
16672 (thread_from_lwp): Adjust to pass down target.
16673 (thread_db_notice_clone): Pass down target.
16674 (check_thread_db_callback): Pass down target.
16675 (try_thread_db_load_1): Always push the thread_db target.
16676 (try_thread_db_load, record_thread): Pass target down.
16677 (thread_db_target::detach): Pass target down. Always unpush the
16678 thread_db target.
16679 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16680 target down. Always unpush the thread_db target.
16681 (find_new_threads_callback, thread_db_find_new_threads_2)
16682 (thread_db_target::update_thread_list): Pass target down.
16683 (thread_db_target::pid_to_str): Pass current inferior down.
16684 (thread_db_target::get_thread_local_address): Pass target down.
16685 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16686 target down.
16687 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16688 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16689 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16690 (procfs_init_inferior): Rename to ...
16691 (procfs_target::procfs_init_inferior): ... this and adjust.
16692 (procfs_target::create_inferior, procfs_notice_thread)
16693 (procfs_do_thread_registers): Adjust.
16694 * ppc-fbsd-tdep.c: Include "inferior.h".
16695 (ppcfbsd_get_thread_local_address): Pass down target.
16696 * proc-service.c (ps_xfer_memory): Switch current inferior and
16697 program space as well.
16698 (get_ps_regcache): Pass target down.
16699 * process-stratum-target.c
16700 (process_stratum_target::thread_address_space)
16701 (process_stratum_target::thread_architecture): Pass target down.
16702 * process-stratum-target.h
16703 (process_stratum_target::threads_executing): New field.
16704 (as_process_stratum_target): New.
16705 * ravenscar-thread.c
16706 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16707 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16708 down.
16709 * record-btrace.c (record_btrace_target::info_record): Adjust.
16710 (record_btrace_target::record_method)
16711 (record_btrace_target::record_is_replaying)
16712 (record_btrace_target::fetch_registers)
16713 (get_thread_current_frame_id, record_btrace_target::resume)
16714 (record_btrace_target::wait, record_btrace_target::stop): Pass
16715 target down.
16716 * record-full.c (record_full_wait_1): Switch to event thread.
16717 Pass target down.
16718 * regcache.c (regcache::regcache)
16719 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16720 process_stratum_target parameter and handle it.
16721 (current_thread_target): New global.
16722 (get_thread_regcache): Add process_stratum_target parameter and
16723 handle it. Switch inferior before calling target method.
16724 (get_thread_regcache): Pass target down.
16725 (get_thread_regcache_for_ptid): Pass target down.
16726 (registers_changed_ptid): Add process_stratum_target parameter and
16727 handle it.
16728 (registers_changed_thread, registers_changed): Pass target down.
16729 (test_get_thread_arch_aspace_regcache): New.
16730 (current_regcache_test): Define a couple local test_target_ops
16731 instances and use them for testing.
16732 (readwrite_regcache): Pass process_stratum_target parameter.
16733 (cooked_read_test, cooked_write_test): Pass mock_target down.
16734 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16735 (get_thread_arch_aspace_regcache): Add process_stratum_target
16736 parameter.
16737 (regcache::target): New method.
16738 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16739 (regcache::registers_changed_ptid): Add process_stratum_target
16740 parameter.
16741 (regcache::m_target): New field.
16742 (registers_changed_ptid): Add process_stratum_target parameter.
16743 * remote.c (remote_state::supports_vCont_probed): New field.
16744 (remote_target::async_wait_fd): New method.
16745 (remote_unpush_and_throw): Add remote_target parameter.
16746 (get_current_remote_target): Adjust.
16747 (remote_target::remote_add_inferior): Push target.
16748 (remote_target::remote_add_thread)
16749 (remote_target::remote_notice_new_inferior)
16750 (get_remote_thread_info): Pass target down.
16751 (remote_target::update_thread_list): Skip threads of inferiors
16752 bound to other targets. (remote_target::close): Don't discard
16753 inferiors. (remote_target::add_current_inferior_and_thread)
16754 (remote_target::process_initial_stop_replies)
16755 (remote_target::start_remote)
16756 (remote_target::remote_serial_quit_handler): Pass down target.
16757 (remote_target::remote_unpush_target): New remote_target
16758 parameter. Unpush the target from all inferiors.
16759 (remote_target::remote_unpush_and_throw): New remote_target
16760 parameter. Pass it down.
16761 (remote_target::open_1): Check whether the current inferior has
16762 execution instead of checking whether any inferior is live. Pass
16763 target down.
16764 (remote_target::remote_detach_1): Pass down target. Use
16765 remote_unpush_target.
16766 (extended_remote_target::attach): Pass down target.
16767 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16768 (remote_target::append_resumption): Pass down target.
16769 (remote_target::append_pending_thread_resumptions)
16770 (remote_target::remote_resume_with_hc, remote_target::resume)
16771 (remote_target::commit_resume): Pass down target.
16772 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16773 (remote_target::interrupt_query)
16774 (remote_target::remove_new_fork_children)
16775 (remote_target::check_pending_events_prevent_wildcard_vcont)
16776 (remote_target::remote_parse_stop_reply)
16777 (remote_target::process_stop_reply): Pass down target.
16778 (first_remote_resumed_thread): New remote_target parameter. Pass
16779 it down.
16780 (remote_target::wait_as): Pass down target.
16781 (unpush_and_perror): New remote_target parameter. Pass it down.
16782 (remote_target::readchar, remote_target::remote_serial_write)
16783 (remote_target::getpkt_or_notif_sane_1)
16784 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16785 down target.
16786 (remote_target::mourn_inferior): Pass down target. Use
16787 remote_unpush_target.
16788 (remote_target::core_of_thread)
16789 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16790 (remote_target::pid_to_exec_file)
16791 (remote_target::thread_handle_to_thread_info): Pass down target.
16792 (remote_target::async_wait_fd): New.
16793 * riscv-fbsd-tdep.c: Include "inferior.h".
16794 (riscv_fbsd_get_thread_local_address): Pass down target.
16795 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16796 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16797 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16798 Adjust.
16799 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16800 * solib-svr4.c (enable_break): Pass down target.
16801 * spu-multiarch.c (parse_spufs_run): Pass down target.
16802 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16803 * target-delegates.c: Regenerate.
16804 * target.c (g_target_stack): Delete.
16805 (current_top_target): Return the current inferior's top target.
16806 (target_has_execution_1): Refer to the passed-in inferior's top
16807 target.
16808 (target_supports_terminal_ours): Check whether the initial
16809 inferior was already created.
16810 (decref_target): New.
16811 (target_stack::push): Incref/decref the target.
16812 (push_target, push_target, unpush_target): Adjust.
16813 (target_stack::unpush): Defref target.
16814 (target_is_pushed): Return bool. Adjust to refer to the current
16815 inferior's target stack.
16816 (dispose_inferior): Delete, and inline parts ...
16817 (target_preopen): ... here. Only dispose of the current inferior.
16818 (target_detach): Hold strong target reference while detaching.
16819 Pass target down.
16820 (target_thread_name): Add assertion.
16821 (target_resume): Pass down target.
16822 (target_ops::beneath, find_target_at): Adjust to refer to the
16823 current inferior's target stack.
16824 (get_dummy_target): New.
16825 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16826 has a thread running.
16827 (initialize_targets): Rename to ...
16828 (_initialize_target): ... this.
16829 * target.h: Include "gdbsupport/refcounted-object.h".
16830 (struct target_ops): Inherit refcounted_object.
16831 (target_ops::shortname, target_ops::longname): Make const.
16832 (target_ops::async_wait_fd): New method.
16833 (decref_target): Declare.
16834 (struct target_ops_ref_policy): New.
16835 (target_ops_ref): New typedef.
16836 (get_dummy_target): Declare function.
16837 (target_is_pushed): Return bool.
16838 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16839 (all_matching_threads_iterator::all_matching_threads_iterator):
16840 Handle filter target.
16841 * thread-iter.h (struct all_matching_threads_iterator, struct
16842 all_matching_threads_range, class all_non_exited_threads_range):
16843 Filter by target too. Remove explicit.
16844 * thread.c (threads_executing): Delete.
16845 (inferior_thread): Pass down current inferior.
16846 (clear_thread_inferior_resources): Pass down thread pointer
16847 instead of ptid_t.
16848 (add_thread_silent, add_thread_with_info, add_thread): Add
16849 process_stratum_target parameter. Use it for thread and inferior
16850 searches.
16851 (is_current_thread): New.
16852 (thread_info::deletable): Use it.
16853 (find_thread_ptid, thread_count, in_thread_list)
16854 (thread_change_ptid, set_resumed, set_running): New
16855 process_stratum_target parameter. Pass it down.
16856 (set_executing): New process_stratum_target parameter. Pass it
16857 down. Adjust reference to 'threads_executing'.
16858 (threads_are_executing): New process_stratum_target parameter.
16859 Adjust reference to 'threads_executing'.
16860 (set_stop_requested, finish_thread_state): New
16861 process_stratum_target parameter. Pass it down.
16862 (switch_to_thread): Also match inferior.
16863 (switch_to_thread): New process_stratum_target parameter. Pass it
16864 down.
16865 (update_threads_executing): Reimplement.
16866 * top.c (quit_force): Pop targets from all inferior.
16867 (gdb_init): Don't call initialize_targets.
16868 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16869 Declare.
16870 (windows_add_thread, windows_delete_thread): Adjust.
16871 (get_windows_debug_event): Rename to ...
16872 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16873 * tracefile-tfile.c (tfile_target_open): Pass down target.
16874 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16875 Forward declare.
16876 (switch_to_thread): Add process_stratum_target parameter.
16877 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16878 parameter. Use it.
16879 (mi_on_resume): Pass target down.
16880 * nat/fork-inferior.c (startup_inferior): Add
16881 process_stratum_target parameter. Pass it down.
16882 * nat/fork-inferior.h (startup_inferior): Add
16883 process_stratum_target parameter.
16884 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16885
16886 2020-01-10 Pedro Alves <palves@redhat.com>
16887
16888 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16889 directly. Instead find the first thread in the thread list and
16890 use switch_to_thread.
16891
16892 2020-01-10 Pedro Alves <palves@redhat.com>
16893
16894 * remote.c (remote_target::remote_add_inferior): Don't bind a
16895 process to the current inferior if the current inferior is already
16896 bound to a process.
16897
16898 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16899 Pedro Alves <palves@redhat.com>
16900
16901 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16902 If no process is specified, return null_ptid instead of
16903 inferior_ptid.
16904 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16905 TARGET_WAITKIND_SIGNALLED with no pid.
16906
16907 2020-01-10 Pedro Alves <palves@redhat.com>
16908
16909 * remote.c (first_remote_resumed_thread): New.
16910 (remote_target::wait_as): Use it as default event_ptid instead of
16911 inferior_ptid.
16912
16913 2020-01-10 Pedro Alves <palves@redhat.com>
16914
16915 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16916
16917 2020-01-10 Pedro Alves <palves@redhat.com>
16918
16919 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16920 not -1.
16921
16922 2020-01-10 Pedro Alves <palves@redhat.com>
16923
16924 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16925 ptid to get_last_target_status.
16926 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16927 ptid to get_last_target_status.
16928 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16929 get_last_target_status.
16930 (info_program_command): Don't pass a target_waitstatus to
16931 get_last_target_status.
16932 * infrun.c (init_wait_for_inferior): Use
16933 nullify_last_target_wait_ptid.
16934 (get_last_target_status): Handle nullptr arguments.
16935 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16936 (print_stop_event): Don't pass a ptid to get_last_target_status.
16937 (normal_stop): Don't pass a ptid to get_last_target_status.
16938 * infrun.h (get_last_target_status, set_last_target_status): Move
16939 comments here and update.
16940 (nullify_last_target_wait_ptid): Declare.
16941 * linux-fork.c (fork_load_infrun_state): Remove local extern
16942 declaration of nullify_last_target_wait_ptid.
16943 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16944 to get_last_target_status.
16945
16946 2020-01-10 Pedro Alves <palves@redhat.com>
16947
16948 * gdbthread.h (scoped_restore_current_thread)
16949 <dont_restore, restore, m_dont_restore>: Declare.
16950 * thread.c (thread_alive): Add assertion. Return bool.
16951 (switch_to_thread_if_alive): New.
16952 (prune_threads): Switch inferior/thread.
16953 (print_thread_info_1): Switch thread before calling target methods.
16954 (scoped_restore_current_thread::restore): New, factored out from
16955 ...
16956 (scoped_restore_current_thread::~scoped_restore_current_thread):
16957 ... this.
16958 (scoped_restore_current_thread::scoped_restore_current_thread):
16959 Add assertion.
16960 (thread_apply_all_command, thread_select): Use
16961 switch_to_thread_if_alive.
16962 * infrun.c (proceed, restart_threads, handle_signal_stop)
16963 (switch_back_to_stepped_thread): Switch current thread before
16964 calling target methods.
16965
16966 2020-01-10 Pedro Alves <palves@redhat.com>
16967
16968 * inferior.c (switch_to_inferior_no_thread): New function,
16969 factored out from ...
16970 (inferior_command): ... here.
16971 * inferior.h (switch_to_inferior_no_thread): Declare.
16972 * mi/mi-main.c (run_one_inferior): Use
16973 switch_to_inferior_no_thread.
16974
16975 2020-01-10 Pedro Alves <palves@redhat.com>
16976
16977 * infcmd.c (kill_command): Remove dead code.
16978
16979 2020-01-10 Pedro Alves <palves@redhat.com>
16980
16981 * remote.c (remote_target::mourn_inferior): No longer check
16982 whether the target is running.
16983
16984 2020-01-10 Pedro Alves <palves@redhat.com>
16985
16986 * corelow.c (core_target::has_execution): Change parameter type to
16987 inferior pointer.
16988 * inferior.c (number_of_live_inferiors): Use
16989 inferior::has_execution instead of target_has_execution_1.
16990 * inferior.h (inferior::has_execution): New.
16991 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16992 inferior::has_execution instead of target_has_execution_1.
16993 * process-stratum-target.c
16994 (process_stratum_target::has_execution): Change parameter type to
16995 inferior pointer. Check the inferior's PID instead of
16996 inferior_ptid.
16997 * process-stratum-target.h
16998 (process_stratum_target::has_execution): Change parameter type to
16999 inferior pointer.
17000 * record-full.c (record_full_core_target::has_execution): Change
17001 parameter type to inferior pointer.
17002 * target.c (target_has_execution_1): Change parameter type to
17003 inferior pointer.
17004 (target_has_execution_current): Adjust.
17005 * target.h (target_ops::has_execution): Change parameter type to
17006 inferior pointer.
17007 (target_has_execution_1): Change parameter type to inferior
17008 pointer. Change return type to bool.
17009 * tracefile.h (tracefile_target::has_execution): Change parameter
17010 type to inferior pointer.
17011
17012 2020-01-10 Pedro Alves <palves@redhat.com>
17013
17014 * exceptions.c (print_flush): Remove current_top_target() check.
17015
17016 2020-01-10 Pedro Alves <palves@redhat.com>
17017
17018 * remote.c (show_remote_exec_file): Show the current inferior's
17019 exec-file instead of the command variable's value.
17020
17021 2020-01-10 Pedro Alves <palves@redhat.com>
17022
17023 * record-full.c (record_full_resume_ptid): New global.
17024 (record_full_target::resume): Set it.
17025 (record_full_wait_1): Use record_full_resume_ptid instead of
17026 inferior_ptid.
17027
17028 2020-01-10 Pedro Alves <palves@redhat.com>
17029
17030 * gdbthread.h (scoped_restore_current_thread)
17031 <dont_restore, restore, m_dont_restore>: Declare.
17032 * thread.c (thread_alive): Add assertion. Return bool.
17033 (switch_to_thread_if_alive): New.
17034 (prune_threads): Switch inferior/thread.
17035 (print_thread_info_1): Switch thread before calling target methods.
17036 (scoped_restore_current_thread::restore): New, factored out from
17037 ...
17038 (scoped_restore_current_thread::~scoped_restore_current_thread):
17039 ... this.
17040 (scoped_restore_current_thread::scoped_restore_current_thread):
17041 Add assertion.
17042 (thread_apply_all_command, thread_select): Use
17043 switch_to_thread_if_alive.
17044
17045 2020-01-10 George Barrett <bob@bob131.so>
17046
17047 * stap-probe.c (stap_modify_semaphore): Don't check for null
17048 semaphores.
17049 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17050 for null semaphores.
17051
17052 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17053
17054 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17055 all source windows, and maintain horizontal scroll status while
17056 doing so.
17057
17058 2020-01-09 Tom Tromey <tom@tromey.com>
17059
17060 PR tui/18932:
17061 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17062 update_source_window, not print_source_lines.
17063
17064 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17065
17066 * tui/tui.c (tui_enable): Register tui hooks after calling
17067 tui_display_main.
17068
17069 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17070
17071 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17072
17073 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17074
17075 * thread.c (print_thread_info_1): Fix indentation.
17076
17077 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17078
17079 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17080 unique_xmalloc_ptr outside the if to always free the demangled name.
17081
17082 2020-01-08 Tom Tromey <tromey@adacore.com>
17083
17084 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17085 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17086 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17087 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17088 Remove.
17089 (section_offsets): New typedef.
17090 * symtab.c (fixup_section, get_msymbol_address): Update.
17091 * symmisc.c (dump_msymbols): Update.
17092 * symfile.h (relative_addr_info_to_section_offsets)
17093 (symfile_map_offsets_to_segments): Update.
17094 * symfile.c (build_section_addr_info_from_objfile)
17095 (init_objfile_sect_indices): Update.
17096 (struct place_section_arg): Change type of "offsets".
17097 (place_section): Update.
17098 (relative_addr_info_to_section_offsets): Change type of
17099 "section_offsets". Remove "num_sections" parameter.
17100 (default_symfile_offsets, syms_from_objfile_1)
17101 (set_objfile_default_section_offset): Update.
17102 (reread_symbols): No need to preserve section offsets by hand.
17103 (symfile_map_offsets_to_segments): Change type of "offsets".
17104 * stap-probe.c (relocate_address): Update.
17105 * stabsread.h (process_one_symbol): Update.
17106 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17107 (solib_target_relocate_section_addresses): Update.
17108 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17109 Update.
17110 * solib-frv.c (frv_relocate_main_executable): Update.
17111 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17112 * solib-aix.c (solib_aix_get_section_offsets): Change return
17113 type.
17114 (solib_aix_solib_create_inferior_hook): Update.
17115 * remote.c (remote_target::get_offsets): Update.
17116 * psymtab.c (find_pc_sect_psymtab): Update.
17117 * psympriv.h (struct partial_symbol) <address, text_low,
17118 text_high>: Update.
17119 * objfiles.h (obj_section_offset): Update.
17120 (struct objfile) <section_offsets>: Change type.
17121 <num_sections>: Remove.
17122 (objfile_relocate): Update.
17123 * objfiles.c (entry_point_address_query): Update
17124 (relocate_one_symbol): Change type of "section_offsets".
17125 (objfile_relocate1, objfile_relocate1): Change type of
17126 "new_offsets".
17127 (objfile_rebase1): Update.
17128 * mipsread.c (mipscoff_symfile_read): Update.
17129 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17130 parameter.
17131 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17132 (parse_external, psymtab_to_symtab_1): Update.
17133 * machoread.c (macho_symfile_offsets): Update.
17134 * ia64-tdep.c (ia64_find_unwind_table): Update.
17135 * hppa-tdep.c (read_unwind_info): Update.
17136 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17137 * dwarf2read.c (create_addrmap_from_index)
17138 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17139 (process_psymtab_comp_unit_reader, add_partial_symbol)
17140 (add_partial_subprogram, process_full_comp_unit)
17141 (read_file_scope, read_func_scope, read_lexical_block_scope)
17142 (read_call_site_scope, dwarf2_rnglists_process)
17143 (dwarf2_ranges_process, dwarf2_ranges_read)
17144 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17145 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17146 Update.
17147 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17148 Update.
17149 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17150 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17151 (process_one_symbol): Change type of "section_offsets".
17152 * ctfread.c (get_objfile_text_range): Update.
17153 * coffread.c (coff_symtab_read, enter_linenos)
17154 (process_coff_symbol): Update.
17155 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17156 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17157
17158 2020-01-08 Tom Tromey <tromey@adacore.com>
17159
17160 * dwarf2read.c (parse_macro_definition): Use std::string.
17161 (parse_macro_definition): Likewise.
17162
17163 2020-01-08 Tom Tromey <tromey@adacore.com>
17164
17165 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17166 (ATTR_ALLOC_CHUNK): Remove.
17167
17168 2020-01-08 Tom Tromey <tromey@adacore.com>
17169
17170 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17171
17172 2020-01-08 Tom Tromey <tromey@adacore.com>
17173
17174 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17175 (dwarf2_compute_name, open_dwo_file): Likewise.
17176 (process_enumeration_scope): Use std::vector.
17177 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17178 (partial_die_info::fixup, dwarf2_start_subfile)
17179 (guess_full_die_structure_name, dwarf2_name): Likewise.
17180 (determine_prefix): Update.
17181 (guess_full_die_structure_name): Make return type const.
17182 (partial_die_full_name): Return unique_xmalloc_ptr.
17183 (DW_FIELD_ALLOC_CHUNK): Remove.
17184
17185 2020-01-07 Tom Tromey <tromey@adacore.com>
17186
17187 PR build/24937:
17188 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17189
17190 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17191
17192 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17193
17194 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17195
17196 * stack.c (print_frame_info): Move disassemble_next_line code
17197 inside source_print block.
17198
17199 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17200
17201 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17202 gdb/signals.h, as we are now using native signal symbols.
17203
17204 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17205
17206 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17207 overflow by an early check of content vs threshold.
17208 * tui/tui-source.c (tui_source_window::line_is_displayed):
17209 Likewise.
17210
17211 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17212
17213 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17214
17215 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17216
17217 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17218 export table if no section contains it's RVA.
17219
17220 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17221
17222 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17223
17224 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17225
17226 * source.c (print_source_lines_base): Set last_line_listed.
17227
17228 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17229
17230 * tui/tui-disasm.c: Remove trailing spaces.
17231
17232 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17233 Pedro Alves <palves@redhat.com>
17234
17235 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17236 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17237 (windows_gdb_signal_to_target): New function, uses the above
17238 enumeration to convert GDB internal signal codes to equivalent
17239 Windows codes.
17240 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17241 * windows-nat.c: Include "gdb_wait.h".
17242 (get_windows_debug_event): Extract the fatal exception from the
17243 exit status and convert to the equivalent Posix signal number.
17244 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17245 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17246 * gdbsupport/gdb_wait.c: New file, implements
17247 windows_status_to_termsig.
17248 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17249 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17250
17251 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17252
17253 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17254 show_layout.
17255
17256 2020-01-05 Luis Machado <luis.machado@linaro.org>
17257
17258 * aarch64-linux-nat.c
17259 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17260 and bfd_mach_aarch64.
17261
17262 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17263
17264 * ui-file.c (stdio_file::can_emit_style_escape)
17265 (tee_file::can_emit_style_escape): Ensure style is used also on
17266 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17267 to gdb_stdout.
17268 * main.c (set_gdb_data_directory): Use file style to output the
17269 warning that the given pathname is not a directory.
17270 * top.c (show_history_filename, gdb_safe_append_history)
17271 (show_gdb_datadir): Use file style.
17272
17273 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17274
17275 * solib-target.c (struct lm_info_target):
17276 Change offsets to be a unique_xmalloc_ptr.
17277 (solib_target_relocate_section_addresses): Update.
17278
17279 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17280
17281 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17282
17283 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17284
17285 * MAINTAINERS (Write After Approval): Add myself.
17286
17287 2020-01-02 Luis Machado <luis.machado@linaro.org>
17288
17289 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17290 Cell BE architecture.
17291 * target.h (struct target_ops) <thread_architecture>: Likewise.
17292
17293 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17294
17295 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17296
17297 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17298
17299 * MAINTAINERS (Write After Approval): Add myself.
17300
17301 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17302
17303 * gdbarch.sh: Update copyright year range of generated files.
17304
17305 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17306
17307 Update copyright year range in all GDB files.
17308
17309 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17310
17311 * copyright.py: Convert to Python 3.
17312
17313 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17314
17315 * copyright.py: Adapt after move of gnulib directory from gdb
17316 directory to toplevel directory.
17317
17318 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17319
17320 * copyright.py (main): Exit if run from the wrong directory.
17321
17322 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17323
17324 * top.c (print_gdb_version): Change copyright year to 2020.
17325
17326 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17327
17328 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17329
17330 For older changes see ChangeLog-2019.
17331 \f
17332 Local Variables:
17333 mode: change-log
17334 left-margin: 8
17335 fill-column: 74
17336 version-control: never
17337 coding: utf-8
17338 End:
This page took 0.384945 seconds and 4 git commands to generate.