Add TYPE_CODE_FIXED_POINT handling in print_type_scalar
[binutils-gdb.git] / gdb / ChangeLog
blob35940d515c412b8d1c7898c1c8bd67253069d3cb
1 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
3         * typeprint.c (print_type_scalar): Add handling of
4         TYPE_CODE_FIXED_POINT.
6 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
8         * valarith.c (fixed_point_binop): Replace the
9         INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda.  Update all
10         users accordingly.
12 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
14         * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
15         replacing fixed_point_scaling_factor.  All callers updated
16         throughout this project.
17         (fixed_point_scaling_factor): Delete declaration.
18         * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
19         fixed_point_scaling_factor.  Adjust implementation accordingly.
21 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
23         * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
24         replacing the fixed_point_type_base_type function. All callers
25         updated throughout this project.
26         (fixed_point_type_base_type): Remove declaration.
27         * gdbtypes.c (type::fixed_point_type_base_type): Replaces
28         fixed_point_type_base_type.  Adjust implementation accordingly.
30 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
32         * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
33         New methods.
34         (INIT_FIXED_POINT_SPECIFIC): Adjust.
35         (TYPE_FIXED_POINT_INFO): Delete macro.
36         (allocate_fixed_point_type_info): Change return type to void.
37         * gdbtypes.c (copy_type_recursive): Replace the use of
38         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
39         (fixed_point_scaling_factor): Likewise.
40         (allocate_fixed_point_type_info): Change return type to void.
41         Adjust implementation accordingly.
42         * dwarf2/read.c (finish_fixed_point_type): Replace the use of
43         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
45 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
47         * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
48         into one single gdb::array_view parameter.
49         (gdb_mpz::write): Likewise.
50         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
51         * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
52         into one single gdb::array_view parameter.
53         Adjust implementation accordingly.
54         (gdb_mpz::write): Likewise.
55         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
56         * unittests/gmp-utils-selftests.c: Adapt following changes above.
57         * valarith.c, valops.c, valprint.c, value.c: Likewise.
59 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
61         * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
62         Change return type to std::string. Update all callers.
63         * gmp-utils.c (gmp_string_printf): Likewise.
65 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
67         * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
68         instead of mpq_set_ui to initialize our GMP rational.
70 2020-11-23  Tom de Vries  <tdevries@suse.de>
72         * debuginfod-support.c (debuginfod_source_query)
73         (debuginfod_debuginfo_query): Only set DESTNAME if successful.
75 2020-11-21  Tom Tromey  <tom@tromey.com>
77         * breakpoint.c (watchpoint_exp_is_const): Return bool.
79 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
81         * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
82         Pass 2.0 to pow.
83         (gdb_mpz_write_all_from_small): Likewise.
85 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
87         * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
88         of abs.
90 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
92         * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
93         ctf_arc_open_by_name.
95 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
97         * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
98         (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
100 2020-11-20  Pedro Alves  <pedro@palves.net>
102         * language.c (language_arch_info::lookup_primitive_type): Use
103         gdb::function_view instead of gdb::function.
104         (template language_lookup_primitive_type): Rename to ...
105         (language_lookup_primitive_type_1): ... this, and make static.
106         (language_lookup_primitive_type(const struct language_defn *,
107         struct gdbarch *, const char *): Make non-template.
108         (language_lookup_primitive_type(const struct language_defn *,
109         struct gdbarch *, std::function<bool (struct type *)>): Make
110         non-template and use gdb::function_view.
111         * language.h (language_arch_info::lookup_primitive_type): Use
112         gdb::function_view instead of std::function.
113         (language_lookup_primitive_type): No longer template.
114         * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
115         lambda instead of a std::function.
117 2020-11-19  Andreas Arnez  <arnez@linux.ibm.com>
119         PR tdep/26916
120         * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
121         and STOCFH.
123 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
125         * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
127 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
129         * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
130         in `loop_cb` parameter.
131         * gdbarch.c: Re-generate.
132         * gdbarch.h: Re-generate.
133         * arch-utils.c (default_read_core_file_mappings): Remove `other`
134         parameter.
135         * arch-utils.h (default_read_core_file_mappings): Likewise.
136         * corelow.c (core_target::build_file_mappings): Likewise.
137         * linux-tdep.c (linux_read_core_file_mappings): Likewise.
138         (linux_core_info_proc_mappings): Likewise.
140 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
142         * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
143         * NEWS: Mention new options.
144         * f-array-walker.h: New file.
145         * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
146         (repack_array_slices): New static global.
147         (show_repack_array_slices): New function.
148         (fortran_array_slicing_debug): New static global.
149         (show_fortran_array_slicing_debug): New function.
150         (value_f90_subarray): Delete.
151         (skip_undetermined_arglist): Delete.
152         (class fortran_array_repacker_base_impl): New class.
153         (class fortran_lazy_array_repacker_impl): New class.
154         (class fortran_array_repacker_impl): New class.
155         (fortran_value_subarray): Complete rewrite.
156         (set_fortran_list): New static global.
157         (show_fortran_list): Likewise.
158         (_initialize_f_language): Register new commands.
159         (fortran_adjust_dynamic_array_base_address_hack): New function.
160         * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
161         Declare.
162         * f-valprint.c: Include 'f-array-walker.h'.
163         (class fortran_array_printer_impl): New class.
164         (f77_print_array_1): Delete.
165         (f77_print_array): Delete.
166         (fortran_print_array): New.
167         (f_value_print_inner): Update to call fortran_print_array.
168         * gdbtypes.c: Include 'f-lang.h'.
169         (resolve_dynamic_type_internal): Call
170         fortran_adjust_dynamic_array_base_address_hack.
172 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
174         * breakpoint.c (struct watch_options): New struct.
175         (watch_option_defs): New static global.
176         (make_watch_options_def_group): New function.
177         (watch_maybe_just_location): Convert option parsing.
178         (watch_command_completer): New function.
179         (_initialize_breakpoint): Build help text using options mechanism.
181 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
183         * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
184         (watch_command_1): Update parameter types.  Convert locals to
185         bool.
186         (watch_command_wrapper): Change parameter type.
187         (watch_maybe_just_location): Change locals to bool.
188         (rwatch_command_wrapper): Update parameter type.
189         (awatch_command_wrapper): Update parameter type.
190         * breakpoint.h (watch_command_wrapper): Change parameter type.
191         (rwatch_command_wrapper): Update parameter type.
192         (awatch_command_wrapper): Update parameter type.
193         * eval.c (fetch_subexp_value): Change parameter type.
194         * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
195         'false' not '0'.
196         * value.h (fetch_subexp_value): Change parameter type in
197         declaration.
199 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
201         * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
202         skip_spaces.
204 2020-11-18  Keith Seitz  <keiths@redhat.com>
206         * linux-tdep.c (dump_note_entry_p): Return true instead of
207         checking `filename'.
209 2020-11-18  Tom de Vries  <tdevries@suse.de>
211         * debuginfod-support.c (debuginfod_source_query)
212         (debuginfod_debuginfo_query): Also do early exit if
213         "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
215 2020-11-18  Tom de Vries  <tdevries@suse.de>
217         * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
218         warning.
220 2020-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
222         * gdbtypes.h (get_array_bounds): Return bool, adjust some
223         callers.  Move doc here.
224         * gdbtypes.c (get_array_bounds): Return bool
226 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
228         * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
229         assert.
230         * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
231         * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
232         case to the default.
234 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
236         * printcmd.c: Include 'safe-ctype.c'.
237         (skip_over_slash_fmt): New function.
238         (print_command_completer): Call skip_over_slash_fmt.
239         (display_and_x_command_completer): New function.
240         (_initialize_printcmd): Add command completion for 'x' and
241         'display'.
243 2020-11-16  Pedro Alves  <pedro@palves.net>
245         * frame.c (get_prev_frame): Move get_frame_id call from here ...
246         (get_prev_frame_always_1): ... to here.
247         * inline-frame.c (inline_frame_this_id): Mention
248         get_prev_frame_always_1 in comment.
250 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
252         * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
253         handling.
254         (value_less): Add fixed-point handling.
256 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
258         * eval.c (binop_promote): Add fixed-point type handling.
259         * valarith.c (fixed_point_binop): New function.
260         (scalar_binop): Add fixed-point type handling.
261         (value_neg): Add fixed-point type handling.
262         * valops.c (value_cast_to_fixed_point): New function.
263         (value_cast): Add fixed-point type handling.
265 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
267         * ada-typeprint.c (ada_print_type): Add handing of fixed-point
268         range types.
269         * c-typeprint.c (c_type_print_varspec_prefix)
270         (c_type_print_varspec_suffix, c_type_print_base_1): Add
271         TYPE_CODE_FIXED_POINT handling.
272         * p-typeprint.c (pascal_type_print_varspec_prefix)
273         (pascal_type_print_varspec_suffix): Likewise.
274         * typeprint.c (print_type_fixed_point): New function.
275         * typeprint.h (print_type_fixed_point): Add declaration.
277 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
279         * printcmd.c (print_scalar_formatted): Add fixed-point type
280         handling when options->format is set.
282 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
284         * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
285         * dwarf2/read.c (get_dwarf2_rational_constant)
286         (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
287         (has_zero_over_zero_small_attribute): New functions.
288         read_base_type, set_die_type): Add fixed-point type handling.
289         * gdb-gdb.py.in: Add fixed-point type handling.
290         * gdbtypes.c: #include "gmp-utils.h".
291         (create_range_type, set_type_code): Add fixed-point type handling.
292         (init_fixed_point_type): New function.
293         (is_integral_type, is_scalar_type): Add fixed-point type handling.
294         (print_fixed_point_type_info): New function.
295         (recursive_dump_type, copy_type_recursive): Add fixed-point type
296         handling.
297         (fixed_point_type_storage): New typedef.
298         (fixed_point_objfile_key): New static global.
299         (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
300         (fixed_point_type_base_type, fixed_point_scaling_factor): New
301         functions.
302         * gdbtypes.h: #include "gmp-utils.h".
303         (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
304         (union type_specific) <fixed_point_info>: New field.
305         (struct fixed_point_type_info): New struct.
306         (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
307         (init_fixed_point_type, is_fixed_point_type)
308         (fixed_point_type_base_type, fixed_point_scaling_factor)
309         (allocate_fixed_point_type_info): Add declarations.
310         * valprint.c (generic_val_print_fixed_point): New function.
311         (generic_value_print): Add fixed-point type handling.
312         * value.c (value_as_address, unpack_long): Add fixed-point type
313         handling.
315 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
317         * utils.h (uinteger_pow): Add declaration.
318         * utils.c (uinteger_pow): Moved here (without changes)...
319         * valarith.c (uinteger_pow): ... from here.
321 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
323         * gmp-utils.h,  gmp-utils.c: New file.
324         * unittests/gmp-utils-selftests.c: New file.
325         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
326         unittests/gmp-utils-selftests.c.
327         (COMMON_SFILES) Add gmp-utils.c.
328         (HFILES_NO_SRCDIR): Add gmp-utils.h.
330 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
332         * configure.ac: Generate an error if a usable GMP library
333         could not be found.
334         * configure: Regenerate.
336 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
338         * configure.ac: Add support for --with-libgmp-prefix.
339         * Makefile.in (LIBGMP): New variable.
340         (CLIBS): Include $(LIBGMP).
341         * configure, config.in: Regenerate
343 2020-11-14  Andrew Burgess  <andrew.burgess@embecosm.com>
345         PR cli/26879
346         * f-exp.y (COMPLETE): New token.
347         (exp): Two new rules for tab-completion.
348         (saw_name_at_eof): New static global.
349         (last_was_structop): Likewise.
350         (yylex): Set new variables, and return COMPLETE token at the end
351         of the input stream in some cases.
353 2020-11-14  Tom Tromey  <tom@tromey.com>
355         * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
357 2020-11-14  Tom Tromey  <tom@tromey.com>
359         * opencl-lang.c (opencl_component_ref): Make "comps" const.
361 2020-11-14  Simon Marchi  <simon.marchi@polymtl.ca>
363         * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
365 2020-11-13  Tom Tromey  <tom@tromey.com>
367         * c-lang.c (convert_ucn, convert_octal, convert_hex)
368         (convert_escape, parse_one_string): Constify.
370 2020-11-13  Keith Seitz  <keiths@redhat.com>
372         https://bugzilla.redhat.com/show_bug.cgi?id=1553086
373         * elfread.c (elf_symfile_segments): Omit "Loadable section ...
374         outside of ELF segments" warning for debugin
376 2020-11-13  Keith Seitz  <keiths@redhat.com>
378         PR gdb/23034
379         * elfread.c (elf_symfile_segments): Output a BFD file name
380         for the "Loadable section ... outside of ELF segments" warning.
382 2020-11-13  Simon Marchi  <simon.marchi@polymtl.ca>
384         PR gdb/26835
385         * arm-tdep.c (class arm_instruction_reader): New.
386         (target_arm_instruction_reader): New.
387         (arm_analyze_prologue): Add instruction reader parameter and use
388         it.  Use arm_expand_immediate.
389         (class target_arm_instruction_reader): Adjust.
390         (arm_skip_prologue): Adjust.
391         (arm_expand_immediate): New.
392         (arm_scan_prologue): Adjust.
393         (arm_analyze_prologue_test): New.
394         (class test_arm_instruction_reader): New.
396 2020-11-13  Andrew Burgess  <andrew.burgess@embecosm.com>
398         * f-lang.c (fortran_argument_convert): Add declaration.  Add
399         header comment, taken from f-lang.h.  Make static.
400         * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
401         (fortran_argument_convert): Delete declaration.
403 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
405         * ada-exp.y (find_primitive_type): Make parameter const.
406         * ada-lang.c (enum ada_primitive_types): Delete.
407         (ada_language::language_arch_info): Update.
408         * c-lang.c (enum c_primitive_types): Delete.
409         (c_language_arch_info): Update.
410         (enum cplus_primitive_types): Delete.
411         (cplus_language::language_arch_info): Update.
412         * d-lang.c (enum d_primitive_types): Delete.
413         (d_language::language_arch_info): Update.
414         * f-lang.c (enum f_primitive_types): Delete.
415         (f_language::language_arch_info): Update.
416         * go-lang.c (enum go_primitive_types): Delete.
417         (go_language::language_arch_info): Update.
418         * language.c (auto_or_unknown_language::language_arch_info):
419         Update.
420         (language_gdbarch_post_init): Use obstack_new, use array indexing.
421         (language_string_char_type): Add header comment, call function in
422         language_arch_info.
423         (language_bool_type): Likewise
424         (language_arch_info::bool_type): Define.
425         (language_lookup_primitive_type_1): Delete.
426         (language_lookup_primitive_type): Rewrite as a templated function
427         to call function in language_arch_info, then instantiate twice.
428         (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
429         (language_arch_info::lookup_primitive_type_and_symbol): Define.
430         (language_arch_info::lookup_primitive_type): Define twice with
431         different signatures.
432         (language_arch_info::lookup_primitive_type_as_symbol): Define.
433         (language_lookup_primitive_type_as_symbol): Rewrite to call a
434         member function in language_arch_info.
435         * language.h (language_arch_info): Complete rewrite.
436         (language_lookup_primitive_type): Make templated.
437         * m2-lang.c (enum m2_primitive_types): Delete.
438         (m2_language::language_arch_info): Update.
439         * opencl-lang.c (OCL_P_TYPE): Delete.
440         (enum opencl_primitive_types): Delete.
441         (opencl_type_data): Delete.
442         (builtin_opencl_type): Delete.
443         (lookup_opencl_vector_type): Update.
444         (opencl_language::language_arch_info): Update, lots of content
445         moved from...
446         (build_opencl_types): ...here.  This function is now deleted.
447         (_initialize_opencl_language): Delete.
448         * p-lang.c (enum pascal_primitive_types): Delete.
449         (pascal_language::language_arch_info): Update.
450         * rust-lang.c (enum rust_primitive_types): Delete.
451         (rust_language::language_arch_info): Update.
453 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
455         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
456         dwarf2_queue_guard.
458 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
460         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
461         comment.
463 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
465         * dwarf2/read.c (dwarf_read_debug_printf,
466         dwarf_read_debug_printf_v): New macros, use throughout the file.
468 2020-11-12  Shahab Vahedi  <shahab@synopsys.com>
470         * arc-linux-tdep.c (collect_register): Populate "eret" by
471         "pc" value from the regcache when asked for "pc" value.
473 2020-11-12  Tom Tromey  <tom@tromey.com>
475         PR rust/26799:
476         * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
477         exist.
479 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
481         * features/Makefile (XMLTOC): Add rx.xml.
482         (FEATURE_XMLFILES): Remove rx.xml.
483         (FEATURE_CFILES rule): Pass '-single-feature' flag.
484         * features/rx.c: Regenerate.
485         * features/rx.xml: Wrap in `target` tags, and reindent.
486         * target-descriptions.c (struct maint_print_c_tdesc_options): New
487         structure.
488         (maint_print_c_tdesc_opt_def): New typedef.
489         (maint_print_c_tdesc_opt_defs): New static global.
490         (make_maint_print_c_tdesc_options_def_group): New function.
491         (maint_print_c_tdesc_cmd): Make use of command line flags, only
492         print single feature C file for target descriptions containing a
493         single feature.
494         (maint_print_c_tdesc_cmd_completer): New function.
495         (_initialize_target_descriptions): Update call to register command
496         completer, and include command line flag in help text.
498 2020-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
500         * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
501         numbers.
502         * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
503         enum values.
505 2020-11-10  Tom Tromey  <tom@tromey.com>
507         * value.h (internalvar_name): Update.
508         * value.c (internalvar_name): Make return type const.
510 2020-11-10  Tom Tromey  <tom@tromey.com>
512         * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
513         (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
514         const.
516 2020-11-10  Tom Tromey  <tom@tromey.com>
518         * objc-lang.h (value_nsstring): Update.
519         * objc-lang.c (value_nsstring): Make "ptr" const.
521 2020-11-06  Andrew Burgess  <andrew.burgess@embecosm.com>
523         * expprint.c (print_subexp_funcall): Increment expression position
524         after reading argument count.
525         * f-lang.c (print_subexp_f): Skip over opcode before calling
526         common function.
527         (dump_subexp_body_f): Likewise.
529 2020-11-06  Romain Geissler  <romain.geissler@amadeus.com>
531         PR python/26832
532         * configure: Regenerate.
533         * configure.ac: Check for python modules ctypes instead of
534         itertools.
536 2020-11-06  Pedro Alves  <pedro@palves.net>
538         * macroexp.c (struct macro_buffer): Split in two classes.  Add
539         uses adjusted.
540         (struct shared_macro_buffer): New, factored out from struct
541         macro_buffer.
542         (struct growable_macro_buffer): New, factored out from struct
543         macro_buffer.
544         (set_token, get_comment, get_identifier, get_pp_number)
545         (get_character_constant, get_string_literal, get_punctuator)
546         (get_next_token_for_substitution): Constify parameters.
547         (substitute_args): Constify locals.
549 2020-11-05  Tom Tromey  <tom@tromey.com>
551         * dwarf2/read.c (read_cutu_die_from_dwo)
552         (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
553         (build_type_psymtabs_1): Update.
554         * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
555         parameter.
556         * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
557         Don't read section.  Add assert.
559 2020-11-04  Tom Tromey  <tromey@adacore.com>
561         * ada-typeprint.c (ada_print_type): Handle __XVL fields.
563 2020-11-04  Tom Tromey  <tromey@adacore.com>
565         * ada-typeprint.c (ada_print_type): Handle __T types.
567 2020-11-04  Tom Tromey  <tromey@adacore.com>
569         * dwarf2/read.c (add_partial_symbol, process_die):
570         Handle DW_TAG_array_type.
571         (is_type_tag_for_partial): Add "lang" parameter.
572         (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
574 2020-11-04  Tom Tromey  <tromey@adacore.com>
576         * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
578 2020-11-04  Tom Tromey  <tromey@adacore.com>
580         * dwarf2/read.c (read_array_type): Only apply stride to innermost
581         array.
583 2020-11-04  Tom Tromey  <tromey@adacore.com>
585         * gdbtypes.c (update_static_array_size): Handle bit stride.
587 2020-11-04  Tom Tromey  <tromey@adacore.com>
589         * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
591 2020-11-04  Tom Tromey  <tromey@adacore.com>
593         * ada-lang.c (ada_is_any_packed_array_type): New function.
594         (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
596 2020-11-04  Tom Tromey  <tromey@adacore.com>
598         * dwarf2/read.c (recognize_bound_expression)
599         (quirk_ada_thick_pointer): New functions.
600         (read_array_type): Call quirk_ada_thick_pointer.
601         (set_die_type): Add "skip_data_location" parameter.
602         (quirk_ada_thick_pointer): New function.
603         (process_structure_scope): Call quirk_ada_thick_pointer.
604         * ada-lang.c (ada_is_unconstrained_packed_array_type)
605         (decode_packed_array_bitsize): Handle thick pointers without
606         parallel types.
607         (ada_is_gnat_encoded_packed_array_type): Rename from
608         ada_is_packed_array_type.
609         (ada_is_constrained_packed_array_type): Update.
610         * ada-valprint.c (ada_val_print_gnat_array): Remove.
611         (ada_value_print_1): Use ada_get_decoded_value.
613 2020-11-04  Tom Tromey  <tromey@adacore.com>
615         * ada-lang.c (recursively_update_array_bitsize): New function.
616         (decode_constrained_packed_array_type): Call it.
618 2020-11-04  Tom Tromey  <tromey@adacore.com>
620         * ada-lang.c (to_fixed_array_type): Error if
621         decode_constrained_packed_array_type returns NULL.
623 2020-11-04  Tom Tromey  <tromey@adacore.com>
625         * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
627 2020-11-02  Tom Tromey  <tromey@adacore.com>
629         * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
630         (ALLDEPFILES): Add amd64-ravenscar-thread.c.
631         (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
632         * amd64-ravenscar-thread.c: New file.
633         * amd64-ravenscar-thread.h: New file.
634         * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
635         * configure.tgt (amd64_tobjs): Add ravenscar objects.
637 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
639         * main.c (execute_cmdargs): New function.
640         (captured_main_1): Make use of execute_cmdargs.
642 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
644         * NEWS: Mention changes to config file search path.
645         * main.c
647 2020-11-02  Tom Tromey  <tromey@adacore.com>
649         * python/python.c: Consolidate two HAVE_PYTHON blocks.
650         (python_GdbModuleDef): Move earlier.  Now static.
651         (do_start_initialization): Consolidate some IS_PY3K blocks.
653 2020-11-02  Simon Marchi  <simon.marchi@efficios.com>
655         * aarch64-linux-tdep.c: Fix indentation.
656         * aarch64-ravenscar-thread.c: Fix indentation.
657         * aarch64-tdep.c: Fix indentation.
658         * aarch64-tdep.h: Fix indentation.
659         * ada-lang.c: Fix indentation.
660         * ada-lang.h: Fix indentation.
661         * ada-tasks.c: Fix indentation.
662         * ada-typeprint.c: Fix indentation.
663         * ada-valprint.c: Fix indentation.
664         * ada-varobj.c: Fix indentation.
665         * addrmap.c: Fix indentation.
666         * addrmap.h: Fix indentation.
667         * agent.c: Fix indentation.
668         * aix-thread.c: Fix indentation.
669         * alpha-bsd-nat.c: Fix indentation.
670         * alpha-linux-tdep.c: Fix indentation.
671         * alpha-mdebug-tdep.c: Fix indentation.
672         * alpha-nbsd-tdep.c: Fix indentation.
673         * alpha-obsd-tdep.c: Fix indentation.
674         * alpha-tdep.c: Fix indentation.
675         * amd64-bsd-nat.c: Fix indentation.
676         * amd64-darwin-tdep.c: Fix indentation.
677         * amd64-linux-nat.c: Fix indentation.
678         * amd64-linux-tdep.c: Fix indentation.
679         * amd64-nat.c: Fix indentation.
680         * amd64-obsd-tdep.c: Fix indentation.
681         * amd64-tdep.c: Fix indentation.
682         * amd64-windows-tdep.c: Fix indentation.
683         * annotate.c: Fix indentation.
684         * arc-tdep.c: Fix indentation.
685         * arch-utils.c: Fix indentation.
686         * arch/arm-get-next-pcs.c: Fix indentation.
687         * arch/arm.c: Fix indentation.
688         * arm-linux-nat.c: Fix indentation.
689         * arm-linux-tdep.c: Fix indentation.
690         * arm-nbsd-tdep.c: Fix indentation.
691         * arm-pikeos-tdep.c: Fix indentation.
692         * arm-tdep.c: Fix indentation.
693         * arm-tdep.h: Fix indentation.
694         * arm-wince-tdep.c: Fix indentation.
695         * auto-load.c: Fix indentation.
696         * auxv.c: Fix indentation.
697         * avr-tdep.c: Fix indentation.
698         * ax-gdb.c: Fix indentation.
699         * ax-general.c: Fix indentation.
700         * bfin-linux-tdep.c: Fix indentation.
701         * block.c: Fix indentation.
702         * block.h: Fix indentation.
703         * blockframe.c: Fix indentation.
704         * bpf-tdep.c: Fix indentation.
705         * break-catch-sig.c: Fix indentation.
706         * break-catch-syscall.c: Fix indentation.
707         * break-catch-throw.c: Fix indentation.
708         * breakpoint.c: Fix indentation.
709         * breakpoint.h: Fix indentation.
710         * bsd-uthread.c: Fix indentation.
711         * btrace.c: Fix indentation.
712         * build-id.c: Fix indentation.
713         * buildsym-legacy.h: Fix indentation.
714         * buildsym.c: Fix indentation.
715         * c-typeprint.c: Fix indentation.
716         * c-valprint.c: Fix indentation.
717         * c-varobj.c: Fix indentation.
718         * charset.c: Fix indentation.
719         * cli/cli-cmds.c: Fix indentation.
720         * cli/cli-decode.c: Fix indentation.
721         * cli/cli-decode.h: Fix indentation.
722         * cli/cli-script.c: Fix indentation.
723         * cli/cli-setshow.c: Fix indentation.
724         * coff-pe-read.c: Fix indentation.
725         * coffread.c: Fix indentation.
726         * compile/compile-cplus-types.c: Fix indentation.
727         * compile/compile-object-load.c: Fix indentation.
728         * compile/compile-object-run.c: Fix indentation.
729         * completer.c: Fix indentation.
730         * corefile.c: Fix indentation.
731         * corelow.c: Fix indentation.
732         * cp-abi.h: Fix indentation.
733         * cp-namespace.c: Fix indentation.
734         * cp-support.c: Fix indentation.
735         * cp-valprint.c: Fix indentation.
736         * cris-linux-tdep.c: Fix indentation.
737         * cris-tdep.c: Fix indentation.
738         * darwin-nat-info.c: Fix indentation.
739         * darwin-nat.c: Fix indentation.
740         * darwin-nat.h: Fix indentation.
741         * dbxread.c: Fix indentation.
742         * dcache.c: Fix indentation.
743         * disasm.c: Fix indentation.
744         * dtrace-probe.c: Fix indentation.
745         * dwarf2/abbrev.c: Fix indentation.
746         * dwarf2/attribute.c: Fix indentation.
747         * dwarf2/expr.c: Fix indentation.
748         * dwarf2/frame.c: Fix indentation.
749         * dwarf2/index-cache.c: Fix indentation.
750         * dwarf2/index-write.c: Fix indentation.
751         * dwarf2/line-header.c: Fix indentation.
752         * dwarf2/loc.c: Fix indentation.
753         * dwarf2/macro.c: Fix indentation.
754         * dwarf2/read.c: Fix indentation.
755         * dwarf2/read.h: Fix indentation.
756         * elfread.c: Fix indentation.
757         * eval.c: Fix indentation.
758         * event-top.c: Fix indentation.
759         * exec.c: Fix indentation.
760         * exec.h: Fix indentation.
761         * expprint.c: Fix indentation.
762         * f-lang.c: Fix indentation.
763         * f-typeprint.c: Fix indentation.
764         * f-valprint.c: Fix indentation.
765         * fbsd-nat.c: Fix indentation.
766         * fbsd-tdep.c: Fix indentation.
767         * findvar.c: Fix indentation.
768         * fork-child.c: Fix indentation.
769         * frame-unwind.c: Fix indentation.
770         * frame-unwind.h: Fix indentation.
771         * frame.c: Fix indentation.
772         * frv-linux-tdep.c: Fix indentation.
773         * frv-tdep.c: Fix indentation.
774         * frv-tdep.h: Fix indentation.
775         * ft32-tdep.c: Fix indentation.
776         * gcore.c: Fix indentation.
777         * gdb_bfd.c: Fix indentation.
778         * gdbarch.sh: Fix indentation.
779         * gdbarch.c: Re-generate
780         * gdbarch.h: Re-generate.
781         * gdbcore.h: Fix indentation.
782         * gdbthread.h: Fix indentation.
783         * gdbtypes.c: Fix indentation.
784         * gdbtypes.h: Fix indentation.
785         * glibc-tdep.c: Fix indentation.
786         * gnu-nat.c: Fix indentation.
787         * gnu-nat.h: Fix indentation.
788         * gnu-v2-abi.c: Fix indentation.
789         * gnu-v3-abi.c: Fix indentation.
790         * go32-nat.c: Fix indentation.
791         * guile/guile-internal.h: Fix indentation.
792         * guile/scm-cmd.c: Fix indentation.
793         * guile/scm-frame.c: Fix indentation.
794         * guile/scm-iterator.c: Fix indentation.
795         * guile/scm-math.c: Fix indentation.
796         * guile/scm-ports.c: Fix indentation.
797         * guile/scm-pretty-print.c: Fix indentation.
798         * guile/scm-value.c: Fix indentation.
799         * h8300-tdep.c: Fix indentation.
800         * hppa-linux-nat.c: Fix indentation.
801         * hppa-linux-tdep.c: Fix indentation.
802         * hppa-nbsd-nat.c: Fix indentation.
803         * hppa-nbsd-tdep.c: Fix indentation.
804         * hppa-obsd-nat.c: Fix indentation.
805         * hppa-tdep.c: Fix indentation.
806         * hppa-tdep.h: Fix indentation.
807         * i386-bsd-nat.c: Fix indentation.
808         * i386-darwin-nat.c: Fix indentation.
809         * i386-darwin-tdep.c: Fix indentation.
810         * i386-dicos-tdep.c: Fix indentation.
811         * i386-gnu-nat.c: Fix indentation.
812         * i386-linux-nat.c: Fix indentation.
813         * i386-linux-tdep.c: Fix indentation.
814         * i386-nto-tdep.c: Fix indentation.
815         * i386-obsd-tdep.c: Fix indentation.
816         * i386-sol2-nat.c: Fix indentation.
817         * i386-tdep.c: Fix indentation.
818         * i386-tdep.h: Fix indentation.
819         * i386-windows-tdep.c: Fix indentation.
820         * i387-tdep.c: Fix indentation.
821         * i387-tdep.h: Fix indentation.
822         * ia64-libunwind-tdep.c: Fix indentation.
823         * ia64-libunwind-tdep.h: Fix indentation.
824         * ia64-linux-nat.c: Fix indentation.
825         * ia64-linux-tdep.c: Fix indentation.
826         * ia64-tdep.c: Fix indentation.
827         * ia64-tdep.h: Fix indentation.
828         * ia64-vms-tdep.c: Fix indentation.
829         * infcall.c: Fix indentation.
830         * infcmd.c: Fix indentation.
831         * inferior.c: Fix indentation.
832         * infrun.c: Fix indentation.
833         * iq2000-tdep.c: Fix indentation.
834         * language.c: Fix indentation.
835         * linespec.c: Fix indentation.
836         * linux-fork.c: Fix indentation.
837         * linux-nat.c: Fix indentation.
838         * linux-tdep.c: Fix indentation.
839         * linux-thread-db.c: Fix indentation.
840         * lm32-tdep.c: Fix indentation.
841         * m2-lang.c: Fix indentation.
842         * m2-typeprint.c: Fix indentation.
843         * m2-valprint.c: Fix indentation.
844         * m32c-tdep.c: Fix indentation.
845         * m32r-linux-tdep.c: Fix indentation.
846         * m32r-tdep.c: Fix indentation.
847         * m68hc11-tdep.c: Fix indentation.
848         * m68k-bsd-nat.c: Fix indentation.
849         * m68k-linux-nat.c: Fix indentation.
850         * m68k-linux-tdep.c: Fix indentation.
851         * m68k-tdep.c: Fix indentation.
852         * machoread.c: Fix indentation.
853         * macrocmd.c: Fix indentation.
854         * macroexp.c: Fix indentation.
855         * macroscope.c: Fix indentation.
856         * macrotab.c: Fix indentation.
857         * macrotab.h: Fix indentation.
858         * main.c: Fix indentation.
859         * mdebugread.c: Fix indentation.
860         * mep-tdep.c: Fix indentation.
861         * mi/mi-cmd-catch.c: Fix indentation.
862         * mi/mi-cmd-disas.c: Fix indentation.
863         * mi/mi-cmd-env.c: Fix indentation.
864         * mi/mi-cmd-stack.c: Fix indentation.
865         * mi/mi-cmd-var.c: Fix indentation.
866         * mi/mi-cmds.c: Fix indentation.
867         * mi/mi-main.c: Fix indentation.
868         * mi/mi-parse.c: Fix indentation.
869         * microblaze-tdep.c: Fix indentation.
870         * minidebug.c: Fix indentation.
871         * minsyms.c: Fix indentation.
872         * mips-linux-nat.c: Fix indentation.
873         * mips-linux-tdep.c: Fix indentation.
874         * mips-nbsd-tdep.c: Fix indentation.
875         * mips-tdep.c: Fix indentation.
876         * mn10300-linux-tdep.c: Fix indentation.
877         * mn10300-tdep.c: Fix indentation.
878         * moxie-tdep.c: Fix indentation.
879         * msp430-tdep.c: Fix indentation.
880         * namespace.h: Fix indentation.
881         * nat/fork-inferior.c: Fix indentation.
882         * nat/gdb_ptrace.h: Fix indentation.
883         * nat/linux-namespaces.c: Fix indentation.
884         * nat/linux-osdata.c: Fix indentation.
885         * nat/netbsd-nat.c: Fix indentation.
886         * nat/x86-dregs.c: Fix indentation.
887         * nbsd-nat.c: Fix indentation.
888         * nbsd-tdep.c: Fix indentation.
889         * nios2-linux-tdep.c: Fix indentation.
890         * nios2-tdep.c: Fix indentation.
891         * nto-procfs.c: Fix indentation.
892         * nto-tdep.c: Fix indentation.
893         * objfiles.c: Fix indentation.
894         * objfiles.h: Fix indentation.
895         * opencl-lang.c: Fix indentation.
896         * or1k-tdep.c: Fix indentation.
897         * osabi.c: Fix indentation.
898         * osabi.h: Fix indentation.
899         * osdata.c: Fix indentation.
900         * p-lang.c: Fix indentation.
901         * p-typeprint.c: Fix indentation.
902         * p-valprint.c: Fix indentation.
903         * parse.c: Fix indentation.
904         * ppc-linux-nat.c: Fix indentation.
905         * ppc-linux-tdep.c: Fix indentation.
906         * ppc-nbsd-nat.c: Fix indentation.
907         * ppc-nbsd-tdep.c: Fix indentation.
908         * ppc-obsd-nat.c: Fix indentation.
909         * ppc-ravenscar-thread.c: Fix indentation.
910         * ppc-sysv-tdep.c: Fix indentation.
911         * ppc64-tdep.c: Fix indentation.
912         * printcmd.c: Fix indentation.
913         * proc-api.c: Fix indentation.
914         * producer.c: Fix indentation.
915         * producer.h: Fix indentation.
916         * prologue-value.c: Fix indentation.
917         * prologue-value.h: Fix indentation.
918         * psymtab.c: Fix indentation.
919         * python/py-arch.c: Fix indentation.
920         * python/py-bpevent.c: Fix indentation.
921         * python/py-event.c: Fix indentation.
922         * python/py-event.h: Fix indentation.
923         * python/py-finishbreakpoint.c: Fix indentation.
924         * python/py-frame.c: Fix indentation.
925         * python/py-framefilter.c: Fix indentation.
926         * python/py-inferior.c: Fix indentation.
927         * python/py-infthread.c: Fix indentation.
928         * python/py-objfile.c: Fix indentation.
929         * python/py-prettyprint.c: Fix indentation.
930         * python/py-registers.c: Fix indentation.
931         * python/py-signalevent.c: Fix indentation.
932         * python/py-stopevent.c: Fix indentation.
933         * python/py-stopevent.h: Fix indentation.
934         * python/py-threadevent.c: Fix indentation.
935         * python/py-tui.c: Fix indentation.
936         * python/py-unwind.c: Fix indentation.
937         * python/py-value.c: Fix indentation.
938         * python/py-xmethods.c: Fix indentation.
939         * python/python-internal.h: Fix indentation.
940         * python/python.c: Fix indentation.
941         * ravenscar-thread.c: Fix indentation.
942         * record-btrace.c: Fix indentation.
943         * record-full.c: Fix indentation.
944         * record.c: Fix indentation.
945         * reggroups.c: Fix indentation.
946         * regset.h: Fix indentation.
947         * remote-fileio.c: Fix indentation.
948         * remote.c: Fix indentation.
949         * reverse.c: Fix indentation.
950         * riscv-linux-tdep.c: Fix indentation.
951         * riscv-ravenscar-thread.c: Fix indentation.
952         * riscv-tdep.c: Fix indentation.
953         * rl78-tdep.c: Fix indentation.
954         * rs6000-aix-tdep.c: Fix indentation.
955         * rs6000-lynx178-tdep.c: Fix indentation.
956         * rs6000-nat.c: Fix indentation.
957         * rs6000-tdep.c: Fix indentation.
958         * rust-lang.c: Fix indentation.
959         * rx-tdep.c: Fix indentation.
960         * s12z-tdep.c: Fix indentation.
961         * s390-linux-tdep.c: Fix indentation.
962         * score-tdep.c: Fix indentation.
963         * ser-base.c: Fix indentation.
964         * ser-mingw.c: Fix indentation.
965         * ser-uds.c: Fix indentation.
966         * ser-unix.c: Fix indentation.
967         * serial.c: Fix indentation.
968         * sh-linux-tdep.c: Fix indentation.
969         * sh-nbsd-tdep.c: Fix indentation.
970         * sh-tdep.c: Fix indentation.
971         * skip.c: Fix indentation.
972         * sol-thread.c: Fix indentation.
973         * solib-aix.c: Fix indentation.
974         * solib-darwin.c: Fix indentation.
975         * solib-frv.c: Fix indentation.
976         * solib-svr4.c: Fix indentation.
977         * solib.c: Fix indentation.
978         * source.c: Fix indentation.
979         * sparc-linux-tdep.c: Fix indentation.
980         * sparc-nbsd-tdep.c: Fix indentation.
981         * sparc-obsd-tdep.c: Fix indentation.
982         * sparc-ravenscar-thread.c: Fix indentation.
983         * sparc-tdep.c: Fix indentation.
984         * sparc64-linux-tdep.c: Fix indentation.
985         * sparc64-nbsd-tdep.c: Fix indentation.
986         * sparc64-obsd-tdep.c: Fix indentation.
987         * sparc64-tdep.c: Fix indentation.
988         * stabsread.c: Fix indentation.
989         * stack.c: Fix indentation.
990         * stap-probe.c: Fix indentation.
991         * stubs/ia64vms-stub.c: Fix indentation.
992         * stubs/m32r-stub.c: Fix indentation.
993         * stubs/m68k-stub.c: Fix indentation.
994         * stubs/sh-stub.c: Fix indentation.
995         * stubs/sparc-stub.c: Fix indentation.
996         * symfile-mem.c: Fix indentation.
997         * symfile.c: Fix indentation.
998         * symfile.h: Fix indentation.
999         * symmisc.c: Fix indentation.
1000         * symtab.c: Fix indentation.
1001         * symtab.h: Fix indentation.
1002         * target-float.c: Fix indentation.
1003         * target.c: Fix indentation.
1004         * target.h: Fix indentation.
1005         * tic6x-tdep.c: Fix indentation.
1006         * tilegx-linux-tdep.c: Fix indentation.
1007         * tilegx-tdep.c: Fix indentation.
1008         * top.c: Fix indentation.
1009         * tracefile-tfile.c: Fix indentation.
1010         * tracepoint.c: Fix indentation.
1011         * tui/tui-disasm.c: Fix indentation.
1012         * tui/tui-io.c: Fix indentation.
1013         * tui/tui-regs.c: Fix indentation.
1014         * tui/tui-stack.c: Fix indentation.
1015         * tui/tui-win.c: Fix indentation.
1016         * tui/tui-winsource.c: Fix indentation.
1017         * tui/tui.c: Fix indentation.
1018         * typeprint.c: Fix indentation.
1019         * ui-out.h: Fix indentation.
1020         * unittests/copy_bitwise-selftests.c: Fix indentation.
1021         * unittests/memory-map-selftests.c: Fix indentation.
1022         * utils.c: Fix indentation.
1023         * v850-tdep.c: Fix indentation.
1024         * valarith.c: Fix indentation.
1025         * valops.c: Fix indentation.
1026         * valprint.c: Fix indentation.
1027         * valprint.h: Fix indentation.
1028         * value.c: Fix indentation.
1029         * value.h: Fix indentation.
1030         * varobj.c: Fix indentation.
1031         * vax-tdep.c: Fix indentation.
1032         * windows-nat.c: Fix indentation.
1033         * windows-tdep.c: Fix indentation.
1034         * xcoffread.c: Fix indentation.
1035         * xml-syscall.c: Fix indentation.
1036         * xml-tdesc.c: Fix indentation.
1037         * xstormy16-tdep.c: Fix indentation.
1038         * xtensa-config.c: Fix indentation.
1039         * xtensa-linux-nat.c: Fix indentation.
1040         * xtensa-linux-tdep.c: Fix indentation.
1041         * xtensa-tdep.c: Fix indentation.
1043 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1044             Craig Blackmore   <craig.blackmore@embecosm.com>
1046         * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1047         as an unsigned value.
1049 2020-11-01  Tom Tromey  <tom@tromey.com>
1051         * dbxread.c (dbx_end_psymtab): Update.
1052         * dwarf2/read.c (process_psymtab_comp_unit_reader)
1053         (build_type_psymtabs_reader): Update.
1054         * xcoffread.c (xcoff_end_psymtab): Update.
1055         * ctfread.c (scan_partial_symbols): Update.
1056         * psymtab.c (sort_pst_symbols): Remove.
1057         (partial_symtab::end): Rename from end_psymtab_common.  Inline
1058         sort_pst_symbols.
1059         * psympriv.h (struct partial_symtab) <end>: New method.
1060         (end_psymtab_common): Don't declare.
1062 2020-11-01  Tom Tromey  <tom@tromey.com>
1064         * symmisc.c (count_psyms): New function.
1065         (print_objfile_statistics): Use it.
1066         * psymtab.c (append_psymbol_to_list): Remove.
1067         (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1068         * objfiles.h (struct objstats) <n_psyms>: Remove.
1070 2020-11-01  Tom Tromey  <tom@tromey.com>
1072         * dbxread.c (dbx_end_psymtab): Update.
1073         * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1074         (build_type_psymtabs_reader): Update.
1075         * xcoffread.c (xcoff_end_psymtab): Update.
1076         * ctfread.c (scan_partial_symbols): Update.
1077         * psympriv.h (end_psymtab_common): Update.
1078         * psymtab.c (end_psymtab_common): Remove objfile parameter.
1079         (sort_pst_symbols): Likewise.
1081 2020-11-01  Tom Tromey  <tom@tromey.com>
1083         * dbxread.c (dbx_symfile_read): Update.
1084         * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1085         * xcoffread.c (xcoff_initial_scan): Update.
1086         * psympriv.h (init_psymbol_list): Don't declare.
1087         * psymtab.c (init_psymbol_list): Remove.
1089 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1091         * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1092         gnat_encoded_fixed_type_info.  Update all callers.
1094 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1096         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1097         line too long.
1099 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1101         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1102         cast_from_fixed.  Update all callers.
1103         (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1104         Update all callers.
1105         (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1106         Update all callers.
1107         * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1108         ada_scaling_factor.
1109         * ada-typeprint.c: Replace call to ada_scaling_factor by call
1110         to print_gnat_encoded_fixed_point_type.
1111         * ada-valprint.c: Likewise.
1113 2020-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1115         * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1116         (debug_prefixed_printf): Add check of debug_displaced flag.
1117         * linux-nat.c (linux_nat_debug_printf): Add check of
1118         debug_linux_nat flag.
1120 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1122         * infrun.c (infrun_debug_printf_1): Remove.
1123         (displaced_debug_printf_1): Remove.
1124         (stop_all_threads): Use debug_prefixed_printf.
1125         * infrun.h (infrun_debug_printf_1): Remove.
1126         (infrun_debug_printf): Use debug_prefixed_printf.
1127         (displaced_debug_printf_1): Remove.
1128         (displaced_debug_printf): Use debug_prefixed_printf.
1129         * linux-nat.c (linux_nat_debug_printf_1): Remove.
1130         (linux_nat_debug_printf): Use debug_prefixed_printf.
1132 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1134         * configure: Re-generate.
1135         * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1136         AC_LANG_PROGRAM.
1138 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1140         * configure: Re-generate.
1142 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1144         * configure: Re-generate.
1146 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1148         * configure: Re-generate.
1150 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1152         * configure: Re-generate.
1154 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1156         * acinclude.m4: Modernize.
1157         * configure: Re-generate.
1159 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1161         * configure.ac: Modernize.
1162         * configure: Re-generate.
1164 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1166         * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1167         * configure: Re-generate.
1168         * configure.ac: Remove AM_PROG_CC_STDC.
1170 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1172         * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1173         AC_CANONICAL_SYSTEM.
1174         * configure: Re-generate.
1176 2020-10-30  Simon Marchi  <simon.marchi@efficios.com>
1178         * infrun.h (displaced_debug_printf): New macro.  Replace
1179         displaced debug prints throughout to use it.
1180         (displaced_debug_printf_1): New declaration.
1181         (displaced_step_dump_bytes): Return string, remove ui_file
1182         parameter, update all callers.
1183         * infrun.c (displaced_debug_printf_1): New function.
1184         (displaced_step_dump_bytes): Return string, remove ui_file
1185         parameter
1187 2020-10-30  Simon Marchi  <simon.marchi@polymtl.ca>
1189         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1191 2020-10-30  Tom Tromey  <tromey@adacore.com>
1193         * Makefile.in (stamp-init): Depend on config.status.
1195 2020-10-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1197         * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1199 2020-10-30  Pedro Alves  <pedro@palves.net>
1201         * thread.c (lookup_selected_frame): Move ...
1202         * frame.c (lookup_selected_frame): ... here.
1204 2020-10-30  Pedro Alves  <pedro@palves.net>
1206         * blockframe.c (block_innermost_frame): Use get_selected_frame.
1207         * frame.c
1208         (scoped_restore_selected_frame::scoped_restore_selected_frame):
1209         Use save_selected_frame.  Save language as well.
1210         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1211         Use restore_selected_frame, and restore language as well.
1212         (selected_frame_id, selected_frame_level): New.
1213         (selected_frame): Update comments.
1214         (save_selected_frame, restore_selected_frame): New.
1215         (get_selected_frame): Use lookup_selected_frame.
1216         (get_selected_frame_if_set): Delete.
1217         (select_frame): Record selected_frame_level and selected_frame_id.
1218         * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1219         fields.
1220         (get_selected_frame): Make 'message' parameter optional.
1221         (get_selected_frame_if_set): Delete declaration.
1222         (select_frame): Update comments.
1223         (save_selected_frame, restore_selected_frame)
1224         (lookup_selected_frame): Declare.
1225         * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1226         * infrun.c (struct infcall_control_state) <selected_frame_level>:
1227         New field.
1228         (save_infcall_control_state): Use save_selected_frame.
1229         (restore_selected_frame): Delete.
1230         (restore_infcall_control_state): Use restore_selected_frame.
1231         * stack.c (select_frame_command_core, frame_command_core): Use
1232         get_selected_frame.
1233         * thread.c (restore_selected_frame): Rename to ...
1234         (lookup_selected_frame): ... this and make extern.  Select the
1235         current frame if the frame level is -1.
1236         (scoped_restore_current_thread::restore): Also restore the
1237         language.
1238         (scoped_restore_current_thread::~scoped_restore_current_thread):
1239         Don't try/catch.
1240         (scoped_restore_current_thread::scoped_restore_current_thread):
1241         Save the language as well.  Use save_selected_frame.
1243 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1245         * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1246         documentation.
1247         * gdbarch.h: Re-generate.
1249 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1251         * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1252         parameter.
1253         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1254         Likewise.
1255         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1256         Likewise.
1257         * arch-utils.c (default_displaced_step_hw_singlestep):
1258         Likewise.
1259         * arch-utils.h (default_displaced_step_hw_singlestep):
1260         Likewise.
1261         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1262         Likewise.
1263         * s390-tdep.c (s390_displaced_step_hw_singlestep):
1264         Likewise.
1265         * gdbarch.c: Re-generate.
1266         * gdbarch.h: Re-generate.
1267         * infrun.c (resume_1): Adjust.
1269 2020-10-29  Tom Tromey  <tom@tromey.com>
1271         * progspace.c (program_space::~program_space): Don't call
1272         exec_close.
1274 2020-10-29  Tom Tromey  <tom@tromey.com>
1276         * exec.c (exec_target::close): Don't change current program
1277         space.
1279 2020-10-29  Tom Tromey  <tom@tromey.com>
1281         * symfile.c (add_symbol_file_command): Update.
1282         * exec.c (program_space::add_target_sections): Rename.
1283         * symfile-mem.c (symbol_file_add_from_memory): Update.
1284         * progspace.h (struct program_space) <add_target_sections>:
1285         Declare new overload.
1286         * exec.h (add_target_sections_of_objfile): Don't declare.
1288 2020-10-29  Tom Tromey  <tom@tromey.com>
1290         * solib.c (solib_map_sections): Update.
1291         * exec.c (program_space::add_target_sections): Now a method.
1292         (exec_file_attach): Update.
1293         * exec.h (add_target_sections): Don't declare.
1294         * progspace.h (struct program_space) <add_target_sections>:
1295         Declare.
1297 2020-10-29  Tom Tromey  <tom@tromey.com>
1299         * progspace.h (struct program_space) <remove_target_sections>:
1300         Declare.
1301         * exec.c (program_space::remove_target_sections): Now a method.
1302         * exec.h (remove_target_sections): Don't declare.
1304 2020-10-29  Tom Tromey  <tom@tromey.com>
1306         * inferior.c (delete_inferior): Update.
1307         * progspace.c (program_space::empty): Rename from
1308         program_space_empty_p.  Return bool.
1309         * progspace.h (struct program_space) <empty>: New method.
1310         (program_space_empty_p): Don't declare.
1312 2020-10-29  Tom Tromey  <tom@tromey.com>
1314         * progspace.c (program_space::~program_space): Don't call
1315         clear_program_space_solib_cache.
1316         (program_space::clear_solib_cache): Rename from
1317         clear_solib_cache.
1318         * solib.c (handle_solib_event): Update.
1319         * progspace.h (struct program_space) <clear_solib_cache>: New
1320         method.
1321         (clear_program_space_solib_cache): Don't declare.
1323 2020-10-29  Tom Tromey  <tom@tromey.com>
1325         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1326         * target.c (info_target_command): Update.
1327         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1328         (symbol_file_clear, reread_symbols): Update.
1329         * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1330         * stabsread.c (scan_file_globals): Update.
1331         * solib.c (update_solib_list): Update.
1332         * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1333         (svr4_fetch_objfile_link_map, enable_break)
1334         (svr4_relocate_main_executable)
1335         (svr4_iterate_over_objfiles_in_search_order): Update.
1336         * solib-frv.c (lm_base, enable_break)
1337         (frv_relocate_main_executable): Update.
1338         (main_got, frv_fdpic_find_canonical_descriptor): Update.
1339         (frv_fetch_objfile_link_map): Update.
1340         * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1341         * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1342         * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1343         * remote.c (remote_target::get_offsets): Update.
1344         (remote_target::start_remote)
1345         (extended_remote_target::post_attach): Update.
1346         * objfiles.c (entry_point_address_query): Update.
1347         * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1348         * minsyms.c (get_symbol_leading_char): Update.
1349         * frame.c (inside_main_func): Update.
1350         * progspace.h (symfile_objfile): Remove macro.
1352 2020-10-29  Tom Tromey  <tom@tromey.com>
1354         * exec.c (exec_file_attach): Update.
1355         * progspace.c (program_space::exec_close): Update.
1356         * progspace.h (struct program_space) <ebfd>: Now a
1357         gdb_bfd_ref_ptr.
1358         <set_exec_bfd>: Change argument type.
1359         <exec_bfd>: Update.
1361 2020-10-29  Tom Tromey  <tom@tromey.com>
1363         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1364         * symfile.c (reread_symbols): Update.
1365         * symfile-mem.c (add_symbol_file_from_memory_command)
1366         (add_vsyscall_page): Update.
1367         * source-cache.c (source_cache::get_plain_source_lines): Update.
1368         * solib-svr4.c (find_program_interpreter, elf_locate_base)
1369         (svr4_current_sos_direct, svr4_exec_displacement)
1370         (svr4_relocate_main_executable): Update.
1371         (svr4_iterate_over_objfiles_in_search_order): Update.
1372         * solib-frv.c (enable_break2, enable_break): Update.
1373         * solib-dsbt.c (lm_base, enable_break): Update.
1374         * solib-darwin.c (find_program_interpreter)
1375         (darwin_solib_create_inferior_hook): Update.
1376         * sol-thread.c (rw_common, ps_pdmodel): Update.
1377         * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1378         * remote.c (compare_sections_command)
1379         (remote_target::trace_set_readonly_regions): Update.
1380         * remote-sim.c (get_sim_inferior_data)
1381         (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1382         (gdbsim_target_open, gdbsim_target::files_info): Update.
1383         * exec.h (exec_bfd): Remove macro.
1384         * progspace.c (initialize_progspace): Update.
1385         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1386         Update.
1387         * nto-procfs.c (nto_procfs_target::post_attach)
1388         (nto_procfs_target::create_inferior): Update.
1389         * maint.c (maintenance_info_sections): Update.
1390         * linux-thread-db.c (thread_db_target::get_thread_local_address):
1391         Update.
1392         * infcmd.c (post_create_inferior): Update.
1393         * gcore.c (default_gcore_arch, default_gcore_target): Update.
1394         (objfile_find_memory_regions): Update.
1395         * exec.c (validate_exec_file, exec_file_attach)
1396         (exec_read_partial_read_only, print_section_info): Update.
1397         * corelow.c (core_target_open): Update.
1398         * corefile.c (reopen_exec_file, validate_files): Update.
1399         * arm-tdep.c (gdb_print_insn_arm): Update.
1400         * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1401         * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1402         methods.
1404 2020-10-29  Tom Tromey  <tom@tromey.com>
1406         * progspace.h (current_target_sections): Remove macro.
1407         * solib-svr4.c (scan_dyntag): Update.
1408         * solib-dsbt.c (scan_dyntag): Update.
1409         * exec.c (exec_target::close): Update.
1410         (add_target_sections, add_target_sections_of_objfile)
1411         (remove_target_sections, exec_target::get_section_table)
1412         (exec_target::files_info, set_section_command)
1413         (exec_set_section_address, exec_target::has_memory)
1414         (exec_target::has_memory): Update.
1416 2020-10-29  Tom Tromey  <tom@tromey.com>
1418         * source-cache.c (source_cache::get_plain_source_lines): Use
1419         current_program_space.
1420         * corefile.c (reopen_exec_file): Use current_program_space.
1421         * exec.c (exec_file_attach): Use current_program_space.
1422         * exec.h (exec_bfd_mtime): Remove.
1424 2020-10-29  Tom Tromey  <tom@tromey.com>
1426         * gcore.c (default_gcore_mach): Remove.
1427         (create_gcore_bfd): Update.
1429 2020-10-29  Tom Tromey  <tom@tromey.com>
1431         * progspace.c (program_space::exec_close): New method, from
1432         exec_close in exec.c.
1433         * exec.c (exec_close): Move to progspace.c.
1434         (exec_target::close, exec_file_attach): Update.
1435         * progspace.h (struct program_space) <exec_close>: Declare
1436         method.
1438 2020-10-29  Tom Tromey  <tom@tromey.com>
1440         * progspace.h (struct program_space) <exec_filename>: Rename from
1441         pspace_exec_filename.  Now a unique_xmalloc_ptr.
1442         * inferior.c (print_selected_inferior): Update.
1443         (print_inferior): Update.
1444         * mi/mi-main.c (print_one_inferior): Update.
1445         * exec.h (exec_filename): Remove macro.
1446         * corefile.c (get_exec_file): Update.
1447         * exec.c (exec_close): Update.
1448         (exec_file_attach): Update.
1449         * progspace.c (clone_program_space): Update.
1450         (print_program_space): Update.
1452 2020-10-29  Tom Tromey  <tom@tromey.com>
1454         * target-section.h (struct target_section): Add constructor.
1455         * exec.c (build_section_table, add_target_sections_of_objfile):
1456         Update.
1457         * corelow.c (core_target::build_file_mappings): Update.
1459 2020-10-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1461         PR gdb/19318
1462         * inferior.c (detach_inferior_command): Restore the current thread.
1463         (kill_inferior_command): Ditto.
1465 2020-10-28  Tom de Vries  <tdevries@suse.de>
1467         PR symtab/26772
1468         * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1469         map, check it in the "best match" loop.
1471 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1473         * m32c-tdep.c: Remove unused includes.
1475 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1477         * xtensa-tdep.c: Remove includes.
1479 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1481         * breakpoint.c (struct condition_command_opts): New struct.
1482         (condition_command_option_defs): New static global.
1483         (make_condition_command_options_def_group): New function.
1484         (condition_completer): Update to consider the '-force' flag.
1485         (condition_command): Use gdb::option for the '-force' flag.
1487 2020-10-27  Tom de Vries  <tdevries@suse.de>
1489         * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1490         symbols in section check.
1492 2020-10-27  Tom de Vries  <tdevries@suse.de>
1494         * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1496 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1498         * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1499         * breakpoint.c: Update the help text of the 'condition' and 'break'
1500         commands.
1501         (set_breakpoint_condition): Take a new bool parameter
1502         to control whether condition definition should be forced even when
1503         the condition expression is invalid in all of the current locations.
1504         (condition_command): Update the call to 'set_breakpoint_condition'.
1505         (find_condition_and_thread): Take the "-force-condition" flag into
1506         account.
1507         * linespec.c (linespec_keywords): Add "-force-condition" as an
1508         element.
1509         (FORCE_KEYWORD_INDEX): New #define.
1510         (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1511         as a keyword.
1512         * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1513         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1514         * python/py-breakpoint.c (bppy_set_condition): Ditto.
1515         * NEWS: Mention the changes to the 'break' and 'condition' commands.
1517 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1519         * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1520         * breakpoint.c (set_breakpoint_location_condition): New function.
1521         (set_breakpoint_condition): Disable a breakpoint location if parsing
1522         the condition string gives an error.
1523         (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1524         (build_target_condition_list): Ditto.
1525         (build_target_command_list): Ditto.
1526         (build_bpstat_chain): Ditto.
1527         (print_one_breakpoint_location): Ditto.
1528         (print_one_breakpoint): Ditto.
1529         (breakpoint_1): Ditto.
1530         (bp_location::bp_location): Ditto.
1531         (locations_are_equal): Ditto.
1532         (update_breakpoint_locations): Ditto.
1533         (enable_disable_bp_num_loc): Ditto.
1534         (init_breakpoint_sal): Use set_breakpoint_location_condition.
1535         (find_condition_and_thread_for_sals): New static function.
1536         (create_breakpoint): Call find_condition_and_thread_for_sals.
1537         (location_to_sals): Call find_condition_and_thread_for_sals instead
1538         of find_condition_and_thread.
1540 2020-10-26  Tom de Vries  <tdevries@suse.de>
1542         * dwarf2/read.c (process_full_comp_unit): Call
1543         dwarf2_find_base_address.
1545 2020-10-26  Tom Tromey  <tromey@adacore.com>
1547         * gdbtypes.c (create_range_type): Revert previous patch.  Add
1548         comment.
1550 2020-10-26  Pedro Alves  <pedro@palves.net>
1552         * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1553         (my_waitpid): Use gdb::handle_eintr.
1555 2020-10-25  Simon Marchi  <simon.marchi@polymtl.ca>
1557         * acinclude.m4: Update ptrace.m4 path.
1558         * ptrace.m4: Moved to gdbsupport.
1560 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1562         * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1563         instead of target_gdbarch.
1565 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1567         * jit.c (jit_reader_load_command): Pass current inferior.
1568         (jit_inferior_init): Change parameter type to inferior, use it.
1569         (jit_inferior_created): Remove.
1570         (jit_inferior_created_hook): Pass inferior parameter down.
1571         (_initialize_jit): Use jit_inferior_created_hook instead of
1572         jit_inferior_created.
1573         * jit.h (jit_inferior_created_hook): Add inferior parameter.
1574         * infrun.c (follow_exec): Pass inferior to
1575         jit_inferior_created_hook.
1577 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
1579         * linux-thread-db.c (check_pid_namespace_match): Add inferior
1580         parameter and use it.
1581         (thread_db_inferior_created): Pass inferior argument.
1583 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
1585         * aix-thread.c (aix_thread_inferior_created): Add inferior
1586         parameter.
1587         * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1588         * dummy-frame.c (cleanup_dummy_frames): Likewise.
1589         * jit.c (jit_inferior_created): Likewise.
1590         * linux-thread-db.c (thread_db_inferior_created): Likewise.
1591         * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1592         * observable.h (inferior_created): Likewise.
1593         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1594         * symfile-mem.c (add_vsyscall_page): Likewise.
1595         * infcmd.c (post_create_inferior): Pass inferior argument.
1597 2020-10-24  Joel Brobecker  <brobecker@adacore.com>
1599         GDB 10.1 released.
1601 2020-10-23  Joel Brobecker  <brobecker@adacore.com>
1603         * ada-typeprint.c (ada_print_type): Remove superfluous second call
1604         to ada_check_typedef.
1606 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1608         * f-exp.y (f_parse): Rename to...
1609         (f_language::parser): ...this.
1610         * f-lang.c (f_get_encoding): Rename to...
1611         (f_language::get_encoding): ...this.
1612         (f_op_print_tab): Rename to...
1613         (f_language::op_print_tab): ...this.
1614         (exp_descriptor_f): Rename to...
1615         (f_language::exp_descriptor_tab): ...this.
1616         (class f_language): Moved to f-lang.h.
1617         (f_language::language_arch_info): New function, moved out of class
1618         declaration.
1619         (f_language::search_name_hash): Likewise.
1620         (f_language::lookup_symbol_nonlocal): Likewise.
1621         (f_language::get_symbol_name_matcher_inner): Likewise.
1622         * f-lang.h: Add 'valprint.h' include.
1623         (class f_language): Moved here from f-lang.c.
1624         * f-typeprint.c (f_type_print_args): Delete commented out
1625         declaration.
1626         (f_print_typedef): Rename to...
1627         (f_language::print_typedef): ...this.
1628         (f_print_type): Rename to...
1629         (f_language::print_type): ...this.
1630         (f_type_print_varspec_prefix): Delete declaration and rename to...
1631         (f_language::f_type_print_varspec_prefix): ...this.
1632         (f_type_print_varspec_suffix): Delete declaration and rename to...
1633         (f_language::f_type_print_varspec_suffix): ...this.
1634         (f_type_print_base): Delete declaration and rename to...
1635         (f_language::f_type_print_base): ...this.
1636         * f-valprint.c (f_value_print_inner): Rename to...
1637         (f_language::value_print_inner): ...this.
1638         * parse.c: Delete 'f-lang.h' include.
1640 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1642         * language.h (language_defn::print_type): Add variable names in
1643         declaration, and update header comment.
1645 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1647         * ada-lang.c (ada_language::demangle): Rename to...
1648         (ada_language::demangle_symbol): ...this.
1649         * c-lang.c (cplus_language::demangle): Rename to...
1650         (cplus_language::demangle_symbol): ...this.
1651         * d-lang.c (d_language::demangle): Rename to...
1652         (d_language::demangle_symbol): ...this.
1653         * f-lang.c (f_language::demangle): Rename to...
1654         (f_language::demangle_symbol): ...this.
1655         * go-lang.c (go_language::demangle): Rename to...
1656         (go_language::demangle_symbol): ...this.
1657         * language.c (language_demangle): Update call to demangle_symbol.
1658         (auto_or_unknown_language::demangle): Rename to...
1659         (auto_or_unknown_language::demangle_symbol): ...this.
1660         * language.h (language_defn::demangle): Rename to...
1661         (language_defn::demangle_symbol): ...this.
1662         * objc-lang.c (objc_language::demangle): Rename to...
1663         (objc_language::demangle_symbol): ...this.
1664         * rust-lang.c (rust_language::demangle): Rename to...
1665         (rust_language::demangle_symbol): ...this.
1667 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1669         * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1670         (iterate_over_file_blocks): Replace use of macro with the macros
1671         definition.
1673 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1675         * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1676         * valprint.c (maybe_print_array_index): Replace use of macro with
1677         the macros definition.
1679 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1681         * ada-lang.c (ada_language::print_array_index): Call value_print
1682         directly.
1683         * language.c (language_defn::print_array_index): Likewise.
1684         * language.h (LA_VALUE_PRINT): Delete.
1685         * valprint.c (value_print): Call value_print on the
1686         current_language directly.
1688 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1690         * language.h (LA_PRINT_TYPEDEF): Delete.
1691         * typeprint.c (typedef_print): Call print_typedef directly on the
1692         current_language object.
1694 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1696         * m2-exp.y (m2_parse): Rename to...
1697         (m2_language::parser): ...this.  Update function signature.
1698         * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1699         (m2_op_print): Rename to...
1700         (m2_language::op_print_tab): ...this, and make const.
1701         (exp_descriptor_modula2): Rename to...
1702         (m2_language::exp_descriptor_modula2): ...this.
1703         (class m2_language): Move to m2-lang.h.
1704         (m2_language::language_arch_info): New function, moved out of
1705         class declaration.
1706         (m2_language::printchar): New function, body from m2_printchar.
1707         (m2_language::printstr): New function, moved out of class
1708         declaration.
1709         (m2_language::emitchar): Likewise.
1710         * m2-lang.h (m2_parse): Delete declaration.
1711         (m2_print_typedef): Delete declaration.
1712         (m2_value_print_inner): Delete declaration.
1713         (class m2_language): Class declaration moved from m2-lang.c,
1714         larger functions are left in m2-lang.c.
1715         * m2-typeprint.c (m2_print_typedef): Rename to...
1716         (m2_language::print_typedef): ...this, and update function
1717         signature.
1718         * m2-valprint.c (m2_value_print_inner): Rename to...
1719         (m2_language::value_print_inner): ...this, replace use of
1720         LA_PRINT_STRING with a direct call to printstr member function,
1721         and update recursive call.
1723 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1725         * language.c (default_is_string_type_p): Delete, implementation
1726         moved into auto_or_unknown_language::is_string_type_p.
1727         (unk_op_print_tab): Moved into
1728         auto_or_unknown_language::opcode_print_table.
1729         (unknown_language_arch_info): Delete, implementation moved into
1730         auto_or_unknown_language::language_arch_info.
1731         (class auto_or_unknown_language): New class, member functions
1732         copied from unknown_language class, with some updates.
1733         (class unknown_language): Most member functions moved into
1734         auto_or_unknown_language class.  Inherit from
1735         auto_or_unknown_language class.
1736         (class auto_language): Inherit from auto_or_unknown_language.
1737         Delete most member functions.
1739 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
1741         * stabsread.c (read_member_functions): Remove gdb_assert.
1743 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
1745         * gdbtypes.c (init_complex_type): Check target type name.
1747 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1749         * target-debug.h (target_debug_print_struct_target_ops_p):
1750         Remove.
1751         (target_debug_print_async_callback_ftype_p): Remove.
1752         (target_debug_print_struct_trace_state_variable_p): Remove.
1753         (target_debug_print_struct_traceframe_info_p): Remove.
1754         (target_debug_print_VEC__btrace_block_s__pp): Remove.
1755         (target_debug_print_enum_btrace_format): Remove.
1756         (target_debug_print_enum_info_proc_what): Remove.
1757         (target_debug_print_thread_info_pp): Remove.
1759 2020-10-22  Simon Marchi  <simon.marchi@efficios.com>
1761         * target.h (struct target_ops) <make_corefile_notes>:
1762         Change return type to unique pointer.
1763         * target.c (dummy_make_corefile_notes): Likewise.
1764         * exec.c (struct exec_target) <make_corefile_notes>:
1765         Likewise.
1766         (exec_target::make_corefile_notes): Likewise.
1767         * procfs.c (class procfs_target) <make_corefile_notes>:
1768         Likewise.
1769         (procfs_do_thread_registers): Adjust to unique pointer.
1770         (struct procfs_corefile_thread_data): Add constructor.
1771         <note_data>: Change type to unique pointer.
1772         (procfs_corefile_thread_callback): Adjust to unique pointer.
1773         (procfs_target::make_corefile_notes): Change return type to
1774         unique pointer.
1775         * target-delegates.c: Re-generate.
1776         * gcore.c (write_gcore_file_1): Adjust.
1777         * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1778         New.
1780 2020-10-22  Tom de Vries  <tdevries@suse.de>
1782         * block.c (find_block_in_blockvector): Make sure the returned block
1783         contains pc.
1785 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1787         PR gdb/26693
1788         * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1789         parameter.
1790         (load_cu): Pass existing CU.
1791         (process_imported_unit_die): Likewise.
1792         (follow_die_offset): Likewise.
1794 2020-10-22  Luis Machado  <luis.machado@linaro.org>
1796         * corelow.c (core_target::xfer_partial): Also check for an empty
1797         m_core_unavailable_mappings vector.
1799 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1801         * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1802         * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1803         * f-exp.y (arglist): Allow for a series of subranges.
1804         (subrange): Add cases for subranges with strides.
1805         * f-lang.c (value_f90_subarray): Catch use of array strides and
1806         throw an error.
1807         * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1809 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1811         * expprint.c (print_subexp_standard): Change enum range_type to
1812         range_flag and rename variables to match.
1813         (dump_subexp_body_standard): Likewise.
1814         * expression.h (enum range_type): Rename to...
1815         (enum range_flag): ...this.
1816         (range_types): Rename to...
1817         (range_flags): ...this.
1818         * f-lang.c (value_f90_subarray): Change enum range_type to
1819         range_flag and rename variables to match.
1820         * parse.c (operator_length_standard): Likewise.
1821         * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1822         range_type to range_flag.
1823         * rust-lang.c (rust_evaluate_funcall): Likewise.
1824         (rust_range): Likewise.
1825         (rust_compute_range): Likewise.
1826         (rust_subscript): Likewise.
1828 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1830         * expprint.c (print_subexp_standard): Update to reflect changes to
1831         enum range_type.
1832         (dump_subexp_body_standard): Likewise.
1833         * expression.h (enum range_type): Convert to a bit field enum, and
1834         make the enum unsigned.
1835         * f-exp.y (subrange): Update to reflect changes to enum
1836         range_type.
1837         * f-lang.c (value_f90_subarray): Likewise.
1838         * parse.c (operator_length_standard): Likewise.
1839         * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1840         * rust-lang.c (rust_range): Likewise.
1841         (rust_compute_range): Likewise.
1842         (rust_subscript): Likewise.
1844 2020-10-21  Simon Marchi  <simon.marchi@efficios.com>
1846         * infrun.c (displaced_step_in_progress_thread): Fix comment.
1847         (displaced_step_in_progress): Fix comment.
1849 2020-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1851         * gdbarch.sh (make_corefile_notes): Return unique pointer.
1852         * gdbarch.c: Re-generate.
1853         * gdbarch.h: Re-generate.
1854         * gcore.c (write_gcore_file_1): Adjust.
1855         * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1856         constructor.
1857         <note_data>: Change type to unique pointer.
1858         <abort_iteration>: Change type to bool.
1859         (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1860         (fbsd_collect_thread_registers): Return void, adjust.
1861         (struct fbsd_corefile_thread_data): Add construtor.
1862         <note_data>: Change type to unique pointer.
1863         (fbsd_corefile_thread): Adjust.
1864         (fbsd_make_corefile_notes): Return unique pointer, adjust.
1865         * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1866         to unique pointer, adjust.
1867         (struct linux_collect_regset_section_cb_data): Add constructor.
1868         <note_data>: Change type to unique pointer.
1869         <abort_iteration>: Change type to bool.
1870         (linux_collect_thread_registers): Return void, adjust.
1871         (struct linux_corefile_thread_data): Add constructor.
1872         <note_data>: Change type to unique pointer.
1873         (linux_corefile_thread): Adjust.
1874         (linux_make_corefile_notes): Return unique pointer, adjust.
1876 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1878         * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1879         * gdbarch.c: Re-generate.
1880         * gdbarch.h: Re-generate.
1881         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1882         bool.
1883         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1884         Likewise.
1885         * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1886         * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1887         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1888         * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1890 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1892         * gdbarch.sh: Make generated predicates return bool.
1893         * gdbarch.c: Re-generate.
1894         * gdbarch.h: Re-generate.
1896 2020-10-20  Tom Tromey  <tom@tromey.com>
1898         * varobj-iter.h (struct varobj_item): Remove typedef.
1900 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1902         * infrun.c (currently_stepping): Change int to bool
1903         (maybe_software_singlestep): Likewise.
1904         (show_stop_on_solib_events): Likewise.
1905         (stepping_past_nonsteppable_watchpoint): Likewise.
1906         (displaced_step_in_progress_any_inferior): Likewise.
1907         (displaced_step_in_progress_thread): Likewise.
1908         (keep_going_stepped_thread): Likewise.
1909         (thread_still_needs_step_over): Likewise.
1910         (start_step_over): Likewise.
1911         (do_target_resume): Likewise.
1912         (resume_1): Likewise.
1913         (clear_proceed_status): Likewise.
1914         (thread_still_needs_step_over_bp): Likewise.
1915         (proceed): Likewise.
1916         (switch_back_to_stepped_thread): Likewise.
1917         (adjust_pc_after_break): Likewise.
1918         (stepped_in_from): Likewise.
1919         (handle_stop_requested): Likewise.
1920         (handle_syscall_event): Likewise.
1921         (handle_no_resumed): Likewise.
1922         (handle_inferior_event): Likewise.
1923         (finish_step_over): Likewise.
1924         (handle_signal_stop): Likewise.
1925         (process_event_stop_test): Likewise.
1927 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1929         * infrun.c (get_displaced_stepping_state): Fix comment.
1931 2020-10-20  Andreas Schwab  <schwab@linux-m68k.org>
1933         * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1935 2020-10-19  Tom Tromey  <tromey@adacore.com>
1937         PR tui/26719
1938         * tui/tui-winsource.h (struct tui_source_window_base)
1939         <refresh_window>: Rename from refresh_pad.
1940         * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1941         Rename from refresh_pad.
1942         (tui_source_window_base::show_source_content)
1943         (tui_source_window_base::do_scroll_horizontal): Update.
1945 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1947         * thread.c (_initialize_thread): Fine-tune the help text of
1948         'info threads'.
1950 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1952         * frame.c: Remove the unused 'uinteger_option_def' type alias.
1954 2020-10-14  Mihails Strasuns  <mihails.strasuns@intel.com>
1956         * breakpoint.c (handle_jit_event): Add an argument, change how
1957         `jit_event_handler` is called.
1959 2020-10-17  Tom Tromey  <tom@tromey.com>
1961         * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1962         (scan_xcoff_symtab): Update.
1963         * psymtab.h (class psymtab_storage) <global_psymbols,
1964         static_psymbols, current_global_psymbols,
1965         current_static_psymbols>: Remove.
1966         * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1967         (match_partial_symbol, lookup_partial_symbol): Update.
1968         (print_partial_symbols): Change parameters.
1969         (dump_psymtab, recursively_search_psymtabs)
1970         (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1971         (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1972         (concat): Remove.
1973         (end_psymtab_common): Simplify.
1974         (append_psymbol_to_list): Change parameters.
1975         (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1976         (init_psymbol_list): Simplify.
1977         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1978         * psympriv.h (struct partial_symtab) <empty>: New method.
1979         <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1980         Remove.
1981         <global_psymbols, static_psymbols>: New members.
1982         <add_psymbol>: New methods.
1983         (add_psymbol_to_list): Don't declare.
1984         (psymbol_placement): Move earlier.
1985         * mdebugread.c (parse_partial_symbols): Update.
1986         (handle_psymbol_enumerators): Change parameters.
1987         (mdebug_expand_psymtab): Update.
1988         * dwarf2/read.c (process_psymtab_comp_unit_reader)
1989         (add_partial_symbol): Update.
1990         * dwarf2/index-write.c (write_psymbols): Change parameters.
1991         (write_one_signatured_type): Update.
1992         (recursively_count_psymbols): Update.
1993         (recursively_write_psymbols): Update.
1994         (class debug_names) <recursively_write_psymbols>: Update.
1995         <write_psymbols>: Change parameters.
1996         <write_one_signatured_type>: Update.
1997         * dbxread.c (read_dbx_symtab): Update.
1998         (dbx_end_psymtab): Use partial_symtab::empty.
1999         * ctfread.c (struct ctf_context) <pst>: New member.
2000         (create_partial_symtab): Set it.
2001         (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2002         (scan_partial_symbols): Use the psymtab's context.  Update.
2004 2020-10-17  Tom Tromey  <tom@tromey.com>
2006         * valprint.c (generic_value_print): Remove comment.
2007         * m2-valprint.c (m2_value_print_inner): Remove comment.
2008         * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2009         type.
2011 2020-10-17  Tom de Vries  <tdevries@suse.de>
2013         PR symtab/26317
2014         * source.c (select_source_symtab): Handling sal.symtab == NULL for
2015         symbol main.
2017 2020-10-14  Tom de Vries  <tdevries@suse.de>
2019         PR gdb/26733
2020         * solib.c (solib_contains_address_p): Handle
2021         'solib->sections == nullptr'.
2023 2020-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
2025         PR gdb/26642
2026         * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2027         target can't do async.
2028         * target.c (target_wait): Assert that we don't pass
2029         TARGET_WNOHANG to a target that can't async.
2031 2020-10-13  Kamil Rytarowski  <n54@gmx.com>
2033         * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2034         HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2035         * alpha-bsd-nat.c: Adjust include.
2036         * alpha-bsd-tdep.h: Adjust comment.
2037         * alpha-nbsd-tdep.c: Rename to ...
2038         * alpha-netbsd-tdep.c: ... this, adjust include.
2039         * amd64-nbsd-nat.c: Rename to ...
2040         * amd64-netbsd-nat.c: ... this, adjust include.
2041         * amd64-nbsd-tdep.c: Rename to ...
2042         * amd64-netbsd-tdep.c: ... this, adjust include.
2043         * amd64-tdep.h: Adjust include.
2044         * arm-nbsd-nat.c: Rename to ...
2045         * arm-netbsd-nat.c: ... this, adjust include.
2046         * arm-nbsd-tdep.c: Rename to ...
2047         * arm-netbsd-tdep.c: ... this, adjust include.
2048         * arm-nbsd-tdep.h: Rename to ...
2049         * arm-netbsd-tdep.h: ... this, adjust include.
2050         * configure.nat: Adjust file lists.
2051         * configure.tgt: Likewise.
2052         * hppa-nbsd-nat.c: Rename to ...
2053         * hppa-netbsd-nat.c: ... this, adjust include.
2054         * hppa-nbsd-tdep.c: Rename to ...
2055         * hppa-netbsd-tdep.c: ... this, adjust include.
2056         * i386-nbsd-nat.c: Rename to ...
2057         * i386-netbsd-nat.c: ... this, adjust include.
2058         * i386-nbsd-tdep.c: Rename to ...
2059         * i386-netbsd-tdep.c: ... this, adjust include.
2060         * m68k-bsd-nat.c: Adjust include.
2061         * mips-nbsd-nat.c: Rename to ...
2062         * mips-netbsd-nat.c: ... this, adjust include.
2063         * mips-nbsd-tdep.c: Rename to ...
2064         * mips-netbsd-tdep.c: ... this, adjust include.
2065         * mips-nbsd-tdep.h: Rename to ...
2066         * mips-netbsd-tdep.h: ... this.
2067         * nbsd-nat.c: Rename to ...
2068         * netbsd-nat.c: ... this, adjust include.
2069         * nbsd-nat.h: Rename to ...
2070         * netbsd-nat.h: ... this, adjust include.
2071         * nbsd-tdep.c: Rename to ...
2072         * netbsd-tdep.c: ... this, adjust include.
2073         * nbsd-tdep.h: Rename to ...
2074         * netbsd-tdep.h: ... this.
2075         * ppc-nbsd-nat.c: Rename to ...
2076         * ppc-netbsd-nat.c: ... this, adjust include.
2077         * ppc-nbsd-tdep.c: Rename to ...
2078         * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2079         * ppc-nbsd-tdep.h: Rename to ...
2080         * ppc-netbsd-tdep.h: ... this.
2081         * sh-nbsd-nat.c: Rename to ...
2082         * sh-netbsd-nat.c: ... this, adjust include.
2083         * sh-nbsd-tdep.c: Rename to ...
2084         * sh-netbsd-tdep.c: ... this, adjust include.
2085         * sparc-nbsd-nat.c: Rename to ...
2086         * sparc-netbsd-nat.c: ... this.
2087         * sparc-nbsd-tdep.c: Rename to ...
2088         * sparc-netbsd-tdep.c: ... this, adjust include.
2089         * sparc64-nbsd-nat.c: Rename to ...
2090         * sparc64-netbsd-nat.c: ... this.
2091         * sparc64-nbsd-tdep.c: Rename to ...
2092         * sparc64-netbsd-tdep.c: ... this, adjust include.
2093         * sparc64-tdep.h: Adjust comment.
2094         * vax-bsd-nat.c: Adjust include.
2095         * vax-nbsd-tdep.c: Rename to ...
2096         * vax-netbsd-tdep.c: ... this, adjust include.
2098 2020-10-12  Tom Tromey  <tom@tromey.com>
2100         * target.h (struct target_ops) <get_section_table>: Update.
2101         (target_get_section_table): Update.
2102         * target.c (target_get_section_table, target_section_by_addr)
2103         (memory_xfer_partial_1): Update.
2104         * target-section.h (target_section_table): Now an alias.
2105         * target-delegates.c: Rebuild.
2106         * target-debug.h (target_debug_print_target_section_table_p):
2107         Rename from target_debug_print_struct_target_section_table_p.
2108         * symfile.c (build_section_addr_info_from_section_table): Update.
2109         * solib.c (solib_map_sections, solib_contains_address_p): Update.
2110         * solib-svr4.c (scan_dyntag): Update.
2111         * solib-dsbt.c (scan_dyntag): Update.
2112         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2113         Update.
2114         * record-full.c (record_full_core_target::xfer_partial): Update.
2115         * progspace.h (struct program_space) <target_sections>: Update.
2116         * exec.h (print_section_info): Update.
2117         * exec.c (exec_target::close, build_section_table)
2118         (add_target_sections, add_target_sections_of_objfile)
2119         (remove_target_sections, exec_on_vfork)
2120         (section_table_available_memory)
2121         (section_table_xfer_memory_partial)
2122         (exec_target::get_section_table, exec_target::xfer_partial)
2123         (print_section_info, set_section_command)
2124         (exec_set_section_address, exec_target::has_memory): Update.
2125         * corelow.c (core_target::build_file_mappings)
2126         (core_target::xfer_partial, core_target::info_proc_mappings)
2127         (core_target::info_proc_mappings): Update.
2128         * bfd-target.c (class target_bfd): Update
2130 2020-10-12  Tom Tromey  <tom@tromey.com>
2132         * progspace.c (program_space::~program_space): Don't call
2133         clear_section_table.
2134         * exec.h (clear_section_table): Don't declare.
2135         * exec.c (exec_target::close): Update.
2136         (clear_section_table): Remove.
2138 2020-10-12  Tom Tromey  <tom@tromey.com>
2140         * exec.c (add_target_sections_of_objfile): Simplify.
2142 2020-10-12  Tom Tromey  <tom@tromey.com>
2144         * solib.c (solib_map_sections): Update.
2145         * record-full.c (record_full_core_open_1): Update.
2146         * exec.h (build_section_table): Return a target_section_table.
2147         * exec.c (exec_file_attach): Update.
2148         (build_section_table): Return a target_section_table.
2149         * corelow.c (core_target::core_target): Update.
2150         * bfd-target.c (target_bfd::target_bfd): Update.
2152 2020-10-12  Tom Tromey  <tom@tromey.com>
2154         * target.c (target_section_by_addr, memory_xfer_partial_1):
2155         Update.
2156         * target-section.h (struct target_section_table): Use
2157         std::vector.
2158         * symfile.h (build_section_addr_info_from_section_table): Take a
2159         target_section_table.
2160         * symfile.c (build_section_addr_info_from_section_table): Take a
2161         target_section_table.
2162         * solist.h (struct so_list) <sections>: Change type.
2163         <sections_end>: Remove.
2164         * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2165         (solib_contains_address_p): Update.
2166         * solib-svr4.c (scan_dyntag): Update.
2167         * solib-dsbt.c (scan_dyntag): Update.
2168         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2169         Update.
2170         * record-full.c (record_full_core_start, record_full_core_end):
2171         Remove.
2172         (record_full_core_sections): New global.
2173         (record_full_core_open_1, record_full_core_target::xfer_partial):
2174         Update.
2175         * exec.h (build_section_table, section_table_xfer_memory_partial)
2176         (add_target_sections): Take a target_section_table.
2177         * exec.c (exec_file_attach, clear_section_table): Update.
2178         (resize_section_table): Remove.
2179         (build_section_table, add_target_sections): Take a
2180         target_section_table.
2181         (add_target_sections_of_objfile, remove_target_sections)
2182         (exec_on_vfork): Update.
2183         (section_table_available_memory): Take a target_section_table.
2184         (section_table_read_available_memory): Update.
2185         (section_table_xfer_memory_partial): Take a target_section_table.
2186         (print_section_info, set_section_command)
2187         (exec_set_section_address, exec_target::has_memory): Update.
2188         * corelow.c (class core_target) <m_core_section_table,
2189         m_core_file_mappings>: Remove braces.
2190         <~core_target>: Remove.
2191         (core_target::core_target): Update.
2192         (core_target::~core_target): Remove.
2193         (core_target::build_file_mappings)
2194         (core_target::xfer_memory_via_mappings)
2195         (core_target::xfer_partial, core_target::info_proc_mappings):
2196         Update.
2197         * bfd-target.c (target_bfd::xfer_partial): Update.
2198         (target_bfd::target_bfd): Update.
2199         (target_bfd::~target_bfd): Remove.
2201 2020-10-12  Tom Tromey  <tom@tromey.com>
2203         * target.h (struct target_section, struct target_section_table):
2204         Move to target-section.h.
2205         * target-section.h: New file.
2207 2020-10-12  Pedro Alves  <pedro@palves.net>
2209         PR exp/26602
2210         * valops.c (struct struct_field_searcher): New.
2211         (update_search_result): Rename to ...
2212         (struct_field_searcher::update_result): ... this.  Simplify
2213         prototype.  Record all found fields.
2214         (do_search_struct_field): Rename to ...
2215         (struct_field_searcher::search): ... this.  Simplify prototype.
2216         Maintain stack of visited baseclass path.  Call update_result for
2217         fields too.  Keep searching fields in baseclasses instead of
2218         stopping at the first found field.
2219         (search_struct_field): Use struct_field_searcher.  When looking
2220         for fields, report ambiguous access attempts.
2222 2020-10-11  Andrew Burgess  <andrew.burgess@embecosm.com>
2224         * frame.c (inside_main_func): Check full symbols as well as
2225         minimal symbols.
2227 2020-10-09  Joel Brobecker  <brobecker@adacore.com>
2229         * ada-lang.c (advance_wild_match): Rewrite the function's
2230         description.  Change the type of target0, t0 and t1 to char.
2232 2020-10-09  Tom Tromey  <tromey@adacore.com>
2234         * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2236 2020-10-09  Tom Tromey  <tromey@adacore.com>
2238         * ada-lang.h (ada_encode): Return std::string.
2239         * ada-lang.c (ada_encode_1): Return std::string.
2240         (ada_encode): Likewise.
2241         (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2242         Update.
2243         * ada-exp.y (block_lookup, write_var_or_type): Update.
2245 2020-10-09  Hannes Domani  <ssbssa@yahoo.de>
2247         PR exp/26714
2248         * printcmd.c (print_formatted): Handle void results as
2249         unformatted prints.
2251 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2253         * arch/aarch32.c (aarch32_create_target_description): Release the
2254         target_desc_up as late as possible.
2255         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2256         * arch/amd64.c (amd64_create_target_description): Likewise.
2257         * arch/arc.c (arc_create_target_description): Return a
2258         target_desc_up, don't release it.
2259         * arch/arc.h (arc_create_target_description): Update declaration.
2260         (arc_lookup_target_description): Move target_desc_up into the
2261         cache, and return a borrowed pointer.
2262         * arch/arm.c (arm_create_target_description): Release the
2263         target_desc_up as late as possible.
2264         * arch/i386.c (i386_create_target_description): Likewise.
2265         * arch/riscv.h (riscv_create_target_description): Update
2266         declaration to match definition.
2267         * arch/tic6x.c (tic6x_create_target_description): Release the
2268         target_desc_up as late as possible.
2270 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2272         * Makefile.in: Include Makefile.gnulib.inc.  Don't define LIBGNU
2273         or INCGNU.  Make use of LIBGNU_EXTRA_LIBS when linking.
2275 2020-10-09  Jan Vrany  <jan.vrany@labware.com>
2277         * source.c (directory_command): Notify observers that "directories"
2278         parameter has changed.
2280 2020-10-08  Tom Tromey  <tom@tromey.com>
2282         * cli/cli-cmds.c (print_disassembly): Style function name and
2283         addresses.  Add _() wrappers.
2285 2020-10-08  Shahab Vahedi  <shahab@synopsys.com>
2287         * NEWS: Mention ARC support in GDBserver.
2289 2020-10-08  Andrew Burgess  <andrew.burgess@embecosm.com>
2291         * arch/aarch32.c (aarch32_create_target_description): Release
2292         unique_ptr returned from allocate_target_description.
2293         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2294         * arch/amd64.c (amd64_create_target_description): Likewise.
2295         * arch/arc.c (arc_create_target_description): Likewise.
2296         * arch/arm.c (arm_create_target_description): Likewise.
2297         * arch/i386.c (i386_create_target_description): Likewise.
2298         * arch/riscv.c (riscv_create_target_description): Update return
2299         type.  Handle allocate_target_description returning a unique_ptr.
2300         (riscv_lookup_target_description): Update to handle unique_ptr.
2301         * arch/tic6x.c (tic6x_create_target_description): Release
2302         unique_ptr returned from allocate_target_description.
2303         * features/microblaze-with-stack-protect.c: Regenerate.
2304         * features/microblaze.c: Regenerate.
2305         * features/mips-dsp-linux.c: Regenerate.
2306         * features/mips-linux.c: Regenerate.
2307         * features/mips64-dsp-linux.c: Regenerate.
2308         * features/mips64-linux.c: Regenerate.
2309         * features/nds32.c: Regenerate.
2310         * features/nios2.c: Regenerate.
2311         * features/or1k.c: Regenerate.
2312         * features/rs6000/powerpc-32.c: Regenerate.
2313         * features/rs6000/powerpc-32l.c: Regenerate.
2314         * features/rs6000/powerpc-403.c: Regenerate.
2315         * features/rs6000/powerpc-403gc.c: Regenerate.
2316         * features/rs6000/powerpc-405.c: Regenerate.
2317         * features/rs6000/powerpc-505.c: Regenerate.
2318         * features/rs6000/powerpc-601.c: Regenerate.
2319         * features/rs6000/powerpc-602.c: Regenerate.
2320         * features/rs6000/powerpc-603.c: Regenerate.
2321         * features/rs6000/powerpc-604.c: Regenerate.
2322         * features/rs6000/powerpc-64.c: Regenerate.
2323         * features/rs6000/powerpc-64l.c: Regenerate.
2324         * features/rs6000/powerpc-7400.c: Regenerate.
2325         * features/rs6000/powerpc-750.c: Regenerate.
2326         * features/rs6000/powerpc-860.c: Regenerate.
2327         * features/rs6000/powerpc-altivec32.c: Regenerate.
2328         * features/rs6000/powerpc-altivec32l.c: Regenerate.
2329         * features/rs6000/powerpc-altivec64.c: Regenerate.
2330         * features/rs6000/powerpc-altivec64l.c: Regenerate.
2331         * features/rs6000/powerpc-e500.c: Regenerate.
2332         * features/rs6000/powerpc-e500l.c: Regenerate.
2333         * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2334         * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2335         * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2336         * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2337         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2338         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2339         * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2340         * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2341         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2342         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2343         * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2344         * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2345         * features/rs6000/powerpc-vsx32.c: Regenerate.
2346         * features/rs6000/powerpc-vsx32l.c: Regenerate.
2347         * features/rs6000/powerpc-vsx64.c: Regenerate.
2348         * features/rs6000/powerpc-vsx64l.c: Regenerate.
2349         * features/rs6000/rs6000.c: Regenerate.
2350         * features/rx.c: Regenerate.
2351         * features/s390-gs-linux64.c: Regenerate.
2352         * features/s390-linux32.c: Regenerate.
2353         * features/s390-linux32v1.c: Regenerate.
2354         * features/s390-linux32v2.c: Regenerate.
2355         * features/s390-linux64.c: Regenerate.
2356         * features/s390-linux64v1.c: Regenerate.
2357         * features/s390-linux64v2.c: Regenerate.
2358         * features/s390-te-linux64.c: Regenerate.
2359         * features/s390-tevx-linux64.c: Regenerate.
2360         * features/s390-vx-linux64.c: Regenerate.
2361         * features/s390x-gs-linux64.c: Regenerate.
2362         * features/s390x-linux64.c: Regenerate.
2363         * features/s390x-linux64v1.c: Regenerate.
2364         * features/s390x-linux64v2.c: Regenerate.
2365         * features/s390x-te-linux64.c: Regenerate.
2366         * features/s390x-tevx-linux64.c: Regenerate.
2367         * features/s390x-vx-linux64.c: Regenerate.
2368         * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2369         from allocate_target_description.
2370         * target-descriptions.c (allocate_target_description): Update
2371         return type.
2372         (print_c_tdesc::visit_pre): Release unique_ptr returned from
2373         allocate_target_description.
2375 2020-10-07  Tom Tromey  <tromey@adacore.com>
2377         * unittests/search-memory-selftests.c: New file.
2378         * Makefile.in (SELFTESTS_SRCS): Add
2379         unittests/search-memory-selftests.c.
2381 2020-10-07  Tom Tromey  <tromey@adacore.com>
2383         PR gdb/16930:
2384         * findcmd.c (_initialize_mem_search): Mention that the range is
2385         inclusive.
2387 2020-10-07  Tom Tromey  <tromey@adacore.com>
2389         * target.h (simple_search_memory): Don't declare.
2390         * target.c (simple_search_memory): Move to gdbsupport.
2391         (default_search_memory): Update.
2392         * remote.c (remote_target::search_memory): Update.
2394 2020-10-07  Simon Marchi  <simon.marchi@efficios.com>
2396         * Makefile.in (COMPILE): Add CXXFLAGS.
2397         (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2398         (check-headers): Add CXXFLAGS.
2400 2020-10-07  Anton Kolesov  <anton.kolesov@synopsys.com>
2402         * arc-linux-tdep.h: New file.
2403         * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2404         arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2405         arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2406         arc_linux_gregset, arc_linux_v2_regset,
2407         arc_linux_iterate_over_regset_sections,
2408         arc_linux_core_read_description): Implement.
2409         (arc_linux_init_osabi): Set iterate_over_regset_sections.
2410         * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2411         (arc_gdbarch_features_create): Add.
2412         * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2414 2020-10-07  Shahab Vahedi  <shahab@synopsys.com>
2416         * arch/arc.h: Rename "arc_gdbarch_features" to
2417         "arc_arch_features".
2418         * arc-tdep.h: Likewise.
2419         * arc-tdep.c: Likewise.
2421 2020-10-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2423         * infcmd.c (attach_command): Remove the redundant call to
2424         `clear_proceed_status`.
2426 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
2428         * nat/netbsd-nat.c (write_memory, read_memory): Update.
2430 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
2432         * nat/netbsd-nat.c (write_memory, read_memory): Add.
2433         * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2434         * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2436 2020-10-07  Simon Marchi  <simon.marchi@polymtl.ca>
2438         * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2439         (_initialize_break_catch_sig): Don't allocate array.
2441 2020-10-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2443         * symtab.c (find_pc_line): Return unmapped addresses when the
2444         requested address is also unmapped.
2446 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
2448         * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2449         tui/tui-out.h.
2451 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
2453         * amd64-windows-tdep.c (amd64_windows_return_value): Use
2454         type::is_vector instead of TYPE_VECTOR.
2456 2020-10-05  Simon Marchi  <simon.marchi@polymtl.ca>
2458         * auto-load.c (auto_load_objfile_script_1): Don't use
2459         debugfile_holder as temporary variable when stripping drive
2460         letter.
2462 2020-10-05  Hannes Domani  <ssbssa@yahoo.de>
2464         * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2465         Add TYPE_CODE_COMPLEX.
2466         (amd64_windows_return_value): Fix types returned via XMM0.
2468 2020-10-05  Alan Hayward  <alan.hayward@arm.com>
2470         * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2471         AArch64/ARM maintainers.
2473 2020-10-04  Simon Marchi  <simon.marchi@polymtl.ca>
2475         * NEWS: Mention set/show debug event-loop.
2477 2020-10-02  Tom Tromey  <tromey@adacore.com>
2479         * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2480         REG_EXTENDED.
2482 2020-10-02  Simon Marchi  <simon.marchi@efficios.com>
2484         * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2485         * procfs.c (procfs_inferior_created): Remove.
2486         (_initialize_procfs): Don't register procfs_inferior_created.
2488 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2490         * async-event.c (invoke_async_signal_handlers): Add debug
2491         print.
2492         (check_async_event_handlers): Likewise.
2493         * event-top.c (show_debug_event_loop): New function.
2494         (_initialize_event_top): Register "set debug event-loop"
2495         setting.
2497 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2499         * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2500         * debug.h: Remove.
2501         * infrun.c: Include gdbsupport/common-debug.h.
2502         * linux-nat.c: Likewise.
2504 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2506         * async-event.h (create_async_signal_handler): Add name
2507         parameter.
2508         (create_async_event_handler): Likewise.
2509         * async-event.c (struct async_signal_handler) <name>: New field.
2510         (struct async_event_handler) <name>: New field.
2511         (create_async_signal_handler): Assign name.
2512         (create_async_event_handler): Assign name.
2513         * event-top.c (async_init_signals): Pass name when creating
2514         handler.
2515         * infrun.c (_initialize_infrun): Likewise.
2516         * record-btrace.c (record_btrace_push_target): Likewise.
2517         * record-full.c (record_full_open): Likewise.
2518         * remote-notif.c (remote_notif_state_allocate): Likewise.
2519         * remote.c (remote_target::open_1): Likewise.
2520         * tui/tui-win.c (tui_initialize_win): Likewise.
2522 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2524         * async-event.c (initialize_async_signal_handlers): Pass name to
2525         add_file_handler
2526         * event-top.c (ui_register_input_event_handler): Likewise.
2527         * linux-nat.c (linux_nat_target::async): Likewise.
2528         * run-on-main-thread.c (_initialize_run_on_main_thread):
2529         Likewise
2530         * ser-base.c (reschedule): Likewise.
2531         (ser_base_async): Likewise.
2532         * tui/tui-io.c: Likewise.
2533         * top.h (struct ui) <num>: New field.
2534         * top.c (highest_ui_num): New variable.
2535         (ui::ui): Initialize num.
2537 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2539         * observable.h <inferior_created>: Remove parameters.  Update all
2540         listeners.
2541         * inferior.h (post_create_inferior): Remove target parameter.
2542         Update all callers.
2544 2020-10-02  Nitika Achra  <Nitika.Achra@amd.com>
2546         * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2547         and DW_MACRO_undef_strx.
2548         (dwarf_decode_macros): Likewise
2549         * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2550         which is the value of DW_AT_str_offsets_base.
2551          * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2552         str_offsets_base.
2554 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2556         * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2558 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2560         * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2561         * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2563 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2565         * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2567 2020-09-30  Tom de Vries  <tdevries@suse.de>
2569         PR symtab/26683
2570         * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2572 2020-09-30  Tom Tromey  <tromey@adacore.com>
2574         * dwarf2/read.c (handle_variant): Use constant_value.
2576 2020-09-29  Tom Tromey  <tom@tromey.com>
2578         * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2579         (read_file_scope, dwarf2_get_pc_bounds)
2580         (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2581         (read_structure_type, handle_struct_member_die)
2582         (read_enumeration_type, read_array_type, read_set_type)
2583         (read_tag_pointer_type, read_tag_reference_type)
2584         (read_subroutine_type, read_base_type, read_subrange_type)
2585         (read_full_die_1, partial_die_info::read)
2586         (partial_die_info::read, by, new_symbol)
2587         (dwarf2_const_value_data, dwarf2_const_value_attr)
2588         (dump_die_shallow, dwarf2_fetch_constant_bytes)
2589         (prepare_one_comp_unit): Update.
2590         * dwarf2/attribute.h (DW_UNSND): Remove.
2592 2020-09-29  Tom Tromey  <tom@tromey.com>
2594         * dwarf2/read.c (read_func_scope, prototyped_function_p)
2595         (read_subroutine_type, partial_die_info::read)
2596         (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2597         (dwarf2_add_member_fn): Update.
2598         * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2599         * dwarf2/attribute.c (attribute::as_boolean): New method.
2601 2020-09-29  Tom Tromey  <tom@tromey.com>
2603         * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2604         * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2605         method.
2606         * dwarf2/attribute.c (attribute::as_virtuality): New method.
2608 2020-09-29  Tom Tromey  <tom@tromey.com>
2610         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2611         the attribute's form.
2613 2020-09-29  Tom Tromey  <tom@tromey.com>
2615         * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2616         (dwarf2_add_member_fn): Update.
2617         * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2618         * dwarf2/attribute.c (attribute::defaulted): New method, from
2619         is_valid_DW_AT_defaulted.
2621 2020-09-29  Tom Tromey  <tom@tromey.com>
2623         * dwarf2/read.c (dw2_get_file_names_reader)
2624         (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2625         (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2626         (dwarf2_symbol_mark_computed): Use as_unsigned.
2627         * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2628         method.
2629         <form_is_section_offset>: Update comment.
2631 2020-09-29  Tom Tromey  <tom@tromey.com>
2633         * dwarf2/read.c (dwarf2_access_attribute): Rename from
2634         dwarf2_default_access_attribute.  Look up attribute.
2635         (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2636         Update.
2638 2020-09-29  Tom Tromey  <tom@tromey.com>
2640         * dwarf2/read.c (skip_one_die): Update.
2641         (read_full_die_1): Change how reprocessing is done.
2642         (partial_die_info::read): Update.
2643         (read_attribute_value): Remove need_reprocess parameter.
2644         (read_attribute): Likewise.
2645         * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2646         New method.
2648 2020-09-29  Tom Tromey  <tom@tromey.com>
2650         * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2651         (dwarf2_const_value_attr, dump_die_shallow)
2652         (dwarf2_fetch_constant_bytes): Update.
2653         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2654         comment.
2655         <set_address>: New method.
2656         (DW_ADDR): Remove.
2657         * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2658         (attribute::as_string, attribute::as_address): Add assert.
2660 2020-09-29  Tom Tromey  <tom@tromey.com>
2662         * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2663         (read_attribute_reprocess, read_attribute_value): Update.
2664         (read_attribute): Clear requires_reprocessing.
2665         * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2666         form_requires_reprocessing>: New methods.
2667         <string_init>: Clear requires_reprocessing.
2668         <set_unsigned_reprocess>: New method.
2669         <name>: Shrink by one bit.
2670         <requires_reprocessing>: New member.
2671         * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2672         method.
2674 2020-09-29  Tom Tromey  <tom@tromey.com>
2676         * dwarf2/read.c (read_attribute_value): Update.
2677         * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2678         set_unsigned>: New methods.
2679         * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2681 2020-09-29  Tom Tromey  <tom@tromey.com>
2683         * dwarf2/read.c (get_alignment, read_array_order)
2684         (read_attribute_value, dwarf2_const_value_attr)
2685         (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2686         * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2687         New methods.
2688         (DW_SND): Remove.
2690 2020-09-29  Tom Tromey  <tom@tromey.com>
2692         * dwarf2/read.c (read_attribute_value, lookup_die_type)
2693         (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2694         Update.
2695         * dwarf2/attribute.h (struct attribute) <as_signature,
2696         set_signature>: New methods.
2697         (DW_SIGNATURE): Remove.
2699 2020-09-29  Tom Tromey  <tom@tromey.com>
2701         * dwarf2/read.c (read_call_site_scope)
2702         (handle_data_member_location, dwarf2_add_member_fn)
2703         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2704         (partial_die_info::read, read_attribute_value)
2705         (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2706         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2707         (dwarf2_symbol_mark_computed): Update.
2708         * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2709         methods.
2710         (DW_BLOCK): Remove.
2711         * dwarf2/attribute.c (attribute::form_is_block): Add
2712         DW_FORM_data16.
2714 2020-09-29  Tom Tromey  <tom@tromey.com>
2716         * dwarf2/read.c (read_cutu_die_from_dwo)
2717         (read_attribute_reprocess, read_attribute_value, read_attribute)
2718         (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2719         (dwarf2_fetch_constant_bytes): Update.
2720         * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2721         <set_string_noncanonical, set_string_canonical>: New methods.
2722         <string_is_canonical>: Update comment.
2723         <canonical_string_p>: Add assert.
2724         (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2725         * dwarf2/attribute.c (attribute::form_is_string): New method.
2726         (attribute::string): Use it.
2728 2020-09-29  Tom Tromey  <tom@tromey.com>
2730         * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2731         (dump_die_shallow): Use canonical_string_p.
2732         * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2733         method.
2735 2020-09-29  Tom Tromey  <tom@tromey.com>
2737         * dwarf2/read.c (partial_die_info::read)
2738         (dwarf2_const_value_attr, anonymous_struct_prefix, )
2739         (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2740         attribute::as_string.
2742 2020-09-29  Tom Tromey  <tom@tromey.com>
2744         * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2745         DW_ADDR.
2746         (attribute::string): Don't use DW_STRING.
2747         (attribute::get_ref_die_offset): Don't use DW_UNSND.
2748         (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2750 2020-09-29  Tom Tromey  <tom@tromey.com>
2752         * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2753         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2754         (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2755         * dwarf2/attribute.h (struct attribute): Rename methods.
2756         * dwarf2/attribute.c (attribute::as_address): Rename from
2757         value_as_address.
2758         (attribute::as_string): Rename from value_as_string.
2760 2020-09-29  Tom Tromey  <tom@tromey.com>
2762         * dwarf2/read.c (partial_die_info::read) <case
2763         DW_AT_linkage_name>: Use value_as_string.
2764         (dwarf2_string_attr): Use value_as_string.
2765         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2766         method.
2767         * dwarf2/attribute.c (attribute::value_as_string): New method.
2769 2020-09-29  Pedro Alves  <pedro@palves.net>
2771         * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2772         defined before using '#pragma GCC diagnostic' instead of checking
2773         __clang__.
2775 2020-09-28  Tom Tromey  <tom@tromey.com>
2777         * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2778         (handle_signal_stop): Update.
2779         * procfs.c (procfs_target::insert_watchpoint): Update.
2780         * target.h (target_have_steppable_watchpoint): Now a function.
2782 2020-09-28  Tom Tromey  <tom@tromey.com>
2784         * infrun.c (set_schedlock_func): Update.
2785         * target.h (target_can_lock_scheduler): Now a function.
2787 2020-09-28  Tom Tromey  <tom@tromey.com>
2789         * inferior.h (class inferior) <has_execution>: Update.
2790         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2791         * valops.c (find_function_in_inferior)
2792         (value_allocate_space_in_inferior): Update.
2793         * top.c (kill_or_detach): Update.
2794         * target.c (target_preopen, set_target_permissions): Update.
2795         (target_has_execution_current): Remove.
2796         * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2797         Update.
2798         * solib.c (update_solib_list, reload_shared_libraries): Update.
2799         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2800         * solib-dsbt.c (enable_break): Update.
2801         * score-tdep.c (score7_fetch_inst): Update.
2802         * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2803         Update.
2804         * remote.c (remote_target::start_remote)
2805         (remote_target::remote_check_symbols, remote_target::open_1)
2806         (remote_target::remote_detach_1, remote_target::verify_memory)
2807         (remote_target::xfer_partial, remote_target::read_description)
2808         (remote_target::get_min_fast_tracepoint_insn_len): Update.
2809         * record-full.c (record_full_open_1): Update.
2810         * record-btrace.c (record_btrace_target_open): Update.
2811         * objc-lang.c (lookup_objc_class, lookup_child_selector)
2812         (value_nsstring): Update.
2813         * linux-thread-db.c (add_thread_db_info)
2814         (thread_db_find_new_threads_silently, check_thread_db_callback)
2815         (try_thread_db_load_1, record_thread): Update.
2816         * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2817         Update.
2818         * linux-fork.c (checkpoint_command): Update.
2819         * infrun.c (set_non_stop, set_observer_mode)
2820         (check_multi_target_resumption, for_each_just_stopped_thread)
2821         (maybe_remove_breakpoints, normal_stop)
2822         (class infcall_suspend_state): Update.
2823         * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2824         (info_program_command, attach_command): Update.
2825         * infcall.c (call_function_by_hand_dummy): Update.
2826         * inf-loop.c (inferior_event_handler): Update.
2827         * gcore.c (gcore_command, derive_heap_segment): Update.
2828         * exec.c (exec_file_command): Update.
2829         * eval.c (evaluate_subexp): Update.
2830         * compile/compile.c (compile_to_object): Update.
2831         * cli/cli-dump.c (restore_command): Update.
2832         * breakpoint.c (update_watchpoint)
2833         (update_inserted_breakpoint_locations)
2834         (insert_breakpoint_locations, get_bpstat_thread): Update.
2835         * target.h (target_has_execution): Remove macro.
2836         (target_has_execution_current): Don't declare.
2837         (target_has_execution): Rename from target_has_execution_1.  Add
2838         argument default.
2840 2020-09-28  Tom Tromey  <tom@tromey.com>
2842         * mi/mi-main.c (exec_reverse_continue)
2843         (mi_cmd_list_target_features): Update.
2844         * infrun.c (set_exec_direction_func): Update.
2845         * target.c (default_execution_direction): Update.
2846         * reverse.c (exec_reverse_once): Update.
2847         * target.h (target_can_execute_reverse): Now a function.
2849 2020-09-28  Tom Tromey  <tom@tromey.com>
2851         * tui/tui-regs.c (tui_get_register)
2852         (tui_data_window::show_registers): Update.
2853         * thread.c (scoped_restore_current_thread::restore)
2854         (scoped_restore_current_thread::scoped_restore_current_thread):
2855         Update.
2856         * regcache-dump.c (regcache_print): Update.
2857         * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2858         Update.
2859         * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2860         * mep-tdep.c (current_me_module, current_options): Update.
2861         * linux-thread-db.c (thread_db_load): Update.
2862         * infcmd.c (registers_info, info_vector_command)
2863         (info_float_command): Update.
2864         * ia64-tdep.c (ia64_frame_prev_register)
2865         (ia64_sigtramp_frame_prev_register): Update.
2866         * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2867         * gcore.c (derive_stack_segment): Update.
2868         * frame.c (get_current_frame, has_stack_frames): Update.
2869         * findvar.c (language_defn::read_var_value): Update.
2870         * arm-tdep.c (arm_pc_is_thumb): Update.
2871         * target.c (target_has_registers): Rename from
2872         target_has_registers_1.
2873         * target.h (target_has_registers): Remove macro.
2874         (target_has_registers): Rename from target_has_registers_1.
2876 2020-09-28  Tom Tromey  <tom@tromey.com>
2878         * windows-tdep.c (tlb_make_value): Update.
2879         * tui/tui-regs.c (tui_data_window::show_registers): Update.
2880         * thread.c (scoped_restore_current_thread::restore)
2881         (scoped_restore_current_thread::scoped_restore_current_thread)
2882         (thread_command): Update.
2883         * stack.c (backtrace_command_1, frame_apply_level_command)
2884         (frame_apply_all_command, frame_apply_command): Update.
2885         * infrun.c (siginfo_make_value, restore_infcall_control_state):
2886         Update.
2887         * gcore.c (derive_stack_segment): Update.
2888         * frame.c (get_current_frame, has_stack_frames): Update.
2889         * auxv.c (info_auxv_command): Update.
2890         * ada-tasks.c (ada_build_task_list): Update.
2891         * target.c (target_has_stack): Rename from target_has_stack_1.
2892         * target.h (target_has_stack): Remove macro.
2893         (target_has_stack): Rename from target_has_stack_1.
2895 2020-09-28  Tom Tromey  <tom@tromey.com>
2897         * target.c (target_has_memory): Rename from target_has_memory_1.
2898         * tui/tui-regs.c (tui_data_window::show_registers): Update.
2899         * thread.c (scoped_restore_current_thread::restore)
2900         (scoped_restore_current_thread::scoped_restore_current_thread):
2901         Update.
2902         * frame.c (get_current_frame, has_stack_frames): Update.
2903         * target.h (target_has_memory): Remove macro.
2904         (target_has_memory): Rename from target_has_memory_1.
2906 2020-09-28  Tom Tromey  <tom@tromey.com>
2908         * target.c (target_has_all_memory_1): Remove.
2909         * target.h (target_has_all_memory): Remove define.
2910         (target_has_all_memory_1): Don't declare.
2912 2020-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
2914         * ser-base.c: Adjust comments formatting.
2916 2020-09-27  Tom Tromey  <tom@tromey.com>
2918         PR tui/25342:
2919         * tui/tui-io.c (tui_puts): Rewrite.  Move earlier.
2921 2020-09-27  Tom Tromey  <tom@tromey.com>
2923         PR tui/25342:
2924         * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2926 2020-09-27  Tom Tromey  <tom@tromey.com>
2928         * unittests/tui-selftests.c: Update.
2929         * tui/tui-winsource.h (struct tui_source_window_base)
2930         <extra_margin, show_line_number, refresh_pad>: New methods.
2931         <m_max_length, m_pad>: New members.
2932         (tui_copy_source_line): Update.
2933         * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2934         first_col, line_width, ndigits parameters.  Add length.
2935         (tui_source_window_base::show_source_line): Write to pad.  Line
2936         number now 0-based.
2937         (tui_source_window_base::refresh_pad): New method.
2938         (tui_source_window_base::show_source_content): Write to pad.  Call
2939         refresh_pad.
2940         (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2941         not refill.
2942         (tui_source_window_base::update_exec_info): Call
2943         show_line_number.
2944         * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2945         method.
2946         <m_digits>: New member.
2947         * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2948         and m_max_length.
2949         (tui_source_window::show_line_number): New method.
2950         * tui/tui-io.h (tui_puts): Fix comment.
2951         * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2952         m_max_length.
2954 2020-09-27  Tom Tromey  <tom@tromey.com>
2956         * tui/tui-winsource.c
2957         (tui_source_window_base::set_is_exec_point_at): Don't call
2958         show_source_line.
2960 2020-09-27  Tom Tromey  <tom@tromey.com>
2962         * python/py-tui.c (class tui_py_window) <refresh_window>: New
2963         method.
2964         <erase>: Update.
2965         <cursor_x, cursor_y>: Remove.
2966         <m_inner_window>: New member.
2967         (tui_py_window::rerender): Create inner window.
2968         (tui_py_window::output): Write to inner window.
2970 2020-09-26  Gareth Rees <grees@undo.io>  (tiny change)
2972         PR python/26586
2973         * cli/cli-script.c (execute_control_commands): don't set
2974         instream to nullptr here as this breaks the from_tty argument
2975         to gdb.execute in Python.
2976         (execute_user_command): set instream to nullptr here instead.
2978 2020-09-25  Simon Marchi  <simon.marchi@efficios.com>
2980         * infrun.h (infrun_debug_printf): Fix formatting.
2981         * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2983 2020-09-25  Saagar Jha  <saagar@saagarjha.com>
2985         * compile/compile-object-load.h (struct munmap_list): Add
2986         explicitly-defined move constructor.
2988 2020-09-24  Tom Tromey  <tromey@adacore.com>
2990         PR tui/26638:
2991         * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2992         method.
2993         * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2994         * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2995         (tui_prev_win): Rewrite.
2997 2020-09-23  Hannes Domani  <ssbssa@yahoo.de>
2999         * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3000         in WOW64 processes as SIGINT.
3001         * nat/windows-nat.h: Make wow64_process a shared variable.
3002         * windows-nat.c: Remove static wow64_process variable.
3004 2020-09-23  Tom Tromey  <tom@tromey.com>
3006         PR symtab/25470:
3007         * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3008         offset and bit size.
3009         * printcmd.c (print_scalar_formatted): Handle zero-length
3010         integer.
3011         (print_scalar_formatted): Use bit_size_differs_p.
3012         * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3013         constant.
3014         (union type_specific): <int_stuff>: New member.
3015         (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3016         methods.
3017         * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3018         TYPE_SPECIFIC_FIELD.
3019         (recursive_dump_type, copy_type_recursive): Update.
3020         * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3021         DW_AT_data_bit_offset.
3023 2020-09-23  Tom Tromey  <tom@tromey.com>
3025         * utils.h (class gdb_argv): Add move operators.
3026         <append>: New methods.
3027         * compile/compile.c (build_argc_argv): Remove.
3028         (compile_args_argc): Remove.
3029         (compile_args_argv): Change type.
3030         (set_compile_args): Simplify.
3031         (append_args): Remove.
3032         (filter_args): Remove argcp parameter.
3033         (get_args): Return gdb_argv.  Simplify.
3034         (compile_to_object): Update.
3036 2020-09-23  Tom Tromey  <tom@tromey.com>
3038         * compile/compile-object-run.c (do_module_cleanup)
3039         <~do_module_cleanup> :Remove.
3040         (do_module_cleanup): Update.
3041         * compile/compile-object-load.h (struct munmap_list): Add move
3042         assignment operator.
3043         <source_file>: Now a std::string.
3044         <munmap_list>: Rename.  No longer a pointer.
3045         * compile/compile-object-load.c (struct setup_sections_data): Add
3046         constructor.
3047         <setup_one_section>: Declare.
3048         <munmap_list>: Move earlier.
3049         <m_bfd>: New member.
3050         <m_last_size, m_last_section_first, m_last_prot,
3051         m_last_max_alignment>: Rename, add initializers where needed.
3052         (setup_sections_data::setup_one_section): Rename from
3053         setup_sections.  Update.
3054         (compile_object_load): Update.  Don't use bfd_map_over_sections.
3056 2020-09-23  Tom Tromey  <tom@tromey.com>
3058         * compile/compile-object-run.c (struct do_module_cleanup): Add
3059         parameters to constructor.  Update destructor.
3060         <source_file, scope, scope_data, out_value_type, out_value_addr,
3061         munmap_list_head, objfile_name_string>: Remove.
3062         <module>: New member.
3063         (do_module_cleanup): Update.
3064         (compile_object_run): Update.
3066 2020-09-23  Tom Tromey  <tom@tromey.com>
3068         * compile/compile.c (eval_compile_command): Update.
3069         * compile/compile-object-run.h (compile_object_run): Take a
3070         compile_module_up.
3071         * compile/compile-object-run.c (compile_object_run): Take a
3072         compile_module_up.
3073         * compile/compile-object-load.h (struct compile_module): Add
3074         constructor, destructor.
3075         (compile_module_up): New typedef.
3076         (compile_object_load): Return compile_object_up.
3077         * compile/compile-object-load.c (compile_object_load): Return
3078         compile_module_up.
3080 2020-09-23  Tom Tromey  <tom@tromey.com>
3082         * compile/compile-object-run.c (struct do_module_cleanup): Add
3083         constructor, destructor.
3084         <objfile_name_string>: Don't use struct hack.
3085         (do_module_cleanup): Use delete.
3086         (compile_object_run): Use new.
3088 2020-09-23  Tom Tromey  <tom@tromey.com>
3090         * compile/compile-cplus-types.c
3091         (compile_cplus_convert_struct_or_union): Use std::vector.
3092         (compile_cplus_convert_func): Likewise.
3093         * compile/compile-c-types.c (convert_func): Use std::vector.
3095 2020-09-21  Tom Tromey  <tromey@adacore.com>
3097         * sparc-tdep.c (sparc32_skip_prologue): Use
3098         skip_prologue_using_sal.
3100 2020-09-19  Tom Tromey  <tom@tromey.com>
3102         * symfile.c (add_section_size_callback): Remove.
3103         (load_one_section): Rename from load_section_callback.  Change
3104         parameters.
3105         (generic_load): Use foreach.
3107 2020-09-19  Tom Tromey  <tom@tromey.com>
3109         * exec.c (add_to_section_table): Remove.
3110         (build_section_table): Use foreach.
3112 2020-09-19  Tom Tromey  <tom@tromey.com>
3114         * elfread.c (elf_locate_sections): Change parameters.
3115         (elf_symfile_read): Use foreach.
3117 2020-09-19  Tom Tromey  <tom@tromey.com>
3119         * cli/cli-dump.c (struct callback_data): Remove.
3120         (restore_one_section): Rename from restore_section_callback.
3121         Change parameters.
3122         (restore_binary_file): Change parameters.
3123         (restore_command): Use foreach.
3125 2020-09-19  Tom Tromey  <tom@tromey.com>
3127         * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3128         (gcore_copy_callback): Likewise.
3129         (gcore_memory_sections): Use foreach.
3131 2020-09-19  Tom Tromey  <tom@tromey.com>
3133         * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3134         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3135         parameters.
3136         (generic_elf_osabi_sniffer): Use foreach.
3137         * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3138         * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3140 2020-09-19  Tom Tromey  <tom@tromey.com>
3142         * dwarf2/read.c (locate_dwz_sections): Change parameters.
3143         (dwarf2_get_dwz_file): Use foreach.
3144         (dwarf2_locate_dwo_sections): Change parameters.
3145         (open_and_init_dwo_file): Use foreach.
3146         (dwarf2_locate_common_dwp_sections): Change parameters.
3147         (open_and_init_dwp_file): Use foreach.
3149 2020-09-19  Tom Tromey  <tom@tromey.com>
3151         * symfile.h: (find_lowest_section): Don't declare.
3152         * symfile.c (find_lowest_section): Now static.  Change
3153         parameters.
3154         (struct place_section_arg): Remove.
3155         (place_section): Change parameters.
3156         (addr_info_make_relative): Use foreach.
3157         (symfile_dummy_outputs): Remove.
3158         (default_symfile_relocate): Use foreach.
3160 2020-09-19  Tom Tromey  <tom@tromey.com>
3162         * objfiles.c (add_to_objfile_sections): Rename from
3163         add_to_objfile_sections_full.
3164         (add_to_objfile_sections): Remove.
3165         (build_objfile_section_table): Use foreach.
3167 2020-09-19  Tom Tromey  <tom@tromey.com>
3169         * stap-probe.c (get_stap_base_address_1): Remove.
3170         (get_stap_base_address): Use foreach.
3172 2020-09-19  Tom Tromey  <tom@tromey.com>
3174         * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3175         parameters.
3176         (gdb_bfd_close_or_warn): Use foreach.
3178 2020-09-19  Tom Tromey  <tom@tromey.com>
3180         * corelow.c (add_to_thread_list): Change parameters.
3181         (core_target_open): Use foreach.
3183 2020-09-19  Tom Tromey  <tom@tromey.com>
3185         * gdb_bfd.h (gdb_bfd_sections): New overload.  Fix formatting of
3186         existing function.
3188 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3190         * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3191         for arrays.
3193 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3195         * eval.c: Remove 'f-lang.h' include.
3196         (value_f90_subarray): Moved to f-lang.c.
3197         (eval_call): Renamed to...
3198         (evaluate_subexp_do_call): ...this, is no longer static, header
3199         comment moved into header file.
3200         (evaluate_funcall): Update call to eval_call.
3201         (skip_undetermined_arglist): Moved to f-lang.c.
3202         (fortran_value_subarray): Likewise.
3203         (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3204         moved to evaluate_subexp_f.
3205         (calc_f77_array_dims): Moved to f-lang.c
3206         * expprint.c (print_subexp_funcall): New function.
3207         (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3208         moved to print_subexp_f, OP_FUNCALL uses new function.
3209         (dump_subexp_body_funcall): New function.
3210         (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3211         moved to dump_subexp_f, OP_FUNCALL uses new function.
3212         * expression.h (evaluate_subexp_do_call): Declare.
3213         * f-lang.c (value_f90_subarray): Moved from eval.c.
3214         (skip_undetermined_arglist): Likewise.
3215         (calc_f77_array_dims): Likewise.
3216         (fortran_value_subarray): Likewise.
3217         (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3218         (operator_length_f): Likewise.
3219         (print_subexp_f): Likewise.
3220         (dump_subexp_body_f): Likewise.
3221         * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3222         declaration of this operation to here.
3223         * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3224         support moved to operator_length_f.
3225         * parser-defs.h (dump_subexp_body_funcall): Declare.
3226         (print_subexp_funcall): Declare.
3227         * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3228         fortran-operator.def.
3230 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3232         * eval.c (fortran_value_subarray): New function, content is taken
3233         from...
3234         (evaluate_subexp_standard): ...here, in two places.  Now arrays
3235         and strings both call the new function.
3236         (calc_f77_array_dims): Add header comment, handle strings.
3238 2020-09-18  Victor Collod  <vcollod@nvidia.com>
3240         PR gdb/26635
3241         * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3242         (i386_analyze_prologue): Call i386_skip_endbr.
3244 2020-09-18  Tom Tromey  <tromey@adacore.com>
3246         * windows-nat.c (struct windows_nat_target) <wait>: Update.
3247         (windows_nat_target::wait): Update.
3248         * target/wait.h (enum target_wait_flag): New.  Use
3249         DEF_ENUM_FLAGS_TYPE.
3250         * target/target.h (target_wait): Change type of options.
3251         * target.h (target_options_to_string, default_target_wait):
3252         Update.
3253         (struct target_ops) <wait>: Change type of options.
3254         * target.c (target_wait, default_target_wait, do_option): Change
3255         type of "options".
3256         (target_options_to_string): Likewise.
3257         * target-delegates.c: Rebuild.
3258         * target-debug.h (target_debug_print_target_wait_flags): Rename
3259         from target_debug_print_options.
3260         * sol-thread.c (class sol_thread_target) <wait>: Update.
3261         (sol_thread_target::wait): Update.
3262         * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3263         (rs6000_nat_target::wait): Update.
3264         * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3265         Update.
3266         (remote_target::wait_ns, remote_target::wait_as): Change type of
3267         "options".
3268         (remote_target::wait): Update.
3269         * remote-sim.c (struct gdbsim_target) <wait>: Update.
3270         (gdbsim_target::wait): Update.
3271         * record-full.c (class record_full_base_target) <wait>: Update.
3272         (record_full_wait_1): Change type of "options".
3273         (record_full_base_target::wait): Update.
3274         * record-btrace.c (class record_btrace_target) <wait>: Update.
3275         (record_btrace_target::wait): Update.
3276         * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3277         Update.
3278         (ravenscar_thread_target::wait): Update.
3279         * procfs.c (class procfs_target) <wait>: Update.
3280         (procfs_target::wait): Update.
3281         * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3282         * obsd-nat.c (obsd_nat_target::wait): Update.
3283         * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3284         (nto_procfs_target::wait): Update.
3285         * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3286         * nbsd-nat.c (nbsd_wait): Change type of "options".
3287         (nbsd_nat_target::wait): Update.
3288         * linux-thread-db.c (class thread_db_target) <wait>: Update.
3289         (thread_db_target::wait): Update.
3290         * linux-nat.h (class linux_nat_target) <wait>: Update.
3291         * linux-nat.c (linux_nat_target::wait): Update.
3292         (linux_nat_wait_1): Update.
3293         * infrun.c (do_target_wait_1, do_target_wait): Change type of
3294         "options".
3295         * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3296         * inf-ptrace.c (inf_ptrace_target::wait): Update.
3297         * go32-nat.c (struct go32_nat_target) <wait>: Update.
3298         (go32_nat_target::wait): Update.
3299         * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3300         * gnu-nat.c (gnu_nat_target::wait): Update.
3301         * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3302         * fbsd-nat.c (fbsd_nat_target::wait): Update.
3303         * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3304         * darwin-nat.c (darwin_nat_target::wait): Update.
3305         * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3306         (bsd_uthread_target::wait): Update.
3307         * aix-thread.c (class aix_thread_target) <wait>: Update.
3308         (aix_thread_target::wait): Update.
3310 2020-09-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3312         * compile/compile-object-run.c (create_copied_type_recursive): New
3313         function.
3314         (compile_object_run): Use new function.
3316 2020-08-21  Jon Turney  <jon.turney@dronecode.org.uk>
3318         * NEWS: Mention x86_64 Cygwin core file support.
3320 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3322         * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3323         (core_process_module_section): Handle NOTE_INFO_MODULE64.
3325 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3327         * windows-tdep.h: Add prototypes.
3328         * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3329         (i386_windows_core_pid_to_str): Move and rename ...
3330         * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3331         (windows_core_pid_to_str): ... and here.
3332         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3334 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3335         * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3336         (amd64_windows_init_abi_common): ... and register.
3338 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3340         * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3341         (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3343 2020-09-18  Pedro Alves  <pedro@palves.net>
3345         PR gdb/26631
3346         * thread.c (thread_find_command): Switch inferior before calling
3347         target methods.
3349 2020-09-17  Tom Tromey  <tromey@adacore.com>
3351         * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3352         * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3353         (tdesc_arch_data_up): New typedef.
3354         (tdesc_use_registers, tdesc_data_alloc): Update.
3355         (tdesc_data_cleanup): Don't declare.
3356         * target-descriptions.c (tdesc_data_alloc): Return a
3357         tdesc_arch_data_up.
3358         (tdesc_arch_data_deleter::operator()): Rename from
3359         tdesc_data_cleanup.  Change argument type.
3360         (tdesc_use_registers): Change early_data to an rvalue reference.
3361         (tdesc_use_registers): Don't use delete.
3362         * sparc-tdep.c (sparc32_gdbarch_init): Update.
3363         * s390-tdep.c (s390_gdbarch_init): Update.
3364         * rx-tdep.c (rx_gdbarch_init): Update.
3365         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3366         * riscv-tdep.c (riscv_gdbarch_init): Update.
3367         * or1k-tdep.c (or1k_gdbarch_init): Update.
3368         * nios2-tdep.c (nios2_gdbarch_init): Update.
3369         * nds32-tdep.c (nds32_gdbarch_init): Update.
3370         * mips-tdep.c (mips_gdbarch_init): Update.
3371         * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3372         * m68k-tdep.c (m68k_gdbarch_init): Update.
3373         * i386-tdep.c (i386_gdbarch_init): Update.
3374         * arm-tdep.c (arm_gdbarch_init): Update.
3375         * arc-tdep.c (arc_tdesc_init): Update.
3376         (arc_gdbarch_init): Update.
3377         * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3379 2020-09-17  Hannes Domani  <ssbssa@yahoo.de>
3381         * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3382         for WOW64 processes.
3384 2020-09-17  Tom Tromey  <tom@tromey.com>
3386         * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3388 2020-09-17  Tom Tromey  <tom@tromey.com>
3390         * value.c (preserve_values): Update.
3391         * python/py-type.c (save_objfile_types): Update.
3392         * guile/scm-type.c (save_objfile_types): Update.
3393         * gdbtypes.h (create_copied_types_hash): Return htab_up.
3394         * gdbtypes.c (create_copied_types_hash): Return htab_up.
3395         * compile/compile-object-run.c (compile_object_run): Update.
3397 2020-09-17  Tom Tromey  <tom@tromey.com>
3399         * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3400         Remove.
3401         <m_table>: Now htab_up.
3402         * typeprint.c (typedef_hash_table::recursively_update)
3403         (typedef_hash_table::add_template_parameters)
3404         (typedef_hash_table::typedef_hash_table): Update.
3405         (typedef_hash_table::~typedef_hash_table): Remove.
3406         (typedef_hash_table::typedef_hash_table)
3407         (typedef_hash_table::find_global_typedef)
3408         (typedef_hash_table::find_typedef): Update.
3410 2020-09-17  Tom Tromey  <tom@tromey.com>
3412         * target-descriptions.c (tdesc_use_registers): Use htab_up.
3414 2020-09-17  Tom Tromey  <tom@tromey.com>
3416         * linespec.c (class decode_compound_collector)
3417         <~decode_compound_collector>: Remove.
3418         <m_unique_syms>: Now htab_up.
3419         (decode_compound_collector::operator ()): Update.
3420         (class symtab_collector) <~symtab_collector>: Remove.
3421         <m_symtab_table>: Now htab_up.
3422         (symtab_collector::operator ()): Update.
3424 2020-09-17  Tom Tromey  <tom@tromey.com>
3426         * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3427         (filename_seen_cache::clear): Update.
3428         (~filename_seen_cache): Remove.
3429         (filename_seen_cache::seen): Update.
3430         * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3431         htab_up.
3432         <~filename_seen_cache>: Remove.
3433         <traverse>: Update.
3435 2020-09-17  Tom Tromey  <tom@tromey.com>
3437         * completer.c (completion_tracker::discard_completions)
3438         (completion_tracker::~completion_tracker)
3439         (completion_tracker::maybe_add_completion)
3440         (completion_tracker::remove_completion)
3441         (completion_tracker::recompute_lowest_common_denominator)
3442         (completion_tracker::build_completion_result): Update.
3443         * completer.h (class completion_tracker) <have_completions>:
3444         Update.
3445         <m_entries_hash>: Now htab_up.
3447 2020-09-17  Tom Tromey  <tom@tromey.com>
3449         * breakpoint.c (ambiguous_names_p): Use htab_up.
3451 2020-09-17  Tom Tromey  <tom@tromey.com>
3453         * auto-load.c (struct auto_load_pspace_info)
3454         <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3455         <loaded_script_files, loaded_script_texts>: Change type to
3456         htab_up.
3457         (~auto_load_pspace_info) Remove.
3458         (init_loaded_scripts_info, maybe_add_script_file)
3459         (maybe_add_script_text, auto_load_info_scripts): Update.
3461 2020-09-17  Tom Tromey  <tromey@adacore.com>
3463         * c-exp.y (name_obstack): Now static.
3465 2020-09-17  Chungyi Chi  <demonic@csie.io>
3467         * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3469 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
3471         * breakpoint.h (init_catchpoint): Change int parameter to bool.
3472         (add_solib_catchpoint): Likewise.
3473         * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3474         to bool.
3475         (add_solib_catchpoint): Change int parameter/variable to bool.
3476         (catch_load_or_unload): Likewise.
3477         (init_catchpoint): Likewise.
3478         (create_fork_vfork_event_catchpoint): Likewise.
3479         (catch_fork_command_1): Likewise.
3480         (catch_exec_command_1): Likewise.
3482 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
3484         * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3485         Change instance_flags to m_instance_flags.
3487 2020-09-16  Tom Tromey  <tromey@adacore.com>
3489         PR gdb/26598:
3490         * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3492 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3494         * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3495         PL_FLAG_EXEC.
3496         (fbsd_nat_target::insert_exec_catchpoint)
3497         (fbsd_nat_target::remove_exec_catchpoint): Always define.
3498         * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3499         (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3501 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3503         * configure.ac: Remove check for kinfo_getvmmap().
3504         * configure, config.in: Regenerate.
3505         * fbsd-nat.c (fbsd_read_mapping): Remove
3506         (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3507         (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3508         kinfo_get_vmmap() are always present.
3510 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3512         * fbsd-nat.c: Always include support for
3513         TARGET_OBJECT_SIGNAL_INFO.
3515 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3517         * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3518         sysctl and remove procfs fallback.
3520 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3522         * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3523         * fbsd-nat.h: Likewise.
3525 2020-09-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3527         * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3528         argument.
3530 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3532         * ada-lang.c (ada_language_data): Delete.
3533         (ada_language): Remove references to ada_language_data.
3534         * c-lang.c (c_language_data): Delete.
3535         (c_language): Remove references to c_language_data.
3536         (cplus_language_data): Delete.
3537         (cplus_language): Remove references to cplus_language_data.
3538         (asm_language_data): Delete.
3539         (asm_language): Remove references to asm_language_data.
3540         (minimal_language_data): Delete.
3541         (minimal_language): Remove references to minimal_language_data.
3542         * d-lang.c (d_language_data): Delete.
3543         (d_language): Remove references to d_language_data.
3544         * f-lang.c (f_language_data): Delete.
3545         (f_language): Remove references to f_language_data.
3546         * go-lang.c (go_language_data): Delete.
3547         (go_language): Remove references to go_language_data.
3548         * language.c (unknown_language_data): Delete.
3549         (unknown_language): Remove references to unknown_language_data.
3550         (auto_language_data): Delete.
3551         (auto_language): Remove references to auto_language_data.
3552         * language.h (language_data): Delete struct.
3553         (language_defn): No longer inherit from language_data.
3554         * m2-lang.c (m2_language_data): Delete.
3555         (m2_language): Remove references to m2_language_data.
3556         * objc-lang.c (objc_language_data): Delete.
3557         (objc_language): Remove references to objc_language_data.
3558         * opencl-lang.c (opencl_language_data): Delete.
3559         (opencl_language): Remove references to opencl_language_data.
3560         * p-lang.c (pascal_language_data): Delete.
3561         (pascal_language): Remove references to pascal_language_data.
3562         * rust-lang.c (rust_language_data): Delete.
3563         (rust_language): Remove references to rust_language_data.
3565 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3567         * ada-lang.c (ada_language_data): Remove la_op_print_tab
3568         initializer.
3569         (ada_language::opcode_print_table): New member function.
3570         * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3571         (c_language::opcode_print_table): New member function.
3572         (cplus_language_data): Remove la_op_print_tab initializer.
3573         (cplus_language::opcode_print_table): New member function.
3574         (asm_language_data): Remove la_op_print_tab initializer.
3575         (asm_language::opcode_print_table): New member function.
3576         (minimal_language_data): Remove la_op_print_tab initializer.
3577         (minimal_language::opcode_print_table): New member function.
3578         * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3579         (d_language::opcode_print_table): New member function.
3580         * expprint.c (print_subexp_standard): Update call to
3581         opcode_print_table.
3582         (op_string): Likewise.
3583         * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3584         (f_language::opcode_print_table): New member function.
3585         * go-lang.c (go_language_data): Remove la_op_print_tab
3586         initializer.
3587         (go_language::opcode_print_table): New member function.
3588         * language.c (unknown_language_data): Remove la_op_print_tab
3589         initializer.
3590         (unknown_language::opcode_print_table): New member function.
3591         (auto_language_data): Remove la_op_print_tab initializer.
3592         (auto_language::opcode_print_table): New member function.
3593         * language.h (language_data): Remove la_op_print_tab field.
3594         (language_defn::opcode_print_table): Declare new member function.
3595         * m2-lang.c (m2_language_data): Remove la_op_print_tab
3596         initializer.
3597         (m2_language::opcode_print_table): New member function.
3598         * objc-lang.c (objc_language_data): Remove la_op_print_tab
3599         initializer.
3600         (objc_language::opcode_print_table): New member function.
3601         * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3602         initializer.
3603         (opencl_language::opcode_print_table): New member function.
3604         * p-lang.c (pascal_language_data): Remove la_op_print_tab
3605         initializer.
3606         (pascal_language::opcode_print_table): New member function.
3607         * rust-lang.c (rust_language_data): Remove la_op_print_tab
3608         initializer.
3609         (rust_language::opcode_print_table): New member function.
3611 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3613         * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3614         (ada_language::expression_ops): New member function.
3615         * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3616         (c_language::expression_ops): New member function.
3617         (cplus_language_data): Remove la_exp_desc initializer.
3618         (cplus_language::expression_ops): New member function.
3619         (asm_language_data): Remove la_exp_desc initializer.
3620         (asm_language::expression_ops): New member function.
3621         (minimal_language_data): Remove la_exp_desc initializer.
3622         (minimal_language::expression_ops): New member function.
3623         * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3624         (d_language::expression_ops): New member function.
3625         * eval.c (evaluate_subexp): Update call to expression_ops.
3626         * expprint.c (print_subexp): Likewise.
3627         (op_name): Likewise.
3628         (dump_subexp_body): Likewise.
3629         * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3630         (f_language::expression_ops): New member function.
3631         * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3632         (go_language::expression_ops): New member function.
3633         * language.c (language_defn::expression_ops): New function.
3634         (unknown_language_data): Remove la_exp_desc initializer.
3635         (auto_language_data): Likewise.
3636         * language.h (language_data): Remove la_exp_desc field.
3637         (language_defn::expression_ops): Declare new member function.
3638         * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3639         (m2_language::expression_ops): New member function.
3640         * objc-lang.c (objc_language_data): Remove la_exp_desc
3641         initializer.
3642         * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3643         initializer.
3644         (opencl_language::expression_ops): New member function.
3645         * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3646         * parse.c (operator_length): Update call to expression_ops.
3647         (exp_iterate): Likewise.
3648         * rust-lang.c (rust_language_data): Remove la_exp_desc
3649         initializer.
3650         (ruse_language::expression_ops): New member function.
3652 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3654         * ada-lang.c (ada_language_data): Remove la_varobj_ops
3655         initializer.
3656         (ada_language::varobj_ops): New member function.
3657         * c-lang.c (c_language_data): Remove la_varobj_ops
3658         initializer.
3659         (cplus_language_data): Likewise.
3660         (cplus_language::varobj_ops): New member function.
3661         (asm_language_data): Remove la_varobj_ops initializer.
3662         (minimal_language_data): Likewise.
3663         * d-lang.c (d_language_data): Likewise.
3664         * f-lang.c (f_language_data): Likewise.
3665         * go-lang.c (go_language_data): Likewise.
3666         * language.c (language_defn::varobj_ops): New function.
3667         (unknown_language_data): Remove la_varobj_ops
3668         initializer.
3669         (auto_language_data): Likewise.
3670         * language.h (language_data): Remove la_varobj_ops field.
3671         (language_defn::varobj_ops): Declare new member function.
3672         * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3673         * objc-lang.c (objc_language_data): Likewise.
3674         * opencl-lang.c (opencl_language_data): Likewise.
3675         * p-lang.c (pascal_language_data): Likewise.
3676         * rust-lang.c (rust_language_data): Likewise.
3677         * varobj.c (varobj_create): Update call to varobj_ops.
3678         * varobj.h (default_varobj_ops): Delete define.
3680 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3682         * ada-lang.c (ada_language_data): Remove la_macro_expansion
3683         initializer.
3684         * c-lang.c (c_language_data): Likewise.
3685         (c_language::macro_expansion): New member function.
3686         (cplus_language_data): Likewise.
3687         (cplus_language::macro_expansion): New member function.
3688         (asm_language_data): Likewise.
3689         (asm_language::macro_expansion): New member function.
3690         (minimal_language_data): Likewise.
3691         (minimal_language::macro_expansion): New member function.
3692         * d-lang.c (d_language_data): Remove la_macro_expansion
3693         initializer.
3694         * f-lang.c (f_language_data): Likewise.
3695         * go-lang.c (go_language_data): Likewise.
3696         * language.c (unknown_language_data): Likewise.
3697         (auto_language_data): Likewise.
3698         * language.h (language_data): Remove la_macro_expansion field.
3699         (language_defn::macro_expansion): New member function.
3700         * m2-lang.c (m2_language_data): Remove la_macro_expansion
3701         initializer.
3702         * objc-lang.c (objc_language_data): Likewise.
3703         (objc_language::macro_expansion): New member function.
3704         * opencl-lang.c (opencl_language_data): Likewise.
3705         (opencl_language::macro_expansion): New member function.
3706         * p-lang.c (pascal_language_data): Remove la_macro_expansion
3707         initializer.
3708         * rust-lang.c (rust_language_data): Likewise.
3709         * symtab.c (default_collect_symbol_completion_matches_break_on):
3710         Update call to macro_expansion.
3712 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3714         * ada-lang.c (ada_language_data): Remove la_array_ordering
3715         initializer.
3716         * c-lang.c (c_language_data): Likewise.
3717         (cplus_language_data): Likewise.
3718         (asm_language_data): Likewise.
3719         (minimal_language_data): Likewise.
3720         * d-lang.c (d_language_data): Likewise.
3721         * dwarf2/read.c (read_array_order): Update for call to
3722         array_ordering.
3723         * f-lang.c (f_language_data): Remove la_array_ordering
3724         initializer.
3725         (f_language::array_ordering): New member function.
3726         * go-lang.c (go_language_data): Remove la_array_ordering
3727         initializer.
3728         * language.c (unknown_language_data): Likewise.
3729         (auto_language_data): Likewise.
3730         * language.h (language_data): Delete la_array_ordering field.
3731         (language_defn::array_ordering): New member function.
3732         * m2-lang.c (m2_language_data): Remove la_array_ordering
3733         initializer.
3734         * objc-lang.c (objc_language_data): Likewise.
3735         * opencl-lang.c (opencl_language_data): Likewise.
3736         * p-lang.c (pascal_language_data): Likewise.
3737         * rust-lang.c (rust_language_data): Likewise.
3739 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3741         * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3742         initializer.
3743         * c-lang.c (c_language_data): Likewise.
3744         (cplus_language_data): Likewise.
3745         (asm_language_data): Likewise.
3746         (minimal_language_data): Likewise.
3747         * d-lang.c (d_language_data): Likewise.
3748         * f-lang.c (f_language_data): Likewise.
3749         (f_language::case_sensitivity): New member function.
3750         * go-lang.c (go_language_data): Remove la_case_sensitivity
3751         initializer.
3752         * language.c (enum case_mode): Moved here from language.h.
3753         (case_mode): Make static.
3754         (show_case_command): Update for case_sensitivity being a method.
3755         (set_case_command): Likewise.
3756         (set_range_case): Likewise.
3757         (unknown_language_data): Remove la_case_sensitivity initializer.
3758         (auto_language_data): Likewise.
3759         * language.h (case_mode): Delete, move enum declaration to
3760         language.c.
3761         (language_data): Delete la_case_sensitivity field.
3762         (language_defn::case_sensitivity): New member function.
3763         * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3764         initializer.
3765         * objc-lang.c (objc_language_data): Likewise.
3766         * opencl-lang.c (opencl_language_data): Likewise.
3767         * p-lang.c (pascal_language_data): Likewise.
3768         * rust-lang.c (rust_language_data): Likewise.
3770 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3772         * ada-lang.c (ada_language_data): Remove la_range_check
3773         initializer.
3774         * c-lang.c (c_language_data): Likewise.
3775         (cplus_language_data): Likewise.
3776         (asm_language_data): Likewise.
3777         (minimal_language_data): Likewise.
3778         * d-lang.c (d_language_data): Likewise.
3779         * f-lang.c (f_language_data): Likewise.
3780         (f_language::range_checking_on_by_default): New member function.
3781         * go-lang.c (go_language_data): Remove la_range_check initializer.
3782         * language.c (enum range_mode): Moved here from language.h.
3783         (range_mode): Made static.
3784         (show_range_command): Update to use
3785         range_checking_on_by_default.
3786         (set_range_command): Likewise.
3787         (set_range_case): Likewise.
3788         (unknown_language_data): Remove la_range_check initializer.
3789         (auto_language_data): Likewise.
3790         * language.h (range_mode): Delete.  Enum definition moved to
3791         language.c.
3792         (language_data): Remove la_range_check field.
3793         (language_defn::range_checking_on_by_default): New member
3794         function.
3795         * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3796         (m2_language::range_checking_on_by_default): New member function.
3797         * objc-lang.c (objc_language_data): Remove la_range_check
3798         initializer.
3799         * opencl-lang.c (opencl_language_data): Likewise.
3800         * p-lang.c (pascal_language_data): Likewise.
3801         (pascal_language::range_checking_on_by_default): New member
3802         function.
3803         * rust-lang.c (rust_language_data): Remove la_range_check
3804         initializer.
3805         (rust_language::range_checking_on_by_default): New member
3806         function.
3808 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3810         * dwarf2/read.c (dwarf2_physname): Remove special case for
3811         language_go.
3812         * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3813         member function.
3815 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3817         * ada-lang.c (ada_language_data): Remove
3818         la_store_sym_names_in_linkage_form_p initializer.
3819         (ada_language::store_sym_names_in_linkage_form_p): New member
3820         function.
3821         * c-lang.c (c_language_data): Remove
3822         la_store_sym_names_in_linkage_form_p initializer.
3823         (c_language::store_sym_names_in_linkage_form_p): New member
3824         function.
3825         (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3826         initializer.
3827         (asm_language_data): Likewise.
3828         (asm_language::store_sym_names_in_linkage_form_p): New member
3829         function.
3830         (minimal_language_data): Remove
3831         la_store_sym_names_in_linkage_form_p initializer.
3832         (minimal_language::store_sym_names_in_linkage_form_p): New member
3833         function.
3834         * d-lang.c (d_language_data): Remove
3835         la_store_sym_names_in_linkage_form_p initializer.
3836         * dwarf2/read.c (dwarf2_physname): Update call to
3837         store_sym_names_in_linkage_form_p.
3838         * f-lang.c (f_language_data): Remove
3839         la_store_sym_names_in_linkage_form_p initializer.
3840         * go-lang.c (go_language_data): Remove
3841         la_store_sym_names_in_linkage_form_p initializer.
3842         * language.c (unknown_language_data): Remove
3843         la_store_sym_names_in_linkage_form_p initializer.
3844         (unknown_language::store_sym_names_in_linkage_form_p): New member
3845         function.
3846         (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3847         initializer.
3848         (auto_language::store_sym_names_in_linkage_form_p): New member
3849         function.
3850         * language.h (language_data): Remove
3851         la_store_sym_names_in_linkage_form_p member variable.
3852         (language_defn::store_sym_names_in_linkage_form_p): New member
3853         function.
3854         * m2-lang.c (m2_language_data): Remove
3855         la_store_sym_names_in_linkage_form_p initializer.
3856         * objc-lang.c (objc_language_data): Likewise.
3857         * opencl-lang.c (opencl_language_data): Likewise.
3858         * p-lang.c (pascal_language_data): Likewise.
3859         * rust-lang.c (rust_language_data): Likewise.
3861 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3863         * ada-lang.c (ada_language_data): Remove string_lower_bound
3864         initializer.
3865         * c-lang.c (c_language_data): Likewise.
3866         (cplus_language_data): Likewise.
3867         (asm_language_data): Likewise.
3868         (minimal_language_data): Likewise.
3869         * d-lang.c (d_language_data): Likewise.
3870         * f-lang.c (f_language_data): Likewise.
3871         * go-lang.c (go_language_data): Likewise.
3872         * language.c (unknown_language_data): Likewise.
3873         (auto_language_data): Likewise.
3874         * language.h (language_data): Remove string_lower_bound field.
3875         (language_defn::string_lower_bound): New member function.
3876         * m2-lang.c (m2_language_data): Remove string_lower_bound
3877         initializer.
3878         (m2_language::string_lower_bound): New member function.
3879         * objc-lang.c (objc_language_data): Remove string_lower_bound
3880         initializer.
3881         * opencl-lang.c (opencl_language_data): Likewise.
3882         * p-lang.c (pascal_language_data): Likewise.
3883         * rust-lang.c (rust_language_data): Likewise.
3884         * valops.c (value_cstring): Update call to string_lower_bound.
3885         (value_string): Likewise.
3886         * value.c (allocate_repeated_value): Likewise.
3888 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3890         * valops.c (value_repeat): Fix incorrect argument name in comment.
3892 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3894         * ada-lang.c (ada_language_data): Remove c_style_arrays
3895         initializer.
3896         (ada_language::c_style_arrays_p): New member fuction.
3897         * c-lang.c (c_language_data): Remove c_style_arrays
3898         initializer.
3899         (cplus_language_data): Likewise.
3900         (asm_language_data): Likewise.
3901         (minimal_language_data): Likewise.
3902         * d-lang.c (d_language_data): Likewise.
3903         * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3904         * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3905         (f_language::c_style_arrays_p): New member function.
3906         * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3907         * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3908         * language.c (unknown_language_data): Remove c_style_arrays
3909         initializer.
3910         (auto_language_data): Likewise.
3911         * language.h (language_data): Remove c_style_arrays field.
3912         (language_defn::c_style_arrays_p): New member function.
3913         * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3914         (m2_language::c_style_arrays_p): New member function.
3915         * objc-lang.c (objc_language_data): Remove c_style_arrays
3916         initializer.
3917         * opencl-lang.c (opencl_language_data): Likewise.
3918         * p-lang.c (pascal_language_data): Likewise.
3919         * rust-lang.c (rust_language_data): Likewise.
3920         * valarith.c (value_subscript): Update call to c_style_arrays_p,
3921         and update local variable to a bool.
3922         * valops.c (value_cast): Update call to c_style_arrays_p.
3923         (value_array): Likewise.
3924         * value.c (coerce_array): Likewise.
3926 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3928         * ada-lang.c (ada_language_data): Remove la_language initializer.
3929         * c-lang.c (c_language_data): Likewise.
3930         (cplus_language_data): Likewise.
3931         (asm_language_data): Likewise.
3932         (minimal_language_data): Likewise.
3933         * d-lang.c (d_language_data): Likewise.
3934         * f-lang.c (f_language_data): Likewise.
3935         * go-lang.c (go_language_data): Likewise.
3936         * language.c (unknown_language_data): Likewise.
3937         (auto_language_data): Likewise.
3938         * language.h (language_data): Remove la_language field.
3939         (language_defn::language_defn): Initialise la_language field.
3940         (language_defn::la_language): New member variable.
3941         * m2-lang.c (m2_language_data): Remove la_language field.
3942         * objc-lang.c (objc_language_data): Likewise.
3943         * opencl-lang.c (opencl_language_data): Likewise.
3944         * p-lang.c (pascal_language_data): Likewise.
3945         * rust-lang.c (rust_language_data): Likewise.
3947 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3949         * ada-lang.c (ada_extensions): Delete, moved into
3950         ada_language::filename_extensions.
3951         (ada_language_data): Remove la_filename_extensions initializer.
3952         (ada_language::filename_extensions): New member function.
3953         * c-lang.c (c_extensions): Delete, moved into
3954         c_language::filename_extensions.
3955         (c_language_data): Remove la_filename_extensions initializer.
3956         (c_language::filename_extensions): New member function.
3957         (cplus_extensions): Delete, moved into
3958         cplus_language::filename_extensions.
3959         (cplus_language_data): Remove la_filename_extensions initializer.
3960         (cplus_language::filename_extensions): New member function.
3961         (asm_extensions): Delete, moved into
3962         asm_language::filename_extensions.
3963         (asm_language_data): Remove la_filename_extensions initializer.
3964         (asm_language::filename_extensions): New member function.
3965         (minimal_language_data): Remove la_filename_extensions
3966         initializer.
3967         * d-lang.c (d_extensions): Delete, moved into
3968         d_language::filename_extensions.
3969         (d_language_data): Remove la_filename_extensions initializer.
3970         (d_language::filename_extensions): New member function.
3971         * f-lang.c (f_extensions): Delete, moved into
3972         f_language::filename_extensions.
3973         (f_language_data): Remove la_filename_extensions initializer.
3974         (f_language::filename_extensions): New member function.
3975         * go-lang.c (go_language_data): Remove la_filename_extensions
3976         initializer.
3977         * language.c (add_set_language_command): Update now that
3978         filename_extensions returns a vector.
3979         (unknown_language_data): Remove la_filename_extensions
3980         initializer.
3981         (auto_language_data): Likewise.
3982         * language.h (language_data): Remove la_filename_extensions field.
3983         (language_defn::filename_extensions): New member function.
3984         * m2-lang.c (m2_language_data): Remove la_filename_extensions
3985         initializer.
3986         * objc-lang.c (objc_extensions): Delete, moved into
3987         objc_language::filename_extensions.
3988         (objc_language_data): Remove la_filename_extensions initializer.
3989         (objc_language::filename_extensions): New member function.
3990         * opencl-lang.c (opencl_language_data): Remove
3991         la_filename_extensions initializer.
3992         * p-lang.c (pascal_extensions): Delete, moved into
3993         pascal_language::filename_extensions.
3994         (pascal_language_data): Remove la_filename_extensions initializer.
3995         (pascal_language::filename_extensions): New member function.
3996         * rust-lang.c (rust_extensions): Delete, moved into
3997         rust_language::filename_extensions.
3998         (rust_language_data): Remove la_filename_extensions initializer.
3999         (rust_language::filename_extensions): New member function.
4000         * symfile.c (add_filename_language): Add new assert.
4002 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4004         * ada-lang.c (ada_language_data): Remove la_name and
4005         la_natural_name initializers.
4006         (ada_language::name): New member function.
4007         (ada_language::natural_name): New member function.
4008         * c-lang.c (c_language_data): Remove la_name and
4009         la_natural_name initializers.
4010         (c_language::name): New member function.
4011         (c_language::natural_name): New member function.
4012         (cplus_language_data): Remove la_name and
4013         la_natural_name initializers.
4014         (cplus_language::name): New member function.
4015         (cplus_language::natural_name): New member function.
4016         (asm_language_data): Remove la_name and
4017         la_natural_name initializers.
4018         (asm_language::name): New member function.
4019         (asm_language::natural_name): New member function.
4020         (minimal_language_data): Remove la_name and
4021         la_natural_name initializers.
4022         (minimal_language::name): New member function.
4023         (minimal_language::natural_name): New member function.
4024         * compile/compile.c (compile_to_object): Update call to
4025         lanugage_defn::name.
4026         * d-lang.c (d_language_data): Remove la_name and
4027         la_natural_name initializers.
4028         (d_language::name): New member function.
4029         (d_language::natural_name): New member function.
4030         * expprint.c (print_subexp_standard): Update call to
4031         language_defn::name.
4032         (dump_raw_expression): Likewise
4033         (dump_prefix_expression): Likewise.
4034         * f-lang.c (f_language_data): Remove la_name and
4035         la_natural_name initializers.
4036         (f_language::name): New member function.
4037         (f_language::natural_name): New member function.
4038         * go-lang.c (go_language_data): Remove la_name and
4039         la_natural_name initializers.
4040         (go_language::name): New member function.
4041         (go_language::natural_name): New member function.
4042         * language.c (show_language_command): Update call to
4043         language_defn::name.
4044         (set_language_command): Likewise.
4045         (language_enum): Likewise.
4046         (language_str): Likewise.
4047         (add_set_language_command): Likewise, use
4048         language_defn::natural_name in the doc string.
4049         (unknown_language_data): Remove la_name and
4050         la_natural_name initializers.
4051         (unknown_language::name): New member function.
4052         (unknown_language::natural_name): New member function.
4053         (auto_language_data): Remove la_name and
4054         la_natural_name initializers.
4055         (auto_language::name): New member function.
4056         (auto_language::natural_name): New member function.
4057         (language_lookup_primitive_type_as_symbol): Update call to
4058         language_defn::name.
4059         * language.h (language_data): Remove la_name and la_natural_name
4060         member variables.
4061         (language_defn::name): New member function.
4062         (language_defn::natural_name): New member function.
4063         * m2-lang.c (m2_language_data): Remove la_name and
4064         la_natural_name initializers.
4065         (m2_language::name): New member function.
4066         (m2_language::natural_name): New member function.
4067         * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4068         language_defn::natural_name.
4069         * objc-lang.c (objc_language_data): Remove la_name and
4070         la_natural_name initializers.
4071         (objc_language::name): New member function.
4072         (objc_language::natural_name): New member function.
4073         * opencl-lang.c (opencl_language_data): Remove la_name and
4074         la_natural_name initializers.
4075         (opencl_language::name): New member function.
4076         (opencl_language::natural_name): New member function.
4077         * p-lang.c (pascal_language_data): Remove la_name and
4078         la_natural_name initializers.
4079         (pascal_language::name): New member function.
4080         (pascal_language::natural_name): New member function.
4081         * rust-lang.c (rust_language_data): Remove la_name and
4082         la_natural_name initializers.
4083         (rust_language::name): New member function.
4084         (rust_language::natural_name): New member function.
4085         * symtab.c (lookup_language_this): Update call to
4086         language_defn::name.
4088 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4090         * ada-lang.c (ada_language_data): Remove la_name_of_this
4091         initializer.
4092         * ax-gdb.c (gen_expr): Update call to name_of_this.
4093         * c-exp.y (classify_name): Likewise.
4094         * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4095         (cplus_language_data): Likewise.
4096         (cplus_language::name_of_this): New member function.
4097         (asm_language_data): Remove la_name_of_this initializer.
4098         (minimal_language_data): Likewise.
4099         * d-lang.c (d_language_data): Likewise.
4100         (d_language::name_of_this): New member function.
4101         * expprint.c (print_subexp_standard): Update call to name_of_this.
4102         * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4103         * go-lang.c (go_language_data): Likewise.
4104         * language.c (unknown_language_data): Likewise.
4105         (unknown_language::name_of_this): New member function.
4106         (auto_language_data): Remove la_name_of_this initializer.
4107         (auto_language::name_of_this): New member function.
4108         * language.h (language_data): Delete la_name_of_this member
4109         variable.
4110         (language_defn::name_of_this): New member function.
4111         * m2-lang.c (m2_language_data): Remove la_name_of_this
4112         initializer.
4113         * objc-lang.c (objc_language_data): Likewise.
4114         (objc_language::name_of_this): New member function.
4115         * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4116         initializer.
4117         * p-lang.c (pascal_language_data): Likewise.
4118         (pascal_language::name_of_this): New member function.
4119         * rust-lang.c (rust_language_data): Remove la_name_of_this
4120         initializer.
4121         * symtab.c (lookup_language_this): Update call to name_of_this.
4122         (lookup_symbol_aux): Likewise.
4123         * valops.c (value_of_this): Likewise.
4125 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4127         * ada-lang.c (ada_language_data): Remove
4128         la_struct_too_deep_ellipsis initializer.
4129         (ada_language::struct_too_deep_ellipsis): New member function.
4130         * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4131         initializer.
4132         (cplus_language_data): Likewise.
4133         (asm_language_data): Likewise.
4134         (minimal_language_data): Likewise.
4135         * cp-valprint.c (cp_print_value): Update call to
4136         struct_too_deep_ellipsis.
4137         * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4138         initializer.
4139         * f-lang.c (f_language_data): Likewise.
4140         (f_language::struct_too_deep_ellipsis): New member function.
4141         * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4142         initializer.
4143         * language.c (unknown_language_data): Likewise.
4144         (auto_language_data): Likewise.
4145         * language.h (language_data): Delete la_struct_too_deep_ellipsis
4146         member variable.
4147         (language_defn::struct_too_deep_ellipsis): New member function.
4148         * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4149         initializer.Q
4150         * objc-lang.c (objc_language_data): Likewise.
4151         * opencl-lang.c (opencl_language_data): Likewise.
4152         * p-lang.c (pascal_language_data): Likewise.
4153         * rust-lang.c (rust_language_data): Likewise.
4154         * valprint.c (val_print_check_max_depth): Update call to
4155         struct_too_deep_ellipsis.
4157 2020-09-16  Felix Willgerodt  <felix.willgerodt@intel.com>
4159         * MAINTAINERS (Write After Approval): Add myself.
4161 2020-09-15  Tom Tromey  <tom@tromey.com>
4163         * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4164         Remove.
4166 2020-09-15  Tom Tromey  <tom@tromey.com>
4168         * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4169         and TYPE_CODE_METHODPTR cases.
4170         * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4171         (c_value_print_inner): Update.
4172         * valprint.c (generic_value_print_memberptr): New function, from
4173         c_value_print_memberptr.
4174         (generic_value_print): Use it.  Call cplus_print_method_ptr.
4176 2020-09-15  Tom Tromey  <tromey@adacore.com>
4178         * python/python-internal.h (PyInt_FromLong): Remove define.
4179         * python/py-value.c (convert_value_from_python): Use
4180         gdb_py_object_from_longest.
4181         * python/py-type.c (typy_get_code): Use
4182         gdb_py_object_from_longest.
4183         * python/py-symtab.c (salpy_get_line): Use
4184         gdb_py_object_from_longest.
4185         * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4186         gdb_py_object_from_longest.
4187         * python/py-record.c (recpy_gap_reason_code): Use
4188         gdb_py_object_from_longest.
4189         * python/py-record-btrace.c (recpy_bt_insn_size)
4190         (recpy_bt_func_level, btpy_list_count): Use
4191         gdb_py_object_from_longest.
4192         * python/py-infthread.c (gdbpy_create_ptid_object): Use
4193         gdb_py_object_from_longest.  Fix error handling.
4194         * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4195         gdb_py_object_from_longest.
4196         * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4197         gdb_py_object_from_longest.
4198         * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4199         (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4200         (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4202 2020-09-15  Tom Tromey  <tromey@adacore.com>
4204         * python/python.c (gdbpy_parameter_value): Use
4205         gdb_py_object_from_ulongest.
4207 2020-09-15  Tom Tromey  <tromey@adacore.com>
4209         * python/py-infevents.c (create_register_changed_event_object):
4210         Use gdb_py_object_from_longest.
4211         * python/py-exitedevent.c (create_exited_event_object): Use
4212         gdb_py_object_from_longest.
4214 2020-09-15  Tom Tromey  <tromey@adacore.com>
4216         * python/python.c (gdbpy_parameter_value): Use
4217         gdb_py_object_from_longest.
4218         * python/py-type.c (convert_field, typy_range): Use
4219         gdb_py_object_from_longest.
4220         * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4221         gdb_py_object_from_longest.
4222         * python/py-lazy-string.c (stpy_get_length): Use
4223         gdb_py_object_from_longest.
4224         * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4225         gdb_py_object_from_longest.
4226         * python/py-infevents.c (create_memory_changed_event_object): Use
4227         gdb_py_object_from_longest.
4228         * python/py-inferior.c (infpy_get_num): Use
4229         gdb_py_object_from_longest.
4230         (infpy_get_pid): Likewise.
4232 2020-09-15  Tom Tromey  <tromey@adacore.com>
4234         * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4235         defines.
4236         * python/py-value.c (valpy_long): Use
4237         gdb_py_object_from_ulongest.
4238         * python/py-symtab.c (salpy_get_pc): Use
4239         gdb_py_object_from_ulongest.
4240         (salpy_get_last): Likewise.
4241         * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4242         gdb_py_object_from_ulongest.
4243         * python/py-lazy-string.c (stpy_get_address): Use
4244         gdb_py_object_from_ulongest.
4245         * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4246         * python/py-arch.c (archpy_disassemble): Use
4247         gdb_py_object_from_ulongest and gdb_py_object_from_longest.  Fix
4248         error handling.
4250 2020-09-15  Tom Tromey  <tromey@adacore.com>
4252         * python/python-internal.h (gdb_py_long_from_longest): Remove
4253         defines.
4254         * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4255         * python/py-type.c (convert_field, typy_get_sizeof): Use
4256         gdb_py_object_from_longest.
4257         * python/py-record-btrace.c (btpy_list_index): Use
4258         gdb_py_object_from_longest.
4260 2020-09-15  Tom Tromey  <tromey@adacore.com>
4262         * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4263         * python/py-record.c (recpy_element_number): Use
4264         gdb_py_object_from_longest.
4265         (recpy_gap_number): Likewise.
4267 2020-09-15  Tom Tromey  <tromey@adacore.com>
4269         * top.c (ui::ui): Update.
4270         (highest_ui_num): Remove.
4271         * top.h (struct ui) <num>: Remove.
4273 2020-09-15  Tom Tromey  <tromey@adacore.com>
4275         * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4276         * ui-style.c (ansi_regex_text): Now array.
4277         * rust-exp.y (number_regex_text): Now array.
4278         * linespec.c (linespec_quote_characters): Now array.
4279         * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4280         Now arrays.
4282 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4284         * debuginfod-support.c (debuginfod_client_deleter): New.
4285         (debuginfod_client_up): New.
4286         (debuginfod_init): Return debuginfod_client_up.
4287         (debuginfod_source_query): Adjust.
4288         (debuginfod_debuginfo_query): Adjust.
4290 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4292         * debuginfod-support.c (debuginfod_source_query): Use
4293         make_unique_xstrdup.
4295 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4297         * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4298         with `type::instance_flags`.
4300 2020-09-14  Michael Mullin  <masmullin@gmail.com>
4302         * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4303         Remove baton parameter.
4305 2020-09-14  Pedro Alves  <pedro@palves.net>
4307         * Makefile.in (SELFTESTS_SRCS): Add
4308         unittests/enum-flags-selftests.c.
4309         * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4310         btrace_function_flags instead of enum btrace_function_flag.
4311         * compile/compile-c-types.c (convert_qualified): Use
4312         enum_flags::raw.
4313         * compile/compile-cplus-symbols.c (convert_one_symbol)
4314         (convert_symbol_bmsym):
4315         * compile/compile-cplus-types.c (compile_cplus_convert_method)
4316         (compile_cplus_convert_struct_or_union_methods)
4317         (compile_cplus_instance::convert_qualified_base):
4318         * go-exp.y (parse_string_or_char): Add cast to int.
4319         * unittests/enum-flags-selftests.c: New file.
4320         * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4321         type to btrace_thread_flags from btrace_thread_flag.
4322         (record_btrace_cancel_resume, record_btrace_step_thread): Change
4323         local's type to btrace_thread_flags from btrace_thread_flag.  Add
4324         cast in DEBUG call.
4326 2020-09-14  Pedro Alves  <pedro@palves.net>
4328         * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4329         * gdbtypes.c (address_space_name_to_int): Rename to ...
4330         (address_space_name_to_type_instance_flags): ... this.
4331         (address_space_int_to_name): Rename to ...
4332         (address_space_type_instance_flags_to_name): ... this.
4333         * gdbtypes.h (address_space_name_to_int): Rename to ...
4334         (address_space_name_to_type_instance_flags): ... this.
4335         (address_space_int_to_name): Rename to ...
4336         (address_space_type_instance_flags_to_name): ... this.
4337         * type-stack.c (type_stack::insert): Adjust to rename.
4338         * type-stack.h (type_stack::insert): Likewise.
4340 2020-09-14  Pedro Alves  <pedro@palves.net>
4341             Andrew Burgess  <andrew.burgess@embecosm.com>
4343         * avr-tdep.c (avr_address_class_type_flags): Return
4344         type_instance_flags.
4345         (avr_address_class_type_flags_to_name): Take a
4346         type_instance_flags.
4347         (avr_address_class_name_to_type_flags): Return bool and take a
4348         type_instance_flags.
4349         * d-lang.c (build_d_types): Use type::set_instance_flags.
4350         * ft32-tdep.c (ft32_address_class_type_flags): Return
4351         type_instance_flags.
4352         (ft32_address_class_type_flags_to_name): Take a
4353         type_instance_flags.
4354         (ft32_address_class_name_to_type_flags): Return bool and take a
4355         type_instance_flags.
4356         (ft32_gdbarch_init): Use type::set_instance_flags.
4357         * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4358         * gdbarch.h, gdbarch.c: Regenerate.
4359         * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4360         (address_class_name_to_type_flags): Use type_instance_flags and
4361         bool.
4362         * gdbtypes.c (address_space_name_to_int)
4363         (address_space_int_to_name, make_qualified_type): Use
4364         type_instance_flags.
4365         (make_qualified_type): Use type_instance_flags and
4366         type::set_instance_flags.
4367         (make_type_with_address_space, make_cv_type, make_vector_type)
4368         (check_typedef): Use type_instance_flags.
4369         (recursive_dump_type): Cast type_instance_flags to unsigned for
4370         printing.
4371         (copy_type_recursive): Use type::set_instance_flags.
4372         (gdbtypes_post_init): Use type::set_instance_flags.
4373         * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4374         <m_instance_flags>: ... this.
4375         <instance_flags, set_instance_flags>: New methods.
4376         (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4377         (SET_TYPE_INSTANCE_FLAGS): New.
4378         (address_space_name_to_int, address_space_int_to_name)
4379         (make_type_with_address_space): Pass flags using
4380         type_instance_flags instead of int.
4381         * stabsread.c (cleanup_undefined_types_noname): Use
4382         type::set_instance_flags.
4383         * s390-tdep.c (s390_address_class_type_flags): Return
4384         type_instance_flags.
4385         (s390_address_class_type_flags_to_name): Take a
4386         type_instance_flags.
4387         (s390_address_class_name_to_type_flags): Return bool and take a
4388         type_instance_flags.
4389         * type-stack.c (type_stack::follow_types): Use
4390         type_instance_flags.
4391         * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4393 2020-09-14  Tom Tromey  <tromey@adacore.com>
4395         * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4396         * x86-tdep.c (x86_is_thunk_register_name)
4397         (x86_in_indirect_branch_thunk): Update.
4398         * sparc64-tdep.c (sparc64_fpu_register_names)
4399         (sparc64_cp0_register_names, sparc64_register_names)
4400         (sparc64_pseudo_register_names): Now const.
4401         * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4402         cp0_registers_num>: Now const.
4403         * sparc-tdep.c (sparc_core_register_names)
4404         (sparc32_fpu_register_names, sparc32_cp0_register_names)
4405         (sparc32_pseudo_register_names): Now const.
4406         (validate_tdesc_registers): Update.
4407         * rust-lang.c (rust_extensions): Now const.
4408         * p-lang.c (p_extensions): Now const.
4409         * objc-lang.c (objc_extensions): Now const.
4410         * nto-tdep.c (nto_thread_state_str): Now const.
4411         * moxie-tdep.c (moxie_register_names): Now const.
4412         * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4413         Now const.
4414         * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4415         (mips_linux_reg_names): Now const.
4416         (mips_gdbarch_init): Update.
4417         * microblaze-tdep.c (microblaze_register_names): Now const.
4418         * m68k-tdep.c (m68k_register_names): Now const.
4419         * m32r-tdep.c (m32r_register_names): Now const.
4420         * ia64-tdep.c (ia64_register_names): Now const.
4421         * i386-tdep.h (struct gdbarch_tdep) <register_names,
4422         ymmh_register_names, ymm16h_regnum, mpx_register_names,
4423         k_register_names, zmmh_register_names, xmm_avx512_register_names,
4424         ymm_avx512_register_names, pkeys_register_names>: Now const.
4425         * i386-tdep.c (i386_register_names, i386_zmm_names)
4426         (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4427         (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4428         (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4429         * f-lang.c (f_extensions): Now const.
4430         * d-lang.c (d_extensions): Now const.
4431         * csky-tdep.c (csky_register_names): Now const.
4432         * charset.c (default_charset_names, charset_enum): Now const.
4433         (_initialize_charset): Update.
4434         * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4435         const.
4436         * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4437         (bsd_uthread_solib_loaded): Update.
4438         (bsd_uthread_state): Now const.
4439         * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4440         (amd64_ymm_avx512_names, amd64_ymmh_names)
4441         (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4442         (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4443         (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4444         (amd64_dword_names): Now const.
4445         * agent.c (can_use_agent_enum): Now const.
4446         * ada-tasks.c (task_states, long_task_states): Now const.
4447         * ada-lang.c (known_runtime_file_name_patterns)
4448         (known_auxiliary_function_name_patterns, attribute_names)
4449         (standard_exc, ada_extensions): Now const.
4451 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4453         * bcache.h (struct bcache) <bcache>: Remove constructor.
4454         <m_hash_function, m_compare_function>: Remove.
4455         <~bcache>: Make virtual.
4456         <compare>: Remove static method, introduce virtual method.
4457         <default_hash>: Remove.
4458         <hash>: New virtual method.
4459         * bcache.c (bcache::expand_hash_table): Update.
4460         (bcache::insert): Update.
4461         (bcache::hash): New.
4462         (bcache::compare): Update comment and parameter names.
4463         * gdbtypes.c (types_deeply_equal): Update.
4464         * psymtab.h (struct psymbol_bcache): New struct.
4465         (class psymtab_storage) <psymtab_storage>: Make default.
4466         <psymbol_cache>: Change type to psymbol_bcache.
4467         * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4468         (psymbol_hash): Change to...
4469         (psymbol_bcache::hash): ... this.
4470         (psymbol_compare): Change to...
4471         (psymbol_bcache::compare): ... this.
4473 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4475         * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4476         checking for initial lwp.
4478 2020-09-14  Tom Tromey  <tromey@adacore.com>
4480         * m68k-tdep.c (m68k_extract_return_value): Use
4481         pointer_result_regnum.
4482         (m68k_store_return_value): Likewise.
4483         (m68k_reg_struct_return_p): Handle vectors and arrays.
4484         (m68k_return_value): Handle arrays.
4485         (m68k_svr4_return_value): Fix single-element aggregate handling.
4486         Handle long double.  Adjust for embedded ABI.
4487         (m68k_svr4_init_abi): Set pointer_result_regnum.
4488         (m68k_embedded_init_abi): New function.
4489         (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4490         (m68k_osabi_sniffer): New function.
4491         (_initialize_m68k_tdep): Register osabi sniffer.
4492         * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4493         member.
4495 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4497         * xml-support.c (xml_fetch_content_from_file): Replace xfree
4498         with gdb::unique_xmalloc_ptr<char>.
4500 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4502         * xml-support.h (xml_fetch_another): Change type to be a
4503         function_view.
4504         (xml_process_xincludes): Remove baton parameter.
4505         (xml_fetch_content_from_file): Change baton parameter to
4506         dirname.
4507         * xml-support.c (struct xinclude_parsing_data)
4508         <xinclude_parsing_data>: Remove baton parameter.
4509         <fetcher_baton>: Remove.
4510         (xinclude_start_include): Adjust.
4511         (xml_process_xincludes): Adjust.
4512         (xml_fetch_content_from_file): Replace baton parameter with
4513         dirname.
4514         * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4515         (xml_init_syscalls_info): Use a lambda.
4516         * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4517         (file_read_description_xml): Use a lambda.
4518         (fetch_available_features_from_target): Change baton parameter
4519         to target_ops.
4520         (target_read_description_xml): Use a lambda.
4521         (target_fetch_description_xml): Use a lambda.
4522         (string_read_description_xml): Update.
4524 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4526         * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4527         uses with type::endianity_is_not_default.
4529 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4531         * gdbtypes.h (struct type) <endianity_is_not_default,
4532         set_endianity_is_not_default>: New methods.
4533         (TYPE_ENDIANITY_NOT_DEFAULT): Use
4534         type::endianity_is_not_default, change all write call sites to
4535         use type::set_endianity_is_not_default.
4537 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4539         * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4540         uses with type::is_fixed_instance.
4542 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4544         * gdbtypes.h (struct type) <is_fixed_instance,
4545         set_is_fixed_instance>: New methods.
4546         (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4547         write call sites to use type::set_is_fixed_instance.
4549 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4551         * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4552         uses with type::is_gnu_ifunc.
4554 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4556         * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4557         (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4558         use type::set_is_gnu_ifunc.
4560 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4562         * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4563         uses with type::stub_is_supported.
4565 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4567         * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4568         (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4569         use type::set_stub_is_supported.
4571 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4573         * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4574         uses with type::is_vector.
4576 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4578         * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4579         (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4580         use type::set_is_vector.
4582 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4584         * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4585         uses with type::has_varargs.
4587 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4589         * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4590         (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4591         use type::set_has_varargs.
4593 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4595         * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4596         uses with type::is_prototyped.
4598 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4600         * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4601         New methods.
4602         (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4603         call sites to use type::set_is_prototyped.
4605 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4607         * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4608         uses with type::target_is_stub.
4610 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4612         * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4613         New methods.
4614         (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4615         sites to use type::set_target_is_stub.
4617 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4619         * gdbtypes.h (TYPE_STUB): Remove, replace all
4620         uses with type::is_stub.
4622 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4624         * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4625         (TYPE_STUB): Use type::is_stub, change all write call sites to
4626         use type::set_is_stub.
4628 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4630         * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4631         type::has_no_signedness.
4633 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4635         * gdbtypes.h (struct type) <has_no_signedness,
4636         set_has_no_signedness>: New methods.
4637         (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4638         call sites to use type::set_has_no_signedness.
4640 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4642         * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4643         type::is_unsigned.
4645 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4647         * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4648         methods.
4649         (TYPE_UNSIGNED): Use type::is_unsigned.  Change all write call
4650         sites to use type::set_is_unsigned.
4652 2020-09-14  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
4653             Adam Renquinha <arenquinha@cimeq.qc.ca>
4655         * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4656         pointer and stack frame offset when unwinding.
4658 2020-09-13  Pedro Alves  <pedro@palves.net>
4660         * NEWS: Document "-break-insert --qualified".
4661         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4663 2020-09-13  Pedro Alves  <pedro@palves.net>
4665         * linespec.c (classify_mtype, compare_msyms): Delete.
4666         (search_minsyms_for_name): Remove classification logic.  Instead
4667         filter out trampoline symbols if we also found an external
4668         function of the same name.
4670 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
4672         * NEWS: Create a new section for the next release branch.
4673         Rename the section of the current branch, now that it has
4674         been cut.
4676 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
4678         GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4679         * version.in: Bump version to 11.0.50.DATE-git.
4681 2020-09-12  Joel Brobecker  <brobecker@adacore.com>
4683         * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4685 2020-09-11  Moritz Riesterer  <moritz.riesterer@intel.com>
4686             Felix Willgerodt  <Felix.Willgerodt@intel.com>
4688         * gdbarch.sh: Added bfloat16 type.
4689         * gdbarch.c: Regenerated.
4690         * gdbarch.h: Regenerated.
4691         * gdbtypes.c (floatformats_bfloat16): New struct.
4692         (gdbtypes_post_init): Add builtin_bfloat16.
4693         * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4694         (floatformats_bfloat16): New struct.
4695         * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4696         (i386_ymm_type): Add field "v16_bfloat16"
4697         (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4698         * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4699         * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4700         * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4701         * features/i386/64bit-avx512.xml: Add bfloat16 type.
4702         * features/i386/64bit-avx512.c: Regenerated.
4703         * features/i386/64bit-sse.xml: Add bfloat16 type.
4704         * features/i386/64bit-sse.c: Regenerated.
4706 2020-09-11  Felix Willgerodt  <felix.willgerodt@intel.com>
4708         * i386-tdep.c (i386_zmm_type): Fix field names.
4709         (i386_ymm_type): Fix field names.
4711 2020-09-11  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4713         * breakpoint.c: Fix typo in the help message of the
4714         "set breakpoint condition-evaluation" command.
4716 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4718         * nbsd-nat.c: Include "nat/netbsd-nat.h".
4719         * (nbsd_nat_target::pid_to_exec_file)
4720         (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4721         (nbsd_nat_target::post_startup_inferior)
4722         (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4723         (nbsd_add_threads): Switch local code to common gdb/nat functions.
4724         * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4725         * (nbsd_thread_lister): Remove.
4727 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4729         * fork-inferior.c (startup_inferior): Avoid double free.
4731 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4733         * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4734         * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4736 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4738         * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4739         * netbsd-nat.c: Include <sys/ptrace.h>.
4740         * (netbsd_nat::enable_proc_events): Add.
4742 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4744         * netbsd-nat.h: Include "gdbsupport/function-view.h".
4745         * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4746         (netbsd_nat::for_each_thread): Add.
4747         * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4748         "gdbsupport/common-debug.h".
4749         * (netbsd_nat::netbsd_thread_lister)
4750         (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4751         (netbsd_nat::for_each_thread): Add.
4753 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4755         * netbsd-nat.h: Include <unistd.h>.
4756         * (netbsd_nat::pid_to_exec_file): Add.
4757         * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4758         * (netbsd_nat::pid_to_exec_file) Add.
4760 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4762         * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4764 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4766         * netbsd-nat.h: New file.
4767         * netbsd-nat.c: Likewise.
4769 2020-09-09  Tom Tromey  <tromey@adacore.com>
4771         * ada-lang.c (remove_extra_symbols): Do not increment when
4772         removing an element
4774 2020-09-08  Tom Tromey  <tromey@adacore.com>
4776         * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4778 2020-09-08  Tom Tromey  <tromey@adacore.com>
4780         PR win32/25302:
4781         * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4782         (gdb_bfd_init_data): New function.
4783         (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4785 2020-09-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4787         * infrun.c (fetch_inferior_event): Use
4788         `switch_to_target_no_thread` to switch the target.
4790 2020-09-06  Tom Tromey  <tom@tromey.com>
4792         * symfile.h (dwarf2_free_objfile): Don't declare.
4794 2020-09-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
4796         * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4797         to match 16 byte real/complex type generated by Flang compiler.
4799 2020-09-03  Tom de Vries  <tdevries@suse.de>
4801         PR breakpoint/26546
4802         * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4803         LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4805 2020-09-02  Simon Marchi  <simon.marchi@polymtl.ca>
4807         * maint.c (index_digits): New function.
4808         (struct maint_print_section_data): Remove.
4809         (print_bfd_section_info): Remove print_data parameter, add arg
4810         and index_digits.
4811         (print_objfile_section_info): Likewise.
4812         (print_bfd_section_info_maybe_relocated): Likewise (plus
4813         objfile).
4814         (maintenance_info_sections): Adjust calls.
4816 2020-09-02  Tom Tromey  <tromey@adacore.com>
4818         * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4819         for null pointers.
4820         (ada_varobj_adjust_for_child_access): Special-case null pointers.
4822 2020-09-01  Simon Marchi  <simon.marchi@polymtl.ca>
4824         * bcache.h (struct bcache) <insert>: Change type of `added` to
4825         pointer to bool.
4826         * bcache.c (bcache::insert): Likewise.
4827         * gdbtypes.c (check_types_worklist): Adjust.
4828         * psymtab.c (add_psymbol_to_bcache): Adjust.
4830 2020-08-31  Kevin Buettner  <kevinb@redhat.com>
4832         * corelow.c (unordered_set): Include.
4833         (class core_target): Add field 'm_core_unavailable_mappings'.
4834         (core_target::build_file_mappings): Print only one warning
4835         per inaccessible file.  Add unavailable/broken mappings
4836         to m_core_unavailable_mappings.
4837         (core_target::xfer_partial): Call...
4838         (core_target::xfer_memory_via_mappings): New method.
4840 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
4842         * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4843         type to bool.
4845 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
4847         * dwarf2/read.c (struct field_info): Fix indentation.
4849 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4851         * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4852         ordering in comment.
4853         * frame.c (frame_id_eq): Fix indentation.
4855 2020-08-31  Scott Linder  <scott@scottlinder.com>
4856             Simon Marchi  <simon.marchi@efficios.com>
4858         * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4859         inline frame ids in outer frame.
4861 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4863         * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4864         * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4865         (outer_frame_id): Use FID_STACK_OUTER instead of
4866         FID_STACK_INVALID.
4867         (frame_id_p): Don't check for outer_frame_id.
4869 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4871         * frame-unwind.c (frame_unwind_got_optimized): Don't set
4872         regnum/frame in value.  Call allocate_value_lazy.
4873         * frame.c (frame_unwind_register_value): Use
4874         val_print_not_saved.
4876 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4878         * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4880 2020-08-29  Pedro Alves  <pedro@palves.net>
4882         * progspace.c (print_program_space): Use all_inferiors.  Switch to
4883         the inferior before calling target_pid_to_str.
4885 2020-08-28  Tom Tromey  <tom@tromey.com>
4887         * xcoffread.c (xcoff_end_psymtab): Update comment.
4888         * dbxread.c (dbx_end_psymtab): Update comment.
4890 2020-08-28  Tom de Vries  <tdevries@suse.de>
4892         PR breakpoint/26544
4893         * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4894         event_location.
4895         (create_breakpoint): Same.
4896         (base_breakpoint_decode_location): Same.
4897         (bkpt_create_sals_from_location): Same.
4898         (bkpt_decode_location): Same.
4899         (bkpt_probe_create_sals_from_location): Same.
4900         (bkpt_probe_decode_location): Same.
4901         (tracepoint_create_sals_from_location): Same.
4902         (tracepoint_decode_location): Same.
4903         (tracepoint_probe_decode_location): Same.
4904         (strace_marker_create_sals_from_location): Same.
4905         (strace_marker_decode_location): Same.
4906         (create_sals_from_location_default): Same.
4907         (decode_location_default): Same.
4908         * breakpoint.h (struct breakpoint_ops): Same.
4909         (create_breakpoint): Same.
4910         * linespec.h (decode_line_full): Same.
4911         * linespec.c (decode_line_full): Same.  Throw error if
4912         result.size () == 0.
4914 2020-08-27  Pedro Alves  <pedro@palves.net>
4916         PR gdb/26524
4917         * breakpoint.c (until_break_fsm) <location_breakpoint,
4918         caller_breakpoint>: Delete fields.
4919         <breakpoints>: New field.
4920         <until_break_fsm>: Adjust to save a breakpoint vector instead of
4921         two individual breakpoints.
4922         (until_break_fsm::should_stop): Loop over breakpoints in the
4923         breakpoint vector.
4924         (until_break_fsm::clean_up): Adjust to clear the breakpoints
4925         vector.
4926         (until_break_command): Handle location expanding into multiple
4927         sals.
4929 2020-08-27  Pedro Alves  <pedro@palves.net>
4931         PR gdb/26523
4932         * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4933         bp_until breakpoints user-specified locations.  Update intro
4934         comment.
4936 2020-08-27  Simon Marchi  <simon.marchi@polymtl.ca>
4938         * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4939         gdb_bfd_sections): New.
4940         * maint.c (print_bfd_section_info): Change param type to
4941         maint_print_section_data.
4942         (print_objfile_section_info): Likewise.
4943         (print_bfd_section_info_maybe_relocated): Likewise.
4944         (maintenance_info_sections): Use gdb_bfd_sections.
4946 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4948         * MAINTAINERS: Add ARC target and maintainer.
4950 2020-08-25  Anton Kolesov  <anton.kolesov@synopsys.com>
4952         * configure.tgt: ARC support for GNU/Linux.
4953         * Makefile.in (ALL_TARGET_OBJS): Likewise.
4954         * arc-linux-tdep.c: New file.
4955         * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4956         * arc-tdep.c (arc_write_pc): Use it.
4958 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4960         * arc-tdep.c (arc_check_for_hardware_loop): New.
4961         * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4963 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4965         * arc-tdep.h: Include "gdbarch.h".
4967 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4969         * arch/arc.h
4970         (arc_gdbarch_features): New class to stir the selection of target XML.
4971         (arc_create_target_description): Use FEATURES to choose XML target.
4972         (arc_lookup_target_description): Use arc_create_target_description
4973         to create _new_ target descriptions or return the already created
4974         ones if the FEATURES is the same.
4975         * arch/arc.c: Implementation of prototypes described above.
4976         * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4977         (arc_gdbarch_features_init): Initialize the FEATURES struct.
4978         * arc-tdep.c (*_feature_name): Make feature names consistent.
4979         (arc_register_feature): A new struct to hold information about
4980         registers of a particular target/feature.
4981         (arc_check_tdesc_feature): Check if XML provides registers in
4982         compliance with ARC_REGISTER_FEATURE structs.
4983         (arc_update_acc_reg_names): Add aliases for r58 and r59.
4984         (determine_*_reg_feature_set): Which feature name to look for.
4985         (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4986         (mach_type_to_arc_isa): Convert from a set of binutils machine types
4987         to expected ISA enums to be used in arc_gdbarch_features structs.
4988         * features/Makefile (FEATURE_XMLFILES): Add new files.
4989         * gdb/features/arc/v1-aux.c: New file.
4990         * gdb/features/arc/v1-aux.xml: Likewise.
4991         * gdb/features/arc/v1-core.c: Likewise.
4992         * gdb/features/arc/v1-core.xml: Likewise.
4993         * gdb/features/arc/v2-aux.c: Likewise.
4994         * gdb/features/arc/v2-aux.xml: Likewise.
4995         * gdb/features/arc/v2-core.c: Likewise.
4996         * gdb/features/arc/v2-core.xml: Likewise.
4997         * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4999 2020-08-25  Gaius Mulley  <gaiusmod2@gmail.com>
5000             Andrew Burgess  <andrew.burgess@embecosm.com>
5002         PR m2/26372
5003         * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5004         an assert.  Remove single element array indexing pattern as the
5005         MULTI_SUBSCRIPT support will handle this case too.
5007 2020-08-24  Simon Marchi  <simon.marchi@polymtl.ca>
5009         * value.h (valprint_check_validity): Move declaration from
5010         here...
5011         * valprint.h (valprint_check_validity): ... to here.
5013 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5015         * debug.h: New file.
5016         * debug.c (debug_prefixed_vprintf): New function.
5017         * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5018         * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5020 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5022         * infrun.h (infrun_debug_printf_1): New function declaration.
5023         (infrun_debug_printf): New macro.
5024         * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5025         throughout.
5026         (infrun_debug_printf): New function.
5027         * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5028         (handle_jit_event): Likewise.
5030 2020-08-21  Mark Wielaard  <mark@klomp.org>
5032         * ada-lex.l: Extend register warnings diagnostics comment for g++.
5034 2020-08-22  Simon Marchi  <simon.marchi@efficios.com>
5036         * frame.c (enum class frame_id_status): New.
5037         (struct frame_info) <this_id::p>: Change type to frame_id_status.
5038         (fprintf_frame): Update.
5039         (compute_frame_id): Set frame id status to "computing" on entry.
5040         Set it back to "not_computed" on failure and to "computed" on
5041         success.
5042         (get_frame_id): Assert the frame id is not being computed.
5043         (create_sentinel_frame): Use frame_id_status::COMPUTED.
5044         (create_new_frame): Likewise.
5045         (frame_cleanup_after_sniffer): Update assert.
5047 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5049         * regcache.c (pid_ptid_regcache_map): New type.
5050         (target_ptid_regcache_map): Remove.
5051         (target_pid_ptid_regcache_map): New type.
5052         (regcaches): Change type to target_pid_ptid_regcache_map.
5053         (get_thread_arch_aspace_regcache): Update.
5054         (regcache_thread_ptid_changed): Update, handle pid-like ptid
5055         case.
5056         (regcaches_size): Update.
5057         (regcache_count): Update.
5058         (registers_changed_ptid_target_pid_test): New.
5059         (_initialize_regcache): Register new test.
5061 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5063         * regcache.c (regcache_count): New.
5064         (struct regcache_test_data): New.
5065         (regcache_test_data_up): New.
5066         (populate_regcaches_for_test): New.
5067         (regcaches_test): Remove.
5068         (get_thread_arch_aspace_regcache_test): New.
5069         (registers_changed_ptid_all_test): New.
5070         (registers_changed_ptid_target_test): New.
5071         (registers_changed_ptid_target_ptid_test): New.
5072         (regcache_thread_ptid_changed): Remove regcache_count lambda.
5073         (_initialize_regcache): Register new tests.
5075 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5077         * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5078         (get_thread_arch_aspace_regcache_and_check): ... this.  Remove
5079         gdbarch and aspace parameter.  Use current inferior's aspace.
5080         Validate regcache's arch value.
5081         (regcaches_test): Update.
5083 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5085         * regcache.c (regcaches_test): Call registers_changed.
5087 2020-08-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5089         * infrun.c (process_event_stop_test): Fix typo "breapoint".
5091 2020-08-19  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
5093         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5094         to find the end of prologue for flang compiled binaries.
5095         * arm-tdep.c (arm_skip_prologue): Likewise.
5096         * i386-tdep.c (i386_skip_prologue): Likewise.
5097         * producer.c (producer_is_llvm): New function.
5098         (producer_parsing_tests): Added new tests for clang/flang.
5099         * producer.h (producer_is_llvm): New declaration.
5101 2020-08-18  Simon Marchi  <simon.marchi@efficios.com>
5103         * linux-nat.c (linux_nat_debug_printf): New function.
5104         (linux_nat_debug_printf_1): New macro.  Use throughout the file.
5106 2020-08-18  Aaron Merey  <amerey@redhat.com>
5108         * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5109         (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5110         (CLIBS): Add DEBUGINFOD_LIBS.
5112 2020-08-17  Sergei Trofimovich  <siarheit@google.com>
5114         * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5115         'gdbarch_num_regs'.
5117 2020-08-17  Tom Tromey  <tromey@adacore.com>
5119         * ada-varobj.c (ada_varobj_decode_var): Handle case where
5120         ada_get_decoded_value returns NULL.
5122 2020-08-17  Tom Tromey  <tromey@adacore.com>
5124         * python/py-inferior.c (infpy_search_memory): Use
5125         gdb_py_object_from_ulongest.
5126         * python/py-infevents.c (create_inferior_call_event_object)
5127         (create_memory_changed_event_object): Use
5128         gdb_py_object_from_ulongest.
5129         * python/py-linetable.c (ltpy_entry_get_pc): Use
5130         gdb_py_object_from_ulongest.
5132 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5134         * loc.c (class symbol_needs_eval_context): Fix indentation.
5136 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5138         * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5139         bool.
5141 2020-08-17  Tom de Vries  <tdevries@suse.de>
5143         PR gdb/26393
5144         * gdbtypes.c (dump_dynamic_prop): New function.
5145         (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5147 2020-08-15  Tom de Vries  <tdevries@suse.de>
5149         PR backtrace/26390
5150         * stack.c (print_frame_args): Temporarily set the selected
5151         frame to FRAME while printing the frame's arguments.
5153 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5155         PR breakpoints/26385
5156         * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5157         Always clear watchpoint with PTRACE_SET_DEBUGREG.
5159 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5161         * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5162         (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5163         and >= to check return value instead of == -1 and != -1.
5165 2020-08-14  Simon Marchi  <simon.marchi@polymtl.ca>
5167         * utils.h (class gdb_argv) <as_array_view>: New method.
5168         * utils.c (gdb_argv_as_array_view_test): New.
5169         (_initialize_utils): Register selftest.
5170         * maint.c (maintenance_selftest): Use the new method.
5172 2020-08-13  Kamil Rytarowski  <n54@gmx.com>
5174         * target.h (supports_dumpcore, dumpcore): New
5175         function declarations.
5176         * target.c (supports_dumpcore, dumpcore): New
5177         functions.
5178         * target-delegates.c: Rebuild.
5179         * gcore.c (gcore_command): Use target_supports_dumpcore ()
5180         and target_dumpcore ().
5182 2020-08-13  Aaron Merey  <amerey@redhat.com>
5184         * debuginfod-support.c: Replace global variables with user_data.
5186 2020-08-13  Simon Marchi  <simon.marchi@polymtl.ca>
5188         * maint.c (maintenance_selftest): Split args and pass array_view
5189         to run_tests.
5191 2020-08-12  Luis Machado  <luis.machado@linaro.org>
5193         * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5194         type's length.
5195         Use %s and pulongest to print the length.
5197 2020-08-12  Pedro Alves  <palves@redhat.com>
5199         * NEWS: Move "Multi-target debugging support" item to the
5200         "Changes since GDB 9" section.
5202 2020-08-12  Pedro Alves  <palves@redhat.com>
5204         PR gdb/26336
5205         * progspace.c (program_space::remove_objfile): Invalidate the
5206         frame cache.
5208 2020-08-11  Tom de Vries  <tdevries@suse.de>
5210         * MAINTAINERS: Mark ms1 as deleted.
5212 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5214         PR gdb/26310
5216         * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5217         act accordingly.
5218         (aarch64_analyze_prologue_test): Add more unit tests to exercise
5219         movz/str/stur/stp skipping behavior.
5221 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5223         * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5224         struct user_sve_header instead of struct sve_context.
5226 2020-08-09  Simon Marchi  <simon.marchi@polymtl.ca>
5228         * read.h (dwarf2_fetch_die_loc_sect_off,
5229         dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5230         `void *` parameter with function_view.
5231         * read.c (dwarf2_fetch_die_loc_sect_off,
5232         dwarf2_fetch_die_loc_cu_off): Likewise.
5233         * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5234         (per_cu_dwarf_call): Adjust.
5235         (get_frame_address_in_block_wrapper): Remove.
5236         (indirect_synthetic_pointer): Adjust.
5237         (get_ax_pc): Remove.
5238         (dwarf2_compile_expr_to_ax): Adjust.
5240 2020-08-08  Tom de Vries  <tdevries@suse.de>
5242         PR build/26344
5243         * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5244         constructor.
5245         * regcache.c (get_thread_arch_aspace_regcache): Same.
5247 2020-08-07  Tom Tromey  <tromey@adacore.com>
5249         * ravenscar-thread.c
5250         (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5251         New method.
5252         (ravenscar_thread_target::wait): Check
5253         runtime_initialized.
5254         (ravenscar_thread_target::prepare_to_store)
5255         (ravenscar_thread_target::stopped_by_sw_breakpoint)
5256         (ravenscar_thread_target::stopped_by_hw_breakpoint)
5257         (ravenscar_thread_target::stopped_by_watchpoint)
5258         (ravenscar_thread_target::stopped_data_address)
5259         (ravenscar_thread_target::core_of_thread): Use
5260         scoped_restore_current_thread and
5261         set_base_thread_from_ravenscar_task.
5263 2020-08-07  Tom Tromey  <tromey@adacore.com>
5265         * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5267 2020-08-07  Tom Tromey  <tromey@adacore.com>
5269         * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5270         update_inferior_ptid before update_thread_list.
5271         (temporarily_change_regcache_ptid): New class.
5272         (ravenscar_thread_target::fetch_registers)
5273         (ravenscar_thread_target::store_registers)
5274         (ravenscar_thread_target::prepare_to_store): Use base thread when
5275         forwarding operation.
5277 2020-08-07  Tom Tromey  <tromey@adacore.com>
5279         * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5280         "is_pid" case.
5282 2020-08-07  Tom Tromey  <tromey@adacore.com>
5284         * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5285         New methods.
5286         (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5287         first.
5288         (ravenscar_thread_target::add_thread): Rename from
5289         ravenscar_add_thread.
5290         (ravenscar_thread_target::update_thread_list): Use a lambda.
5291         (ravenscar_thread_target::xfer_partial): New method.
5293 2020-08-07  Tom Tromey  <tromey@adacore.com>
5295         * ada-lang.h (ada_task_list_iterator_ftype): Now a
5296         gdb::function_view.
5297         (iterate_over_live_ada_tasks): Change type of argument.
5298         * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5299         of argument.
5301 2020-08-07  Tom Tromey  <tromey@adacore.com>
5303         * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5304         Remove.
5305         (ravenscar_thread_target::extra_thread_info): Remove.
5306         (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5307         defer to target beneath for non-Ravenscar threads.
5309 2020-08-07  Tom Tromey  <tromey@adacore.com>
5311         * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5312         get_base_thread_from_ravenscar_task>: Now methods.
5313         <m_cpu_map>: New member.
5314         (ravenscar_thread_target::get_thread_base_cpu): Rename from
5315         ravenscar_get_thread_base_cpu.  Check m_cpu_map.
5316         (ravenscar_thread_target::task_is_currently_active): Update.
5317         (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5318         Now a method.
5319         (ravenscar_thread_target::add_active_thread): Put initial thread
5320         into the m_cpu_map.
5322 2020-08-07  Tom Tromey  <tromey@adacore.com>
5324         * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5325         event_ptid.
5327 2020-08-07  Tom Tromey  <tromey@adacore.com>
5329         * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5330         runtime_initialized.
5332 2020-08-07  Tom Tromey  <tromey@adacore.com>
5334         * ravenscar-thread.c (ravenscar_thread_target): Don't call
5335         add_active_thread.
5336         (ravenscar_thread_target::add_active_thread): Now public.
5337         (ravenscar_inferior_created): Call add_active_thread after pushing
5338         the target.
5340 2020-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
5342         * regcache.c (ptid_regcache_map): New type.
5343         (target_ptid_regcache_map): New type.
5344         (regcaches): Change type to target_ptid_regcache_map.
5345         (get_thread_arch_aspace_regcache): Update to regcaches' new
5346         type.
5347         (regcache_thread_ptid_changed): Likewise.
5348         (registers_changed_ptid): Likewise.
5349         (regcaches_size): Likewise.
5350         (regcaches_test): Update.
5351         (regcache_thread_ptid_changed): Update.
5352         * regcache.h (regcache_up): New type.
5353         * gdbsupport/ptid.h (hash_ptid): New struct.
5355 2020-08-07  Simon Marchi  <simon.marchi@efficios.com>
5357         * observable.h (thread_ptid_changed): Add parameter
5358         `process_stratum_target *`.
5359         * infrun.c (infrun_thread_ptid_changed): Add parameter
5360         `process_stratum_target *` and use it.
5361         (selftests): New namespace.
5362         (infrun_thread_ptid_changed): New function.
5363         (_initialize_infrun): Register selftest.
5364         * regcache.c (regcache_thread_ptid_changed): Add parameter
5365         `process_stratum_target *` and use it.
5366         (regcache_thread_ptid_changed): New function.
5367         (_initialize_regcache): Register selftest.
5368         * thread.c (thread_change_ptid): Pass target to
5369         thread_ptid_changed observable.
5371 2020-08-06  Caroline Tice <cmtice@google.com>
5373         * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5374         (struct dwp_sections): Update field comments.  Add loclists and
5375         rnglists fields.
5376         (struct virtual_v2_dwo_sections): Rename struct to
5377         'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5378         size & offset fields for loclists and rnglists.
5379         (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5380         (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5381         skipping dummy type units.
5382         (create_dwp_hash_table): Update the large comment above the function to
5383         discuss Version 5 DWP files as well, with references.  Update all the
5384         version checks in the function to check for version 5 as well.  Add new
5385         section at the end to create dwp hash table for version 5.
5386         (create_dwp_v2_section): Rename function to
5387         'create_dwp_v2_or_v5_section'.  Update function comment appropriately.
5388         Add V5 to error message text.
5389         (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5390         into calls to create_dwp_v2_or_v5_section.
5391         (create_dwo_unit_in_dwp_v5): New function.
5392         (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5393         check for version2; add else clause to handle version 5.
5394         (open_and_init_dwo_file): Add code to check dwarf version & only call
5395         create_debug_types_hash_table (with sections.types) if version is not 5;
5396         else call create_debug_type_hash_table, with sections.info.
5397         (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5398         version 5.
5399         (dwarf2_locate_v5_dwp_sections): New function.
5400         (open_and_init_dwp_file): Add else-if clause for version 5 to call
5401         bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5403 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
5405         * regcache.h (class regcache): Remove friend
5406         registers_changed_ptid.
5407         <regcache_thread_ptid_changed>: Remove.
5408         <regcaches>: Remove.
5409         * regcache.c (regcache::regcaches): Rename to...
5410         (regcaches): ... this.  Make static.
5411         (get_thread_arch_aspace_regcache): Update.
5412         (regcache::regcache_thread_ptid_changed): Rename to...
5413         (regcache_thread_ptid_changed): ... this.  Update.
5414         (class regcache_access): Remove.
5415         (regcaches_test): Update.
5416         (_initialize_regcache): Update.
5417         * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5418         <forward_list>.
5420 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
5422         * regcache.h (class regcache) <current_regcache>: Rename to...
5423         <regcaches>: ... this.  Move doc here.
5424         * regcache.c (regcache::current_regcache) Rename to...
5425         (regcache::regcaches): ... this.  Move doc to header.
5426         (get_thread_arch_aspace_regcache): Update.
5427         (regcache::regcache_thread_ptid_changed): Update.
5428         (registers_changed_ptid): Update.
5429         (class regcache_access) <current_regcache_size>: Rename to...
5430         <regcaches_size>: ... this.
5431         (current_regcache_test): Rename to...
5432         (regcaches_test): ... this.
5433         (_initialize_regcache): Update.
5435 2020-08-06  Victor Collod  <vcollod@nvidia.com>
5437         * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5439 2020-08-05  Kevin Buettner  <kevinb@redhat.com>
5441         * corelow.c (core_target::build_file_mappings): Don't output
5442         null pathname in warning.
5444 2020-08-05  Simon Marchi  <simon.marchi@polymtl.ca>
5446         * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5447         gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5448         gdb.dwarf2/dw2-single-line-discriminators.exp,
5449         dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5451 2020-08-05  Tom Tromey  <tromey@adacore.com>
5453         PR rust/26197:
5454         * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5455         (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5456         Fix off-by-one and type size errors in ordinary case.
5458 2020-08-05  Tom de Vries  <tdevries@suse.de>
5460         * gdbtypes.c (type_not_allocated, type_not_associated): Use
5461         "prop->const_val () == 0" instead of "prop->const_val () != 0".
5463 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
5465         * frame.h (frame_id_p): Return bool.
5466         (frame_id_artificial_p): Return bool.
5467         (frame_id_eq): Return bool.
5468         (has_stack_frames): Return bool.
5469         (get_selected_frame): Fix typo in comment.
5470         (get_frame_pc_if_available): Return bool.
5471         (get_frame_address_in_block_if_available): Return bool.
5472         (get_frame_func_if_available): Return bool.
5473         (read_frame_register_unsigned): Return bool.
5474         (get_frame_register_bytes): Return bool.
5475         (safe_frame_unwind_memory): Return bool.
5476         (deprecated_frame_register_read): Return bool.
5477         (frame_unwinder_is): Return bool.
5478         * frame.c (struct frame_info) <prev_arch::p>: Change type to
5479         bool.
5480         <this_id::p>: Likewise.
5481         <prev_p>: Likewise.
5482         (frame_stash_add): Return bool.
5483         (get_frame_id): Use bool.
5484         (frame_id_build_special) Use bool.
5485         (frame_id_build_unavailable_stack): Use bool.
5486         (frame_id_build): Use bool.
5487         (frame_id_p): Return bool, use true/false instead of 1/0.
5488         (frame_id_artificial_p): Likewise.
5489         (frame_id_eq): Likewise.
5490         (frame_id_inner): Likewise.
5491         (get_frame_func_if_available): Likewise.
5492         (read_frame_register_unsigned): Likewise.
5493         (deprecated_frame_register_read): Likewise.
5494         (get_frame_register_bytes): Likewise.
5495         (has_stack_frames): Likewise.
5496         (inside_main_func): Likewise.
5497         (inside_entry_func): Likewise.
5498         (get_frame_pc_if_available): Likewise.
5499         (get_frame_address_in_block_if_available): Likewise.
5500         (frame_unwinder_is): Likewise.
5501         (safe_frame_unwind_memory): Likewise.
5502         (frame_unwind_arch): Likewise.
5504 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
5506         * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5507         type to cached_copy_status.
5508         (fprintf_frame): Adjust.
5509         (get_frame_func_if_available): Adjust.
5510         (frame_cleanup_after_sniffer): Adjust.
5512 2020-08-04  Mark Wielaard  <mark@klomp.org>
5514         * MAINTAINERS (Write After Approval): Update email address.
5516 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5518         * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5519         dynamic_prop::const_val.
5521 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5523         * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5524         dynamic_prop::kind.
5526 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5528         * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5530 2020-08-04  Jose E. Marchesi  <jose.marchesi@oracle.com>
5532         * configure.tgt: Set gdb_sim for bpf-*-* targets.
5534 2020-08-04  Weimin Pan <weimin.pan@oracle.com>
5535             Jose E. Marchesi  <jose.marchesi@oracle.com>
5537         * configure.tgt: Add entry for bpf-*-*.
5538         * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5539         (ALLDEPFILES): Add bpf-tdep.c.
5540         * bpf-tdep.c: New file.
5541         * MAINTAINERS: Add bpf target and maintainer.
5542         * NEWS: Mention the support for the new target.
5544 2020-08-04  Tom de Vries  <tdevries@suse.de>
5546         PR symtab/23270
5547         * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5548         Error.
5550 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
5552         * syscalls/freebsd.xml: Regenerate.
5554 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
5556         * syscalls/update-freebsd.sh: Fix usage and year range.
5558 2020-08-03  Tom de Vries  <tdevries@suse.de>
5560         PR symtab/26333
5561         * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5562         DW_LNE_lo_user/DW_LNE_hi_user range.
5564 2020-07-30  Simon Marchi  <simon.marchi@polymtl.ca>
5566         PR ada/26318
5567         * ada-lang.c (ada_modulus): Return 0 if property is not of const
5568         kind.
5570 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5572         * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5574 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5576         * breakpoint.c (set_breakpoint_condition): Update the condition
5577         expressions after checking that the input condition string parses
5578         successfully and does not contain junk at the end.
5580 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5582         * breakpoint.c (set_breakpoint_condition): Update the
5583         condition string after parsing the new condition successfully.
5585 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5587         * proc-api.c (_STRUCTURED_PROC): Don't define.
5588         * proc-events.c: Likewise.
5589         * proc-flags.c: Likewise.
5590         * proc-why.c: Likewise.
5591         * procfs.c: Likewise.
5593         * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5594         * configure, config.in: Regenerate.
5596 2020-07-30  Tom de Vries  <tdevries@suse.de>
5598         PR build/26320
5599         * ui-style.h (struct ui_file_style::color): Wrap m_value and
5600         m_red/m_green/m_blue in a union.
5602 2020-07-29  Tom de Vries  <tdevries@suse.de>
5604         PR tdep/26280
5605         * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5607 2020-07-28  Tom Tromey  <tromey@adacore.com>
5609         PR symtab/26270:
5610         * symtab.h (find_pc_partial_function_sym): Declare.
5611         * cli/cli-cmds.c (disassemble_command): Use
5612         find_pc_partial_function_sym.  Check asm_demangle.
5613         * blockframe.c (cache_pc_function_sym): New global.
5614         (cache_pc_function_name): Remove.
5615         (clear_pc_function_cache): Update.
5616         (find_pc_partial_function_sym): New function, from
5617         find_pc_partial_function.
5618         (find_pc_partial_function): Rewrite using
5619         find_pc_partial_function_sym.
5621 2020-07-28  Tom Tromey  <tromey@adacore.com>
5623         * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5624         help.  Add usage.
5626 2020-07-28  Tom Tromey  <tromey@adacore.com>
5628         * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5629         <DW_OP_GNU_variable_value>: Cast to address type.
5631 2020-07-28  Kamil Rytarowski  <n54@gmx.com>
5633         * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5634         * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5635         * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5636         (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5637         (nbsd_get_siginfo_type): New.
5638         (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5639         (_initialize_nbsd_tdep): New.
5641 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5643         PR binutils/26301
5644         * configure: Regenerated.
5646 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5648         PR binutils/26301
5649         * configure: Regenerated.
5651 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
5653         * python/py-frame.c: Remove 'user-regs.h' include.
5654         (frapy_read_register): Rewrite to make use of
5655         gdbpy_parse_register_id.
5656         * python/py-registers.c (gdbpy_parse_register_id): New function,
5657         moved here from python/py-unwind.c.  Updated the return type, and
5658         also accepts register descriptor objects.
5659         * python/py-unwind.c: Remove 'user-regs.h' include.
5660         (pyuw_parse_register_id): Moved to python/py-registers.c.
5661         (unwind_infopy_add_saved_register): Update to use
5662         gdbpy_parse_register_id.
5663         (pending_framepy_read_register): Likewise.
5664         * python/python-internal.h (gdbpy_parse_register_id): Declare.
5666 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
5668         * python/py-registers.c: Add 'user-regs.h' include.
5669         (register_descriptor_iter_find): New function.
5670         (register_descriptor_iterator_object_methods): New static global
5671         methods array.
5672         (register_descriptor_iterator_object_type): Add pointer to methods
5673         array.
5675 2020-07-27  John Baldwin  <jhb@FreeBSD.org>
5677         * fbsd-nat.h: Include <osreldate.h>.  Define USE_SIGTRAP_SIGINFO
5678         for all architectures on FreeBSD 11.3 and later.
5680 2020-07-27  Tom Tromey  <tromey@adacore.com>
5682         * gcore.h (load_corefile): Don't declare.
5684 2020-07-27  Tom de Vries  <tdevries@suse.de>
5686         * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5687         * config.in: Regenerate.
5688         * configure: Regenerate.
5690 2020-07-26  Eli Zaretskii  <eliz@gnu.org>
5692         * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5693         ws2tcpip.h.  When checking whether socklen_t type is defined, use
5694         ws2tcpip.h if it is available and sys/socket.h isn't.
5695         * configure: Regenerate.
5696         * config.in: Regenerate.
5698 2020-07-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5700         PR fortran/23051
5701         PR fortran/26139
5702         * valops.c (value_ind): Pass address to
5703         readjust_indirect_value_type.
5704         * value.c (readjust_indirect_value_type): Make parameter
5705         non-const, and add extra address parameter.  Resolve original type
5706         before using it.
5707         * value.h (readjust_indirect_value_type): Update function
5708         signature and comment.
5710 2020-07-25  Tom de Vries  <tdevries@suse.de>
5712         PR symtab/26243
5713         * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5714         entries.
5716 2020-07-24  Aaron Merey  <amerey@redhat.com>
5718         * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5719         * configure: Rebuild.
5721 2020-07-23  Kevin Buettner  <kevinb@redhat.com>
5723         PR corefiles/26294
5724         * corelow.c (_initialize_corelow): Add period to help text
5725         for "maintenance print core-file-backed-mappings".
5727 2020-07-23  Pedro Alves  <pedro@palves.net>
5729         * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5730         touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5731         meanwhile.
5732         * frame.c (frame_cache_generation, get_frame_cache_generation):
5733         New.
5734         (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5735         (get_prev_frame_if_no_cycle): On exception, don't touch
5736         PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5737         * frame.h (get_frame_cache_generation): Declare.
5739 2020-07-23  Tom de Vries  <tdevries@suse.de>
5741         PR tui/26282
5742         * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5743         New default constructor.
5745 2020-07-23  Andrew Burgess  <andrew.burgess@embecosm.com>
5747         * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5748         exclude non-statement entries.
5750 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5752         * NEWS (New commands): Mention new command
5753         "maintenance print core-file-backed-mappings".
5755 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5757         * corelow.c (gdbcmd.h): Include.
5758         (core_target::info_proc_mappings): New method.
5759         (get_current_core_target): New function.
5760         (maintenance_print_core_file_backed_mappings): New function.
5761         (_initialize_corelow): Add core-file-backed-mappings to
5762         "maint print" commands.
5764 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5766         * linux-tdep.c (dump_note_entry_p): New function.
5767         (linux_dump_mapping_p_ftype): New typedef.
5768         (linux_find_memory_regions_full): Add new parameter,
5769         should_dump_mapping_p.
5770         (linux_find_memory_regions): Adjust call to
5771         linux_find_memory_regions_full.
5772         (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5773         call to linux_find_memory_regions_full.
5775 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5777         * corelow.c (solist.h, unordered_map): Include.
5778         (class core_target): Add field m_core_file_mappings and
5779         method build_file_mappings.
5780         (core_target::core_target): Call build_file_mappings.
5781         (core_target::~core_target): Free memory associated with
5782         m_core_file_mappings.
5783         (core_target::build_file_mappings): New method.
5784         (core_target::xfer_partial): Use m_core_file_mappings
5785         for memory transfers.
5786         * linux-tdep.c (linux_read_core_file_mappings): New
5787         function.
5788         (linux_core_info_proc_mappings): Rewrite to use
5789         linux_read_core_file_mappings.
5790         (linux_init_abi): Register linux_read_core_file_mappings.
5792 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5794         * arch-utils.c (default_read_core_file_mappings): New function.
5795         * arch-utils.c (default_read_core_file_mappings): Declare.
5796         * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5797         * gdbarch.h, gdbarch.c: Regenerate.
5799 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5801         PR corefiles/25631
5802         * corelow.c (core_target:xfer_partial):  Revise
5803         TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5804         case after first checking the stratum beneath the core
5805         target.
5806         (has_all_memory): Return true.
5807         * target.c (raw_memory_xfer_partial): Revise comment
5808         regarding use of has_all_memory.
5810 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5812         * exec.h (section_table_xfer_memory): Revise declaration,
5813         replacing section name parameter with an optional callback
5814         predicate.
5815         * exec.c (section_table_xfer_memory): Likewise.
5816         * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5817         of section_table_xfer_memory.
5819 2020-07-22  Tom Tromey  <tromey@adacore.com>
5821         * mi/mi-cmd-stack.c (list_args_or_locals): Use
5822         lookup_symbol_search_name.
5824 2020-07-22  Andrew Burgess  <andrew.burgess@embecosm.com>
5826         * python/py-registers.c (gdbpy_register_object_data_init): Remove
5827         redundant local variable.
5828         (gdbpy_get_register_descriptor): Extract descriptor vector as a
5829         reference, not pointer, update code accordingly.
5831 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5832             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5834         * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5835         * jit.c (jit_breakpoint_re_set_internal): Use the
5836         `skip_jit_symbol_lookup` field.
5838 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5839             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5841         * jit.c (jit_read_descriptor): Define the descriptor address once,
5842         use twice.
5843         (jit_breakpoint_deleted): Move the declaration of the loop variable
5844         `iter` into the loop header.
5845         (jit_breakpoint_re_set_internal): Move the declaration of the local
5846         variable `objf_data` to the first point of definition.
5847         (jit_event_handler): Move the declaration of local variables
5848         `code_entry`, `entry_addr`, and `objf` to their first point of use.
5849         Rename `objf` to `jited`.
5851 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5853         * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5854         Remove.
5855         * jit.c (get_jiter_objfile_data): Update.
5857 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5858             Simon Marchi  <simon.marchi@polymtl.ca>
5860         * jit.c (struct jit_program_space_data): Remove.
5861         (jit_program_space_key): Remove.
5862         (jiter_objfile_data::~jiter_objfile_data): Remove program space
5863         stuff.
5864         (get_jit_program_space_data): Remove.
5865         (jit_breakpoint_deleted): Iterate on all of the program space's
5866         objfiles.
5867         (jit_inferior_init): Likewise.
5868         (jit_breakpoint_re_set_internal): Likewise.  Also change return
5869         type to void.
5870         (jit_breakpoint_re_set): Pass current_program_space to
5871         jit_breakpoint_re_set_internal.
5873 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5875         * jit.h (struct jiter_objfile_data) <cached_code_address,
5876         jit_breakpoint>: Move to here from ...
5877         * jit.c (jit_program_space_data): ... here.
5878         (jiter_objfile_data::~jiter_objfile_data): Update.
5879         (jit_breakpoint_deleted): Update.
5880         (jit_breakpoint_re_set_internal): Update.
5882 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5884         * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5885         checks.
5886         (jit_read_descriptor): Remove NULL check.
5887         (jit_event_handler): Add an assertion.
5889 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5891         * jit.h (struct jit_objfile_data):  Split into...
5892         (struct jiter_objfile_data): ... this ...
5893         (struct jited_objfile_data): ... and this.
5894         * objfiles.h (struct objfile) <jit_data>: Remove.
5895         <jiter_data, jited_data>: New fields.
5896         * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5897         (jiter_objfile_data::~jiter_objfile_data): ... this.
5898         (get_jit_objfile_data): Rename to ...
5899         (get_jiter_objfile_data): ... this.
5900         (add_objfile_entry): Update.
5901         (jit_read_descriptor): Use get_jiter_objfile_data.
5902         (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5903         (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5904         (jit_inferior_exit_hook): Use objfile's jited_data field.
5906 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5908         * jit.h: Forward-declare `struct minimal_symbol`.
5909         (struct jit_objfile_data): Migrate to here from jit.c; also add a
5910         constructor, destructor, and an objfile* field.
5911         * jit.c (jit_objfile_data): Remove.
5912         (struct jit_objfile_data): Migrate from here to jit.h.
5913         (jit_objfile_data::~jit_objfile_data): New destructor
5914         implementation with code moved from free_objfile_data.
5915         (free_objfile_data): Delete.
5916         (get_jit_objfile_data): Update to use the jit_data field of objfile.
5917         (jit_find_objf_with_entry_addr): Ditto.
5918         (jit_inferior_exit_hook): Ditto.
5919         (_initialize_jit): Remove the call to
5920         register_objfile_data_with_cleanup.
5921         * objfiles.h (struct objfile) <jit_data>: New field.
5923 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5925         * jit.h: Forward-declare `struct objfile`.
5926         (jit_event_handler): Add a second parameter, the JITer objfile.
5927         * jit.c (jit_read_descriptor): Change the signature to take the
5928         JITer objfile as an argument instead of the jit_program_space_data.
5929         (jit_inferior_init): Update the call to jit_read_descriptor.
5930         (jit_event_handler): Use the new JITer objfile argument when calling
5931         jit_read_descriptor.
5932         * breakpoint.c (handle_jit_event): Update the call to
5933         jit_event_handler to pass the JITer objfile.
5935 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5937         * gdbarch.c: Regenerate.
5938         * gdbarch.h: Regenerate.
5939         * gdbarch.sh (handle_segmentation_fault): Remove method.
5940         * infrun.c (handle_segmentation_fault): Remove.
5941         (print_signal_received_reason): Remove call to
5942         handle_segmentation_fault.
5944 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5946         * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5947         Rename to sparc64_linux_report_signal_info and add siggnal
5948         argument.
5949         (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5950         instead of sparc64_linux_handle_segmentation_fault.
5952 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5954         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5955         i386_linux_report_signal_info instead of
5956         i386_linux_handle_segmentation_fault.
5957         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5958         to i386_linux_report_signal_info and add siggnal argument.
5959         (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5960         of i386_linux_handle_segmentation_fault.
5961         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5962         to i386_linux_report_signal_info and add siggnal argument.
5964 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5966         * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5967         hook if present.
5969 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5971         * gdbarch.c: Regenerate.
5972         * gdbarch.h: Regenerate.
5973         * gdbarch.sh (report_signal_info): New method.
5974         * infrun.c (print_signal_received_reason): Invoke gdbarch
5975         report_signal_info hook if present.
5977 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5979         * python/py-registers.c : Add 'unordered_map' include.
5980         (gdbpy_new_reggroup): Renamed to...
5981         (gdbpy_get_reggroup): ...this.  Update to only create register
5982         group descriptors when needed.
5983         (gdbpy_reggroup_iter_next): Update.
5985 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5987         * python/py-registers.c (gdbpy_register_object_data): New static
5988         global.
5989         (gdbpy_register_object_data_init): New function.
5990         (gdbpy_new_register_descriptor): Renamed to...
5991         (gdbpy_get_register_descriptor): ...this, and update to reuse
5992         existing register descriptors where possible.
5993         (gdbpy_register_descriptor_iter_next): Update.
5994         (gdbpy_initialize_registers): Register new gdbarch data.
5996 2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
5998         * linux-nat.c (stopped_pids): Make static.
6000 2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
6002         PR ada/26235
6003         * gdbtypes.c (ada_discrete_type_low_bound,
6004         ada_discrete_type_high_bound): Handle undefined bounds.
6006 2020-07-21  Kamil Rytarowski  <n54@gmx.com>
6008         * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6009         declaration.
6010         * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6011         function.
6013 2020-07-20  John Baldwin  <jhb@FreeBSD.org>
6015         * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6016         (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6017         * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6018         * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6019         (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6020         method.
6022 2020-07-20 Ludovic Courtès  <ludo@gnu.org>
6024         * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6025         and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6026         which are deprecated in Guile 3.0.
6027         * configure.ac (try_guile_versions): Add "guile-3.0".
6028         * configure (try_guile_versions): Regenerate.
6029         * NEWS: Update entry.
6031 2020-07-20  Ludovic Courtès  <ludo@gnu.org>
6032             Doug Evans  <dje@google.com>
6034         PR gdb/21104
6035         * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6036         (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6037         USING_GUILE_BEFORE_2_2.
6038         (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6039         Change type to 'scm_t_port_type *'.
6040         (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6041         (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6042         parameter and honor it.  Update callers.
6043         (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6044         (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6045         functions.
6046         (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6047         USING_GUILE_BEFORE_2_2.
6048         (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6049         'ioscm_read_from_port'.  Call 'scm_set_port_read_wait_fd'.
6050         (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6051         (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6052         and 'SCM_PORT_TYPE'.
6053         (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6054         (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6055         (gdbscm_memory_port_read, gdbscm_memory_port_write)
6056         (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6057         [!USING_GUILE_BEFORE_2_2]: New functions.
6058         (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6059         (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6060         'gdbscm_memory_port_read'.
6061         Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6062         'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6063         (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6064         function.
6065         (ioscm_init_memory_port): Remove.
6066         (ioscm_init_memory_port_stream): New function
6067         (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6068         function.
6069         (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6070         Return scm_from_uint (0).
6071         (gdbscm_set_memory_port_read_buffer_size_x)
6072         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6073         (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6074         Return scm_from_uint (0).
6075         (gdbscm_set_memory_port_write_buffer_size_x)
6076         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6077         * configure.ac (try_guile_versions): Add "guile-2.2".
6078         * configure: Regenerate.
6079         * NEWS: Add entry.
6081 2020-07-18  Tom Tromey  <tom@tromey.com>
6083         * linux-nat.c (linux_multi_process): Remove.
6084         (linux_nat_target::supports_multi_process): Return true.
6086 2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
6088         * arch/riscv.c (riscv_tdesc_cache): Change map type.
6089         (riscv_lookup_target_description): Return pointer out of
6090         unique_ptr.
6091         * target-descriptions.c (allocate_target_description): Add
6092         comment.
6093         (target_desc_deleter::operator()): Likewise.
6094         * target-descriptions.h (struct target_desc_deleter): Moved to
6095         gdbsupport/tdesc.h.
6096         (target_desc_up): Likewise.
6098 2020-07-17  Tom Tromey  <tromey@adacore.com>
6100         * linux-nat.c (linux_nat_target::supports_non_stop)
6101         (linux_nat_target::always_non_stop_p): Use "true".
6102         (linux_nat_target::supports_disable_randomization): Use "true" and
6103         "false".
6105 2020-07-16  Caroline Tice  <cmtice@google.com>
6107         * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6108         (RNGLIST_HEADER_SIZE64): New constant definition.
6109         (struct dwop_section_names): Add rnglists_dwo.
6110         (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6111         (struct loclist_header): Rename to 'loclists_rnglists_header'.
6112         (struct dwo_sections): Add rnglists field.
6113         (read_attribut_reprocess): Add tag parameter.
6114         (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6115         (cu_debug_rnglists_section): New function (decl & definition).
6116         (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6117         (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6118         die whose range is being checked; get rnglist section from
6119         cu_debug_rnglists_section, to get from either objfile or dwo file as
6120         appropriate.  Add cases for DW_RLE_base_addressx,
6121         DW_RLE_startx_length, DW_RLE_startx_endx.  Also, update to only add
6122         the base address to DW_RLE_offset_pairs (not to all ranges), moving
6123         test inside if-condition and updating complaint message.
6124         (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6125         dwarf2_rnglists_process.
6126         (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6127         dwarf2_ranges_process.
6128         (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6129         need_ranges_base and update comment appropriately.  Also pass die tag
6130         to dwarf2_ranges_read.
6131         (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6132         need_ranges_base and update comment appropriately.  Also pass die tag
6133         to dwarf2_ranges_process.
6134         (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6135         cu->ranges_base.  Also pass die tag to read_attribute_reprocess.
6136         (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6137         need_ranges_base and update comment appropriately.  Also pass die tag
6138         to read_attribute_reprocess and dwarf2_ranges_read.
6139         (read_loclist_header): Rename function to read_loclists_rnglists_header,
6140         and update function comment appropriately.
6141         (read_loclist_index): Call read_loclists_rnglists_header instead of
6142         read_loclist_header.
6143         (read_rnglist_index): New function.
6144         (read_attribute_reprocess):  Add tag parameter. Add code for
6145         DW_FORM_rnglistx, passing tag to read_rnglist_index.
6146         (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6148 2020-07-15  Andrew Burgess  <andrew.burgess@embecosm.com>
6150         * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6151         being resolved.
6153 2020-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
6155         * arch-utils.c (show_architecture): Update formatting of messages.
6157 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6159         * gdbtypes.h (struct type) <bounds>: Handle array and string
6160         types.
6161         * ada-lang.c (assign_aggregate): Use type::bounds on
6162         array/string type.
6163         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6164         * c-varobj.c (c_number_of_children): Likewise.
6165         (c_describe_child): Likewise.
6166         * eval.c (evaluate_subexp_for_sizeof): Likewise.
6167         * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6168         (f_type_print_base): Likewise.
6169         * f-valprint.c (f77_array_offset_tbl): Likewise.
6170         (f77_get_upperbound): Likewise.
6171         (f77_print_array_1): Likewise.
6172         * guile/scm-type.c (gdbscm_type_range): Likewise.
6173         * m2-typeprint.c (m2_array): Likewise.
6174         (m2_is_long_set_of_type): Likewise.
6175         * m2-valprint.c (get_long_set_bounds): Likewise.
6176         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6177         * python/py-type.c (typy_range): Likewise.
6178         * rust-lang.c (rust_internal_print_type): Likewise.
6179         * type-stack.c (type_stack::follow_types): Likewise.
6180         * valarith.c (value_subscripted_rvalue): Likewise.
6181         * valops.c (value_cast): Likewise.
6183 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6185         * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove.  Update all
6186         callers to use the equivalent accessor methods.
6188 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6190         * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6191         (struct type) <bit_stride>: New method.
6192         (TYPE_BIT_STRIDE): Remove.
6193         * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6195 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6197         * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6198         TYPE_ARRAY_UPPER_BOUND_VALUE): Remove.  Update all
6199         callers to use the equivalent accessor methods instead.
6201 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6203         * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6204         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove.  Update all
6205         callers to use the equivalent accessor methods instead.
6207 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6209         * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6210         TYPE_HIGH_BOUND_KIND): Remove.  Update all callers
6211         to use dynamic_prop::kind.
6213 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6215         * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6216         TYPE_HIGH_BOUND_UNDEFINED): Remove.  Update all callers
6217         to get the bound property's kind and check against
6218         PROP_UNDEFINED.
6220 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6222         * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove.  Update
6223         all callers to use type::range_bounds followed by
6224         dynamic_prop::{low,high}.
6226 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6228         * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6229         const_val, set_const_val, baton, set_locexpr, set_loclist,
6230         set_addr_offset, variant_parts, set_variant_parts,
6231         original_type, set_original_type>: New methods.
6232         <kind>: Rename to...
6233         <m_kind>: ... this.  Update all users to use the new methods
6234         instead.
6235         <data>: Rename to...
6236         <m_data>: ... this.  Update all users to use the new methods
6237         instead.
6239 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6241         * gdbtypes.c (get_discrete_bounds): Return failure if
6242         the range type's bounds are not both defined and constant
6243         values.
6244         (get_array_bounds): Update comment.  Remove undefined bound check.
6246 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6248         * gdbtypes.h (TYPE_RANGE_DATA): Remove.  Update callers to use
6249         the type::bounds method directly.
6251 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6253         * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6254         (TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
6255         are used to set the range type's bounds to use set_bounds.
6257 2020-07-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6259         * exec.c (_initialize_exec): Update exec-file-mismatch help.
6261 2020-07-10  Pedro Alves  <pedro@palves.net>
6263         * gdbthread.h (inferior_ref): Define.
6264         (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6265         (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6266         * thread.c
6267         (scoped_restore_current_thread::restore):
6268         Adjust to gdb::ref_ptr.
6269         (scoped_restore_current_thread::~scoped_restore_current_thread):
6270         Remove manual decref handling.
6271         (scoped_restore_current_thread::scoped_restore_current_thread):
6272         Adjust to use
6273         inferior_ref::new_reference/thread_info_ref::new_reference.
6274         Incref the thread before calling get_frame_id instead of after.
6275         Let TARGET_CLOSE_ERROR propagate.
6277 2020-07-10  Pedro Alves  <pedro@palves.net>
6279         * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6280         NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6281         NOT_AVAILABLE_ERROR.
6282         * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6283         OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6285 2020-07-10  Simon Marchi  <simon.marchi@polymtl.ca>
6286             Pedro Alves  <pedro@palves.net>
6288         PR gdb/26199
6289         * infrun.c (threads_are_resumed_pending_p): Delete.
6290         (do_target_wait): Remove threads_are_executing and
6291         threads_are_resumed_pending_p checks from the inferior_matches
6292         lambda.  Update comments.
6294 2020-07-10  Pedro Alves  <pedro@palves.net>
6296         PR gdb/26199
6297         * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6298         executing threads.
6300 2020-07-10  Pedro Alves  <pedro@palves.net>
6302         PR gdb/26199
6303         * infrun.c (handle_no_resumed): Handle multiple targets.
6305 2020-07-10  Pedro Alves  <pedro@palves.net>
6307         PR gdb/26199
6308         * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6309         target_is_async_p.
6311 2020-07-10  Pedro Alves  <pedro@palves.net>
6313         PR gdb/26199
6314         * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6315         threads, not all threads.
6317 2020-07-10  Pedro Alves  <pedro@palves.net>
6319         PR gdb/26199
6320         * remote.c (remote_target::open_1): Pass remote target pointer as
6321         data to create_async_event_handler.
6322         (remote_async_inferior_event_handler): Mark async event handler
6323         before returning if the remote target still has either pending
6324         events or unacknowledged notifications.
6326 2020-07-10  John Baldwin  <jhb@FreeBSD.org>
6328         * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6329         declaration.
6330         * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6331         function.
6333 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6335         * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6336         inferior_ptid.
6338 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6340         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6341         AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6342         AT_FREEBSD_PS_STRINGS.
6344 2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
6346         * auto-load.c (auto_load_objfile_script_1): Convert drive part
6347         of debugfile path on Windows.
6349 2020-07-08  John Baldwin  <jhb@FreeBSD.org>
6351         * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6352         argument to 'data'.
6354 2020-07-08  Tom Tromey  <tromey@adacore.com>
6356         * ada-lang.c (ada_exception_message_1): Use read_memory.
6358 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6360         PR python/22748
6361         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6362         special handling for inline frames.
6363         * findvar.c (value_of_register_lazy): Skip inline frames when
6364         creating lazy register values.
6365         * frame.c (frame_id_computed_p): Delete definition.
6366         * frame.h (frame_id_computed_p): Delete declaration.
6368 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6370         * NEWS: Mention additions to Python API.
6371         * python/py-arch.c (archpy_register_groups): New function.
6372         (arch_object_methods): Add 'register_groups' method.
6373         * python/py-registers.c (reggroup_iterator_object): New struct.
6374         (reggroup_object): New struct.
6375         (gdbpy_new_reggroup): New function.
6376         (gdbpy_reggroup_to_string): New function.
6377         (gdbpy_reggroup_name): New function.
6378         (gdbpy_reggroup_iter): New function.
6379         (gdbpy_reggroup_iter_next): New function.
6380         (gdbpy_new_reggroup_iterator): New function
6381         (gdbpy_initialize_registers): Register new types.
6382         (reggroup_iterator_object_type): Define new Python type.
6383         (gdbpy_reggroup_getset): New static global.
6384         (reggroup_object_type): Define new Python type.
6385         * python/python-internal.h
6387 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6389         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6390         * python/py-arch.c (archpy_registers): New function.
6391         (arch_object_methods): Add 'registers' method.
6392         * python/py-registers.c: New file.
6393         * python/python-internal.h
6394         (gdbpy_new_register_descriptor_iterator): Declare.
6395         (gdbpy_initialize_registers): Declare.
6396         * python/python.c (do_start_initialization): Call
6397         gdbpy_initialize_registers.
6398         * NEWS: Mention additions to the Python API.
6400 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6402         * NEWS: Mention new Python API method.
6403         * python/py-unwind.c (pending_framepy_architecture): New function.
6404         (pending_frame_object_methods): Add architecture method.
6406 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6408         * gdbarch.c: Regenerate.
6409         * gdbarch.h: Regenerate.
6410         * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6411         (gdbarch_data): Use internal_error for the case where
6412         deprecated_set_gdbarch_data was originally needed.
6413         * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6414         and use passed in obstack.
6415         (libunwind_frame_set_descr): Should no longer get back NULL from
6416         gdbarch_data.
6417         (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6418         type.
6419         * user-regs.c (user_regs_init): Update parameters, and use passed
6420         in obstack.
6421         (user_reg_add): Should no longer get back NULL from gdbarch_data.
6422         (_initialize_user_regs): Register as a pre-init gdbarch data type.
6424 2020-07-06  Tom de Vries  <tdevries@suse.de>
6426         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6427         End-Of-Sequence in lte_is_less_than.
6428         * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6429         "gdb: Don't reorder line table entries too much when sorting".
6431 2020-07-06  Tom de Vries  <tdevries@suse.de>
6433         PR tui/26205
6434         * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6436 2020-07-05  Tom de Vries  <tdevries@suse.de>
6438         PR build/26187
6439         * inferior.h (struct infcall_suspend_state_deleter): If available, use
6440         std::uncaught_exceptions instead of deprecated
6441         std::uncaught_exception.
6443 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6445         * macroexp.h (macro_stringify): Return
6446         gdb::unique_xmalloc_ptr<char>.
6447         * macroexp.c (macro_stringify): Likewise.
6448         * macrotab.c (fixup_definition): Update.
6450 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6452         * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6453         (lex_one_token): Update.
6454         * macroexp.c (struct macro_buffer) <release>: Return
6455         gdb::unique_xmalloc_ptr<char>.
6456         (macro_stringify): Update.
6457         (macro_expand): Update.
6458         (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6459         * macroexp.h (macro_expand_next): Likewise.
6461 2020-07-02  Simon Marchi  <simon.marchi@efficios.com>
6463         * macroexp.h (macro_lookup_ftype): Remove.
6464         (macro_expand, macro_expand_once, macro_expand_next): Remove
6465         lookup function parameters, add scope parameter.
6466         * macroexp.c (scan, substitute_args, expand, maybe_expand,
6467         macro_expand, macro_expand_once, macro_expand_next): Likewise.
6468         * macroscope.h (standard_macro_lookup): Change parameter type
6469         to macro_scope.
6470         * macroscope.c (standard_macro_lookup): Likewise.
6471         * c-exp.y (lex_one_token): Update.
6472         * macrocmd.c (macro_expand_command): Likewise.
6473         (macro_expand_once_command): Likewise.
6475 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6477         * inf-loop.c (inferior_event_handler): Remove client_data param.
6478         * inf-loop.h (inferior_event_handler): Likewise.
6479         * infcmd.c (step_1): Adjust.
6480         * infrun.c (proceed): Adjust.
6481         (fetch_inferior_event): Remove client_data param.
6482         (infrun_async_inferior_event_handler): Adjust.
6483         * infrun.h (fetch_inferior_event): Remove `void *` param.
6484         * linux-nat.c (handle_target_event): Adjust.
6485         * record-btrace.c (record_btrace_handle_async_inferior_event):
6486         Adjust.
6487         * record-full.c (record_full_async_inferior_event_handler):
6488         Adjust.
6489         * remote.c (remote_async_inferior_event_handler): Adjust.
6491 2020-07-01  Tom Tromey  <tom@tromey.com>
6493         * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6494         * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6496 2020-07-01  Tom Tromey  <tom@tromey.com>
6498         * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6499         tui_gen_win_info.
6500         (tui_win_info::make_window): Merge with
6501         tui_gen_win_info::make_window.
6502         (tui_win_info::make_visible): Move from tui_gen_win_info.
6503         * tui/tui-win.c (tui_win_info::max_width): Move from
6504         tui_gen_win_info.
6505         * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6506         type.
6507         <window_factory>: Likewise.
6508         * tui/tui-layout.c (tui_win_info::resize): Move from
6509         tui_gen_win_info.
6510         (make_standard_window): Change return type.
6511         (get_locator_window, tui_get_window_by_name): Likewise.
6512         (tui_layout_window::apply): Remove a cast.
6513         * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6514         (struct tui_win_info): Merge with tui_gen_win_info.
6515         (struct tui_gen_win_info): Remove.
6517 2020-07-01  Tom Tromey  <tom@tromey.com>
6519         * tui/tui-stack.h (struct tui_locator_window): Derive from
6520         tui_win_info.
6521         <do_scroll_horizontal, do_scroll_vertical>: New methods.
6522         <can_box>: New method.
6524 2020-07-01  Tom Tromey  <tom@tromey.com>
6526         * tui/tui-stack.h (struct tui_locator_window): Remove body.
6528 2020-07-01  Tom Tromey  <tom@tromey.com>
6530         * tui/tui-regs.c (tui_data_window::display_registers_from)
6531         (tui_data_window::display_registers_from)
6532         (tui_data_window::first_data_item_displayed)
6533         (tui_data_window::delete_data_content_windows): Update.
6534         (tui_data_window::refresh_window, tui_data_window::no_refresh):
6535         Remove.
6536         (tui_data_window::check_register_values): Update.
6537         (tui_data_item_window::rerender): Add parameters.  Update.
6538         (tui_data_item_window::refresh_window): Remove.
6539         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6540         virtual.
6541         * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6542         tui_gen_win_info.
6543         <refresh_window, max_height, min_height>: Remove.
6544         <rerender>: Add parameters.
6545         <x, y, visible>: New members.
6546         (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6547         <m_item_width>: New member.
6549 2020-07-01  Tom Tromey  <tom@tromey.com>
6551         * tui/tui-regs.c (tui_data_window::show_register_group)
6552         (tui_data_window::check_register_values): Update.
6553         * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6554         from item_no.
6556 2020-07-01  Tom Tromey  <tom@tromey.com>
6558         * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6559         useless "if".
6561 2020-07-01  Tom Tromey  <tom@tromey.com>
6563         * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6564         * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6566 2020-07-01  Tom Tromey  <tom@tromey.com>
6568         * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6569         * tui/tui-winsource.h (enum tui_line_or_address_kind)
6570         (struct tui_line_or_address): Move from tui-data.h.
6571         * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6572         * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6573         (tui_cmd_window, tui_source_window_base, tui_source_window)
6574         (tui_disasm_window): Don't declare.
6575         (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6576         to tui-winsource.h.
6577         (SINGLE_KEY): Move to tui-stack.c.
6579 2020-07-01  Tom Tromey  <tom@tromey.com>
6581         * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6582         std::string.
6583         * tui/tui-regs.c (class tab_expansion_file): New.
6584         (tab_expansion_file::write): New method.
6585         (tui_register_format): Change return type.  Use
6586         tab_expansion_file.
6587         (tui_get_register, tui_data_window::display_registers_from)
6588         (tui_data_item_window::rerender): Update.
6589         * tui/tui-io.h (tui_expand_tabs): Don't declare.
6590         * tui/tui-io.c (tui_expand_tabs): Remove.
6592 2020-07-01  Tom Tromey  <tom@tromey.com>
6594         * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6596 2020-07-01  Fangrui Song  <maskray@google.com>
6598         * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6600 2020-07-01  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
6602         * dwarf2/read.c (set_die_type): Removed conditions to restrict
6603         forms for DW_AT_associated and DW_AT_allocated attributes,
6604         which is already checked in function attr_to_dynamic_prop.
6606 2020-06-30  Tom Tromey  <tromey@adacore.com>
6608         * dwarf2/read.c (quirk_rust_enum): Correctly call
6609         alloc_rust_variant for default-less enum.
6611 2020-06-30  Tom Tromey  <tromey@adacore.com>
6613         PR build/26183:
6614         * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6615         gdb::to_string.
6617 2020-06-29  Simon Marchi  <simon.marchi@efficios.com>
6619         * gdbarch.sh (displaced_step_copy_insn): Update doc.
6620         * gdbarch.h: Re-generate.
6622 2020-06-28  Tom Tromey  <tom@tromey.com>
6624         * command.h (cmd_types): Remove.
6625         (cmd_type): Don't declare.
6626         * cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
6627         typedef.
6628         * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6629         * cli/cli-decode.c (cmd_type): Remove.
6631 2020-06-27  Pedro Alves  <palves@redhat.com>
6633         * fork-child.c (prefork_hook): Adjust.
6634         * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6635         Delete.
6636         (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6637         * inferior.c (inferior::set_tty, inferior::tty): New methods.
6638         * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6639         Remove declarations.
6640         (struct inferior) <set_tty, tty>: New methods.
6641         (struct inferior) <terminal>: Rename to ...
6642         (struct inferior) <m_terminal>: ... this and make private.
6643         * main.c (captured_main_1): Adjust.
6644         * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6645         (mi_cmd_inferior_tty_show): Adjust.
6646         * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6647         * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6649 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
6651         * configure.ac: Add --enable-libctf: handle --disable-static
6652         properly.
6653         * acinclude.m4: sinclude ../config/enable.m4.
6654         * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6655         (LIBCTF): Substitute in.
6656         (CTF_DEPS): New, likewise.
6657         (CLIBS): libctf needs symbols from libbfd: move earlier.
6658         (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6659         flags.
6660         * ctfread.c: Surround in ENABLE_LIBCTF.
6661         (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6662         * configure: Regenerate.
6663         * config.in: Likewise.
6665 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
6667         * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6669 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
6671         * inferior.h (struct inferior) <terminal>: Change type to
6672         gdb::unique_xmalloc_ptr<char>.
6673         * inferior.c (inferior::~inferior): Don't free inf->terminal.
6674         * infcmd.c (set_inferior_io_terminal): Don't free terminal
6675         field, adjust to unique pointer.
6676         (get_inferior_io_terminal): Adjust to unique pointer.
6678 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6680         * riscv-tdep.c (riscv_print_registers_info): Loop over all
6681         registers, not just the known core set of registers.
6683 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6685         * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6686         fflags, frm, and fcsr registers.
6687         (riscv_register_reggroup_p): Remove unknown CSRs from save and
6688         restore groups.
6689         (riscv_tdesc_unknown_reg): New function.
6690         (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6691         tdesc_use_registers.
6692         * riscv-tdep.h (struct gdbarch_tdep): Add
6693         unknown_csrs_first_regnum, unknown_csrs_count,
6694         duplicate_fflags_regnum, duplicate_frm_regnum, and
6695         duplicate_fcsr_regnum fields.
6697 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6699         * target-descriptions.c (tdesc_use_registers): Add new parameter a
6700         callback, use the callback (when not null) to help number unknown
6701         registers.
6702         * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6703         (tdesc_use_registers): Add extra parameter to declaration.
6705 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6707         * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6708         in the file.
6709         (class riscv_pending_register_alias): Likewise.
6710         (riscv_register_feature::register_info): Change 'required_p' field
6711         to 'required', and change its type.  Add 'check' member function.
6712         (riscv_register_feature::register_info::check): Define new member
6713         function.
6714         (riscv_xreg_feature): Change initialisation of 'required' field.
6715         (riscv_freg_feature): Likewise.
6716         (riscv_virtual_feature): Likewise.
6717         (riscv_csr_feature): Likewise.
6718         (riscv_check_tdesc_feature): Take extra parameter, the csr
6719         tdesc_feature, rewrite the function to use the new
6720         riscv_register_feature::register_info::check function.
6721         (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6723 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6725         * features/Makefile: Remove all references to the deleted files
6726         below.
6727         * features/riscv/32bit-csr.c: Deleted.
6728         * features/riscv/32bit-csr.xml: Deleted.
6729         * features/riscv/64bit-csr.c: Deleted.
6730         * features/riscv/64bit-csr.xml: Deleted.
6731         * features/riscv/rebuild-csr-xml.sh: Deleted.
6733 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6735         * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6736         whitespace error for declaration of names member variable.
6737         (struct riscv_register_feature): Add new prefer_first_name member
6738         variable, and fix whitespace error in declaration of registers.
6739         (riscv_xreg_feature): Initialize prefer_first_name field.
6740         (riscv_freg_feature): Likewise.
6741         (riscv_virtual_feature): Likewise.
6742         (riscv_csr_feature): Likewise.
6743         (riscv_register_name): Expand on comments.  Remove register name
6744         modifications for CSR and virtual registers.
6746 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6748         * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6749         errors.
6751 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6753         * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6754         riscv-opc.h.
6755         (class riscv_pending_register_alias): New class.
6756         (riscv_check_tdesc_feature): Take vector of pending aliases and
6757         populate it as appropriate.
6758         (riscv_setup_register_aliases): Delete.
6759         (riscv_gdbarch_init): Create vector of pending aliases and pass it
6760         to riscv_check_tdesc_feature in all cases.  Use the vector to
6761         create the register aliases.
6763 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6765         * sol2-tdep.c (sol2_static_transform_name): Remove.
6766         (sol2_init_abi): Don't register it.
6767         * gdbarch.sh (static_transform_name): Remove.
6768         * gdbarch.c, gdbarch.h: Regenerate.
6770         * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6771         gdbarch_static_transform_name.
6772         * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6773         * stabsread.c (define_symbol) <'X'>: Remove.
6774         (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6775         handling.
6776         <'V'>: Likewise.
6777         * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6778         <'S'>: Remove call to gdbarch_static_transform_name.
6780 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6782         * procfs.c (procfs_pre_trace): New function.
6783         (procfs_target::create_inferior): Pass it to fork_inferior.
6785 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6787         * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6788         sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6789         <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6790         sol2-tdep.o, sparc-sol2-tdep.o.
6791         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6792         * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6793         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6794         * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6796 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6798         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6799         (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6800         Call sol2_init_abi.
6801         Remove calls to set_gdbarch_skip_solib_resolver,
6802         set_gdbarch_core_pid_to_str.
6803         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6804         (i386_sol2_static_transform_name): Remove.
6805         (i386_sol2_init_abi): Call sol2_init_abi.
6806         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6807         set_gdbarch_static_transform_name,
6808         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6809         Use sol2_sigtramp_p.
6810         * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6811         (sol2_sigtramp_p): New function.
6812         (sol2_static_transform_name): New function.
6813         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6814         (sol2_init_abi): New function.
6815         * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6816         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6817         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6818         (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6819         (sparc_sol2_static_transform_name): Remove.
6820         (sparc32_sol2_init_abi): Call sol2_init_abi.
6821         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6822         set_gdbarch_static_transform_name,
6823         set_gdbarch_skip_solib_resolver,
6824         set_gdbarch_core_pid_to_str.
6825         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6826         (sparc_sol2_static_transform_name): Remove
6827         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6828         call sol2_sigtramp_p.
6829         (sparc64_sol2_init_abi): Call sol2_init_abi.
6830         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6831         set_gdbarch_static_transform_name,
6832         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6834 2020-06-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6836         * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6837         * exec.c (validate_exec_file): If from_tty, set both
6838         SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6839         * symfile.c (symbol_file_add_with_addrs): if always_confirm
6840         and from_tty, unconditionally ask a confirmation.
6842 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6844         * target-descriptions.c (tdesc_architecture_name): Protect against
6845         NULL pointer dereference.
6846         (maint_print_xml_tdesc_cmd): New function.
6847         (_initialize_target_descriptions): Register new 'maint print
6848         xml-tdesc' command and give it the filename completer.
6849         * NEWS: Mention new 'maint print xml-tdesc' command.
6851 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6853         * target-descriptions.c (class tdesc_compatible_info): New class.
6854         (struct target_desc): Change type of compatible vector.
6855         (tdesc_compatible_p): Update for change in type of
6856         target_desc::compatible.
6857         (tdesc_compatible_info_list): New function.
6858         (tdesc_compatible_info_arch_name): New function.
6859         (tdesc_add_compatible): Update for change in type of
6860         target_desc::compatible.
6861         (print_c_tdesc::visit_pre): Likewise.
6863 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6865         * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6866         whitespace to underscore.
6867         (maint_print_c_tdesc_cmd): Use fake filename for target
6868         descriptions that came from the target.
6869         (_initialize_target_descriptions): Add filename command completion
6870         for 'maint print c-tdesc'.
6872 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
6874         * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6875         lines.
6877 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
6879         * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6880         lines.
6881         (dwarf2_find_location_expression): Likewise.
6882         (call_site_parameter_matches): Likewise.
6883         (dwarf2_compile_expr_to_ax): Likewise.
6884         (disassemble_dwarf_expression): Likewise.
6885         (loclist_describe_location): Likewise.
6887 2020-06-23  Pedro Alves  <palves@redhat.com>
6889         * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6890         progspace-and-thread.h.  Include scoped-mock-context.h instead.
6891         (register_to_value_test): Use scoped_mock_context.
6892         * regcache.c: Include "scoped-mock-context.h".
6893         (cooked_read_test): Don't error out if a target is already pushed.
6894         Use scoped_mock_context.  Adjust.
6895         * scoped-mock-context.h: New file.
6897 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6899         * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6900         initializer.
6901         (ada_language::is_string_type_p): New member function.
6902         * c-lang.c (c_language_data): Delete la_is_string_type_p
6903         initializer.
6904         (cplus_language_data): Likewise.
6905         (asm_language_data): Likewise.
6906         (minimal_language_data): Likewise.
6907         * d-lang.c (d_language_data): Likewise.
6908         * f-lang.c (f_is_string_type_p): Delete function, implementation
6909         moved to f_language::is_string_type_p.
6910         (f_language_data): Delete la_is_string_type_p initializer.
6911         (f_language::is_string_type_p): New member function,
6912         implementation from f_is_string_type_p.
6913         * go-lang.c (go_is_string_type_p): Delete function, implementation
6914         moved to go_language::is_string_type_p.
6915         (go_language_data): Delete la_is_string_type_p initializer.
6916         (go_language::is_string_type_p): New member function,
6917         implementation from go_is_string_type_p.
6918         * language.c (language_defn::is_string_type_p): Define new member
6919         function.
6920         (default_is_string_type_p): Make static, add comment copied from
6921         header file.
6922         (unknown_language_data): Delete la_is_string_type_p initializer.
6923         (unknown_language::is_string_type_p): New member function.
6924         (auto_language_data): Delete la_is_string_type_p initializer.
6925         (auto_language::is_string_type_p): New member function.
6926         * language.h (language_data): Delete la_is_string_type_p field.
6927         (language_defn::is_string_type_p): Declare new function.
6928         (default_is_string_type_p): Delete desclaration, move comment to
6929         definition.
6930         * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6931         moved to m2_language::is_string_type_p.
6932         (m2_language_data): Delete la_is_string_type_p initializer.
6933         (m2_language::is_string_type_p): New member function,
6934         implementation from m2_is_string_type_p.
6935         * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6936         initializer.
6937         * opencl-lang.c (opencl_language_data): Likewise.
6938         * p-lang.c (pascal_is_string_type_p): Delete function,
6939         implementation moved to pascal_language::is_string_type_p.
6940         (pascal_language_data): Delete la_is_string_type_p initializer.
6941         (pascal_language::is_string_type_p): New member function,
6942         implementation from pascal_is_string_type_p.
6943         * rust-lang.c (rust_is_string_type_p): Delete function,
6944         implementation moved to rust_language::is_string_type_p.
6945         (rust_language_data): Delete la_is_string_type_p initializer.
6946         (rust_language::is_string_type_p): New member function,
6947         implementation from rust_is_string_type_p.
6948         * valprint.c (val_print_scalar_or_string_type_p): Update call to
6949         is_string_type_p.
6951 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6953         * ada-lang.c (ada_language_data): Delete la_print_typedef
6954         initializer.
6955         (ada_language::print_typedef): New member function.
6956         * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
6962         (f_language::print_typedef): New member function.
6963         * go-lang.c (go_language_data): Delete la_print_typedef
6964         initializer.
6965         * language.c (language_defn::print_typedef): Define member
6966         function.
6967         (unknown_language_data): Delete la_print_typedef initializer.
6968         (unknown_language::print_typedef): New member function.
6969         (auto_language_data): Delete la_print_typedef initializer.
6970         (auto_language::print_typedef): New member function.
6971         * language.h (language_data): Delete la_print_typedef field.
6972         (language_defn::print_typedef): Declare new member function.
6973         (LA_PRINT_TYPEDEF): Update call to print_typedef.
6974         (default_print_typedef): Delete declaration.
6975         * m2-lang.c (m2_language_data): Delete la_print_typedef
6976         initializer.
6977         (m2_language::print_typedef): New member function.
6978         * objc-lang.c (objc_language_data): Delete la_print_typedef
6979         initializer.
6980         * opencl-lang.c (opencl_language_data): Likewise.
6981         * p-lang.c (pascal_language_data): Likewise.
6982         (pascal_language::print_typedef): New member function.
6983         * rust-lang.c (rust_print_typedef): Delete function,
6984         implementation moved to rust_language::print_typedef.
6985         (rust_language): Delete la_print_typedef initializer.
6986         (rust_language::print_typedef): New member function,
6987         implementation from rust_print_typedef.
6988         * typeprint.c (default_print_typedef): Delete.
6990 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6992         * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6993         (ada_language::printstr): New member function.
6994         * c-lang.c (c_language_data): Delete la_printstr initializer.
6995         (cplus_language_data): Likewise.
6996         (asm_language_data): Likewise.
6997         (minimal_language_data): Likewise.
6998         * d-lang.c (d_language_data): Likewise.
6999         * f-lang.c (f_printstr): Rename to f_language::printstr.
7000         (f_language_data): Delete la_printstr initializer.
7001         (f_language::printstr): New member function, implementation from
7002         f_printstr.
7003         * go-lang.c (go_language_data): Delete la_printstr initializer.
7004         * language.c (language_defn::printstr): Define new member
7005         function.
7006         (unk_lang_printstr): Delete.
7007         (unknown_language_data): Delete la_printstr initializer.
7008         (unknown_language::printstr): New member function.
7009         (auto_language_data): Delete la_printstr initializer.
7010         (auto_language::printstr): New member function.
7011         * language.h (language_data): Delete la_printstr field.
7012         (language_defn::printstr): Declare new member function.
7013         (LA_PRINT_STRING): Update call to printstr.
7014         * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7015         (m2_language_data): Delete la_printstr initializer.
7016         (m2_language::printstr): New member function, implementation from
7017         m2_printstr.
7018         * objc-lang.c (objc_language_data): Delete la_printstr
7019         initializer.
7020         * opencl-lang.c (opencl_language_data): Likewise.
7021         * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7022         (pascal_language_data): Delete la_printstr initializer.
7023         (pascal_language::printstr): New member function, implementation
7024         from pascal_printstr.
7025         * p-lang.h (pascal_printstr): Delete declaration.
7026         * rust-lang.c (rust_printstr): Update header comment.
7027         (rust_language_data): Delete la_printstr initializer.
7028         (rust_language::printstr): New member function.
7030 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7032         * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7033         (ada_language::printchar): New member function.
7034         * c-lang.c (c_language_data): Delete la_printchar initializer.
7035         (cplus_language_data): Likewise.
7036         (asm_language_data): Likewise.
7037         (minimal_language_data): Likewise.
7038         * d-lang.c (d_language_data): Likewise.
7039         * f-lang.c (f_printchar): Rename to f_language::printchar.
7040         (f_language_data): Delete la_printchar initializer.
7041         (f_language::printchar): New member function, implementation from
7042         f_printchar.
7043         * go-lang.c (go_language_data): Delete la_printchar initializer.
7044         * language.c (unk_lang_printchar): Delete.
7045         (language_defn::printchar): Define new member function.
7046         (unknown_language_data): Delete la_printchar initializer.
7047         (unknown_language::printchar): New member function.
7048         (auto_language_data): Delete la_printchar initializer.
7049         (auto_language::printchar): New member function.
7050         * language.h (language_data): Delete la_printchar field.
7051         (language_defn::printchar): Declare new member function.
7052         (LA_PRINT_CHAR): Update call to printchar.
7053         * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7054         (m2_language::printchar): New member function.
7055         * objc-lang.c (objc_language_data): Delete la_printchar
7056         initializer.
7057         * opencl-lang.c (opencl_language_data): Likewise.
7058         * p-lang.c (pascal_language_data): Delete la_printchar
7059         initializer.
7060         (pascal_language::printchar): New member function.
7061         * rust-lang.c (rust_printchar): Rename to
7062         rust_language::printchar.
7063         (rust_language_data): Delete la_printchar initializer.
7064         (rust_language::printchar): New member function, implementation
7065         from rust_printchar.
7067 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7069         * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7070         (ada_language_data): Delete la_emitchar initializer.
7071         (ada_language::emitchar): New member function, implementation from
7072         emit_char.
7073         * c-lang.c (c_language_data): Delete la_emitchar initializer.
7074         (cplus_language_data): Likewise.
7075         (asm_language_data): Likewise.
7076         (minimal_language_data): Likewise.
7077         * d-lang.c (d_language_data): Likewise.
7078         * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7079         (f_language_data): Delete la_emitchar initializer.
7080         (f_language::emitchar): New member function, implementation from
7081         f_emit_char.
7082         * go-lang.c (go_language_data): Delete la_emitchar initializer.
7083         * language.c (unk_lang_emit_char): Delete.
7084         (language_defn::emitchar): New member function definition.
7085         (unknown_language_data): Delete la_emitchar initializer.
7086         (unknown_language::emitchar): New member function.
7087         (auto_language_data): Delete la_emitchar initializer.
7088         (auto_language::emitchar): New member function.
7089         * language.h (language_data): Delete la_emitchar field.
7090         (language_defn::emitchar): New member field declaration.
7091         (LA_EMIT_CHAR): Update call to emitchar.
7092         * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7093         (m2_language_data): Delete la_emitchar initializer.
7094         (m2_language::emitchar): New member function, implementation from
7095         m2_emit_char.
7096         * objc-lang.c (objc_language_data): Delete la_emitchar
7097         initializer.
7098         * opencl-lang.c (opencl_language_data): Likewise.
7099         * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7100         (pascal_language_data): Delete la_emitchar initializer.
7101         (pascal_language::emitchar): New member function, implementation
7102         from pascal_emit_char.
7103         * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7104         (rust_language_data): Delete la_emitchar initializer.
7105         (rust_language::emitchar): New member function, implementation
7106         from rust_emitchar.
7108 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7110         * ada-lang.c (resolve): Rename to ada_language::post_parser.
7111         (ada_language_data): Delete la_post_parser initializer.
7112         (ada_language::post_parser): New member function.
7113         * c-lang.c (c_language_data): Delete la_post_parser initializer.
7114         (cplus_language_data): Likewise.
7115         (asm_language_data): Likewise.
7116         (minimal_language_data): Likewise.
7117         * d-lang.c (d_language_data): Likewise.
7118         * f-lang.c (f_language_data): Likewise.
7119         * go-lang.c (go_language_data): Likewise.
7120         * language.c (unknown_language_data): Likewise.
7121         (auto_language_data): Likewise.
7122         * language.h (language_data): Delete la_post_parser field.
7123         (language_defn::post_parser): New member function.
7124         * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7125         * objc-lang.c (objc_language_data): Likewise.
7126         * opencl-lang.c (opencl_language_data): Likewise.
7127         * p-lang.c (pascal_language_data): Likewise.
7128         * parse.c (parse_exp_in_context): Update call to post_parser.
7129         (null_post_parser): Delete definition.
7130         * parser-defs.h (null_post_parser): Delete declaration.
7131         * rust-lang.c (rust_language_data): Delete la_post_parser
7132         initializer.
7134 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7136         * ada-lang.c (parse): Rename to ada_language::parser.
7137         (ada_language_data): Delete la_parser initializer.
7138         (ada_language::parser): New member function, implementation from
7139         parse.
7140         * c-lang.c (c_language_data): Delete la_parser initializer.
7141         (cplus_language_data): Likewise.
7142         (asm_language_data): Likewise.
7143         (minimal_language_data): Likewise.
7144         * d-lang.c (d_language_data): Likewise.
7145         (d_language::parser): New member function.
7146         * f-lang.c (f_language_data): Delete la_parser initializer.
7147         (f_language::parser): New member function.
7148         * go-lang.c (go_language_data): Delete la_parser initializer.
7149         (go_language::parser): New member function.
7150         * language.c (unk_lang_parser): Delete.
7151         (language_defn::parser): Define new member function.
7152         (unknown_language_data): Delete la_parser initializer.
7153         (unknown_language::parser): New member function.
7154         (auto_language_data): Delete la_parser initializer.
7155         (auto_language::parser): New member function.
7156         * language.h (language_data): Delete la_parser field.
7157         (language_defn::parser): Declare new member function.
7158         * m2-lang.c (m2_language_data): Delete la_parser initializer.
7159         (m2_language::parser): New member function.
7160         * objc-lang.c (objc_language_data): Delete la_parser initializer.
7161         * opencl-lang.c (opencl_language_data): Likewise.
7162         * p-lang.c (pascal_language_data): Likewise.
7163         (pascal_language::parser): New member function.
7164         * parse.c (parse_exp_in_context): Update call to parser.
7165         * rust-lang.c (rust_language_data): Delete la_parser initializer.
7166         (rust_language::parser): New member function.
7168 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7170         * top.c (print_gdb_configuration): Print --with-python-libdir
7171         configuration value.
7173 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7175         * NEWS: Mention change to the alias command.
7177 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7179         * cli/cli-cmds.c (lookup_cmd_for_default_args)
7180         (alias_command_completer)
7181         (make_alias_options_def_group): New functions.
7182         (alias_opts, alias_option_defs): New struct and array.
7183         (alias_usage_error): Update usage.
7184         (alias_command): Handles optional DEFAULT-ARGS... arguments.
7185         Use option framework.
7186         (_initialize_cli_cmds): Update alias command help.
7187         Update aliases command help.
7188         (show_user):
7189         Add NULL for new default_args lookup_cmd argument.
7190         (valid_command_p): Rename to validate_aliased_command.
7191         Add NULL for new default_args lookup_cmd argument.  Verify that the
7192         aliased_command has no default args.
7193         * cli/cli-decode.c (help_cmd): Show aliases definitions.
7194         (lookup_cmd_1, lookup_cmd): New argument default_args.
7195         (add_alias_cmd):
7196         Add NULL for new default_args lookup_cmd argument.
7197         (print_help_for_command): Show default args under the layout
7198          alias some_alias = some_aliased_cmd some_alias_default_arg.
7199         * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7200         xfree default_args in destructor.
7201         * cli/cli-script.c (process_next_line, do_define_command):
7202         Add NULL for new default_args lookup_cmd argument.
7203         * command.h: Declare new default_args argument in lookup_cmd
7204         and lookup_cmd_1.
7205         * completer.c (complete_line_internal_1):
7206         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7207         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7208         * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7209         Likewise.
7210         * infcmd.c (_initialize_infcmd): Likewise.
7211         * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7212         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7213         * python/py-param.c (add_setshow_generic): Likewise.
7214         * remote.c (_initialize_remote): Likewise.
7215         * top.c (execute_command): Prepend default_args if command has some.
7216         (set_verbose):
7217         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7218         * tracepoint.c (validate_actionline, encode_actions_1):
7219         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7221 2020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7223         * jit.c (jit_read_descriptor): Use bool as the return type.
7224         (jit_breakpoint_re_set_internal): Use bool as the return type.
7225         Invert the return value logic; return true if the jit breakpoint
7226         has been successfully initialized.
7227         (jit_inferior_init): Update the call to
7228         jit_breakpoint_re_set_internal.
7230 2020-06-22  Pedro Alves  <palves@redhat.com>
7232         PR gdb/25939
7233         * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7234         Use the current inferior instead.  Don't return
7235         TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7236         wait again.
7237         * sol-thread.c (sol_thread_target::wait): Don't reference
7238         inferior_ptid.
7239         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7240         (sol_update_thread_list_callback): Use the current inferior's pid
7241         instead of inferior_ptid.
7243 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7245         * procfs.c: Cleanup many comments.
7247         (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7248         (AFTER_WATCHFLAG): Replace by value.
7250         (MAIN_PROC_NAME_FORMAT): Inline ...
7251         (create_procinfo): ... here.
7253         (procfs_debug_inferior): Remove SYS_exec handling.
7254         (syscall_is_exec): Likewise.
7255         (procfs_set_exec_trap): Likewise.
7257         (syscall_is_lwp_exit): Inline in callers.
7258         (syscall_is_exit): Likewise.
7259         (syscall_is_exec): Likewise.
7260         (syscall_is_lwp_create): Likewise.
7262         (invalidate_cache): Remove #if 0 code.
7264         (make_signal_thread_runnable):  Remove.
7265         (procfs_target::resume): Remove #if 0 code.
7267 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7269         PR gdb/25939
7270         * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7271         call ...
7272         (procfs_target::create_inferior): ... here.
7274 2020-06-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7276         * exec.c (validate_exec_file): Ensure the build-id is up to
7277         date by calling reopen_exec_file (that checks file timestamp
7278         to decide to re-read the file).
7280 2020-06-18  Pedro Alves  <palves@redhat.com>
7282         PR gdb/25412
7283         * gdbthread.h (delete_thread, delete_thread_silent)
7284         (find_thread_ptid): Update comments.
7285         * thread.c (current_thread_): New global.
7286         (is_current_thread): Move higher, and reimplement.
7287         (inferior_thread): Reimplement.
7288         (set_thread_exited): Use bool.  Add assertions.
7289         (add_thread_silent): Simplify thread-reuse handling by always
7290         calling delete_thread.
7291         (delete_thread): Remove intro comment.
7292         (find_thread_ptid): Skip exited threads.
7293         (switch_to_thread_no_regs): Write to current_thread_.
7294         (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7295         INFERIOR_PTID.  Clear current_thread_.
7297 2020-06-18  Pedro Alves  <palves@redhat.com>
7299         * aix-thread.c (pd_update): Use switch_to_thread.
7301 2020-06-18  Pedro Alves  <palves@redhat.com>
7303         * ravenscar-thread.c (ravenscar_thread_target): Update.
7304         (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7305         (ravenscar_thread_target::add_active_thread): ... this.  Don't
7306         set m_base_ptid here.  Update to avoid referencing inferior_ptid.
7307         (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7309 2020-06-18  Pedro Alves  <palves@redhat.com>
7311         * nat/windows-nat.c (current_windows_thread): Remove.
7312         * nat/windows-nat.h (current_windows_thread): Remove.
7313         * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7314         Adjust.
7315         (display_selectors): Adjust to fetch the current
7316         windows_thread_info based on inferior_ptid.
7317         (fake_create_process): No longer write to current_windows_thread.
7318         (windows_nat_target::get_windows_debug_event):
7319         Don't set inferior_ptid or current_windows_thread.
7320         (windows_nat_target::wait): Adjust to not rely on
7321         current_windows_thread.
7322         (do_initial_windows_stuff): Now a method of windows_nat_target.
7323         Switch to the last_ptid thread.
7324         (windows_nat_target::attach): Adjust.
7325         (windows_nat_target::detach): Use switch_to_no_thread instead of
7326         writing to inferior_ptid directly.
7327         (windows_nat_target::create_inferior): Adjust.
7329 2020-06-18  Pedro Alves  <palves@redhat.com>
7331         * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7333 2020-06-18  Pedro Alves  <palves@redhat.com>
7335         * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7336         after creating it, instead of writing to inferior_ptid.  Don't
7337         write to inferior_ptid.
7339 2020-06-18  Pedro Alves  <palves@redhat.com>
7341         * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7343 2020-06-18  Pedro Alves  <palves@redhat.com>
7345         * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7346         it, instead of writing to inferior_ptid.
7348 2020-06-18  Pedro Alves  <palves@redhat.com>
7350         * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7351         to inferior_ptid.
7353 2020-06-18  Pedro Alves  <palves@redhat.com>
7355         * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7356         instead of writing to inferior_ptid directly.
7358 2020-06-18  Pedro Alves  <palves@redhat.com>
7360         * corelow.c (core_target::close): Use switch_to_no_thread instead
7361         of writing to inferior_ptid directly.
7362         (add_to_thread_list, core_target_open): Use switch_to_thread
7363         instead of writing to inferior_ptid directly.
7365 2020-06-18  Pedro Alves  <palves@redhat.com>
7367         * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7368         inferior_ptid.
7369         (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7370         inferior_ptid.
7371         (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7372         inferior_ptid directly.
7373         (darwin_nat_target::init_thread_list): Switch to thread, instead
7374         of writing to inferior_ptid.
7375         (darwin_nat_target::attach): Don't write to inferior_ptid.
7376         (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7378 2020-06-18  Pedro Alves  <palves@redhat.com>
7380         * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7381         thread.
7382         (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7383         Instead use switch_to_thread.
7384         (gnu_nat_target::detach): Use switch_to_no_thread
7385         instead of writing to inferior_ptid directly.  Used passed-in
7386         inferior instead of looking up the inferior by pid.
7388 2020-06-18  Pedro Alves  <palves@redhat.com>
7390         * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7391         inferior_ptid.
7393 2020-06-18  Pedro Alves  <palves@redhat.com>
7395         * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7396         inferior_ptid.
7397         (nto_procfs_target::attach): Avoid inferior_ptid.  Switch to
7398         thread.
7399         (nto_procfs_target::detach): Avoid referencing
7400         inferior_ptid.  Use switch_to_no_thread instead of writing to
7401         inferior_ptid directly.
7402         (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7403         instead of writing to inferior_ptid directly.
7404         (nto_procfs_target::create_inferior): Avoid inferior_ptid.  Switch
7405         to thread.
7407 2020-06-18  Pedro Alves  <palves@redhat.com>
7409         * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7410         after creating it, instead of writing to inferior_ptid.
7411         (gdbsim_target_open): Use switch_to_no_thread instead of writing
7412         to inferior_ptid directly.
7413         (gdbsim_target::wait): Don't write to inferior_ptid.
7415 2020-06-18  Pedro Alves  <palves@redhat.com>
7417         * remote.c (remote_target::remote_notice_new_inferior): Use
7418         switch_to_thread instead of writing to inferior_ptid directly.
7419         (remote_target::add_current_inferior_and_thread): Use
7420         switch_to_no_thread instead of writing to inferior_ptid directly.
7421         (extended_remote_target::attach): Use switch_to_inferior_no_thread
7422         and switch_to_thread instead of using set_current_inferior or
7423         writing to inferior_ptid directly.
7425 2020-06-18  Pedro Alves  <palves@redhat.com>
7427         * tracectf.c (ctf_target_open): Switch to added thread instead of
7428         writing to inferior_ptid directly.
7429         (ctf_target::close): Use switch_to_no_thread instead of writing to
7430         inferior_ptid directly.
7432 2020-06-18  Pedro Alves  <palves@redhat.com>
7434         * tracefile-tfile.c (tfile_target_open): Don't write to
7435         inferior_ptid directly, instead switch to added thread.
7436         (tfile_target::close): Use switch_to_no_thread instead of writing
7437         to inferior_ptid directly.
7439 2020-06-18  Pedro Alves  <palves@redhat.com>
7441         * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7442         (procfs_target::detach): Use switch_to_no_thread
7443         instead of writing to inferior_ptid directly.
7444         (do_attach): Change return type to void.  Switch to the added
7445         thread.
7446         (procfs_target::create_inferior): Switch to the added thread.
7447         (procfs_do_thread_registers): Don't write to inferior_ptid.
7449 2020-06-18  Pedro Alves  <palves@redhat.com>
7451         * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7452         of writing to inferior_ptid.
7453         (scoped_restore_exited_inferior): Delete.
7454         (handle_vfork_child_exec_or_exit): Simplify using
7455         scoped_restore_current_pspace_and_thread.  Use switch_to_thread
7456         instead of writing to inferior_ptid.
7457         (THREAD_STOPPED_BY): Delete.
7458         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7459         (thread_stopped_by_hw_breakpoint): Delete.
7460         (save_waitstatus): Use
7461         scoped_restore_current_thread+switch_to_thread, and call
7462         target_stopped_by_watchpoint instead of
7463         thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7464         instead of thread_stopped_by_sw_breakpoint, and
7465         target_stopped_by_hw_breakpoint instead of
7466         thread_stopped_by_hw_breakpoint.
7467         (handle_inferior_event)
7468         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7469         inferior_ptid directly, nor
7470         set_current_inferior/set_current_program_space.  Use
7471         switch_to_thread / switch_to_inferior_no_thread instead.
7473 2020-06-18  Pedro Alves  <palves@redhat.com>
7475         * target.c (generic_mourn_inferior): Use switch_to_no_thread
7476         instead of writing to inferior_ptid.
7478 2020-06-18  Pedro Alves  <palves@redhat.com>
7480         * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7481         added thread.
7482         (inf_ptrace_target::attach): Don't write to inferior_ptid.  Switch
7483         to the added thread.
7484         (inf_ptrace_target::detach_success): Use switch_to_no_thread
7485         instead of writing to inferior_ptid.
7487 2020-06-18  Pedro Alves  <palves@redhat.com>
7489         * gdbarch-selftests.c: Include "progspace-and-thread.h".
7490         (register_to_value_test): Mock a program_space too.  Heap-allocate
7491         the address space.  Don't write to inferior_ptid.  Use
7492         switch_to_thread instead.
7494 2020-06-18  Pedro Alves  <palves@redhat.com>
7496         * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7497         Delete.
7498         (find_signalled_thread()): New, factored out from
7499         linux_make_corefile_notes and adjusted to handle exited threads.
7500         (linux_make_corefile_notes): Adjust to use the new
7501         find_signalled_thread.
7503 2020-06-18  Pedro Alves  <palves@redhat.com>
7505         * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7506         of saving/restoring inferior_ptid.
7508 2020-06-17  Tom Tromey  <tom@tromey.com>
7510         * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7511         (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7512         declare.
7513         * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7515 2020-06-15  Simon Marchi  <simon.marchi@efficios.com>
7517         * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7518         of partial symtabs.
7520 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7522         * regformats/reg-arm.dat: Remove.
7523         * regformats/reg-bfin.dat: Remove.
7524         * regformats/reg-cris.dat: Remove.
7525         * regformats/reg-crisv32.dat: Remove.
7526         * regformats/reg-m32r.dat: Remove.
7527         * regformats/reg-tilegx.dat: Remove.
7528         * regformats/reg-tilegx32.dat: Remove.
7530 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7532         * features/Makefile (WHICH): Remove arm files.
7533         * regformats/arm/arm-with-iwmmxt.dat: Remove.
7534         * regformats/arm/arm-with-neon.dat: Remove.
7535         * regformats/arm/arm-with-vfpv2.dat: Remove.
7536         * regformats/arm/arm-with-vfpv3.dat: Remove.
7538 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7540         * features/Makefile (XMLTOC): Remove rx.xml.
7542 2020-06-17  Pedro Alves  <palves@redhat.com>
7544         * gdbthread.h (thread_control_state) <trap_expected> Update
7545         comments.
7547 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7549         * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7550         ada_language::lookup_symbol_nonlocal.
7551         (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7552         (ada_language::lookup_symbol_nonlocal): New member function,
7553         implementation from ada_lookup_symbol_nonlocal.
7554         * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7555         initializer.
7556         (cplus_language_data): Delete la_lookup_symbol_nonlocal
7557         initializer.
7558         (cplus_language::lookup_symbol_nonlocal): New member function.
7559         (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7560         (minimal_language_data) Likewise.
7561         * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7562         * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7563         initializer.
7564         (d_language::lookup_symbol_nonlocal): New member function.
7565         * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7566         initializer.
7567         (f_language::lookup_symbol_nonlocal): New member function.
7568         * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7569         initializer.
7570         * language.c (unknown_language_data): Likewise.
7571         (auto_language_data): Likewise.
7572         * language.h (language_data): Delete la_lookup_symbol_nonlocal
7573         field.
7574         (language_defn::lookup_symbol_nonlocal): New member function.
7575         * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7576         initializer.
7577         * objc-lang.c (objc_language_data): Likewise.
7578         * opencl-lang.c (opencl_language_data): Likewise.
7579         * p-lang.c (pascal_language_data): Likewise.
7580         * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7581         rust_language::lookup_symbol_nonlocal.
7582         (rust_language_data): Delete la_lookup_symbol_nonlocal
7583         initializer.
7584         (rust_language::lookup_symbol_nonlocal): New member function,
7585         implementation from rust_lookup_symbol_nonlocal.
7586         * symtab.c (lookup_symbol_aux): Update call to
7587         lookup_symbol_nonlocal.
7588         (basic_lookup_symbol_nonlocal): Rename to...
7589         (language_defn::lookup_symbol_nonlocal): ...this, and update
7590         header comment.  Remove language_defn parameter, and replace with
7591         uses of `this'.
7592         * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7594 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7596         * ada-lang.c (ada_language_data): Delete la_value_print_inner
7597         initializer.
7598         (ada_language::value_print_inner): New member function.
7599         * c-lang.c (c_language_data): Delete la_value_print_inner
7600         initializer.
7601         (cplus_language_data): Likewise.
7602         (asm_language_data): Likewise.
7603         (minimal_language_data): Likewise.
7604         * d-lang.c (d_language_data): Likewise.
7605         (d_language::value_print_inner): New member function.
7606         * f-lang.c (f_language_data): Delete la_value_print_inner
7607         initializer.
7608         (f_language::value_print_inner): New member function.
7609         * f-lang.h (f_value_print_innner): Rename to...
7610         (f_value_print_inner): ...this (note spelling of 'inner').
7611         * f-valprint.c (f_value_print_innner): Rename to...
7612         (f_value_print_inner): ...this (note spelling of 'inner').
7613         * go-lang.c (go_language_data): Delete la_value_print_inner
7614         initializer.
7615         (go_language::value_print_inner): New member function.
7616         * language.c (language_defn::value_print_inner): Define new member
7617         function.
7618         (unk_lang_value_print_inner): Delete.
7619         (unknown_language_data): Delete la_value_print_inner initializer.
7620         (unknown_language::value_print_inner): New member function.
7621         (auto_language_data): Delete la_value_print_inner initializer.
7622         (auto_language::value_print_inner): New member function.
7623         * language.h (language_data): Delete la_value_print_inner field.
7624         (language_defn::value_print_inner): Delcare new member function.
7625         * m2-lang.c (m2_language_data): Delete la_value_print_inner
7626         initializer.
7627         (m2_language::value_print_inner): New member function.
7628         * objc-lang.c (objc_language_data): Delete la_value_print_inner
7629         initializer.
7630         * opencl-lang.c (opencl_language_data): Likewise.
7631         * p-lang.c (pascal_language_data): Likewise.
7632         (pascal_language::value_print_inner): New member function.
7633         * rust-lang.c (rust_language_data): Delete la_value_print_inner
7634         initializer.
7635         (rust_language::value_print_inner): New member function.
7636         * valprint.c (do_val_print): Update call to value_print_inner.
7638 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7640         * ada-lang.c (ada_language_data): Delete la_value_print
7641         initializer.
7642         (ada_language::value_print): New member function.
7643         * c-lang.c (c_language_data): Delete la_value_print initializer.
7644         (cplus_language_data): Likewise.
7645         (asm_language_data): Likewise.
7646         (minimal_language_data): Likewise.
7647         * d-lang.c (d_language_data): Likewise.
7648         * f-lang.c (f_language_data): Likewise.
7649         * go-lang.c (go_language_data): Likewise.
7650         * language.c (unk_lang_value_print): Delete.
7651         (language_defn::value_print): Define new member function.
7652         (unknown_language_data): Delete la_value_print initializer.
7653         (unknown_language::value_print): New member function.
7654         (auto_language_data): Delete la_value_print initializer.
7655         (auto_language::value_print): New member function.
7656         * language.h (language_data): Delete la_value_print field.
7657         (language_defn::value_print): Declare new member function.
7658         (LA_VALUE_PRINT): Update call to value_print.
7659         * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7660         * objc-lang.c (objc_language_data): Likewise.
7661         * opencl-lang.c (opencl_language_data): Likewise.
7662         * p-lang.c (pascal_language_data): Likewise.
7663         (pascal_language::value_print): New member function.
7664         * rust-lang.c (rust_language_data): Delete la_value_print
7665         initializer.
7667 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7669         * ada-lang.c (ada_watch_location_expression): Rename to
7670         ada_language::watch_location_expression.
7671         (ada_language_data): Delete la_watch_location_expression
7672         initializer.
7673         (ada_language::watch_location_expression): New member function,
7674         implementation from ada_watch_location_expression.
7675         * breakpoint.c (watch_command_1): Update call to
7676         watch_location_expression.
7677         * c-lang.c (c_watch_location_expression): Rename to
7678         language_defn::watch_location_expression.
7679         (c_language_data): Delete la_watch_location_expression
7680         initializer.
7681         (cplus_language_data): Likewise.
7682         (asm_language_data): Likewise.
7683         (minimal_language_data): Likewise.
7684         * c-lang.h (c_watch_location_expression): Delete declaration.
7685         * d-lang.c (d_language_data): Delete la_watch_location_expression
7686         initializer.
7687         * f-lang.c (f_language_data): Likewise.
7688         * go-lang.c (go_language_data): Likewise.
7689         * language.c (language_defn::watch_location_expression): Member
7690         function implementation from c_watch_location_expression.
7691         (unknown_language_data): Delete la_watch_location_expression
7692         initializer.
7693         (auto_language_data): Likewise.
7694         * language.h (language_data): Delete la_watch_location_expression
7695         field.
7696         (language_defn::watch_location_expression): Declare new member
7697         function.
7698         * m2-lang.c (m2_language_data): Delete
7699         la_watch_location_expression initializer.
7700         * objc-lang.c (objc_language_data): Likewise.
7701         * opencl-lang.c (opencl_language_data): Likewise.
7702         * p-lang.c (pascal_language_data): Likewise.
7703         * rust-lang.c (rust_watch_location_expression): Rename to
7704         rust_language::watch_location_expression.
7705         (rust_language_data): Delete la_watch_location_expression
7706         initializer.
7707         (rust_language::watch_location_expression): New member function,
7708         implementation from rust_watch_location_expression.
7710 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7712         * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7713         ada_language::collect_symbol_completion_matches.
7714         (ada_language_data): Delete la_collect_symbol_completion_matches
7715         initializer.
7716         (ada_language::collect_symbol_completion_matches): New member
7717         function, implementation from
7718         ada_collect_symbol_completion_matches.
7719         * c-lang.c (c_language_data): Delete
7720         la_collect_symbol_completion_matches initializer.
7721         (cplus_language_data): Likewise.
7722         (asm_language_data): Likewise.
7723         (minimal_language_data): Likewise.
7724         * d-lang.c (d_language_data): Likewise.
7725         * f-lang.c (f_collect_symbol_completion_matches): Rename to
7726         f_language::collect_symbol_completion_matches.
7727         (f_language_data): Delete la_collect_symbol_completion_matches
7728         initializer.
7729         (f_language::collect_symbol_completion_matches) New member
7730         function, implementation from f_collect_symbol_completion_matches.
7731         * go-lang.c (go_language_data): Delete
7732         la_collect_symbol_completion_matches initializer.
7733         * language.c (unknown_language_data): Likewise.
7734         (auto_language_data): Likewise.
7735         * language.h (language_data): Delete
7736         la_collect_symbol_completion_matches field.
7737         (language_defn::collect_symbol_completion_matches): New member
7738         function.
7739         * m2-lang.c (m2_language_data): Delete
7740         la_collect_symbol_completion_matches initializer.
7741         * objc-lang.c (objc_language_data): Likewise.
7742         * opencl-lang.c (opencl_language_data): Likewise.
7743         * p-lang.c (pascal_language_data): Likewise.
7744         * rust-lang.c (rust_language_data): Likewise.
7745         * symtab.c (default_collect_symbol_completion_matches): Delete.
7746         (collect_symbol_completion_matches): Update call to
7747         collect_symbol_completion_matches.
7748         (collect_symbol_completion_matches_type): Likewise.
7749         * symtab.h (default_collect_symbol_completion_matches): Delete
7750         declaration.
7752 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7754         * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7755         (ada_language_data): Delete la_word_break_characters initializer.
7756         (ada_language::word_break_characters): New member function.
7757         * c-lang.c (c_language_data): Delete la_word_break_characters
7758         initializer.
7759         (cplus_language_data): Likewise.
7760         (asm_language_data): Likewise.
7761         (minimal_language_data): Likewise.
7762         * completer.c: Update global comment.
7763         (advance_to_expression_complete_word_point): Update call to
7764         word_break_characters.
7765         (complete_files_symbols): Likewise.
7766         (complete_line_internal_1): Likewise.
7767         (default_completer_handle_brkchars): Likewise.
7768         (skip_quoted_chars): Likewise.
7769         * d-lang.c (d_language_data): Delete la_word_break_characters
7770         initializer.
7771         * f-lang.c (f_word_break_characters): Delete.
7772         (f_language_data): Delete la_word_break_characters initializer.
7773         (f_language::word_break_characters): New member function.
7774         * go-lang.c (go_language_data): Delete la_word_break_characters
7775         initializer.
7776         * language.c (unknown_language_data): Likewise.
7777         (auto_language_data): Likewise.
7778         * language.h (default_word_break_characters): Move declaration to
7779         earlier in the file.
7780         (language_data): Delete la_word_break_characters field.
7781         (language_defn::word_break_characters): New member function.
7782         * m2-lang.c (m2_language_data): Delete la_word_break_characters
7783         initializer.
7784         * objc-lang.c (objc_language_data): Likewise.
7785         * opencl-lang.c (opencl_language_data): Likewise.
7786         * p-lang.c (pascal_language_data): Likewise.
7787         * rust-lang.c (rust_language_data): Likewise.
7789 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7791         * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7792         (ada_language_data): Delete la_get_symbol_name_matcher
7793         initializer.
7794         (language_defn::get_symbol_name_matcher_inner): New member
7795         function.
7796         * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7797         initializer.
7798         (cplus_language_data): Likewise.
7799         (cplus_language::get_symbol_name_matcher_inner): New member
7800         function.
7801         (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7802         (minimal_language_data): Likewise.
7803         * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7804         * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7805         initializer.
7806         * dictionary.c (iter_match_first_hashed): Update call to
7807         get_symbol_name_matcher.
7808         (iter_match_next_hashed): Likewise.
7809         (iter_match_next_linear): Likewise.
7810         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7811         * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7812         initializer.
7813         (f_language::get_symbol_name_matcher_inner): New member function.
7814         * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7815         initializer.
7816         * language.c (default_symbol_name_matcher): Update header comment,
7817         make static.
7818         (language_defn::get_symbol_name_matcher): New definition.
7819         (language_defn::get_symbol_name_matcher_inner): Likewise.
7820         (get_symbol_name_matcher): Delete.
7821         (unknown_language_data): Delete la_get_symbol_name_matcher
7822         initializer.
7823         (auto_language_data): Likewise.
7824         * language.h (language_data): Delete la_get_symbol_name_matcher
7825         field.
7826         (language_defn::get_symbol_name_matcher): New member function.
7827         (language_defn::get_symbol_name_matcher_inner): Likewise.
7828         (default_symbol_name_matcher): Delete declaration.
7829         * linespec.c (find_methods): Update call to
7830         get_symbol_name_matcher.
7831         * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7832         initializer.
7833         * minsyms.c (lookup_minimal_symbol): Update call to
7834         get_symbol_name_matcher.
7835         (iterate_over_minimal_symbols): Likewise.
7836         * objc-lang.c (objc_language_data): Delete
7837         la_get_symbol_name_matcher initializer.
7838         * opencl-lang.c (opencl_language_data): Likewise.
7839         * p-lang.c (pascal_language_data): Likewise.
7840         * psymtab.c (psymbol_name_matches): Update call to
7841         get_symbol_name_matcher.
7842         * rust-lang.c (rust_language_data): Delete
7843         la_get_symbol_name_matcher initializer.
7844         * symtab.c (symbol_matches_search_name): Update call to
7845         get_symbol_name_matcher.
7846         (compare_symbol_name): Likewise.
7848 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7850         * ada-lang.c (ada_language_data): Delete la_compute_program
7851         initializer.
7852         * c-lang.c (c_language_data): Likewise.
7853         (c_language::compute_program): New member function.
7854         (cplus_language_data): Delete la_compute_program initializer.
7855         (cplus_language::compute_program): New member function.
7856         (asm_language_data): Delete la_compute_program initializer.
7857         (minimal_language_data): Likewise.
7858         * c-lang.h (c_compute_program): Update comment.
7859         (cplus_compute_program): Likewise.
7860         * compile/compile-c-support.c (c_compute_program): Likewise.
7861         (cplus_compute_program): Likewise.
7862         * compile/compile.c (compile_to_object): Update call to
7863         la_compute_program.
7864         * d-lang.c (d_language_data): Delete la_compute_program
7865         initializer.
7866         * f-lang.c (f_language_data): Likewise.
7867         * go-lang.c (go_language_data): Likewise.
7868         * language.c (unknown_language_data): Likewise.
7869         (auto_language_data): Likewise.
7870         * language.h (language_data): Delete la_compute_program field.
7871         (language_defn::compute_program): New member function.
7872         * m2-lang.c (m2_language_data): Delete la_compute_program
7873         initializer.
7874         * objc-lang.c (objc_language_data): Likewise.
7875         * opencl-lang.c (opencl_language_data): Likewise.
7876         * p-lang.c (pascal_language_data): Likewise.
7877         * rust-lang.c (rust_language_data): Likewise.
7879 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7881         * ada-lang.c (ada_language_data) Delete
7882         la_class_name_from_physname initializer.
7883         * c-lang.c (c_language_data): Likewise.
7884         (cplus_language_data): Likewise.
7885         (cplus_language::class_name_from_physname): New member function.
7886         (asm_language_data): Delete la_class_name_from_physname
7887         initializer.
7888         (minimal_language_data): Likewise.
7889         * d-lang.c (d_language_data): Likewise.
7890         * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7891         method on language_defn class.
7892         (guess_full_die_structure_name): Likewise.
7893         * f-lang.c (f_language_data): Delete la_class_name_from_physname
7894         initializer.
7895         * go-lang.c (go_language_data): Likewise.
7896         * language.c (language_class_name_from_physname): Delete.
7897         (unk_lang_class_name): Delete.
7898         (unknown_language_data): Delete la_class_name_from_physname
7899         initializer.
7900         (auto_language_data): Likewise.
7901         * language.h (language_data): Delete la_class_name_from_physname
7902         field.
7903         (language_defn::class_name_from_physname): New function.
7904         (language_class_name_from_physname): Delete declaration.
7905         * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7906         initializer.
7907         * objc-lang.c (objc_language_data): Likewise.
7908         * opencl-lang.c (opencl_language_data): Likewise.
7909         * p-lang.c (pascal_language_data): Likewise.
7910         * rust-lang.c (rust_language_data): Likewise.
7912 2020-06-16  Tom Tromey  <tom@tromey.com>
7914         * tui/tui-data.h (STATUS_NAME): New macro.
7915         * tui/tui-layout.c (tui_remove_some_windows)
7916         (initialize_known_windows, tui_register_window)
7917         (tui_layout_split::remove_windows, initialize_layouts)
7918         (tui_new_layout_command): Don't use hard-coded window names.
7920 2020-06-16  Tom Tromey  <tom@tromey.com>
7922         PR tui/25348:
7923         * tui/tui.c (tui_ensure_readline_initialized): Rename from
7924         tui_initialize_readline.  Only run once.  Call rl_initialize.
7925         * tui/tui.h (tui_ensure_readline_initialized): Rename from
7926         tui_initialize_readline.
7927         * tui/tui-io.c (tui_setup_io): Call
7928         tui_ensure_readline_initialized.
7929         * tui/tui-interp.c (tui_interp::init): Update.
7931 2020-06-16  Tom Tromey  <tom@tromey.com>
7933         * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7934         Also preserve the status window.
7936 2020-06-16  Tom Tromey  <tom@tromey.com>
7938         * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7939         where m_window==nullptr.
7941 2020-06-15  Tom Tromey  <tromey@adacore.com>
7943         * windows-nat.c (windows_nat::handle_output_debug_string):
7944         Update.
7945         (windows_nat::handle_ms_vc_exception): Update.
7946         * target.h (target_read_string): Change API.
7947         * target.c (target_read_string): Change API.
7948         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7949         Update.
7950         * solib-frv.c (frv_current_sos): Update.
7951         * solib-dsbt.c (dsbt_current_sos): Update.
7952         * solib-darwin.c (darwin_current_sos): Update.
7953         * linux-thread-db.c (inferior_has_bug): Update.
7954         * expprint.c (print_subexp_standard): Update.
7955         * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7956         (ada_exception_message_1): Update.
7958 2020-06-15  Tom Tromey  <tromey@adacore.com>
7960         * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7962 2020-06-15  Tom Tromey  <tromey@adacore.com>
7964         * valprint.c (read_string): Update comment.
7965         * target.c (MIN): Remove.
7966         (target_read_string): Rewrite.
7968 2020-06-15  Tom Tromey  <tromey@adacore.com>
7970         * corefile.c (read_memory_string): Remove.
7971         * ada-valprint.c (ada_value_print_ptr): Update.
7972         * ada-lang.h (ada_tag_name): Change return type.
7973         * ada-lang.c (type_from_tag): Update.
7974         (ada_tag_name_from_tsd): Change return type.  Use
7975         target_read_string.
7976         (ada_tag_name): Likewise.
7977         * gdbcore.h (read_memory_string): Don't declare.
7979 2020-06-14  Hannes Domani  <ssbssa@yahoo.de>
7981         * symtab.c (rbreak_command): Ignore Windows drive colon.
7983 2020-06-12  Simon Marchi  <simon.marchi@efficios.com>
7985         * NEWS: Mention removed GDBserver host support.
7987 2020-06-12  Nelson Chu  <nelson.chu@sifive.com>
7989         * features/riscv/rebuild-csr-xml.sh: Updated.
7991 2020-06-11  Tom Tromey  <tom@tromey.com>
7993         PR gdb/18318:
7994         * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7996 2020-06-09  Jonny Grant  <jg@jguk.org>
7997 2020-06-09  Simon Marchi  <simon.marchi@polymtl.ca>
7999         * main.c (captured_main_1): Don't print new line after help.
8000         (print_gdb_help): add mailing list and IRC channel information
8001         to --help.  Add new lines between items in the footer.  Remove
8002         quotes around bug url.
8004 2020-06-11  Keith Seitz  <keiths@redhat.com>
8006         PR gdb/21356
8007         * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8008         Resolve typedefs for type length calculations.
8010 2020-06-10  Tom de Vries  <tdevries@suse.de>
8012         PR ada/24713
8013         * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8014         (write_psymbols): Enable .gdb_index for ada.
8015         * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8016         ada.
8018 2020-06-10  Tom de Vries  <tdevries@suse.de>
8020         * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8021         (dw2_symtab_iter_init): ... here.  Add variant with "offset_type
8022         namei" instead of "const char *name" argument.
8023         (dw2_map_matching_symbols): Use "offset_type namei" variant of
8024         dw2_symtab_iter_init.
8026 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8028         * gdbtypes.h (TYPE_FIELD_TYPE): Remove.  Change all call sites
8029         to use type::field and field::type instead.
8031 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8033         * gdbtypes.h (FIELD_TYPE): Remove.  Change all call sites
8034         to use field::type instead.
8036 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8038         * gdbtypes.h (struct field) <type, set_type>: New methods.
8039         Rename `type` field to...
8040         <m_type>: ... this.  Change references throughout to use type or
8041         set_type methods.
8042         (FIELD_TYPE): Use field::type.  Change call sites that modify
8043         the field's type to use field::set_type instead.
8045 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8047         * gdbtypes.h (TYPE_INDEX_TYPE): Remove.  Change all call sites
8048         to use type::index_type instead.
8050 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8052         * gdbtypes.h (struct type) <index_type, set_index_type>: New
8053         methods.
8054         (TYPE_INDEX_TYPE): Use type::index_type.
8055         * gdbtypes.c (create_array_type_with_stride): Likewise.
8057 2020-06-07  Tom Tromey  <tom@tromey.com>
8059         * valprint.c (generic_val_print_float): Remove "embedded_offset"
8060         parameter.
8061         (generic_value_print): Update.
8063 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8065         Revert commit 982a38f60b0.
8066         * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8068 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8070         * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8071         avoid use after free.
8073 2020-06-05  Tom de Vries  <tdevries@suse.de>
8075         * NEWS: Fix typos.
8077 2020-06-04  Simon Marchi  <simon.marchi@efficios.com>
8079         * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8080         the per_bfd object.
8081         (dwarf2_read_debug_names): Likewise.
8082         (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8083         object when re-using a per_bfd object with an index.
8085 2020-06-03  Tom de Vries  <tdevries@suse.de>
8087         PR symtab/26046
8088         * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8089         children for C++.
8090         (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8091         DW_TAG_subprogram.
8093 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8095         * ada-lang.c (ada_language_data): Delete skip_trampoline
8096         initializer.
8097         * c-lang.c (c_language_data): Likewise.
8098         (cplus_language_data): Likewise.
8099         (cplus_language::skip_trampoline): New member function.
8100         (asm_language_data): Delete skip_trampoline initializer.
8101         (minimal_language_data): Likewise.
8102         * d-lang.c (d_language_data): Likewise.
8103         * f-lang.c (f_language_data): Likewise.
8104         * go-lang.c (go_language_data): Likewise.
8105         * language.c (unk_lang_trampoline): Delete function.
8106         (skip_language_trampoline): Update.
8107         (unknown_language_data): Delete skip_trampoline initializer.
8108         (auto_language_data): Likewise.
8109         * language.h (language_data): Delete skip_trampoline field.
8110         (language_defn::skip_trampoline): New function.
8111         * m2-lang.c (m2_language_data): Delete skip_trampoline
8112         initializer.
8113         * objc-lang.c (objc_skip_trampoline): Delete function, move
8114         implementation to objc_language::skip_trampoline.
8115         (objc_language_data): Delete skip_trampoline initializer.
8116         (objc_language::skip_trampoline): New member function with
8117         implementation from objc_skip_trampoline.
8118         * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8119         initializer.
8120         * p-lang.c (pascal_language_data): Likewise.
8121         * rust-lang.c (rust_language_data): Likewise.
8123 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8125         * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8126         (ada_language::demangle): New member function.
8127         * c-lang.c (c_language_data): Delete la_demangle initializer.
8128         (cplus_language_data): Delete la_demangle initializer.
8129         (cplus_language::demangle): New member function.
8130         (asm_language_data): Delete la_demangle initializer.
8131         (minimal_language_data): Delete la_demangle initializer.
8132         * d-lang.c (d_language_data): Delete la_demangle initializer.
8133         (d_language::demangle): New member function.
8134         * f-lang.c (f_language_data): Delete la_demangle initializer.
8135         (f_language::demangle): New member function.
8136         * go-lang.c (go_language_data): Delete la_demangle initializer.
8137         (go_language::demangle): New member function.
8138         * language.c (language_demangle): Update.
8139         (unk_lang_demangle): Delete.
8140         (unknown_language_data): Delete la_demangle initializer.
8141         (unknown_language::demangle): New member function.
8142         (auto_language_data): Delete la_demangle initializer.
8143         (auto_language::demangle): New member function.
8144         * language.h (language_data): Delete la_demangle field.
8145         (language_defn::demangle): New function.
8146         * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8147         * objc-lang.c (objc_language_data): Delete la_demangle
8148         initializer.
8149         (objc_language::demangle): New member function.
8150         * opencl-lang.c (opencl_language_data): Delete la_demangle
8151         initializer.
8152         * p-lang.c (pascal_language_data): Likewise.
8153         * rust-lang.c (rust_language_data): Likewise.
8154         (rust_language::demangle): New member function.
8156 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8158         * ada-lang.c (ada_language_data): Delete la_print_type
8159         initializer.
8160         (ada_language::print_type): New member function.
8161         * c-lang.c (c_language_data): Delete la_print_type initializer.
8162         (c_language::print_type): New member function.
8163         (cplus_language_data): Delete la_print_type initializer.
8164         (cplus_language::print_type): New member function.
8165         (asm_language_data): Delete la_print_type initializer.
8166         (asm_language::print_type): New member function.
8167         (minimal_language_data): Delete la_print_type initializer.
8168         (minimal_language::print_type): New member function.
8169         * d-lang.c (d_language_data): Delete la_print_type initializer.
8170         (d_language::print_type): New member function.
8171         * f-lang.c (f_language_data): Delete la_print_type initializer.
8172         (f_language::print_type): New member function.
8173         * go-lang.c (go_language_data): Delete la_print_type initializer.
8174         (go_language::print_type): New member function.
8175         * language.c (unk_lang_print_type): Delete.
8176         (unknown_language_data): Delete la_print_type initializer.
8177         (unknown_language::print_type): New member function.
8178         (auto_language_data): Delete la_print_type initializer.
8179         (auto_language::print_type): New member function.
8180         * language.h (language_data): Delete la_print_type field.
8181         (language_defn::print_type): New function.
8182         (LA_PRINT_TYPE): Update.
8183         * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8184         (m2_language::print_type): New member function.
8185         * objc-lang.c (objc_language_data): Delete la_print_type
8186         initializer.
8187         (objc_language::print_type): New member function.
8188         * opencl-lang.c (opencl_print_type): Delete, implementation moved
8189         to opencl_language::print_type.
8190         (opencl_language_data): Delete la_print_type initializer.
8191         (opencl_language::print_type): New member function, implementation
8192         from opencl_print_type.
8193         * p-lang.c (pascal_language_data): Delete la_print_type
8194         initializer.
8195         (pascal_language::print_type): New member function.
8196         * rust-lang.c (rust_print_type): Delete, implementation moved to
8197         rust_language::print_type.
8198         (rust_language_data): Delete la_print_type initializer.
8199         (rust_language::print_type): New member function, implementation
8200         from rust_print_type.
8202 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8204         * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8205         implementation moves to...
8206         (ada_language::sniff_from_mangled_name): ...here.  Update return
8207         type.
8208         (ada_language_data): Delete la_sniff_from_mangled_name
8209         initializer.
8210         * c-lang.c (c_language_data): Likewise.
8211         (cplus_language_data): Likewise.
8212         (cplus_language::sniff_from_mangled_name): New member function,
8213         implementation taken from gdb_sniff_from_mangled_name.
8214         (asm_language_data): Delete la_sniff_from_mangled_name
8215         initializer.
8216         (minimal_language_data): Likewise.
8217         * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8218         implementation moves to cplus_language::sniff_from_mangled_name.
8219         * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8220         * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8221         moves to...
8222         (d_language::sniff_from_mangled_name): ...here.
8223         (d_language_data): Delete la_sniff_from_mangled_name initializer.
8224         * f-lang.c (f_language_data): Likewise.
8225         * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8226         moves to...
8227         (go_language::sniff_from_mangled_name): ...here.
8228         (go_language_data): Delete la_sniff_from_mangled_name initializer.
8229         * language.c (language_sniff_from_mangled_name): Delete.
8230         (unknown_language_data): Delete la_sniff_from_mangled_name
8231         initializer.
8232         (auto_language_data): Likewise.
8233         * language.h (language_data): Delete la_sniff_from_mangled_name
8234         field.
8235         (language_defn::sniff_from_mangled_name): New function.
8236         (language_sniff_from_mangled_name): Delete declaration.
8237         * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8238         field.
8239         * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8240         implementation moves to...
8241         (objc_language::sniff_from_mangled_name): ...here.
8242         (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8243         * opencl-lang.c (opencl_language_data): Likewise.
8244         * p-lang.c (pascal_language_data): Likewise.
8245         * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8246         implementation moves to...
8247         (rust_language::sniff_from_mangled_name): ...here.
8248         (rust_language_data): Delete la_sniff_from_mangled_name
8249         initializer.
8250         * symtab.c (symbol_find_demangled_name): Call
8251         sniff_from_mangled_name member function.
8253 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8255         * ada-lang.c (ada_language_data): Delete la_search_name_hash
8256         initializer.
8257         * c-lang.c (c_language_data): Likewise.
8258         (cplus_language_data): Likewise.
8259         (cplus_language::search_name_hash): New member function.
8260         (asm_language_data): Delete la_search_name_hash initializer.
8261         (minimal_language_data): Likewise.
8262         * d-lang.c (d_language_data): Likewise.
8263         * dictionary.c (default_search_name_hash): Rename to...
8264         (language_defn::search_name_hash): ...this.
8265         * f-lang.c (f_language_data): Likewise.
8266         (f_language::search_name_hash): New member function.
8267         * go-lang.c (go_language_data): Delete la_search_name_hash
8268         initializer.
8269         * language.c (unknown_language_data): Likewise.
8270         (auto_language_data): Likewise.
8271         * language.h (struct language_data): Delete la_search_name_hash
8272         field.
8273         (language_defn::search_name_hash): Declare new member function.
8274         (default_search_name_hash): Delete declaration.
8275         * m2-lang.c (m2_language_data): Delete la_search_name_hash
8276         initializer.
8277         * objc-lang.c (objc_language_data): Likewise.
8278         * opencl-lang.c (opencl_language_data): Likewise.
8279         * p-lang.c (pascal_language_data): Likewise.
8280         * rust-lang.c (rust_language_data): Likewise.
8281         * symtab.c (search_name_hash): Update call.
8283 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8285         * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8286         initializer.
8287         * c-lang.c (class compile_instance): Declare.
8288         (c_language_data): Delete la_get_compile_instance initializer.
8289         (c_language::get_compile_instance): New member function.
8290         (cplus_language_data): Delete la_get_compile_instance initializer.
8291         (cplus_language::get_compile_instance): New member function.
8292         (asm_language_data): Delete la_get_compile_instance initializer.
8293         (minimal_language_data): Likewise.
8294         * c-lang.h (c_get_compile_context): Update comment.
8295         (cplus_get_compile_context): Update comment.
8296         * compile/compile.c (compile_to_object): Update calls, don't rely
8297         on function pointer being NULL.
8298         * d-lang.c (d_language_data): Delete la_get_compile_instance
8299         initializer.
8300         * f-lang.c (f_language_data): Likewise.
8301         * go-lang.c (go_language_data): Likewise.
8302         * language.c (unknown_language_data): Likewise.
8303         (auto_language_data): Likewise.
8304         * language.h (language_data): Delete la_get_compile_instance field.
8305         (language_defn::get_compile_instance): New member function.
8306         * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8307         initializer.
8308         * objc-lang.c (objc_language_data): Likewise.
8309         * opencl-lang.c (opencl_language_data): Likewise.
8310         * p-lang.c (pascal_language_data): Likewise.
8311         * rust-lang.c (rust_language_data): Likewise.
8313 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8315         * ada-lang.c (ada_add_all_symbols): Update comment.
8316         (ada_iterate_over_symbols): Delete, move implementation to...
8317         (ada_language::iterate_over_symbols): ...here, a new member
8318         function, rewrite to use range based for loop.
8319         (ada_language_data): Delete la_iterate_over_symbols initializer.
8320         * c-lang.c (c_language_data): Likewise.
8321         (cplus_language_data): Likewise.
8322         (asm_language_data): Likewise.
8323         (minimal_language_data): Likewise.
8324         * d-lang.c (d_language_data): Likewise.
8325         * f-lang.c (f_language_data): Likewise.
8326         * go-lang.c (go_language_data): Likewise.
8327         * language.c (unknown_language_data): Likewise.
8328         (auto_language_data): Likewise.
8329         * language.h (language_data): Delete la_iterate_over_symbols field.
8330         (language_defn::iterate_over_symbols): New member function.
8331         (LA_ITERATE_OVER_SYMBOLS): Update.
8332         * linespec.c (iterate_over_all_matching_symtabs): Update.
8333         * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8334         initializer.
8335         * objc-lang.c (objc_language_data): Likewise.
8336         * opencl-lang.c (opencl_language_data): Likewise.
8337         * p-lang.c (pascal_language_data): Likewise.
8338         * rust-lang.c (rust_language_data): Likewise.
8340 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8342         * ada-lang.c (ada_language_data): Delete
8343         la_lookup_transparent_type initializer.
8344         * c-lang.c (c_language_data): Likewise.
8345         (cplus_language_data): Likewise.
8346         (cplus_language::lookup_transparent_type): New member function.
8347         (asm_language_data): Delete la_lookup_transparent_type
8348         initializer.
8349         (minimal_language_data): Likewise.
8350         * d-lang.c (d_language_data): Likewise.
8351         * f-lang.c (f_language_data): Likewise.
8352         * go-lang.c (go_language_data): Likewise.
8353         * language.c (unknown_language_data): Likewise.
8354         (auto_language_data): Likewise.
8355         * language.h (struct language_data): Delete
8356         la_lookup_transparent_type field.
8357         (language_defn::lookup_transparent_type): New member function.
8358         * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8359         initializer.
8360         * objc-lang.c (objc_language_data): Likewise.
8361         * opencl-lang.c (opencl_language_data): Likewise.
8362         * p-lang.c (pascal_language_data): Likewise.
8363         * rust-lang.c (rust_language_data): Likewise.
8364         * symtab.c (symbol_matches_domain): Update call.
8366 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8368         * ada-lang.c (ada_language_arch_info): Delete function, move
8369         implementation to...
8370         (ada_language::language_arch_info): ...here, a new member
8371         function.
8372         (ada_language_data): Delete la_language_arch_info.
8373         * c-lang.c (c_language_data): Likewise.
8374         (c_language::language_arch_info): New member function.
8375         (cplus_language_arch_info): Delete function, move
8376         implementation to...
8377         (cplus_language::language_arch_info): ...here, a new member
8378         function.
8379         (cplus_language_data): Delete la_language_arch_info.
8380         (asm_language_data): Likewise.
8381         (asm_language::language_arch_info): New member function.
8382         (minimal_language_data): Delete la_language_arch_info.
8383         (minimal_language::language_arch_info): New member function.
8384         * d-lang.c (d_language_arch_info): Delete function, move
8385         implementation to...
8386         (d_language::language_arch_info): ...here, a new member
8387         function.
8388         (d_language_data): Delete la_language_arch_info.
8389         * f-lang.c (f_language_arch_info): Delete function, move
8390         implementation to...
8391         (f_language::language_arch_info): ...here, a new member
8392         function.
8393         (f_language_data): Delete la_language_arch_info.
8394         * go-lang.c (go_language_arch_info): Delete function, move
8395         implementation to...
8396         (go_language::language_arch_info): ...here, a new member
8397         function.
8398         (go_language_data): Delete la_language_arch_info.
8399         * language.c (unknown_language_data): Likewise.
8400         (unknown_language::language_arch_info): New member function.
8401         (auto_language_data): Delete la_language_arch_info.
8402         (auto_language::language_arch_info): New member function.
8403         (language_gdbarch_post_init): Update call to
8404         la_language_arch_info.
8405         * language.h (language_data): Delete la_language_arch_info
8406         function pointer.
8407         (language_defn::language_arch_info): New function.
8408         * m2-lang.c (m2_language_arch_info): Delete function, move
8409         implementation to...
8410         (m2_language::language_arch_info): ...here, a new member
8411         function.
8412         (m2_language_data): Delete la_language_arch_info.
8413         * objc-lang.c (objc_language_arch_info): Delete function, move
8414         implementation to...
8415         (objc_language::language_arch_info): ...here, a new member
8416         function.
8417         (objc_language_data): Delete la_language_arch_info.
8418         * opencl-lang.c (opencl_language_arch_info): Delete function, move
8419         implementation to...
8420         (opencl_language::language_arch_info): ...here, a new member
8421         function.
8422         (opencl_language_data): Delete la_language_arch_info.
8423         * p-lang.c (pascal_language_arch_info): Delete function, move
8424         implementation to...
8425         (pascal_language::language_arch_info): ...here, a new member
8426         function.
8427         (pascal_language_data): Delete la_language_arch_info.
8428         * rust-lang.c (rust_language_arch_info): Delete function, move
8429         implementation to...
8430         (rust_language::language_arch_info): ...here, a new member
8431         function.
8432         (rust_language_data): Delete la_language_arch_info.
8434 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8436         * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8437         initializer.
8438         * c-lang.c (c_language_data): Likewise.
8439         (cplus_language_data): Likewise.
8440         (cplus_language::pass_by_reference_info): New method.
8441         (asm_language_data): Delete la_pass_by_reference initializer.
8442         (minimal_language_data): Likewise.
8443         * cp-abi.c (cp_pass_by_reference): Remove use of
8444         default_pass_by_reference.
8445         * d-lang.c (d_language_data): Likewise.
8446         * f-lang.c (f_language_data): Likewise.
8447         * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8448         default_pass_by_reference.
8449         * go-lang.c (go_language_data): Likewise.
8450         * language.c (language_pass_by_reference): Update.
8451         (default_pass_by_reference): Delete.
8452         (unknown_language_data): Delete la_pass_by_reference
8453         initializer.
8454         (auto_language_data): Likewise.
8455         * language.h (struct language_data): Delete la_pass_by_reference
8456         field.
8457         (language_defn::pass_by_reference_info): New member function.
8458         (default_pass_by_reference): Delete declaration.
8459         * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8460         initializer.
8461         * objc-lang.c (objc_language_data): Likewise.
8462         * opencl-lang.c (opencl_language_data): Likewise.
8463         * p-lang.c (pascal_language_data): Likewise.
8464         * rust-lang.c (rust_language_data): Likewise.
8466 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8468         * ada-lang.c (ada_read_var_value): Delete function, move
8469         implementation to...
8470         (ada_language::read_var_value): ...here.
8471         (ada_language_data): Delete la_read_var_value initializer.
8472         * c-lang.c (c_language_data): Likewise.
8473         (cplus_language_data): Likewise.
8474         (minimal_language_data): Likewise.
8475         * d-lang.c (d_language_data): Likewise.
8476         * f-lang.c (f_language_data): Likewise.
8477         * findvar.c (default_read_var_value): Rename to...
8478         (language_defn::read_var_value): ...this.
8479         * findvar.c (read_var_value): Update header comment, and change to
8480         call member function instead of function pointer.
8481         * go-lang.c (go_language_data): Likewise.
8482         * language.c (unknown_language_data): Delete la_read_var_value
8483         initializer.
8484         (auto_language_data): Likewise.
8485         * language.h (struct language_data): Delete la_read_var_value
8486         field.
8487         (language_defn::read_var_value): New member function.
8488         (default_read_var_value): Delete declaration.
8489         * m2-lang.c (m2_language_data): Delete la_read_var_value
8490         initializer.
8491         * objc-lang.c (objc_language_data): Likewise.
8492         * opencl-lang.c (opencl_language_data): Likewise.
8493         * p-lang.c (pascal_language_data): Likewise.
8494         * rust-lang.c (rust_language_data): Likewise.
8495         * value.h (default_read_var_value): Delete declaration.
8497 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8499         * ada-lang.c (ada_print_array_index): Delete function, move
8500         implementation to...
8501         (ada_language::print_array_index): ...here.
8502         (ada_language_data): Delete la_print_array_index initializer.
8503         * c-lang.c (c_language_data): Likewise.
8504         (cplus_language_data): Likewise.
8505         (minimal_language_data): Likewise.
8506         * d-lang.c (d_language_data): Likewise.
8507         * f-lang.c (f_language_data): Likewise.
8508         * go-lang.c (go_language_data): Likewise.
8509         * language.c (default_print_array_index): Delete function, move
8510         implementation to...
8511         (language_defn::print_array_index): ...here.
8512         (unknown_language_data): Delete la_print_array_index initializer.
8513         (auto_language_data): Likewise.
8514         * language.h (struct language_data): Delete la_print_array_index
8515         field.
8516         (language_defn::print_array_index): New member function.
8517         (LA_PRINT_ARRAY_INDEX): Update.
8518         (default_print_array_index): Delete declaration.
8519         * m2-lang.c (m2_language_data): Delete la_print_array_index
8520         initializer.
8521         * objc-lang.c (objc_language_data): Likewise.
8522         * opencl-lang.c (opencl_language_data): Likewise.
8523         * p-lang.c (pascal_language_data): Likewise.
8524         * rust-lang.c (rust_language_data): Likewise.
8526 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8528         * gdb/ada-lang.c (ada_language_defn): Convert to...
8529         (ada_language_data): ...this.
8530         (class ada_language): New class.
8531         (ada_language_defn): New static global.
8532         * gdb/c-lang.c (c_language_defn): Convert to...
8533         (c_language_data): ...this.
8534         (class c_language): New class.
8535         (c_language_defn): New static global.
8536         (cplus_language_defn): Convert to...
8537         (cplus_language_data): ...this.
8538         (class cplus_language): New class.
8539         (cplus_language_defn): New static global.
8540         (asm_language_defn): Convert to...
8541         (asm_language_data): ...this.
8542         (class asm_language): New class.
8543         (asm_language_defn): New static global.
8544         (minimal_language_defn): Convert to...
8545         (minimal_language_data): ...this.
8546         (class minimal_language): New class.
8547         (minimal_language_defn): New static global.
8548         * gdb/d-lang.c (d_language_defn): Convert to...
8549         (d_language_data): ...this.
8550         (class d_language): New class.
8551         (d_language_defn): New static global.
8552         * gdb/f-lang.c (f_language_defn): Convert to...
8553         (f_language_data): ...this.
8554         (class f_language): New class.
8555         (f_language_defn): New static global.
8556         * gdb/go-lang.c (go_language_defn): Convert to...
8557         (go_language_data): ...this.
8558         (class go_language): New class.
8559         (go_language_defn): New static global.
8560         * gdb/language.c (unknown_language_defn): Remove declaration.
8561         (current_language): Initialize to nullptr, real initialization is
8562         moved to _initialize_language.
8563         (languages): Delete global.
8564         (language_defn::languages): Define.
8565         (set_language_command): Use language_defn::languages.
8566         (set_language): Likewise.
8567         (range_error): Likewise.
8568         (language_enum): Likewise.
8569         (language_def): Likewise.
8570         (add_set_language_command): Use language_def::languages for the
8571         language list, and language_def to lookup language pointers.
8572         (skip_language_trampoline): Use language_defn::languages.
8573         (unknown_language_defn): Convert to...
8574         (unknown_language_data): ...this.
8575         (class unknown_language): New class.
8576         (unknown_language_defn): New static global.
8577         (auto_language_defn): Convert to...
8578         (auto_language_data): ...this.
8579         (class auto_language): New class.
8580         (auto_language_defn): New static global.
8581         (language_gdbarch_post_init): Use language_defn::languages.
8582         (_initialize_language): Initialize current_language.
8583         * gdb/language.h (struct language_defn): Rename to...
8584         (struct language_data): ...this.
8585         (struct language_defn): New.
8586         (auto_language_defn): Delete.
8587         (unknown_language_defn): Delete.
8588         (minimal_language_defn): Delete.
8589         (ada_language_defn): Delete.
8590         (asm_language_defn): Delete.
8591         (c_language_defn): Delete.
8592         (cplus_language_defn): Delete.
8593         (d_language_defn): Delete.
8594         (f_language_defn): Delete.
8595         (go_language_defn): Delete.
8596         (m2_language_defn): Delete.
8597         (objc_language_defn): Delete.
8598         (opencl_language_defn): Delete.
8599         (pascal_language_defn): Delete.
8600         (rust_language_defn): Delete.
8601         * gdb/m2-lang.c (m2_language_defn): Convert to...
8602         (m2_language_data): ...this.
8603         (class m2_language): New class.
8604         (m2_language_defn): New static global.
8605         * gdb/objc-lang.c (objc_language_defn): Convert to...
8606         (objc_language_data): ...this.
8607         (class objc_language): New class.
8608         (objc_language_defn): New static global.
8609         * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8610         (opencl_language_data): ...this.
8611         (class opencl_language): New class.
8612         (opencl_language_defn): New static global.
8613         * gdb/p-lang.c (pascal_language_defn): Convert to...
8614         (pascal_language_data): ...this.
8615         (class pascal_language): New class.
8616         (pascal_language_defn): New static global.
8617         * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8618         language pointer, update comment format.
8619         * gdb/rust-lang.c (rust_language_defn): Convert to...
8620         (rust_language_data): ...this.
8621         (class rust_language): New class.
8622         (rust_language_defn): New static global.
8624 2020-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
8626         * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8627         member variable.
8628         <m_stmt_at_address>: New member variable.
8629         (lnp_state_machine::record_line): Don't record some lines, update
8630         tracking of is_stmt at the same address.
8631         (lnp_state_machine::lnp_state_machine): Initialise new member
8632         variables.
8634 2020-06-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8636         * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8637         "-include gnu-nat-mig.h".
8638         * gnu-nat-mig.h: New file.
8639         * gnu-nat.c: Include "gnu-nat-mig.h".
8640         (exc_server, msg_reply_server, notify_server,
8641         process_reply_server): Remove declarations.
8643 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8645         * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8646         steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8647         inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8648         inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8649         inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8650         inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8651         inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8652         proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8653         proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8654         to gnu_nat_target class.
8655         * gnu-nat.c: Likewise.
8656         (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8657         set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8658         set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8659         object.
8660         (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8661         instead of `gnu_target'.
8663 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8665         * i386-gnu-tdep.c: Include "gdbcore.h"
8666         (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8667         (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8668         I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8669         (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8670         i386_gnu_sigcontext_addr): New functions
8671         (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8672         i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8673         tdep.
8675 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8677         * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8678         before fork_inferior call. Avoid calling it if target_is_pushed returns
8679         true.
8681 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8683         * gnu-nat.h (gnu_target): New variable declaration.
8684         * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8685         gnu_target.
8686         * gnu-nat.c (gnu_target): New variable.
8687         (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8688         add_thread_silent, and add_thread calls.
8689         (gnu_nat_target::create_inferior): Pass gnu_target to
8690         add_thread_silent, thread_change_ptid call.
8691         (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8692         call.
8694 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8696         * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8697         (gnu_nat_target::find_memory_regions): Remove unused
8698         `old_address' variable.
8700 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8702         * gnu-nat.c: Include "gdbarch.h".
8704 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8706         * reply_mig_hack.awk (Error return): Cast function through
8707         void *, to bypass compiler function call check.
8709 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8711         * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8712         $(srcdir)/reply_mig_hack.awk.
8714 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8716         * gnu-nat.h (gnu_debug_flag): Set type to bool.
8718 2020-05-30  Jonny Grant  <jg@jguk.org>
8720         * configure.ac (ACX_BUGURL): change bug URL to https.
8722 2020-05-30  Pedro Alves  <palves@redhat.com>
8724         * cp-support.c (replace_typedefs_template): New.
8725         (replace_typedefs_qualified_name): Handle
8726         DEMANGLE_COMPONENT_TEMPLATE.
8728 2020-05-29  Simon Marchi  <simon.marchi@efficios.com>
8730         * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8731         dwarf2/index-cache.h, dwarf2/index-write.c,
8732         dwarf2/index-write.h, dwarf2/line-header.c,
8733         dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8734         dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8735         variables and fields from `dwarf2_per_objfile` to just
8736         `per_objfile` throughout.
8738 2020-05-28  Simon Marchi  <simon.marchi@polymtl.ca>
8740         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8741         <push_dwarf_reg_entry_value>: Add comment.
8743 2020-05-28  Kevin Buettner  <kevinb@redhat.com>
8744             Keith Seitz  <keiths@redhat.com>
8746         * python/python.c (do_start_initialization): Call PyEval_SaveThread
8747         instead of PyEval_ReleaseLock.
8748         (class gdbpy_gil): Move to earlier in file.
8749         (finalize_python): Set gdb_python_initialized.
8750         (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil.  Return early
8751         when not initialized.
8753 2020-05-28  Simon Marchi  <simon.marchi@efficios.com>
8755         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8756         <push_dwarf_reg_entry_value>: Remove assert.  Override
8757         per_objfile with caller_per_objfile.
8759 2020-05-28  Tom de Vries  <tdevries@suse.de>
8761         * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8762         PR gold/15646 workaround to symbol kind "type".
8764 2020-05-27  Tom Tromey  <tromey@adacore.com>
8766         * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8768 2020-05-27  Tom Tromey  <tromey@adacore.com>
8770         * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8771         Use htab_find_with_hash.
8772         <add_abbrev>: Remove "abbrev_number" parameter.
8773         * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8774         "abbrev_number" parameter.  Use htab_find_slot_with_hash.
8775         (hash_abbrev): Add comment.
8776         (abbrev_table::lookup_abbrev): Move to header file.
8777         (abbrev_table::read): Update.
8779 2020-05-27  Tom Tromey  <tromey@adacore.com>
8781         * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8782         method.
8783         <canonical_name>: New member.
8784         <raw_name>: Rename from "name".
8785         (partial_die_info): Initialize canonical_name.
8786         (scan_partial_symbols): Check raw_name.
8787         (partial_die_parent_scope, partial_die_full_name)
8788         (add_partial_symbol, add_partial_subprogram)
8789         (add_partial_enumeration, load_partial_dies): Use "name" method.
8790         (partial_die_info::name): New method.
8791         (partial_die_info::read, guess_partial_die_structure_name)
8792         (partial_die_info::fixup): Update.
8794 2020-05-27  Tom Tromey  <tromey@adacore.com>
8796         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8797         <get_ref_die_offset>: Inline.
8798         <get_ref_die_offset_complaint>: New method.
8799         * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8800         (attribute::get_ref_die_offset_complaint): Rename from
8801         get_ref_die_offset.  Just issue complaint.
8803 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8805         * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8807 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8809         * exec.c (exec_file_attach): Use errno value of first openp failure.
8811 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8813         * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8814         Don't close thread handle.
8816 2020-05-27  Tom Tromey  <tom@tromey.com>
8817             Simon Marchi  <simon.marchi@efficios.com>
8819         * objfiles.h (struct objfile) <partial_symtabs>: Now a
8820         shared_ptr.
8821         * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8822         member.
8823         * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8824         dwarf2_per_bfd_objfile_data_key>: New globals.
8825         (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8826         (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8827         (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8828         shared.
8829         (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8830         short-circuit when sharing.
8831         (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8832         (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8834 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8836         * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8837         to...
8838         (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8839         * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8841 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8843         * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8844         build_name_components, find_name_components_bounds>:
8845         Add per_objfile parameter.
8846         (struct mapped_index) <symbol_name_at>: Likewise.
8847         (struct mapped_debug_names): Remove constructor.
8848         <dwarf2_per_objfile>: Remove field.
8849         <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8850         (mapped_index_base::find_name_components_bounds,
8851         mapped_index_base::build_name_components,
8852         dw2_expand_symtabs_matching_symbol): Likewise.
8853         (class mock_mapped_index) <symbol_name_at>: Likewise.
8854         (check_match): Likewise.
8855         (check_find_bounds_finds): Likewise.
8856         (test_mapped_index_find_name_component_bounds): Update.
8857         (CHECK_MATCH): Update.
8858         (dw2_expand_symtabs_matching): Update.
8859         (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8860         per_objfile parameter.
8861         <find_vec_in_debug_names>: Likewise.
8862         <m_per_objfile>: New field.
8863         (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8864         parameter.
8865         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8866         (dw2_debug_names_iterator::next): Update.
8867         (dw2_debug_names_lookup_symbol): Update.
8868         (dw2_debug_names_expand_symtabs_for_function): Update.
8869         (dw2_debug_names_map_matching_symbols): Update.
8870         (dw2_debug_names_expand_symtabs_matching): Update.
8871         (dwarf2_read_debug_names): Update.
8873 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8875         * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8876         (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8877         move to dwarf2_per_objfile.
8878         <read_in_chain>: Remove.
8879         (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8880         remove_all_cus, age_comp_units>: New methods.
8881         <m_dwarf2_cus>: New member.
8882         (struct dwarf2_per_cu_data) <cu>: Remove.
8883         * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8884         (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8885         moved to methods of dwarf2_per_objfile.
8886         (dwarf2_clear_marks): Remove.
8887         (dwarf2_queue_item::~dwarf2_queue_item): Update.
8888         (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8889         (dwarf2_per_bfd::free_cached_comp_units): Remove.
8890         (dwarf2_per_objfile::remove_all_cus): New.
8891         (class free_cached_comp_units) <~free_cached_comp_units>:
8892         Update.
8893         (load_cu): Update.
8894         (dw2_do_instantiate_symtab): Adjust.
8895         (fill_in_sig_entry_from_dwo_entry): Adjust.
8896         (cutu_reader::init_tu_and_read_dwo_dies): Update.
8897         (cutu_reader::cutu_reader): Likewise.
8898         (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8899         (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8900         (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8901         and dwarf2_per_objfile::age_comp_units.
8902         (load_partial_comp_unit): Update.
8903         (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8904         (process_queue): Likewise.
8905         (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8906         backlink.
8907         (dwarf2_read_addr_index): Likewise.
8908         (follow_die_offset): Likewise.
8909         (dwarf2_fetch_die_loc_sect_off): Likewise.
8910         (dwarf2_fetch_constant_bytes): Likewise.
8911         (dwarf2_fetch_die_type_sect_off): Likewise.
8912         (follow_die_sig_1): Likewise.
8913         (load_full_type_unit): Likewise.
8914         (read_signatured_type): Likewise.
8915         (dwarf2_cu::dwarf2_cu): Don't set cu field.
8916         (dwarf2_cu::~dwarf2_cu): Remove.
8917         (dwarf2_per_objfile::get_cu): New.
8918         (dwarf2_per_objfile::set_cu): New.
8919         (age_cached_comp_units): Rename to...
8920         (dwarf2_per_objfile::age_comp_units): ... this.  Adjust
8921         to std::unordered_map.
8922         (free_one_cached_comp_unit): Rename to...
8923         (dwarf2_per_objfile::remove_cu): ... this.  Adjust
8924         to std::unordered_map.
8925         (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8926         (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8927         a dwarf2_per_objfile in data.
8928         (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8929         (dwarf2_clear_marks): Remove.
8931 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8933         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8934         `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8935         (init_tu_and_read_dwo_dies): Likewise.
8936         (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8937         (cutu_reader::cutu_reader): Likewise.
8938         (load_partial_comp_unit): Likewise.
8939         (process_psymtab_comp_unit): Update.
8940         (build_type_psymtabs_1): Update.
8941         (process_skeletonless_type_unit): Update.
8942         (load_full_comp_unit): Update.
8943         (find_partial_die): Update.
8944         (dwarf2_read_addr_index): Update.
8945         (read_signatured_type): Update.
8947 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8949         * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8950         m_header_read_in>: New fields.
8951         <get_header>: New method.
8952         * dwarf2/read.c (per_cu_header_read_in): Remove.
8953         (dwarf2_per_cu_data::get_header): New.
8954         (dwarf2_per_cu_data::addr_size): Update.
8955         (dwarf2_per_cu_data::offset_size): Update.
8956         (dwarf2_per_cu_data::ref_addr_size): Update.
8958 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8960         * dwarf2/read.c (load_cu): Return dwarf2_cu.
8961         (dw2_do_instantiate_symtab): Update.
8962         (queue_and_load_all_dwo_tus): Change parameter from
8963         dwarf2_per_cu_data to dwarf2_cu.
8964         (dwarf2_fetch_die_loc_sect_off): Update.
8965         (dwarf2_fetch_constant_bytes): Update.
8966         (dwarf2_fetch_die_type_sect_off): Update.
8968 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8970         * dwarf2/read.c (process_full_comp_unit,
8971         process_full_type_unit): Remove per_cu, per_objfile paramters.
8972         Add dwarf2_cu parameter.
8973         (process_queue): Update.
8975 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8977         * dwarf2/read.c (create_cu_from_index_list): Replace
8978         dwarf2_per_objfile parameter with dwarf2_per_bfd.
8979         (create_cus_from_index_list): Likewise.
8980         (create_cus_from_index): Likewise.
8981         (create_signatured_type_table_from_index): Likewise.
8982         (create_cus_from_debug_names_list): Likewise.
8983         (create_cus_from_debug_names): Likewise.
8984         (dwarf2_read_gdb_index): Update.
8985         (dwarf2_read_debug_names): Update.
8987 2020-05-27  Tom Tromey  <tom@tromey.com>
8988             Simon Marchi  <simon.marchi@efficios.com>
8990         * dwarf2/read.h (struct dwarf2_per_objfile)
8991         <get_type_for_signatured_type, set_type_for_signatured_type>:
8992         New methods.
8993         <m_type_map>: New member.
8994         (struct signatured_type) <type>: Remove.
8995         * dwarf2/read.c
8996         (dwarf2_per_objfile::get_type_for_signatured_type,
8997         dwarf2_per_objfile::set_type_for_signatured_type): New.
8998         (get_signatured_type): Use new methods.
9000 2020-05-27  Tom Tromey  <tom@tromey.com>
9001             Simon Marchi  <simon.marchi@efficios.com>
9003         * dwarf2/read.h (struct type_unit_group_unshareable): New.
9004         (struct dwarf2_per_objfile) <type_units>: New member.
9005         <get_type_unit_group_unshareable>: New method.
9006         * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9007         num_symtabs, symtabs>: Remove; move to
9008         type_unit_group_unshareable.
9009         (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9010         (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9011         (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9013 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9015         * dwarf2/read.h (struct dwarf2_per_cu_data):
9016         <dwarf2_per_objfile>: Remove.
9017         * dwarf2/read.c (create_cu_from_index_list): Don't assign
9018         dwarf2_per_objfile.
9019         (create_signatured_type_table_from_index): Likewise.
9020         (create_signatured_type_table_from_debug_names): Likewise.
9021         (create_debug_type_hash_table): Likewise.
9022         (fill_in_sig_entry_from_dwo_entry): Likewise.
9023         (create_type_unit_group): Likewise.
9024         (read_comp_units_from_section): Likewise.
9025         (create_cus_hash_table): Likewise.
9027 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9029         * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9030         dwarf2_per_cu_data::dwarf2_per_objfile.
9031         (compute_compunit_symtab_includes): Likewise.
9032         (dwarf2_cu::start_symtab): Likewise.
9034 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9036         * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9037         parameter.
9038         * dwarf2/read.c (get_die_type_at_offset): Likewise.
9039         (read_namespace_alias): Update.
9040         (lookup_die_type): Update.
9041         (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9042         * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9043         Update.
9044         (disassemble_dwarf_expression): Update.
9046 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9048         * dwarf2/read.h (struct dwarf2_queue_item): Add
9049         dwarf2_per_objfile parameter, assign new parameter.
9050         <per_objfile>: New field.
9051         * dwarf2/read.c (free_one_cached_comp_unit): Add
9052         dwarf2_per_objfile parameter.
9053         (queue_comp_unit): Likewise.
9054         (dw2_do_instantiate_symtab): Update.
9055         (process_psymtab_comp_unit): Update.
9056         (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9057         (process_imported_unit_die): Update.
9058         (queue_and_load_dwo_tu): Update.
9059         (follow_die_offset): Update.
9060         (follow_die_sig_1): Update.
9062 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9064         * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9065         * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9066         (read_call_site_scope): Assign per_objfile.
9067         (dwarf2_per_cu_data::objfile): Remove.
9068         * gdbtypes.h (struct call_site) <per_objfile>: New member.
9069         * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9070         dwarf2_per_objfile parameter.
9071         * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9072         dwarf2_per_objfile parameter.
9073         (dwarf_expr_reg_to_entry_parameter): Add output
9074         dwarf2_per_objfile parameter.
9075         (locexpr_get_frame_base): Update.
9076         (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9077         <push_dwarf_reg_entry_value>: Update.
9078         <call_site_to_target_addr>: Update.
9079         (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9080         parameter.
9081         (value_of_dwarf_reg_entry): Update.
9082         (rw_pieced_value): Update.
9083         (indirect_synthetic_pointer): Update.
9084         (dwarf2_evaluate_property): Update.
9085         (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9086         parameter.
9087         (locexpr_read_variable): Update.
9088         (locexpr_get_symbol_read_needs): Update.
9089         (loclist_read_variable): Update.
9091 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9093         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9094         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9095         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9096         parameter.
9097         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9098         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9099         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9100         parameter.
9101         * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9102         sect_variable_value): Add dwarf2_per_objfile parameter.
9103         (class dwarf_evaluate_loc_desc) <dwarf_call,
9104         dwarf_variable_value>: Update.
9105         (fetch_const_value_from_synthetic_pointer): Add
9106         dwarf2_per_objfile parameter.
9107         (fetch_const_value_from_synthetic_pointer): Update.
9108         (coerced_pieced_ref): Update.
9109         (class symbol_needs_eval_context) <dwarf_call,
9110         dwarf_variable_value>: Update.
9111         (dwarf2_compile_expr_to_ax): Update.
9113 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9115         * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9116         parameter.
9117         (dwarf2_evaluate_loc_desc_full): Update.
9119 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9121         * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9122         parameter.
9123         * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9124         * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9125         dwarf2_per_objfile parameter.
9126         (decode_debug_loc_dwo_addresses): Likewise.
9127         (dwarf2_find_location_expression): Update.
9128         (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9129         (locexpr_describe_location_piece): Add dwarf2_per_objfile
9130         parameter.
9131         (disassemble_dwarf_expression): Add dwarf2_per_objfile
9132         parameter.
9133         (locexpr_describe_location_1): Likewise.
9134         (locexpr_describe_location): Update.
9136 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9138         * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9139         Remove.
9140         * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9141         * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9142         (dwarf2_compile_property_to_c): Update.
9143         (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9144         use text offset from objfile.
9145         (locexpr_tracepoint_var_ref): Update.
9146         (locexpr_generate_c_location): Update.
9147         (loclist_describe_location): Update.
9148         (loclist_tracepoint_var_ref): Update.
9149         * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9150         dwarf2_per_objfile parameter.
9151         * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9152         use text offset from objfile.
9153         (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9155 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9157         * dwarf2/expr.h (struct dwarf_expr_context)
9158         <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9159         <offset>: Remove.
9160         <per_objfile>: New member.
9161         * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9162         dwarf2_per_objfile parameter.  Don't set offset, set
9163         per_objfile.
9164         (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9165         * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9166         a dwarf2_per_objfile object instead of an offset.
9167         (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9168         constructor.
9169         (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9170         to dwarf2_expr_executor constructor.  Don't set offset.
9171         (dwarf2_fetch_cfa_info): Update.
9172         (struct dwarf2_frame_cache) <text_offset>: Remove.
9173         <per_objfile>: New field.
9174         (dwarf2_frame_cache): Update.
9175         (dwarf2_frame_prev_register): Update.
9176         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9177         <dwarf_evaluate_loc_desc>: Add constructor.
9178         (dwarf2_evaluate_loc_desc_full): Update.
9179         (dwarf2_locexpr_baton_eval): Update.
9180         (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9181         Add constructor.
9182         (dwarf2_loc_desc_get_symbol_read_needs): Update.
9184 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9186         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9187         addr_sized_int_type>: Move to dwarf2_cu.
9188         <int_type>: Move to dwarf2_per_objfile.
9189         (struct dwarf2_per_objfile) <int_type>: Move here.
9190         * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9191         addr_sized_int_type>: Move here.
9192         (read_func_scope): Update.
9193         (read_array_type): Update.
9194         (read_tag_string_type): Update.
9195         (attr_to_dynamic_prop): Update.
9196         (dwarf2_per_cu_data::int_type): Rename to...
9197         (dwarf2_per_objfile::int_type): ... this.
9198         (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9199         (dwarf2_cu::addr_sized_int_type): ... this.
9200         (read_subrange_type): Update.
9201         (dwarf2_per_cu_data::addr_type): Rename to...
9202         (dwarf2_cu::addr_type): ... this.
9203         (set_die_type): Update.
9205 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9207         * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9208         data through per_cu->cu.
9210 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9212         * dwarf2/read.c (lookup_dwo_comp_unit): Change
9213         dwarf2_per_cu_data parameter fo dwarf2_cu.
9214         (lookup_dwo_type_unit): Likewise.
9215         (read_cutu_die_from_dwo): Likewise.
9216         (lookup_dwo_unit): Likewise.
9217         (open_and_init_dwo_file): Likewise.
9218         (lookup_dwo_cutu): Likewise.
9219         (lookup_dwo_comp_unit): Likewise.
9220         (lookup_dwo_type_unit): Likewise.
9221         (cutu_reader::init_tu_and_read_dwo_dies): Update.
9222         (cutu_reader::cutu_reader): Update.
9224 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9226         * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9227         parameter.
9228         (process_full_type_unit): Likewise.
9229         (process_queue): Update.
9231 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9233         * dwarf2/read.c (recursively_compute_inclusions): Add
9234         dwarf2_per_objfile parameter.
9235         (compute_compunit_symtab_includes): Likewise.
9236         (process_cu_includes): Update.
9238 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9240         * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9241         parameter.
9242         (create_type_unit_group): Update.
9243         (process_psymtab_comp_unit_reader): Update.
9244         (build_type_psymtabs_reader): Update.
9246 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9248         * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9249         object through m_this_cu->cu.
9251 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9253         * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9254         the info parameter.
9255         (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9257 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9259         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9260         per_objfile parameter.
9261         (load_full_type_unit): Add per_objfile parameter.
9262         (read_signatured_type): Likewise.
9263         (load_full_comp_unit): Likewise.
9264         (load_cu): Likewise.
9265         (dw2_do_instantiate_symtab): Likewise.
9266         (dw2_get_file_names): Likewise.
9267         (dw2_map_symtabs_matching_filename): Update.
9268         (dw_expand_symtabs_matching_file_matcher): Update.
9269         (dw2_map_symbol_filenames): Update.
9270         (process_psymtab_comp_unit): Add per_objfile parameter.
9271         (build_type_psymtabs_1): Update.
9272         (process_skeletonless_type_unit): Update.
9273         (dwarf2_build_psymtabs_hard): Update.
9274         (load_partial_comp_unit): Add per_objfile parameter.
9275         (scan_partial_symbols): Update.
9276         (load_full_comp_unit): Add per_objfile parameter.
9277         (process_imported_unit_die): Update.
9278         (create_cus_hash_table): Update.
9279         (find_partial_die): Update.
9280         (dwarf2_read_addr_index): Update.
9281         (follow_die_offset): Update.
9282         (dwarf2_fetch_die_loc_sect_off): Update.
9283         (dwarf2_fetch_constant_bytes): Update.
9284         (dwarf2_fetch_die_type_sect_off): Update.
9285         (follow_die_sig_1): Update.
9286         (load_full_type_unit): Add per_objfile parameter.
9287         (read_signatured_type): Likewise.
9289 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9291         * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9292         of objfile_name.
9294 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9296         * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9297         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9298         * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9299         field.
9300         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9301         (create_cus_from_index): Update.
9302         (dwarf2_read_gdb_index): Update.
9303         (create_cus_from_debug_names): Update.
9304         (dwarf2_read_debug_names): Update.
9305         (get_abbrev_section_for_cu): Update.
9306         (create_all_comp_units): Update.
9307         (read_attribute_value): Update.
9308         (get_debug_line_section): Update.
9309         * dwarf2/index-cache.c (index_cache::store): Update.
9310         * dwarf2/index-write.c (save_gdb_index_command): Update.
9311         * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9313 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9315         * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9316         member.
9317         * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9318         dwarf2_per_cu_data::per_bfd.
9319         (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9320         (create_type_unit_group): Likewise.
9321         (queue_comp_unit): Remove reference to
9322         per_cu->dwarf2_per_objfile.
9323         (maybe_queue_comp_unit): Likewise.
9324         (fill_in_sig_entry_from_dwo_entry): Assign new field.
9325         (create_cus_hash_table): Assign new field.
9327 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9329         * dwarf2/read.c: Replace
9330         dwarf2_cu->per_cu->dwarf2_per_objfile references with
9331         dwarf2_cu->per_objfile throughout.
9333 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9335         * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9336         parameter, don't use per_cu->dwarf2_per_objfile.
9337         (dw2_instantiate_symtab): Likewise.
9338         (dw2_find_last_source_symtab): Update.
9339         (dw2_map_expand_apply): Update.
9340         (dw2_lookup_symbol): Update.
9341         (dw2_expand_symtabs_for_function): Update.
9342         (dw2_expand_all_symtabs): Update.
9343         (dw2_expand_symtabs_with_fullname): Update.
9344         (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9345         don't use per_cu->dwarf2_per_objfile.
9346         (dw2_expand_marked_cus): Update.
9347         (dw2_find_pc_sect_compunit_symtab): Update.
9348         (dw2_debug_names_lookup_symbol): Update.
9349         (dw2_debug_names_expand_symtabs_for_function): Update.
9350         (dw2_debug_names_map_matching_symbols): Update.
9351         (dwarf2_psymtab::expand_psymtab): Update.
9353 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9355         * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9356         <per_objfile>: New member.
9357         (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9358         (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9359         call to dwarf2_cu.
9360         (cutu_reader::cutu_reader): Update.
9361         (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9363 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9365         * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9366         struct dwarf2_per_objfile.
9367         (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9368         dwarf2_per_bfd.
9369         * dwarf2/read.c (set_die_type): Update.
9370         (get_die_type_at_offset): Update.
9372 2020-05-27  Tom Tromey  <tom@tromey.com>
9373             Simon Marchi  <simon.marchi@efficios.com>
9375         * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9376         method.
9377         (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9378         get_symtab, set_symtab>: New methods.
9379         <m_symtabs>: New field.
9380         (struct dwarf2_psymtab): Derive from partial_symtab.
9381         <readin_p, get_compunit_symtab>: Declare methods.
9382         * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9383         dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9384         New methods.
9385         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9386         (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9387         (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9388         (dw2_symtab_iter_next, dw2_print_stats)
9389         (dw2_expand_symtabs_with_fullname)
9390         (dw2_expand_symtabs_matching_one)
9391         (dw_expand_symtabs_matching_file_matcher)
9392         (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9393         (dw2_debug_names_iterator::next)
9394         (dw2_debug_names_map_matching_symbols)
9395         (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9396         (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9397         (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9398         New methods.
9399         (get_compunit_symtab, process_full_comp_unit)
9400         (process_full_type_unit): Update.
9401         (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9403 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9405         * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9406         then introduce a new dwarf2_per_objfile type.
9407         <read_line_string>: Move to the new dwarf2_per_objfile type.
9408         <objfile>: Likewise.
9409         (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9410         * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9411         dwarf2_per_objfile->per_bfd.
9412         (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9413         (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9414         (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9415         (dwarf2_per_bfd::free_cached_comp_units): ... this.
9416         (dwarf2_has_info): Allocate dwarf2_per_bfd.
9417         (dwarf2_per_objfile::locate_sections): Rename to...
9418         (dwarf2_per_bfd::locate_sections): ... this.
9419         (dwarf2_per_objfile::get_cutu): Rename to...
9420         (dwarf2_per_bfd::get_cutu): ... this.
9421         (dwarf2_per_objfile::get_cu): Rename to...
9422         (dwarf2_per_bfd::get_cu): ... this.
9423         (dwarf2_per_objfile::get_tu): Rename to...
9424         (dwarf2_per_bfd::get_tu): ... this.
9425         (dwarf2_per_objfile::allocate_per_cu): Rename to...
9426         (dwarf2_per_bfd::allocate_per_cu): ... this.
9427         (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9428         (dwarf2_per_bfd::allocate_signatured_type): ... this.
9429         (get_gdb_index_contents_ftype): Change parameter from
9430         dwarf2_per_objfile to dwarf2_per_bfd.
9431         * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9432         dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9434 2020-05-27  Tom Tromey  <tom@tromey.com>
9435             Simon Marchi  <simon.marchi@efficios.com>
9437         * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9438         (allocate_piece_closure): Set "per_objfile" member.
9439         (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9440         (locexpr_describe_location, loclist_describe_location): Use new
9441         member.
9442         * dwarf2/read.c (read_call_site_scope)
9443         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9444         (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9445         (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9446         handle_data_member_location): Set per_objfile member.
9447         * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9448         member.
9449         (struct dwarf2_loclist_baton) <per_objfile>: New member.
9451 2020-05-27  Tom Tromey  <tom@tromey.com>
9453         * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9454         allocate_signatured_type>: Declare new methods.
9455         <m_num_psymtabs>: New member.
9456         (struct dwarf2_per_cu_data) <index>: New member.
9457         * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9458         (dwarf2_per_objfile::allocate_signatured_type): New methods.
9459         (create_cu_from_index_list): Use allocate_per_cu.
9460         (create_signatured_type_table_from_index)
9461         (create_signatured_type_table_from_debug_names)
9462         (create_debug_type_hash_table, add_type_unit)
9463         (read_comp_units_from_section): Use allocate_signatured_type.
9465 2020-05-27  Tom Tromey  <tom@tromey.com>
9467         * psymtab.c (partial_map_expand_apply)
9468         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9469         (psym_lookup_global_symbol_language)
9470         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9471         (psym_print_stats, psym_expand_symtabs_for_function)
9472         (psym_map_symbol_filenames, psym_map_matching_symbols)
9473         (psym_expand_symtabs_matching)
9474         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9475         (maintenance_check_psymtabs): Update.
9476         * psympriv.h (struct partial_symtab) <readin_p,
9477         get_compunit_symtab>: Add objfile parameter.
9478         (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9479         Likewise.
9480         * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9481         get_compunit_symtab>: Likewise.
9482         (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9484 2020-05-27  Tom Tromey  <tom@tromey.com>
9486         * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9487         member.
9488         * dwarf2/read.c (delete_file_name_entry): Fix comment.
9489         (create_cu_from_index_list)
9490         (create_signatured_type_table_from_index)
9491         (create_signatured_type_table_from_debug_names)
9492         (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9493         (dwarf2_create_include_psymtab)
9494         (create_debug_type_hash_table, add_type_unit)
9495         (create_type_unit_group, read_comp_units_from_section)
9496         (dwarf2_compute_name, create_cus_hash_table)
9497         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9498         (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9499         obstack.
9500         (dw2_get_real_path): Likewise.  Change argument to
9501         dwarf2_per_objfile.
9503 2020-05-27  Luis Machado  <luis.machado@linaro.org>
9505         PR tdep/26000
9506         * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9507         for ldrd (immediate).
9509 2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9511         * command.h: Add comment giving the name of class_tui.
9512         * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9513         create the fake command for the help for class_tui.
9515 2020-05-26  Tom Tromey  <tromey@adacore.com>
9517         * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
9518         (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9519         (val_atr): New function.
9520         (value_val_atr): Use it.
9521         * ada-valprint.c (print_optional_low_bound): Change low bound
9522         handling for enums.
9523         (val_print_packed_array_elements): Don't call discrete_position.
9524         * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9525         discrete_position for enum types.
9526         * language.c (default_print_array_index): Change type.
9527         * language.h (struct language_defn) <la_print_array_index>: Add
9528         index_type parameter, change type of index_value.
9529         (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9530         (default_print_array_index): Update.
9531         * valprint.c (maybe_print_array_index): Don't call
9532         value_from_longest.  Update.
9533         (value_print_array_elements): Don't call discrete_position.
9535 2020-05-26  Tom Tromey  <tromey@adacore.com>
9537         * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9538         * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9540 2020-05-25  Cristiano De Alti  <cristiano_dealti@hotmail.com>
9542         PR gdb/13519
9543         * avr-tdep.c (avr_integer_to_address): Return data or code
9544         address accordingly to the second 'type' argument of the
9545         function.
9547 2020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
9549         * infcmd.c, inferior.h: (construct_inferior_arguments):
9550         Moved function from here to gdbsupport/common-inferior.{h,cc}
9552 2020-05-23  Tom Tromey  <tom@tromey.com>
9554         Revert commit eca1f90c:
9555         * NEWS: Remove entry for completion styling.
9556         * completer.c (_rl_completion_prefix_display_length): Move
9557         declaration later.
9558         (gdb_fnprint): Revert.
9559         (gdb_display_match_list_1): Likewise.
9560         * cli/cli-style.c (completion_prefix_style)
9561         (completion_difference_style, completion_suffix_style): Remove.
9562         (_initialize_cli_style): Revert.
9563         * cli/cli-style.h (completion_prefix_style)
9564         (completion_difference_style, completion_suffix_style): Don't
9565         declare.
9567 2020-05-24  Pedro Alves  <palves@redhat.com>
9569         * symtab.c (completion_list_add_name): Return boolean indication
9570         of whether the symbol matched.
9571         (completion_list_add_symbol): Don't try to remove C++ aliases if
9572         the symbol didn't match in the first place.
9573         * symtab.h (completion_list_add_name): Return bool.
9575 2020-05-23  Simon Marchi  <simon.marchi@polymtl.ca>
9577         * gdbtypes.h (TYPE_FIELD): Remove.  Replace all uses with
9578         type::field.
9580 2020-05-23  Joel Brobecker  <brobecker@adacore.com>
9582         GDB 9.2 released.
9584 2020-05-23  Tom Tromey  <tom@tromey.com>
9586         * NEWS: Add entry for completion styling.
9587         * completer.c (_rl_completion_prefix_display_length): Move
9588         declaration earlier.
9589         (gdb_fnprint): Use completion_style.
9590         (gdb_display_match_list_1): Likewise.
9591         * cli/cli-style.c (completion_prefix_style)
9592         (completion_difference_style, completion_suffix_style): New
9593         globals.
9594         (_initialize_cli_style): Register new globals.
9595         * cli/cli-style.h (completion_prefix_style)
9596         (completion_difference_style, completion_suffix_style): Declare.
9598 2020-05-23  Pedro Alves  <palves@redhat.com>
9600         * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9601         (parse_escape): Use ISDIGIT instead of isdigit.
9602         (puts_debug): Use gdb_isprint instead of isprint.
9603         (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9604         (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9605         ISSPACE instead of isspace.
9606         (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9607         instead of isspace.
9608         (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9609         (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9610         instead of isxdigit and ISDIGIT instead of isdigit.
9612 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9614         * gdbtypes.h (struct type) <field>: New method.
9615         (TYPE_FIELDS): Remove, replace all uses with either type::fields
9616         or type::field.
9618 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9620         * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9621         (TYPE_FIELDS): Use type::fields.  Change all call sites that
9622         modify the propery to use type::set_fields instead.
9624 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9626         * gdbtypes.h (TYPE_NFIELDS): Remove.  Change all cal sites to use
9627         type::num_fields instead.
9629 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9631         * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9632         methods.
9633         (TYPE_NFIELDS): Use type::num_fields.  Change all call sites
9634         that modify the number of fields to use type::set_num_fields
9635         instead.
9637 2020-05-22  Tom Tromey  <tromey@adacore.com>
9639         * compile/compile-object-load.h (munmap_list_free): Don't
9640         declare.
9642 2020-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
9644         * annotate.c (annotate_source_line): Update return type, add call
9645         to update current symtab and line.
9646         * annotate.h (annotate_source_line): Update return type, and
9647         extend header comment.
9648         * source.c (info_line_command): Check annotation_level before
9649         calling annotate_source_line.
9650         * stack.c (print_frame_info): If calling annotate_source_line
9651         returns true, then don't print any other source line information.
9653 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
9655         * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9657 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
9659         * coffread.c (patch_type): Remove NULL check before xfree.
9660         * corefile.c (set_gnutarget): Likewise.
9661         * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9662         * exec.c (build_section_table): Likewise.
9663         * remote.c (remote_target::pass_signals): Likewise.
9664         * utils.c (n_spaces): Likewise.
9665         * cli/cli-script.c (document_command): Likewise.
9666         * i386-windows-tdep.c (core_process_module_section): Likewise.
9667         * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9669 2020-05-20  Simon Marchi  <simon.marchi@efficios.com>
9671         * symfile.c (reread_symbols): Clear objfile's section_offsets
9672         vector and section indices, re-compute them by calling
9673         sym_offsets.
9675 2020-05-20  Tom Tromey  <tromey@adacore.com>
9677         * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9678         (desc_one_bound, desc_index_type): Compute field name.
9680 2020-05-20  Tom de Vries  <tdevries@suse.de>
9682         PR symtab/25833
9683         * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9685 2020-05-20  Alan Modra  <amodra@gmail.com>
9687         PR 25993
9688         * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9689         bfd_set_filename.
9690         * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9691         passed to bfd_set_filename.
9692         * symfile-mem.c (add_vsyscall_page): Likewise for string
9693         passed to symbol_file_add_from_memory.
9694         (symbol_file_add_from_memory): Make name param a const char* and
9695         don't strdup.
9697 2020-05-20  Alan Modra  <amodra@gmail.com>
9699         * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9700         rather than accessing bfd->filename directly.
9701         * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9702         and use bfd_section_name.
9703         * dwarf2/frame.c (decode_frame_entry): Likewise.
9704         * exec.c (exec_set_section_address): Likewise.
9705         * solib-aix.c (solib_aix_bfd_open): Likewise.
9706         * stap-probe.c (get_stap_base_address): Likewise.
9707         * symfile.c (reread_symbols): Likewise.
9709 2020-05-19  Tom Tromey  <tromey@adacore.com>
9711         * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9713 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9715         * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9717 2020-05-19  Pedro Alves  <palves@redhat.com>
9719         * NEWS (set exec-file-mismatch): Adjust entry.
9720         * exec.c: Include "build-id.h".
9721         (validate_exec_file): Try to match build IDs instead of filenames.
9722         * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9723         (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9724         and pass down 'warn_if_slow'.
9725         (gdb_bfd_open): Add 'warn_if_slow' parameter.  Use
9726         gdb_bfd_open_closure to pass it down.
9727         * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9729 2020-05-19  Pedro Alves  <palves@redhat.com>
9731         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9732         * target.c (target_fileio_open_1): Rename to target_fileio_open
9733         and make extern.  Use bool.
9734         (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9735         (target_fileio_read_alloc_1): Adjust.
9736         * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9737         (target_fileio_open_warn_if_slow): Delete declaration.
9739 2020-05-19  Pedro Alves  <palves@redhat.com>
9741         * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9742         Adjust all callers.
9744 2020-05-19  Yoshinori Sato  <ysato@users.sourceforge.jp>
9746         * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9747         whether disp is negative.
9749 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9751         * symfile.h (struct symfile_segment_data)
9752         <~symfile_segment_data>: Remove.
9753         <segment_info>: Change to std::vector.
9754         * symfile.c (default_symfile_segments): Update.
9755         * elfread.c (elf_symfile_segments): Update.
9757 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9759         * symfile.h (struct symfile_segment_data) <struct segment>: New.
9760         <segments>: New.
9761         <segment_bases, segment_sizes>: Remove.
9762         * symfile.c (default_symfile_segments): Update.
9763         * elfread.c (elf_symfile_segments): Update.
9764         * remote.c (remote_target::get_offsets): Update.
9765         * solib-target.c (solib_target_relocate_section_addresses):
9766         Update.
9768 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9770         * symfile.h (struct symfile_segment_data): Initialize fields.
9771         <~symfile_segment_data>: Add.
9772         (symfile_segment_data_up): New.
9773         (struct sym_fns) <sym_segments>: Return a
9774         symfile_segment_data_up.
9775         (default_symfile_segments): Return a symfile_segment_data_up.
9776         (free_symfile_segment_data): Remove.
9777         (get_symfile_segment_data): Return a symfile_segment_data_up.
9778         * symfile.c (default_symfile_segments): Likewise.
9779         (get_symfile_segment_data): Likewise.
9780         (free_symfile_segment_data): Remove.
9781         (symfile_find_segment_sections): Update.
9782         * elfread.c (elf_symfile_segments): Return a
9783         symfile_segment_data_up.
9784         * remote.c (remote_target::get_offsets): Update.
9785         * solib-target.c (solib_target_relocate_section_addresses):
9786         Update.
9787         * symfile-debug.c (debug_sym_segments): Return a
9788         symfile_segment_data_up.
9790 2020-05-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9792         PR build/25981
9793         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9794         Hardcode register numbers.
9796         PR build/25981
9797         * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9798         procfs_find_LDT_entry): Remove.
9799         * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9800         procfs_find_LDT_entry): Remove.
9801         * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9802         Remove.
9804 2020-05-17  Pedro Alves  <palves@redhat.com>
9805             Andrew Burgess  <andrew.burgess@embecosm.com>
9806             Keno Fischer  <keno@juliacomputing.com>
9808         PR gdb/25741
9809         * breakpoint.c (build_target_condition_list): Update comments.
9810         (build_target_command_list): Update comments and skip matching
9811         locations.
9812         (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9813         a separate function.  Simplify "set breakpoint auto-hw off"
9814         handling.
9815         (insert_breakpoints): Update comment.
9816         (tracepoint_locations_match): New parameter.  For breakpoints,
9817         compare location types too, if the caller wants to.
9818         (handle_automatic_hardware_breakpoints): New functions.
9819         (bp_location_is_less_than): Also sort by location type and
9820         hardware breakpoint length.
9821         (update_global_location_list): Handle "set breakpoint auto-hw on"
9822         here.
9823         (update_breakpoint_locations): Ask breakpoint_locations_match to
9824         ignore location types.
9826 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9828         * gdbtypes.h (TYPE_NAME): Remove.  Change all cal sites to use
9829         type::name instead.
9831 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9833         * gdbtypes.h (struct type) <name, set_name>: New methods.
9834         (TYPE_CODE): Use type::name.  Change all call sites used to set
9835         the name to use type::set_name instead.
9837 2020-05-16  Tom Tromey  <tom@tromey.com>
9839         * top.c (quit_force): Update.
9840         * infrun.c (handle_no_resumed): Update.
9841         * top.h (all_uis): New function.
9842         (ALL_UIS): Remove.
9844 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9846         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9848 2020-05-16  Pedro Alves  <palves@redhat.com>
9850         * ia64-linux-nat.c
9851         (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9852         Declare method.
9853         (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9855 2020-05-15  Simon Marchi  <simon.marchi@efficios.com>
9857         * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9858         (sparc64_adi_info): Likewise.
9860 2020-05-15  Tom Tromey  <tom@tromey.com>
9862         * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9863         block_objfile.
9864         (lookup_objfile_from_block): Remove.
9865         (lookup_symbol_in_block, lookup_symbol_in_static_block)
9866         (lookup_global_symbol): Use block_objfile.
9867         * symtab.h (lookup_objfile_from_block): Don't declare.
9868         * printcmd.c (clear_dangling_display_expressions): Use
9869         block_objfile.
9870         * parse.c (operator_check_standard): Use block_objfile.
9872 2020-05-15  Tom Tromey  <tom@tromey.com>
9874         * language.c (language_alloc_type_symbol): Set
9875         SYMBOL_SECTION.
9876         * symtab.c (initialize_objfile_symbol): Remove.
9877         (allocate_symbol): Remove.
9878         (allocate_template_symbol): Remove.
9879         * dwarf2/read.c (fixup_go_packaging): Use "new".
9880         (new_symbol): Use "new".
9881         (read_variable): Don't call initialize_objfile_symbol.  Use
9882         "new".
9883         (read_func_scope): Use "new".
9884         * xcoffread.c (process_xcoff_symbol): Don't call
9885         initialize_objfile_symbol.
9886         (SYMBOL_DUP): Remove.
9887         * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9888         "new".
9889         * symtab.h (allocate_symbol, initialize_objfile_symbol)
9890         (allocate_template_symbol): Don't declare.
9891         (struct symbol): Add copy constructor.  Change defaults.
9892         * jit.c (finalize_symtab): Use "new".
9893         * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9894         Use "new".
9895         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9896         (common_block_end): Use "new".
9897         * mdebugread.c (parse_symbol): Use "new".
9898         (new_symbol): Likewise.
9900 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9902         * NEWS: Mention changes to help and apropos.
9904 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9906         * command.h (enum command_class): Improve comments, document
9907         that class_alias is for user-defined aliases, give the class
9908         name for each class, remove unused class_xdb.
9909         * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9910         * breakpoint.c (_initialize_breakpoint): Replace class_alias
9911         by a precise class.
9912         * infcmd.c (_initialize_infcmd): Likewise.
9913         * reverse.c (_initialize_reverse): Likewise.
9914         * stack.c (_initialize_stack): Likewise.
9915         * symfile.c (_initialize_symfile): Likewise.
9916         * tracepoint.c (_initialize_tracepoint): Likewise.
9918 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9920         * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9921         when their aliased command is traversed.
9922         (help_cmd): Add fput_command_names_styled call to
9923         output command name and aliases when command has an alias.
9925 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9927         * cli/cli-decode.h (help_cmd_list): Remove declaration.
9928         * cli/cli-decode.c (help_cmd_list): Declare as static,
9929         remove prefix argument, use bool for recurse arg, rework to show the aliases of
9930         a command together with the command.
9931         (fput_command_name_styled, fput_command_names_styled): New functions.
9932         (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9933         fput_command_name_styled.
9934         (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9935         * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9937 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9939         * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9940         * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9941         * command.h (cmd_show_list): Likewise.
9942         * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9943         * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output.  Skip aliases.
9945 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9947         * unittests/command-def-selftests.c (traverse_command_structure):
9948         Verify all commands of a list have the same prefix command and
9949         that only the top cmdlist commands have a null prefix.
9951 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9953         * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9954         as prefix, not one of its aliases.
9955         (set_cmd_prefix): Remove.
9956         (do_add_cmd): Centralize the setting of the prefix of a command, when
9957         command is defined after its full chain of prefix commands.
9958         (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9959         (add_setshow_cmd_full): Likewise.
9960         (update_prefix_field_of_prefixed_commands): New function.
9961         (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9962         update_prefix_field_of_prefixed_commands.
9963         * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9964         addresses of remote_set_cmdlist and remote_show_cmdlist given
9965         as argument, not the address of an argument.
9966         * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9967         * gdb/remote.c (_initialize_remote): Likewise.
9969 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9971         * cli/cli-cmds.c (alias_command): Check for an existing alias
9972         using lookup_cmd_composition, as valid_command_p is too strict
9973         and forbids aliases that are the prefix of an existing alias
9974         or command.
9975         * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9976         command is properly recognised as a valid command.
9978 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9980         * unittests/help-doc-selftests.c: Rename to
9981         unittests/command-def-selftests.c
9982         * unittests/command-def-selftests.c (help_doc_tests): Update some
9983         comments.
9984         (command_structure_tests, traverse_command_structure): New namespace
9985         and function.
9986         (command_structure_invariants_tests): New function.
9987         (_initialize_command_def_selftests) Renamed from
9988         _initialize_help_doc_selftests, register command_structure_invariants
9989         selftest.
9991 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9993         * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9994         an alias of 'show'.
9996 2020-05-15  Joel Brobecker  <brobecker@adacore.com>
9998         * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9999         ada_is_fixed_point_type.  Update all callers.
10000         (gnat_encoded_fixed_point_delta): Renames ada_delta.  Update
10001         all callers.
10002         * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10003         Update all callers.
10004         * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10005         print_fixed_point_type.  Update all callers.
10006         * ada-valprint.c (ada_value_print_num): Replace call to
10007         ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10009 2020-05-14  Kevin Buettner  <kevinb@redhat.com>
10011         * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10012         processors.
10013         (cpu_supports_bts): Add CV_AMD case.
10015 2020-05-14  Laurent Morichetti  <Laurent.Morichetti@amd.com>
10016             Simon Marchi  <simon.marchi@efficios.com>
10018         * infrun.c (stop_all_threads): Collect multiple wait events at
10019         each pass.
10021 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10023         * gdbtypes.h (TYPE_CODE): Remove.  Change all call sites to use
10024         type::code instead.
10026 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10028         * gdbtypes.h (struct type) <code, set_code>: New methods.
10029         (TYPE_CODE): Use type::code.  Change all call sites used to set
10030         the code to use type::set_code instead.
10032 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10033             Tom de Vries  <tdevries@suse.de>
10034             Pedro Alves  <palves@redhat.com>
10036         PR threads/25478
10037         * infrun.c (stop_all_threads): Do NOT ignore
10038         TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10039         TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10040         received.
10041         (handle_no_resumed): Remove code handling a live inferior with no
10042         threads.
10043         * remote.c (has_single_non_exited_thread): New.
10044         (remote_target::update_thread_list): Do not delete a thread if is
10045         the last thread of the process.
10046         * thread.c (thread_select): Call delete_exited_threads instead of
10047         prune_threads.
10049 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10051         * infrun.c (stop_all_threads): Enable/disable thread events of all
10052         targets.  Move a debug message denoting the end of the function
10053         into the SCOPED_EXIT block.
10055 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10057         * process-stratum-target.h: Include <set>.
10058         (all_non_exited_process_targets, switch_to_target_no_thread): New
10059         function declarations.
10060         * process-stratum-target.c (all_non_exited_process_targets)
10061         (switch_to_target_no_thread): New function implementations.
10063 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10065         * infrun.c (handle_inferior_event): Extract out a piece of code
10066         into...
10067         (mark_non_executing_threads): ...this new function.
10069 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10071         * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10072         use.
10074 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10076         * regcache.c (regcache_read_pc_protected): New function
10077         implementation that returns 0 if the PC cannot read via
10078         'regcache_read_pc'.
10079         * infrun.c (proceed): Call 'regcache_read_pc_protected'
10080         instead of 'regcache_read_pc'.
10081         (keep_going_pass_signal): Ditto.
10083 2020-05-13  Tom Tromey  <tromey@adacore.com>
10085         * ada-lang.c (align_value): Remove.
10086         (ada_template_to_fixed_record_type_1): Use align_up.
10088 2020-05-13  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10090         * async-event.c: Update the copyright year.
10091         * async-event.h: Update the copyright year.
10093 2020-05-12  Simon Marchi  <simon.marchi@efficios.com>
10095         * objfiles.h (is_addr_in_objfile,
10096         shared_objfile_contains_address_p): Return bool.
10097         * objfile.c (is_addr_in_objfile,
10098         shared_objfile_contains_address_p): Return bool.
10100 2020-05-11  Tom Tromey  <tromey@adacore.com>
10102         * cli/cli-cmds.c (info_command): Restore.
10103         (_initialize_cli_cmds): Use add_prefix_command for "info".
10104         * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10106 2020-05-11  Tom Tromey  <tromey@adacore.com>
10108         * ada-lang.c (ada_value_primitive_field): Now public.
10109         * ada-lang.h (ada_value_primitive_field): Declare.
10110         * ada-valprint.c (print_field_values): Use
10111         ada_value_primitive_field for wrapper fields.
10113 2020-05-11  Tom de Vries  <tdevries@suse.de>
10115         * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10116         MODULE_DOMAIN.
10118 2020-05-11  Tom de Vries  <tdevries@suse.de>
10120         PR symtab/25941
10121         * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10122         with length 0, if not gdb-produced.
10123         (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10125 2020-05-09  Tom de Vries  <tdevries@suse.de>
10127         PR gdb/25955
10128         * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10129         calculation.
10131 2020-05-09  Tom Tromey  <tom@tromey.com>
10133         * top.c (server_command): Now bool.
10134         * top.h (server_command): Now bool.
10136 2020-05-08  Tom Tromey  <tromey@adacore.com>
10138         * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10139         already being processed.
10141 2020-05-08  Tom Tromey  <tom@tromey.com>
10143         * printcmd.c (struct display) <next>: Remove.
10144         <display>: New constructor.
10145         <exp_string>: Now a std::string.
10146         <enabled_p>: Now a bool.
10147         (display_number): Move definition earlier.
10148         (displays): Rename from display_chain.  Now a std::vector.
10149         (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10150         (display_command): Update.
10151         (do_one_display, disable_display)
10152         (enable_disable_display_command, do_enable_disable_display):
10153         Update.
10154         (free_display): Remove.
10155         (clear_displays): Rewrite.
10156         (delete_display): Update.
10157         (map_display_numbers): Use function_view.  Remove "data"
10158         parameter.  Update.
10159         (do_delete_display): Remove.
10160         (undisplay_command): Update.
10161         (do_one_display, do_displays, disable_display)
10162         (info_display_command): Update.
10163         (do_enable_disable_display): Remove.
10164         (enable_disable_display_command)
10165         (clear_dangling_display_expressions): Update.
10167 2020-05-08  Tom Tromey  <tom@tromey.com>
10169         * symtab.c (set_symbol_cache_size)
10170         (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10171         (maintenance_print_symbol_cache_statistics): Update.
10172         * symmisc.c (print_symbol_bcache_statistics)
10173         (print_objfile_statistics, maintenance_print_objfiles)
10174         (maintenance_info_symtabs, maintenance_check_symtabs)
10175         (maintenance_expand_symtabs, maintenance_info_line_tables):
10176         Update.
10177         * symfile-debug.c (set_debug_symfile): Update.
10178         * source.c (forget_cached_source_info): Update.
10179         * python/python.c (gdbpy_progspaces): Update.
10180         * psymtab.c (maintenance_info_psymtabs): Update.
10181         * probe.c (parse_probes): Update.
10182         * linespec.c (iterate_over_all_matching_symtabs)
10183         (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10184         * guile/scm-progspace.c (gdbscm_progspaces): Update.
10185         * exec.c (exec_target::close): Update.
10186         * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10187         * breakpoint.c (print_one_breakpoint_location)
10188         (create_longjmp_master_breakpoint)
10189         (create_std_terminate_master_breakpoint): Update.
10190         * progspace.c (program_spaces): Now a std::vector.
10191         (maybe_new_address_space): Update.
10192         (add_program_space): Remove.
10193         (program_space::program_space): Update.
10194         (remove_program_space): Update.
10195         (number_of_program_spaces): Remove.
10196         (print_program_space, update_address_spaces): Update.
10197         * progspace.h (program_spaces): Change type.
10198         (ALL_PSPACES): Remove.
10199         (number_of_program_spaces): Don't declare.
10200         (struct program_space) <next>: Remove.
10202 2020-05-08  Tom Tromey  <tom@tromey.com>
10204         * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10205         * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10206         (enable_break): Update.
10207         * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10208         (frv_fdpic_find_canonical_descriptor): Update.
10209         (frv_fetch_objfile_link_map): Update.
10210         * progspace.c (program_space::free_all_objfiles): Update.
10211         (program_space::solibs): New method.
10212         * progspace.h (struct program_space) <solibs>: New method.
10213         * solist.h (master_so_list): Don't declare.
10214         (ALL_SO_LIBS): Remove.
10215         * solib.h (so_list_head): Remove.
10216         (update_solib_list): Update comment.
10217         * solib.c (master_so_list): Remove.
10218         (solib_used, update_solib_list, solib_add)
10219         (info_sharedlibrary_command, clear_solib)
10220         (reload_shared_libraries_1, remove_user_added_objfile): Update.
10222 2020-05-08  Tom Tromey  <tom@tromey.com>
10224         * extension.c (extension_languages): Now a std::array.
10225         (ALL_EXTENSION_LANGUAGES): Remove.
10226         (get_ext_lang_defn, get_ext_lang_of_file)
10227         (eval_ext_lang_from_control_command): Update.
10228         (finish_ext_lang_initialization)
10229         (auto_load_ext_lang_scripts_for_objfile)
10230         (ext_lang_type_printers::ext_lang_type_printers)
10231         (apply_ext_lang_type_printers)
10232         (ext_lang_type_printers::~ext_lang_type_printers)
10233         (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10234         (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10235         (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10236         (get_matching_xmethod_workers, ext_lang_colorize)
10237         (ext_lang_before_prompt): Update.
10238         (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10240 2020-05-08  Tom Tromey  <tom@tromey.com>
10242         * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10243         overload.
10244         <swap_string, m_string>: Remove.
10245         * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10246         Update.
10247         * stabsread.c (define_symbol, read_type): Update.
10248         * linespec.c (find_linespec_symbols): Update.
10249         * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10250         * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10251         * dbxread.c (read_dbx_symtab): Update.
10252         * cp-support.h (cp_canonicalize_string_full)
10253         (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10254         Return unique_xmalloc_ptr.
10255         * cp-support.c (inspect_type): Update.
10256         (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10257         (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10258         Likewise.
10259         * c-typeprint.c (print_name_maybe_canonical): Update.
10260         * break-catch-throw.c (check_status_exception_catchpoint):
10261         Update.
10263 2020-05-08  Tom de Vries  <tdevries@suse.de>
10265         * infrun.c (follow_fork): Copy current_line and current_symtab to
10266         child thread.
10268 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10270         * async-event.c (struct async_signal_handler, struct
10271         async_event_handler): Reformat, remove typedef.
10273 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10275         * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove.  Update all users
10276         access thistype->main_type->dyn_prop_list directly.
10278 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10280         * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10281         (remove_dyn_prop): Remove.  Update all users to use
10282         type::remove_dyn_prop.
10283         * gdbtypes.c (remove_dyn_prop): Rename to...
10284         (type::remove_dyn_prop): ... this.
10286 2020-05-07  Simon Marchi via Gdb-patches  <gdb-patches@sourceware.org>
10288         * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10289         (add_dyn_prop): Remove.  Update all users to use
10290         type::add_dyn_prop.
10291         * gdbtypes.c (add_dyn_prop): Rename to...
10292         (type::add_dyn_prop): ... this.
10294 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10296         * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10297         (get_dyn_prop): Remove.  Update all users to use
10298         type::dyn_prop.
10299         * gdbtypes.c (get_dyn_prop): Rename to...
10300         (type::dyn_prop): ... this.
10302 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10304         * gdbtypes.h (struct main_type) <flag_static>: Remove.
10306 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10308         * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10309         instruction, skip it if it's there.
10311 2020-05-05  Simon Marchi  <simon.marchi@efficios.com>
10313         * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10315 2020-05-04  Simon Marchi  <simon.marchi@efficios.com>
10317         * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10318         * gdbtypes.c (recursive_dump_type): Remove use of
10319         TYPE_INCOMPLETE.
10321 2020-05-03  Tom Tromey  <tom@tromey.com>
10323         * breakpoint.c (catch_command, tcatch_command): Remove.
10324         (_initialize_breakpoint): Use add_basic_prefix_cmd,
10325         add_show_prefix_cmd.
10326         (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10327         * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10328         Remove.
10329         (add_internal_problem_command): Use add_basic_prefix_cmd,
10330         add_show_prefix_cmd.
10331         * mips-tdep.c (set_mipsfpu_command): Remove.
10332         (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10333         * dwarf2/index-cache.c (set_index_cache_command): Remove.
10334         (_initialize_index_cache): Use add_basic_prefix_cmd.
10335         * memattr.c (dummy_cmd): Remove.
10336         (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10337         * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10338         (_initialize_tui_win): Use add_basic_prefix_cmd,
10339         add_show_prefix_cmd.
10340         * cli/cli-logging.c (set_logging_command): Remove.
10341         (_initialize_cli_logging): Use add_basic_prefix_cmd,
10342         add_show_prefix_cmd.
10343         (show_logging_command): Remove.
10344         * target.c (target_command): Remove.
10345         (add_target): Use add_basic_prefix_cmd.
10347 2020-05-02  Hannes Domani  <ssbssa@yahoo.de>
10349         * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10351 2020-05-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10353         * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10354         info_command.
10356 2020-04-30  Kamil Rytarowski  <n54@gmx.com>
10358         * nbsd-nat.c (nbsd_enable_proc_events)
10359         (nbsd_nat_target::post_startup_inferior): Add.
10360         (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10361         (nbsd_nat_target::update_thread_list): Rewrite.
10362         (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10363         "PTRACE_LWP_CREATE".
10364         * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10366 2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10368         * stack.c (_initialize_stack): Remove duplicated creation
10369         of "frame" command and "f" alias.
10371 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
10373         PR gdb/18706
10374         * gdbtypes.c (check_typedef): Calculate size of array of
10375         stubbed type.
10377 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
10379         PR gdb/15559
10380         * i386-tdep.c (i386_push_dummy_call): Call
10381         i386_thiscall_push_dummy_call.
10382         (i386_thiscall_push_dummy_call): New function.
10383         * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10384         * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10385         (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10387 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10389         * gdbarch.sh (do_read): Add shellcheck disable directive for
10390         warning SC2162.
10392 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10394         * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10395         "referenced but not assigned" warning.
10397 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10399         * gdbarch.sh: Remove code that sets fallbackdefault.
10401 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10403         * gdbarch.sh: Use shell operators && and || instead of
10404         -a and -o.
10406 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10408         * gdbarch.sh: Use $(...) instead of `...`.
10410 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10412         * gdbarch.sh: Use double quotes around variables.
10414 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10416         * gdbarch.sh: Use %s with printf, instead of variables in the
10417         format string.
10419 2020-04-29  Tom Tromey  <tromey@adacore.com>
10421         PR ada/25875:
10422         * dwarf2/read.c (update_enumeration_type_from_children): Compute
10423         type fields here.
10424         (read_enumeration_type): Call
10425         update_enumeration_type_from_children later.  Update comments.
10426         (process_enumeration_scope): Don't create type fields.
10428 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
10430         * nbsd-tdep.c: Include "xml-syscall.h".
10431         (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10433 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
10435         * nbsd-nat.c: Include "sys/wait.h".
10436         (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10437         (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10438         (nbsd_nat_target::remove_exec_catchpoint)
10439         (nbsd_nat_target::set_syscall_catchpoint): Add.
10440         * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10441         (nbsd_nat_target::insert_exec_catchpoint)
10442         (nbsd_nat_target::remove_exec_catchpoint)
10443         (nbsd_nat_target::set_syscall_catchpoint): Add.
10444         * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10445         (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10446         `nbsd_get_syscall_number'.
10448 2020-04-29  Tom Tromey  <tom@tromey.com>
10450         * stack.c (print_block_frame_labels): Remove.
10452 2020-04-29  Hannes Domani  <ssbssa@yahoo.de>
10454         PR gdb/17320
10455         * ada-valprint.c (val_print_packed_array_elements): Move array
10456         end bracket to new line.
10457         (ada_val_print_string): Remove extra spaces before first array
10458         element.
10459         * c-valprint.c (c_value_print_array): Likewise.
10460         * m2-valprint.c (m2_print_array_contents): Likewise.
10461         (m2_value_print_inner): Likewise.
10462         * p-valprint.c (pascal_value_print_inner): Likewise.
10463         * valprint.c (generic_val_print_array): Likewise.
10464         (value_print_array_elements): Move first array element and array
10465         end bracket to new line.
10467 2020-04-29  Tom de Vries  <tdevries@suse.de>
10469         PR symtab/25889
10470         * linespec.c (find_method): Fix ix calculation.
10472 2020-04-28  Kamil Rytarowski  <n54@gmx.com>
10474         * syscalls/update-netbsd.sh: New file.
10475         * syscalls/netbsd.xml: Regenerate.
10476         * data-directory/Makefile.in: Register `netbsd.xml' in
10477         `SYSCALLS_FILES'.
10479 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
10481         * syscalls/update-freebsd.sh: Add double quotes.
10483 2020-04-28  Tom Tromey  <tom@tromey.com>
10485         * NEWS: Update.
10486         * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10487         (cmdpy_init): Allow class_tui.
10489 2020-04-28 Mark Williams <mark@myosotissp.com>
10491         PR gdb/24480
10492         * dwarf2read.c: Add missing assingments to list_in_scope when
10493         start_symtab was already called.
10495 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
10497         PR gdb/25881
10498         * dwarf2/read.c (offset_map_type): Use
10499         gdb:hash_enum<sect_offset> as hash function.
10501 2020-04-28  Tom de Vries  <tdevries@suse.de>
10503         * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10504         with DW_AT_signature.
10506 2020-04-27  Simon Marchi  <simon.marchi@efficios.com>
10508         * configure.ac: Remove check for fs_base/gs_base in
10509         user_regs_struct.
10510         * configure: Re-generate.
10511         * config.in: Re-generate.
10512         * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10513         * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10514         amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10516 2020-04-27  Luis Machado  <luis.machado@linaro.org>
10518         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10519         problematic inline frame unwinding situation.
10520         * frame.c (frame_id_computed_p): New function.
10521         * frame.h (frame_id_computed_p): New prototype.
10523 2020-04-26  Tom Tromey  <tom@tromey.com>
10525         * command.h (enum command_class) <class_pseudo>: Remove.
10527 2020-04-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10529         * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10530         and whitespace.
10532 2020-04-25  Kamil Rytarowski  <n54@gmx.com>
10534         * inf-ptrace.c (inf_ptrace_target::wait): Remove
10535         `PT_GET_PROCESS_STATE' block.
10537 2020-04-24  Tom Tromey  <tom@tromey.com>
10539         * symtab.h (symbol_get_demangled_name): Don't declare.
10540         * symtab.c (symbol_get_demangled_name): Remove.
10541         (general_symbol_info::natural_name)
10542         (general_symbol_info::demangled_name): Update.
10544 2020-04-24  Tom Tromey  <tom@tromey.com>
10546         PR rust/25025:
10547         * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10549 2020-04-24  Tom Tromey  <tom@tromey.com>
10551         PR symtab/12707:
10552         * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10553         exists.
10554         (new_symbol): Likewise.
10555         * compile/compile-object-load.c (get_out_value_type): Use
10556         symbol_matches_search_name.
10558 2020-04-24  Tom Tromey  <tom@tromey.com>
10560         * dwarf2/read.c (add_partial_symbol): Do not call
10561         compute_and_set_names.
10563 2020-04-24  Tom Tromey  <tom@tromey.com>
10565         * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10566         overload.
10568 2020-04-24  Tom Tromey  <tom@tromey.com>
10570         * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10571         (add_psymbol_to_list): New overload.  Make old overload call new
10572         one.
10573         * psympriv.h (add_psymbol_to_list): New overload.
10575 2020-04-24  Tom Tromey  <tom@tromey.com>
10577         * dwarf2/read.c (partial_die_info::read) <case
10578         DW_AT_linkage_name>: Use value_as_string.
10579         (dwarf2_string_attr): Use value_as_string.
10580         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10581         method.
10582         * dwarf2/attribute.c (attribute::value_as_string): New method.
10584 2020-04-24  Tom Tromey  <tom@tromey.com>
10586         * symtab.c (general_symbol_info::natural_name)
10587         (general_symbol_info::demangled_name): Check for language_rust.
10589 2020-04-24  Tom Tromey  <tom@tromey.com>
10591         * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10592         (dwarf2_physname): ... from here.
10593         (partial_die_info::read): Add Rust "{" hack.
10595 2020-04-24  Tom Tromey  <tom@tromey.com>
10597         * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10598         method.
10599         (symbol_set_demangled_name): Don't declare.
10600         * symtab.c (general_symbol_info::set_demangled_name): Rename from
10601         symbol_set_demangled_name.
10602         (general_symbol_info::set_language)
10603         (general_symbol_info::compute_and_set_names): Update.
10604         * minsyms.c (minimal_symbol_reader::install): Update.
10605         * dwarf2/read.c (new_symbol): Update.
10607 2020-04-24  Tom Tromey  <tromey@adacore.com>
10609         PR python/23662:
10610         * python/py-type.c (convert_field): Handle
10611         FIELD_LOC_KIND_DWARF_BLOCK.
10612         (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10613         (typy_get_dynamic): Nw function.
10614         (type_object_getset): Add "dynamic".
10615         * NEWS: Add entry.
10617 2020-04-24  Tom Tromey  <tromey@adacore.com>
10619         * ada-typeprint.c (print_choices, print_variant_part)
10620         (print_record_field_types_dynamic): New functions.
10621         (print_record_field_types): Use print_record_field_types_dynamic.
10623 2020-04-24  Tom Tromey  <tromey@adacore.com>
10625         * dwarf2/read.c (handle_data_member_location): New overload.
10626         (dwarf2_add_field): Use it.
10627         (decode_locdesc): Add "computed" parameter.  Update comment.
10628         * gdbtypes.c (is_dynamic_type_internal): Also look for
10629         FIELD_LOC_KIND_DWARF_BLOCK.
10630         (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10631         * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10632         virtual base classes.
10633         * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10634         FIELD_LOC_KIND_DWARF_BLOCK.
10636 2020-04-24  Tom Tromey  <tromey@adacore.com>
10638         * dwarf2/read.c (read_structure_type): Handle dynamic length.
10639         * gdbtypes.c (is_dynamic_type_internal): Check
10640         TYPE_HAS_DYNAMIC_LENGTH.
10641         (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10642         * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10643         New macros.
10644         (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10645         constant.
10647 2020-04-24  Tom Tromey  <tromey@adacore.com>
10649         * dwarf2/read.c (struct variant_field): Rewrite.
10650         (struct variant_part_builder): New.
10651         (struct nextfield): Remove "variant" field.  Add "offset".
10652         (struct field_info): Add "current_variant_part" and
10653         "variant_parts".
10654         (alloc_discriminant_info): Remove.
10655         (alloc_rust_variant): New function.
10656         (quirk_rust_enum): Update.
10657         (dwarf2_add_field): Set "offset" member.  Don't handle
10658         DW_TAG_variant_part.
10659         (offset_map_type): New typedef.
10660         (convert_variant_range, create_one_variant)
10661         (create_one_variant_part, create_variant_parts)
10662         (add_variant_property): New functions.
10663         (dwarf2_attach_fields_to_type): Call add_variant_property.
10664         (read_structure_type): Don't handle DW_TAG_variant_part.
10665         (handle_variant_part, handle_variant): New functions.
10666         (handle_struct_member_die): Use them.
10667         (process_structure_scope): Don't handle variant parts.
10668         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10669         (struct discriminant_info): Remove.
10670         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10671         (struct main_type) <flag_discriminated_union>: Remove.
10672         * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10673         (rust_enum_variant): Return int.  Remove "contents".  Rewrite.
10674         (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10675         Update.
10676         * valops.c (value_union_variant): Remove.
10677         * value.h (value_union_variant): Don't declare.
10679 2020-04-24  Tom Tromey  <tromey@adacore.com>
10681         * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10682         (ada_value_primitive_packed_val): Update.
10683         * ada-valprint.c (ada_value_print_1): Update.
10684         * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10685         (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10686         just an address.  Use evaluate_for_locexpr_baton.
10687         (dwarf2_evaluate_property): Update.
10688         * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10689         array_view.
10690         * findvar.c (default_read_var_value): Update.
10691         * gdbtypes.c (compute_variant_fields_inner)
10692         (resolve_dynamic_type_internal): Update.
10693         (resolve_dynamic_type): Change type of valaddr parameter.
10694         * gdbtypes.h (resolve_dynamic_type): Update.
10695         * valarith.c (value_subscripted_rvalue): Update.
10696         * value.c (value_from_contents_and_address): Update.
10698 2020-04-24  Tom Tromey  <tromey@adacore.com>
10700         * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10701         "push_initial_value" parameter.
10702         (dwarf2_evaluate_property): Likewise.
10703         * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10705 2020-04-24  Tom Tromey  <tromey@adacore.com>
10707         * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10708         (variant::matches, compute_variant_fields_recurse)
10709         (compute_variant_fields_inner, compute_variant_fields): New
10710         functions.
10711         (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10712         Use resolved_type after type is made.
10713         (operator==): Add new cases.
10714         * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10715         (struct discriminant_range, struct variant, struct variant_part):
10716         New.
10717         (union dynamic_prop_data) <variant_parts, original_type>: New
10718         members.
10719         (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10720         (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10721         constants.
10722         * value.c (unpack_bits_as_long): Now public.
10723         * value.h (unpack_bits_as_long): Declare.
10725 2020-04-24  Tom Tromey  <tromey@adacore.com>
10727         * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10728         (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10730 2020-04-24  Hannes Domani  <ssbssa@yahoo.de>
10732         * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10734 2020-04-24  Kamil Rytarowski  <n54@gmx.com>
10736         * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10737         (remove_fork_catchpoint, post_startup_inferior)
10738         (post_attach): Move...
10739         * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10740         (remove_fork_catchpoint, post_startup_inferior)
10741         (post_attach): ...here.
10742         * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10743         (remove_fork_catchpoint, post_startup_inferior)
10744         (post_attach): Move...
10745         * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10746         (remove_fork_catchpoint, post_startup_inferior)
10747         (post_attach): ...here.
10749 2020-04-24  Tom Tromey  <tromey@adacore.com>
10751         * nat/windows-nat.h (struct windows_thread_info)
10752         <pc_adjusted>: New member.
10753         * windows-nat.c (windows_fetch_one_register): Check
10754         pc_adjusted.
10755         (windows_nat_target::get_windows_debug_event)
10756         (windows_nat_target::wait): Set pc_adjusted.
10758 2020-04-24  Tom de Vries  <tdevries@suse.de>
10760         * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10761         Run gdb-add-index inside temp dir.
10763 2020-04-23  Tom Tromey  <tromey@adacore.com>
10765         * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10766         in loop.
10768 2020-04-23  Luis Machado  <luis.machado@linaro.org>
10770         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10771         get_frame_register instead of gdbarch_unwind_pc.
10773 2020-04-23  Tom de Vries  <tdevries@suse.de>
10775         * symtab.c (lookup_global_symbol): Prefer def over decl.
10777 2020-04-23  Tom de Vries  <tdevries@suse.de>
10779         PR symtab/25807
10780         * block.c (best_symbol, better_symbol): Promote to external.
10781         * block.h (best_symbol, better_symbol): Declare.
10782         * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10783         decl.
10785 2020-04-23  Tom Tromey  <tromey@adacore.com>
10787         PR ada/25837:
10788         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10789         "const char *", not a "const std::string &".
10790         <name_and_matcher::operator==>: Update.
10791         * unittests/lookup_name_info-selftests.c: Change type of
10792         "result".
10794 2020-04-23  Tom Tromey  <tom@tromey.com>
10796         * inferior.h (iterate_over_inferiors): Don't declare.
10797         * inferior.c (iterate_over_inferiors): Remove.
10798         * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10799         Remove.
10800         (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10801         use iterate_over_inferiors.
10802         (darwin_resume_inferior_it)
10803         (struct resume_inferior_threads_param)
10804         (darwin_resume_inferior_threads_it): Remove.
10805         (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10807 2020-04-23  Tom de Vries  <tdevries@suse.de>
10809         * blockframe.c (find_pc_partial_function): Use
10810         find_pc_sect_compunit_symtab rather than
10811         objfile->sf->qf->find_pc_sect_compunit_symtab.
10813 2020-04-22  Tom de Vries  <tdevries@suse.de>
10815         PR symtab/25764
10816         * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10817         in psymtabs.
10819 2020-04-22  Tom de Vries  <tdevries@suse.de>
10821         PR symtab/25801
10822         * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10823         symtabs.
10825 2020-04-22  Tom de Vries  <tdevries@suse.de>
10827         PR symtab/25700
10828         * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10829         CU if already created.
10831 2020-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10833         * infrun.c (displaced_step_fixup): Switch to the event_thread
10834         before calling displaced_step_restore, not after.
10836 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10838         * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10839         its inferior is not recorded by us.
10840         (record_btrace_target_open): Replace call to
10841         all_non_exited_threads () with call to current_inferior
10842         ()->non_exited_threads ().
10843         (record_btrace_target::stop_recording): Likewise.
10844         (record_btrace_target::close): Likewise.
10845         (record_btrace_target::wait): Likewise.
10846         (record_btrace_target::record_stop_replaying): Likewise.
10848 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10850         * btrace.c (btrace_enable): Throw an error on double enables and
10851         when enabling recording fails.
10852         (btrace_disable): Throw an error if the thread is not recorded.
10854 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10856         * record-btrace.c (record_btrace_target::fetch_registers): Forward
10857         request if we do not have a thread_info.
10859 2020-04-21  Tom de Vries  <tdevries@suse.de>
10861         PR gdb/25471
10862         * thread.c
10863         (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10864         exception in get_frame_id.
10866 2020-04-20  Tom Tromey  <tromey@adacore.com>
10868         * python/python.c (struct gdbpy_event): Mark move constructor as
10869         noexcept.
10870         * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10871         constructor as noexcept.
10872         * completer.h (struct completion_result): Mark move constructor as
10873         noexcept.
10874         * completer.c (completion_result::completion_result): Use
10875         initialization style.  Don't call reset_match_list.
10877 2020-04-20  Mihails Strasuns  <mihails.strasuns@intel.com>
10879         * MAINTAINERS (Write After Approval): Add myself.
10881 2020-04-18  Tom Tromey  <tom@tromey.com>
10883         * windows-tdep.c (init_w32_command_list)
10884         (w32_prefix_command_valid): Restore.
10885         (_initialize_windows_tdep): Call init_w32_command_list.
10887 2020-04-18  Tom Tromey  <tom@tromey.com>
10889         * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10890         * value.c (value_fn_field): Update.
10891         * valops.c (find_function_in_inferior)
10892         (value_allocate_space_in_inferior): Update.
10893         * tui/tui-winsource.c (tui_update_source_windows_with_line):
10894         Update.
10895         * tui/tui-source.c (tui_source_window::set_contents): Update.
10896         * symtab.c (lookup_global_or_static_symbol)
10897         (find_function_start_sal_1, skip_prologue_sal)
10898         (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10899         * symmisc.c (dump_msymbols, dump_symtab_1)
10900         (maintenance_print_one_line_table): Update.
10901         * symfile.c (init_entry_point_info, section_is_mapped)
10902         (list_overlays_command, simple_read_overlay_table)
10903         (simple_overlay_update_1): Update.
10904         * stap-probe.c (handle_stap_probe): Update.
10905         * stabsread.c (dbx_init_float_type, define_symbol)
10906         (read_one_struct_field, read_enum_type, read_range_type): Update.
10907         * source.c (info_line_command): Update.
10908         * python/python.c (gdbpy_source_objfile_script)
10909         (gdbpy_execute_objfile_script): Update.
10910         * python/py-type.c (save_objfile_types): Update.
10911         * python/py-objfile.c (py_free_objfile): Update.
10912         * python/py-inferior.c (python_new_objfile): Update.
10913         * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10914         (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10915         (maintenance_check_psymtabs): Update.
10916         * printcmd.c (info_address_command): Update.
10917         * objfiles.h (struct objfile) <arch>: New method, from
10918         get_objfile_arch.
10919         (get_objfile_arch): Don't declare.
10920         * objfiles.c (get_objfile_arch): Remove.
10921         (filter_overlapping_sections): Update.
10922         * minsyms.c (msymbol_is_function): Update.
10923         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10924         (output_nondebug_symbol): Update.
10925         * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10926         (mdebug_expand_psymtab): Update.
10927         * machoread.c (macho_add_oso_symfile): Update.
10928         * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10929         Update.
10930         * linux-fork.c (checkpoint_command): Update.
10931         * linespec.c (convert_linespec_to_sals): Update.
10932         * jit.c (finalize_symtab): Update.
10933         * infrun.c (insert_exception_resume_from_probe): Update.
10934         * ia64-tdep.c (ia64_find_unwind_table): Update.
10935         * hppa-tdep.c (internalize_unwinds): Update.
10936         * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10937         Update.
10938         * gcore.c (call_target_sbrk): Update.
10939         * elfread.c (record_minimal_symbol, elf_symtab_read)
10940         (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10941         (elf_gnu_ifunc_resolve_by_got): Update.
10942         * dwarf2/read.c (create_addrmap_from_index)
10943         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10944         (read_debug_names_from_section)
10945         (process_psymtab_comp_unit_reader, add_partial_symbol)
10946         (add_partial_subprogram, process_full_comp_unit)
10947         (read_file_scope, read_func_scope, read_lexical_block_scope)
10948         (read_call_site_scope, dwarf2_ranges_read)
10949         (dwarf2_record_block_ranges, dwarf2_add_field)
10950         (mark_common_block_symbol_computed, read_tag_pointer_type)
10951         (read_tag_string_type, dwarf2_init_float_type)
10952         (dwarf2_init_complex_target_type, read_base_type)
10953         (partial_die_info::read, partial_die_info::read)
10954         (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10955         (dwarf2_fetch_die_loc_sect_off): Update.
10956         * dwarf2/loc.c (dwarf2_find_location_expression)
10957         (class dwarf_evaluate_loc_desc, rw_pieced_value)
10958         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10959         (dwarf2_loc_desc_get_symbol_read_needs)
10960         (locexpr_describe_location_piece, locexpr_describe_location_1)
10961         (loclist_describe_location): Update.
10962         * dwarf2/index-write.c (write_debug_names): Update.
10963         * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10964         * dtrace-probe.c (dtrace_process_dof): Update.
10965         * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10966         (process_one_symbol): Update.
10967         * ctfread.c (ctf_init_float_type, read_base_type): Update.
10968         * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10969         (coff_read_enum_type): Update.
10970         * cli/cli-cmds.c (edit_command, list_command): Update.
10971         * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10972         * breakpoint.c (create_overlay_event_breakpoint)
10973         (create_longjmp_master_breakpoint)
10974         (create_std_terminate_master_breakpoint)
10975         (create_exception_master_breakpoint, get_sal_arch): Update.
10976         * block.c (block_gdbarch): Update.
10977         * annotate.c (annotate_source_line): Update.
10979 2020-04-17  Tom Tromey  <tromey@adacore.com>
10981         * auto-load.c (show_auto_load_cmd): Remove.
10982         (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10983         * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10984         (maintenance_print_arc_command): Remove.
10985         * tui/tui-win.c (tui_command): Remove.
10986         (tui_get_cmd_list): Use add_basic_prefix_cmd.
10987         * tui/tui-layout.c (tui_layout_command): Remove.
10988         (_initialize_tui_layout): Use add_basic_prefix_cmd.
10989         * python/python.c (user_set_python, user_show_python): Remove.
10990         (_initialize_python): Use add_basic_prefix_cmd,
10991         add_show_prefix_cmd.
10992         * guile/guile.c (set_guile_command, show_guile_command): Remove.
10993         (install_gdb_commands): Use add_basic_prefix_cmd,
10994         add_show_prefix_cmd.
10995         (info_guile_command): Remove.
10996         * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10997         (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10998         add_show_prefix_cmd.
10999         * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11000         Remove do_set and do_show parameters.
11001         * cli/cli-style.c (set_style, show_style): Remove.
11002         (_initialize_cli_style): Use add_basic_prefix_cmd,
11003         add_show_prefix_cmd.
11004         (cli_style_option::add_setshow_commands): Remove do_set and
11005         do_show parameters.
11006         (cli_style_option::add_setshow_commands): Use
11007         add_basic_prefix_cmd, add_show_prefix_cmd.
11008         (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11009         (set_style_name): Remove.
11010         * cli/cli-dump.c (dump_command, append_command): Remove.
11011         (srec_dump_command, ihex_dump_command, verilog_dump_command)
11012         (tekhex_dump_command, binary_dump_command)
11013         (binary_append_command): Remove.
11014         (_initialize_cli_dump): Use add_basic_prefix_cmd.
11015         * windows-tdep.c (w32_prefix_command_valid): Remove global.
11016         (init_w32_command_list): Remove; move into ...
11017         (_initialize_windows_tdep): ... here.  Use add_basic_prefix_cmd.
11018         * valprint.c (set_print, show_print, set_print_raw)
11019         (show_print_raw): Remove.
11020         (_initialize_valprint): Use add_basic_prefix_cmd,
11021         add_show_prefix_cmd.
11022         * typeprint.c (set_print_type, show_print_type): Remove.
11023         (_initialize_typeprint): Use add_basic_prefix_cmd,
11024         add_show_prefix_cmd.
11025         * record.c (set_record_command, show_record_command): Remove.
11026         (_initialize_record): Use add_basic_prefix_cmd,
11027         add_show_prefix_cmd.
11028         * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11029         add_show_prefix_cmd.
11030         (info_command, show_command, set_debug, show_debug): Remove.
11031         * top.h (set_history, show_history): Don't declare.
11032         * top.c (set_history, show_history): Remove.
11033         * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11034         (unset_tdesc_cmd): Remove.
11035         (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11036         add_show_prefix_cmd.
11037         * symtab.c (info_module_command): Remove.
11038         (_initialize_symtab): Use add_basic_prefix_cmd.
11039         * symfile.c (overlay_command): Remove.
11040         (_initialize_symfile): Use add_basic_prefix_cmd.
11041         * sparc64-tdep.c (info_adi_command): Remove.
11042         (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11043         * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11044         (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11045         add_show_prefix_cmd.
11046         * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11047         (_initialize_serial): Use add_basic_prefix_cmd,
11048         add_show_prefix_cmd.
11049         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11050         (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11051         add_show_prefix_cmd.
11052         * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11053         (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11054         add_show_prefix_cmd.
11055         * riscv-tdep.c (show_riscv_command, set_riscv_command)
11056         (show_debug_riscv_command, set_debug_riscv_command): Remove.
11057         (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11058         add_show_prefix_cmd.
11059         * remote.c (remote_command, set_remote_cmd): Remove.
11060         (_initialize_remote): Use add_basic_prefix_cmd.
11061         * record-full.c (set_record_full_command)
11062         (show_record_full_command): Remove.
11063         (_initialize_record_full): Use add_basic_prefix_cmd,
11064         add_show_prefix_cmd.
11065         * record-btrace.c (cmd_set_record_btrace)
11066         (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11067         (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11068         (cmd_show_record_btrace_pt): Remove.
11069         (_initialize_record_btrace): Use add_basic_prefix_cmd,
11070         add_show_prefix_cmd.
11071         * ravenscar-thread.c (set_ravenscar_command)
11072         (show_ravenscar_command): Remove.
11073         (_initialize_ravenscar): Use add_basic_prefix_cmd,
11074         add_show_prefix_cmd.
11075         * mips-tdep.c (show_mips_command, set_mips_command)
11076         (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11077         add_show_prefix_cmd.
11078         * maint.c (maintenance_command, maintenance_info_command)
11079         (maintenance_check_command, maintenance_print_command)
11080         (maintenance_set_cmd, maintenance_show_cmd): Remove.
11081         (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11082         add_show_prefix_cmd.
11083         (show_per_command_cmd): Remove.
11084         * maint-test-settings.c (maintenance_set_test_settings_cmd):
11085         Remove.
11086         (maintenance_show_test_settings_cmd): Remove.
11087         (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11088         add_show_prefix_cmd.
11089         * maint-test-options.c (maintenance_test_options_command):
11090         Remove.
11091         (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11092         * macrocmd.c (macro_command): Remove
11093         (_initialize_macrocmd): Use add_basic_prefix_cmd.
11094         * language.c (set_check, show_check): Remove.
11095         (_initialize_language): Use add_basic_prefix_cmd,
11096         add_show_prefix_cmd.
11097         * infcmd.c (unset_command): Remove.
11098         (_initialize_infcmd): Use add_basic_prefix_cmd.
11099         * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11100         (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11101         add_show_prefix_cmd.
11102         * go32-nat.c (go32_info_dos_command): Remove.
11103         (_initialize_go32_nat): Use add_basic_prefix_cmd.
11104         * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11105         (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11106         * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11107         (_initialize_frame): Use add_basic_prefix_cmd,
11108         add_show_prefix_cmd.
11109         * dcache.c (set_dcache_command, show_dcache_command): Remove.
11110         (_initialize_dcache): Use add_basic_prefix_cmd,
11111         add_show_prefix_cmd.
11112         * cp-support.c (maint_cplus_command): Remove.
11113         (_initialize_cp_support): Use add_basic_prefix_cmd.
11114         * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11115         (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11116         (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11117         add_basic_prefix_cmd, add_show_prefix_cmd.
11118         * breakpoint.c (save_command): Remove.
11119         (_initialize_breakpoint): Use add_basic_prefix_cmd.
11120         * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11121         (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11122         add_show_prefix_cmd.
11123         * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11124         (set_ada_command, show_ada_command): Remove.
11125         (_initialize_ada_language): Use add_basic_prefix_cmd,
11126         add_show_prefix_cmd.
11127         * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11129 2020-04-16  Kamil Rytarowski  <n54@gmx.com>
11131         * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11132         * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11134 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11136         * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11137         warning messages.
11139 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11141         * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11142         import table is not at beginning of .idata section.
11144 2020-04-16  Pedro Alves  <palves@redhat.com>
11146         * inferior.c (delete_inferior): Use delete operator directly
11147         instead of delete_program_space.
11148         * progspace.c (add_program_space): New, factored out from
11149         program_space::program_space.
11150         (remove_program_space): New, factored out from
11151         delete_program_space.
11152         (program_space::program_space): Remove intro comment.  Rewrite.
11153         (program_space::~program_space): Remove intro comment.  Call
11154         remove_program_space.
11155         (delete_program_space): Delete.
11156         * progspace.h (program_space::program_space): Make explicit.  Move
11157         intro comment here, adjusted.
11158         (program_space::~program_space): Move intro comment here,
11159         adjusted.
11160         (delete_program_space): Remove.
11162 2020-04-16  Tom Tromey  <tromey@adacore.com>
11164         * windows-nat.c (windows_nat::handle_access_violation): New
11165         function.
11166         * nat/windows-nat.h (handle_access_violation): Declare.
11167         * nat/windows-nat.c (handle_exception): Move Cygwin code to
11168         windows-nat.c.  Call handle_access_violation.
11170 2020-04-16  Tom de Vries  <tdevries@suse.de>
11172         PR symtab/25791
11173         * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11174         CUs without psymtab.
11176 2020-04-16  Kevin Buettner  <kevinb@redhat.com>
11178         * python/python.c (do_start_initialization): Don't call
11179         PyEval_InitThreads for Python 3.9 and beyond.
11181 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
11183         * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11184         thread functions.
11185         (obsd_nat_target::wait): Likewise.
11187 2020-04-15  Tom Tromey  <tromey@adacore.com>
11189         * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11190         (DEBUG_EXCEPT): Use debug_printf.
11192 2020-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
11194         * completer.c (class completion_tracker::completion_hash_entry)
11195         <hash_name>: New member function.
11196         (completion_tracker::discard_completions): New callback to hash a
11197         completion_hash_entry, pass this to htab_create_alloc.
11199 2016-01-20  Jon Turney  <jon.turney@dronecode.org.uk>
11201         * windows-nat.c (windows_make_so): Warn rather than stopping with
11202         an error if realpath() fails.
11204 2020-04-14  Kamil Rytarowski  <n54@gmx.com>
11206         * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11207         (nbsd_nat_target::info_proc): Add do_status.
11209 2020-04-14  Simon Marchi  <simon.marchi@polymtl.ca>
11210             Tom de Vries  <tdevries@suse.de>
11212         PR symtab/25718
11213         * psympriv.h (struct partial_symtab::read_symtab)
11214         (struct partial_symtab::expand_psymtab)
11215         (struct partial_symtab::read_dependencies): Update comments.
11216         * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11217         read_symtab for includer.
11218         (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11219         (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11220         (struct dwarf2_include_psymtab::m_readin): Remove.
11221         (struct dwarf2_include_psymtab::includer): New member function.
11222         (dwarf2_psymtab::expand_psymtab): Assert !readin.
11224 2020-04-14  Tom de Vries  <tdevries@suse.de>
11226         PR symtab/25720
11227         * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11228         with NULL symbol_matcher and lookup_name.
11229         * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11230         and lookup_name.
11231         * dwarf2/read.c (dw2_expand_symtabs_matching)
11232         (dw2_debug_names_expand_symtabs_matching): Same.
11233         * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11234         Make lookup_name a pointer.  Update comment.
11235         * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11236         lookup_name being a pointer.
11237         * symfile.c (expand_symtabs_matching): Same.
11238         * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11239         * linespec.c (iterate_over_all_matching_symtabs): Same.
11241 2020-04-13  Tom Tromey  <tom@tromey.com>
11243         * run-on-main-thread.c: Update include.
11244         * unittests/main-thread-selftests.c: Update include.
11245         * tui/tui-win.c: Update include.
11246         * tui/tui-io.c: Update include.
11247         * tui/tui-interp.c: Update include.
11248         * tui/tui-hooks.c: Update include.
11249         * top.h: Update include.
11250         * top.c: Update include.
11251         * ser-base.c: Update include.
11252         * remote.c: Update include.
11253         * remote-notif.c: Update include.
11254         * remote-fileio.c: Update include.
11255         * record-full.c: Update include.
11256         * record-btrace.c: Update include.
11257         * python/python.c: Update include.
11258         * posix-hdep.c: Update include.
11259         * mingw-hdep.c: Update include.
11260         * mi/mi-main.c: Update include.
11261         * mi/mi-interp.c: Update include.
11262         * main.c: Update include.
11263         * linux-nat.c: Update include.
11264         * interps.c: Update include.
11265         * infrun.c: Update include.
11266         * inf-loop.c: Update include.
11267         * event-top.c: Update include.
11268         * event-loop.c: Move to ../gdbsupport/.
11269         * event-loop.h: Move to ../gdbsupport/.
11270         * async-event.h: Update include.
11271         * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11273 2020-04-13  Tom Tromey  <tom@tromey.com>
11275         * tui/tui-win.c: Include async-event.h.
11276         * remote.c: Include async-event.h.
11277         * remote-notif.c: Include async-event.h.
11278         * record-full.c: Include async-event.h.
11279         * record-btrace.c: Include async-event.h.
11280         * infrun.c: Include async-event.h.
11281         * event-top.c: Include async-event.h.
11282         * event-loop.h: Move some declarations to async-event.h.
11283         * event-loop.c: Don't include ser-event.h or top.h.  Move some
11284         code to async-event.c.
11285         * async-event.h: New file.
11286         * async-event.c: New file.
11287         * Makefile.in (COMMON_SFILES): Add async-event.c.
11288         (HFILES_NO_SRCDIR): Add async-event.h.
11290 2020-04-13  Tom Tromey  <tom@tromey.com>
11292         * utils.c (flush_streams): New function.
11293         * event-loop.c (gdb_wait_for_event): Call flush_streams.
11295 2020-04-13  Tom Tromey  <tom@tromey.com>
11297         * event-loop.c (handle_file_event): Use warning, not
11298         printf_unfiltered.
11300 2020-04-13  Tom Tromey  <tom@tromey.com>
11302         * event-loop.c: Include <chrono>.
11304 2020-04-13  Tom Tromey  <tom@tromey.com>
11306         * gdb_select.h: Move to ../gdbsupport/.
11307         * event-loop.c: Update include path.
11308         * top.c: Update include path.
11309         * ser-base.c: Update include path.
11310         * ui-file.c: Update include path.
11311         * ser-tcp.c: Update include path.
11312         * guile/scm-ports.c: Update include path.
11313         * posix-hdep.c: Update include path.
11314         * ser-unix.c: Update include path.
11315         * gdb_usleep.c: Update include path.
11316         * mingw-hdep.c: Update include path.
11317         * inflow.c: Update include path.
11318         * infrun.c: Update include path.
11319         * event-top.c: Update include path.
11321 2020-04-13  Tom Tromey  <tom@tromey.com>
11323         * configure: Rebuild.
11324         * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11326 2020-04-13  Tom Tromey  <tom@tromey.com>
11328         * event-loop.h (start_event_loop): Don't declare.
11329         * event-loop.c (start_event_loop): Move...
11330         * main.c (start_event_loop): ...here.  Now static.
11332 2020-04-13  Sergio Durigan Junior  <sergiodj@sergiodj.net>
11334         * MAINTAINERS: Update my email address.
11336 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11338         * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11339         IP_ALL.
11341 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11343         * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11344         (nbsd_nat_target::info_proc): Add do_cmdline.
11346 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11348         * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11349         (nbsd_nat_target::info_proc): Add do_cwd.
11351 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11353         * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11355 2020-04-11  Kamil Rytarowski  <n54@gmx.com>
11357         * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11358         * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11359         (nbsd_nat_target::info_proc): New functions.
11360         * nbsd-nat.c (kinfo_get_vmmap): New function.
11361         * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11362         nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11363         * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11364         (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11365         functions.
11366         * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11367         (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11368         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11369         (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11370         (KINFO_VME_FLAG_GROWS_DOWN): New.
11372 2020-04-10  Artur Shepilko  <nomadbyte@gmail.com>
11374         * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11375         bit shift.
11377 2020-04-10  Tom Tromey  <tromey@adacore.com>
11379         * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11381 2020-04-10  Tom Tromey  <tromey@adacore.com>
11383         * symtab.c (get_symbol_address, get_msymbol_address): Skip
11384         separate debug files.
11386 2020-04-10  Hannes Domani  <ssbssa@yahoo.de>
11388         * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11389         Move to...
11390         * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11391         ... here.
11392         * windows-nat.c (windows_nat_target::get_windows_debug_event):
11393         Check for STATUS_WX86_BREAKPOINT.
11394         (windows_nat_target::wait): Same.
11396 2020-04-10  Tom de Vries  <tdevries@suse.de>
11398         PR cli/25808
11399         * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11401 2020-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11403         * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11404         (Write After Approval): Remove Tom de Vries.
11406 2020-04-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11408         revert partially:
11409         2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11411         * buildsym.c (record_line): Fix undefined behavior and preserve
11412         lines at eof.
11414 2020-04-09  Kamil Rytarowski  <n54@gmx.com>
11416         * auxv.h (svr4_auxv_parse): New.
11417         * auxv.c (default_auxv_parse): Split into default_auxv_parse
11418         and generic_auxv_parse.
11419         (svr4_auxv_parse): Add.
11420         * obsd-tdep.c: Include "auxv.h".
11421         (obsd_auxv_parse): Remove.
11422         (obsd_init_abi): Remove comment.
11423         (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11424         from `obsd_auxv_parse' to `svr4_auxv_parse'.
11425         * nbsd-tdep.c: Include "auxv.h".
11426         (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11428 2020-04-08  Tom Tromey  <tromey@adacore.com>
11430         * nat/windows-nat.h (last_wait_event): Don't declare.
11431         (wait_for_debug_event): Update comment.
11432         * nat/windows-nat.c (last_wait_event): Now static.
11434 2020-04-08  Tom Tromey  <tromey@adacore.com>
11436         * windows-nat.c (wait_for_debug_event): Move to
11437         nat/windows-nat.c.
11438         * nat/windows-nat.h (wait_for_debug_event): Declare.
11439         * nat/windows-nat.c (wait_for_debug_event): Move from
11440         windows-nat.c.  No longer static.
11442 2020-04-08  Tom Tromey  <tromey@adacore.com>
11444         * windows-nat.c (get_windows_debug_event): Use
11445         fetch_pending_stop.
11446         * nat/windows-nat.h (fetch_pending_stop): Declare.
11447         * nat/windows-nat.c (fetch_pending_stop): New function.
11449 2020-04-08  Tom Tromey  <tromey@adacore.com>
11451         * windows-nat.c (windows_continue): Use matching_pending_stop and
11452         continue_last_debug_event.
11453         * nat/windows-nat.h (matching_pending_stop)
11454         (continue_last_debug_event): Declare.
11455         * nat/windows-nat.c (DEBUG_EVENTS): New define.
11456         (matching_pending_stop, continue_last_debug_event): New
11457         functions.
11459 2020-04-08  Tom Tromey  <tromey@adacore.com>
11461         * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11462         (handle_exception_result): Move to nat/windows-nat.h.
11463         (DEBUG_EXCEPTION_SIMPLE): Remove.
11464         (windows_nat::handle_ms_vc_exception): New function.
11465         (handle_exception): Move to nat/windows-nat.c.
11466         (get_windows_debug_event): Update.
11467         (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11468         nat/windows-nat.c.
11469         * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11470         (handle_exception_result): Move from windows-nat.c.
11471         (handle_exception): Declare.
11472         * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11473         (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11474         windows-nat.c.
11476 2020-04-08  Tom Tromey  <tromey@adacore.com>
11478         * windows-nat.c (exception_count, event_count): Remove.
11479         (handle_exception, get_windows_debug_event)
11480         (do_initial_windows_stuff): Update.
11482 2020-04-08  Tom Tromey  <tromey@adacore.com>
11484         * windows-nat.c (windows_nat::handle_load_dll)
11485         (windows_nat::handle_unload_dll): Rename.  No longer static.
11486         * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11487         Declare.
11489 2020-04-08  Tom Tromey  <tromey@adacore.com>
11491         * complaints.h (stop_whining): Declare at top-level.
11492         (complaint): Don't declare stop_whining.
11494 2020-04-08  Tom Tromey  <tromey@adacore.com>
11496         * windows-nat.c (windows_nat::handle_output_debug_string):
11497         Rename.  No longer static.
11498         * nat/windows-nat.h (handle_output_debug_string): Declare.
11500 2020-04-08  Tom Tromey  <tromey@adacore.com>
11502         * windows-nat.c (current_process_handle, current_process_id)
11503         (main_thread_id, last_sig, current_event, last_wait_event)
11504         (current_windows_thread, desired_stop_thread_id, pending_stops)
11505         (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11506         (display_selectors, fake_create_process)
11507         (get_windows_debug_event): Update.
11508         * nat/windows-nat.h (current_process_handle, current_process_id)
11509         (main_thread_id, last_sig, current_event, last_wait_event)
11510         (current_windows_thread, desired_stop_thread_id, pending_stops)
11511         (struct pending_stop, siginfo_er): Move from windows-nat.c.
11512         * nat/windows-nat.c (current_process_handle, current_process_id)
11513         (main_thread_id, last_sig, current_event, last_wait_event)
11514         (current_windows_thread, desired_stop_thread_id, pending_stops)
11515         (siginfo_er): New globals.  Move from windows-nat.c.
11517 2020-04-08  Tom Tromey  <tromey@adacore.com>
11519         * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11520         (handle_load_dll): Update.
11521         * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11523 2020-04-08  Tom Tromey  <tromey@adacore.com>
11525         * windows-nat.c (enum thread_disposition_type): Move to
11526         nat/windows-nat.h.
11527         (windows_nat::thread_rec): Rename from thread_rec.  No longer
11528         static.
11529         (windows_add_thread, windows_nat_target::fetch_registers)
11530         (windows_nat_target::store_registers, handle_exception)
11531         (windows_nat_target::resume, get_windows_debug_event)
11532         (windows_nat_target::get_tib_address)
11533         (windows_nat_target::thread_name)
11534         (windows_nat_target::thread_alive): Update.
11535         * nat/windows-nat.h (enum thread_disposition_type): Move from
11536         windows-nat.c.
11537         (thread_rec): Declare.
11539 2020-04-08  Tom Tromey  <tromey@adacore.com>
11541         * windows-nat.c: Add "using namespace".
11542         * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11543         * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11545 2020-04-08  Tom Tromey  <tromey@adacore.com>
11547         * nat/windows-nat.h (struct windows_thread_info): Declare
11548         destructor.
11549         * nat/windows-nat.c (~windows_thread_info): New.
11551 2020-04-08  Tom Tromey  <tromey@adacore.com>
11553         PR gdb/22992
11554         * windows-nat.c (current_event): Update comment.
11555         (last_wait_event, desired_stop_thread_id): New globals.
11556         (struct pending_stop): New.
11557         (pending_stops): New global.
11558         (windows_nat_target) <stopped_by_sw_breakpoint>
11559         <supports_stopped_by_sw_breakpoint>: New methods.
11560         (windows_fetch_one_register): Add assertions.  Adjust PC.
11561         (windows_continue): Handle pending stops.  Suspend other threads
11562         when stepping.  Use last_wait_event
11563         (wait_for_debug_event): New function.
11564         (get_windows_debug_event): Use wait_for_debug_event.  Handle
11565         pending stops.  Queue spurious stops.
11566         (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11567         (windows_nat_target::kill): Use wait_for_debug_event.
11568         * nat/windows-nat.h (struct windows_thread_info)
11569         <stopped_at_software_breakpoint>: New field.
11570         * nat/windows-nat.c (windows_thread_info::resume): Clear
11571         stopped_at_software_breakpoint.
11573 2020-04-08  Tom Tromey  <tromey@adacore.com>
11575         * windows-nat.c (enum thread_disposition_type): New.
11576         (thread_rec): Replace "get_context" parameter with "disposition";
11577         change type.
11578         (windows_add_thread, windows_nat_target::fetch_registers)
11579         (windows_nat_target::store_registers, handle_exception)
11580         (windows_nat_target::resume, get_windows_debug_event)
11581         (windows_nat_target::get_tib_address)
11582         (windows_nat_target::thread_name)
11583         (windows_nat_target::thread_alive): Update.
11585 2020-04-08  Tom Tromey  <tromey@adacore.com>
11587         * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11588         (windows_continue): Use windows_continue::resume.
11589         * nat/windows-nat.h (struct windows_thread_info) <suspend,
11590         resume>: Declare new methods.
11591         * nat/windows-nat.c: New file.
11592         * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11594 2020-04-08  Tom Tromey  <tromey@adacore.com>
11596         * windows-nat.c (windows_add_thread, windows_delete_thread)
11597         (windows_nat_target::fetch_registers)
11598         (windows_nat_target::store_registers, fake_create_process)
11599         (windows_nat_target::resume, windows_nat_target::resume)
11600         (get_windows_debug_event, windows_nat_target::wait)
11601         (windows_nat_target::pid_to_str)
11602         (windows_nat_target::get_tib_address)
11603         (windows_nat_target::get_ada_task_ptid)
11604         (windows_nat_target::thread_name)
11605         (windows_nat_target::thread_alive): Use lwp, not tid.
11607 2020-04-08  Tom Tromey  <tromey@adacore.com>
11609         * windows-nat.c (handle_exception)
11610         (windows_nat_target::thread_name): Update.
11611         * nat/windows-nat.h (windows_thread_info): Remove destructor.
11612         <name>: Now unique_xmalloc_ptr.
11614 2020-04-08  Tom Tromey  <tromey@adacore.com>
11616         * windows-nat.c (thread_rec)
11617         (windows_nat_target::fetch_registers): Update.
11618         * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11619         Update comment.
11620         <debug_registers_changed, reload_context>: Now bool.
11622 2020-04-08  Tom Tromey  <tromey@adacore.com>
11624         * windows-nat.c (windows_add_thread): Use new.
11625         (windows_init_thread_list, windows_delete_thread): Use delete.
11626         (get_windows_debug_event): Update.
11627         * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11628         destructor, and initializers.
11630 2020-04-08  Tom Tromey  <tromey@adacore.com>
11632         * windows-nat.c (struct windows_thread_info): Remove.
11633         * nat/windows-nat.h: New file.
11635 2020-04-08  Tom Tromey  <tromey@adacore.com>
11637         * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11638         (thread_rec, windows_add_thread, windows_delete_thread)
11639         (windows_continue): Update.
11641 2020-04-08  Tom Tromey  <tromey@adacore.com>
11643         * windows-nat.c (struct windows_thread_info): Remove typedef.
11644         (thread_head): Remove.
11645         (thread_list): New global.
11646         (thread_rec, windows_add_thread, windows_init_thread_list)
11647         (windows_delete_thread, windows_continue): Update.
11649 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
11651         * windows-tdep.h (windows_init_abi): Add comment.
11652         (cygwin_init_abi): New declaration.
11653         * windows-tdep.c: Split signal enumeration in two, one for
11654         Windows and one for Cygwin.
11655         (windows_gdb_signal_to_target): Only deal with signal of the
11656         Windows OS ABI.
11657         (cygwin_gdb_signal_to_target): New function.
11658         (windows_init_abi): Rename to windows_init_abi_common, don't set
11659         gdb_signal_to_target gdbarch method.  Add new new function with
11660         this name.
11661         (cygwin_init_abi): New function.
11662         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11663         comment.  Don't call windows_init_abi.
11664         (amd64_windows_init_abi): Add comment, call windows_init_abi.
11665         (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11666         * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11667         i386_windows_init_abi_common, don't call windows_init_abi.  Add
11668         a new function of this name.
11669         (i386_cygwin_init_abi): New function.
11670         (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11671         OS ABI Cygwin.
11673 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
11675         * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11676         parameter.c.
11677         (dwarf2_read_gdb_index): Update.
11679 2020-04-07  Kamil Rytarowski  <n54@gmx.com>
11681         * nbsd-tdep.c: Include "objfiles.h".
11682         (nbsd_skip_solib_resolver): New.
11683         (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11685 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11687         * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11688         addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11689         with DW_LLE_base_addressx are being emitted in DWARFv5.
11690         Add the newly added kind DW_LOC_OFFSET_PAIR also.
11691         The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11692         unsigned integer.
11694 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11696         * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11697         (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11698         addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11699         with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11700         Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11701         (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11702         DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11705 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11707         * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11708         (read_loclist_index): New function definition.
11709         (lookup_loclist_base): New function definition.
11710         (read_loclist_header): New function definition.
11711         (dwarf2_cu): Add loclist_base and loclist_header field.
11712         (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11713         (read_full_die_1): Read the value of DW_AT_loclists_base.
11714         (read_attribute_reprocess): Handle DW_FORM_loclistx.
11715         (read_attribute_value): Handle DW_FORM_loclistx.
11716         (skip_one_die): Handle DW_FORM_loclistx.
11717         (loclist_header): New structure declaration.
11718         * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11720 2020-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11722         * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11723         constructor.  Remove `addr` parameter from other constructor and
11724         add `per_cu` parameter.
11725         * dwarf2/read.c (create_partial_symtab): Update.
11727 2020-04-07  Tom de Vries  <tdevries@suse.de>
11729         PR symtab/25796
11730         * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11731         (partial_die_info::fixup): Inherit has_const_value.
11733 2020-04-07  Tom de Vries  <tdevries@suse.de>
11735         * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11736         symbols without address.
11738 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
11740         * nbsd-nat.h (struct thread_info): Add forward declaration.
11741         (nbsd_nat_target::thread_alive): Add.
11742         (nbsd_nat_target::thread_name): Likewise.
11743         (nbsd_nat_target::update_thread_list): Likewise.
11744         (update_thread_list::post_attach): Likewise.
11745         (post_attach::pid_to_str): Likewise.
11746         * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11747         (nbsd_thread_lister): Add.
11748         (nbsd_nat_target::thread_alive): Likewise.
11749         (nbsd_nat_target::thread_name): Likewise.
11750         (nbsd_add_threads): Likewise.
11751         (update_thread_list::post_attach): Likewise.
11752         (nbsd_nat_target::update_thread_list): Likewise.
11753         (post_attach::pid_to_str): Likewise.
11755 2020-04-06  Tom Tromey  <tromey@adacore.com>
11757         * ada-valprint.c (print_variant_part): Extract the variant field.
11758         (print_field_values): Use the field as the outer value when
11759         recursing.
11761 2020-04-06  Tom Tromey  <tromey@adacore.com>
11763         * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11764         * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11765         * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11766         * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11767         * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11769 2020-04-06  Tom Tromey  <tromey@adacore.com>
11771         * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11772         TYPE_CODE_ERROR.
11774 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
11776         * nbsd-tdep.c: Include "gdbarch.h".
11777         Define enum with NetBSD signal numbers.
11778         (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11779         * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11780         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11781         * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11782         * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11783         * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11784         * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11785         * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11786         * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11787         * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11788         * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11789         * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11791 2020-04-03  Hannes Domani  <ssbssa@yahoo.de>
11793         PR gdb/25325
11794         * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11796 2020-04-03  Tom Tromey  <tromey@adacore.com>
11798         * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11799         Read constant block.
11801 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
11803         * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11804         (gdb_bfd_get_full_section_contents): New declaration.
11805         * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11806         * windows-tdep.c (is_linked_with_cygwin_dll): Use
11807         gdb_bfd_get_full_section_contents.
11809 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
11811         * exec.c (build_section_table): Replace internal_error with
11812         gdb_assert.
11813         (section_table_xfer_memory_partial): Likewise.
11814         * mdebugread.c (parse_partial_symbols): Likewise.
11815         * psymtab.c (lookup_partial_symbol): Likewise.
11816         * utils.c (wrap_here): Likewise.
11818 2020-04-02  Tom Tromey  <tromey@adacore.com>
11820         * f-lang.c (build_fortran_types): Use arch_type to initialize
11821         builtin_complex_s32 in the TYPE_CODE_ERROR case.
11823 2020-04-02  Tom Tromey  <tromey@adacore.com>
11825         * dwarf2/read.c (partial_die_info::read): Do not create a vector
11826         of attributes.
11828 2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
11829             Bernd Edlinger <bernd.edlinger@hotmail.de>
11830             Tom Tromey  <tromey@adacore.com>
11832         * buildsym.c (buildsym_compunit::record_line): Remove
11833         deduplication code.
11835 2020-04-02  Tom de Vries  <tdevries@suse.de>
11837         PR ada/24671
11838         * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11840 2020-04-02  Tom de Vries  <tdevries@suse.de>
11842         * dwarf2/read.c (dwarf2_gdb_index_functions,
11843         dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11844         NULL.
11845         * psymtab.c (psym_lookup_global_symbol_language): New function.
11846         (psym_functions): Init psym_lookup_global_symbol_language with
11847         psym_lookup_global_symbol_language.
11848         * symfile-debug.c (debug_sym_quick_functions): Init
11849         lookup_global_symbol_language with NULL.
11850         * symfile.c (set_initial_language): Remove fixme comment.
11851         * symfile.h (struct quick_symbol_functions): Add
11852         lookup_global_symbol_language.
11853         * symtab.c (find_quick_global_symbol_language): New function.
11854         (find_main_name): Use find_quick_global_symbol_language.
11856 2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
11858         * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11860 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11862         * buildsym.c (record_line): Fix undefined behavior and preserve
11863         lines at eof.
11865 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11867         * buildsym.c (record_line): Fix the resizing condition.
11869 2020-04-01  Tom Tromey  <tom@tromey.com>
11871         * value.h (value_literal_complex): Add comment.
11872         * valops.c (value_literal_complex): Refer to value.h.
11874 2020-04-01  Tom Tromey  <tom@tromey.com>
11876         * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11877         (scalar_type): New rule, from typebase.
11878         (typebase): Use scalar_type.  Recognize complex types.
11879         (field_name): Handle FLOAT_KEYWORD.
11880         (ident_tokens): Add _Complex and __complex__.
11882 2020-04-01  Tom Tromey  <tom@tromey.com>
11884         PR exp/25299:
11885         * valarith.c (promotion_type, complex_binop): New functions.
11886         (scalar_binop): Handle complex numbers.  Use promotion_type.
11887         (value_pos, value_neg, value_complement): Handle complex numbers.
11889 2020-04-01  Tom Tromey  <tom@tromey.com>
11891         * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11892         (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11893         (parse_number): Handle complex numbers.
11895 2020-04-01  Tom Tromey  <tom@tromey.com>
11897         * c-valprint.c (c_decorations): Change complex suffix to "i".
11899 2020-04-01  Tom Tromey  <tom@tromey.com>
11901         * valprint.c (generic_value_print_complex): Use accessors.
11902         * value.h (value_real_part, value_imaginary_part): Declare.
11903         * valops.c (value_real_part, value_imaginary_part): New
11904         functions.
11905         * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11907 2020-04-01  Tom Tromey  <tom@tromey.com>
11909         * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11910         (read_range_type): Update.
11911         * mdebugread.c (basic_type): Update.
11912         * go-lang.c (build_go_types): Use init_complex_type.
11913         * gdbtypes.h (struct main_type) <complex_type>: New member.
11914         (init_complex_type): Update.
11915         (arch_complex_type): Don't declare.
11916         * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11917         Make name if none given.  Use alloc_type_copy.  Look for cached
11918         complex type.
11919         (arch_complex_type): Remove.
11920         (gdbtypes_post_init): Use init_complex_type.
11921         * f-lang.c (build_fortran_types): Use init_complex_type.
11922         * dwarf2/read.c (read_base_type): Update.
11923         * d-lang.c (build_d_types): Use init_complex_type.
11924         * ctfread.c (read_base_type): Update.
11926 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11928         * infrun.c (stop_all_threads): Update assertion, plus when
11929         stopping threads, take into account that we might be trying
11930         to stop an all-stop target.
11931         (stop_waiting): Call 'stop_all_threads' if there exists a
11932         non-stop target.
11934 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11936         * target.h (exists_non_stop_target): New function declaration.
11937         * target.c (exists_non_stop_target): New function.
11939 2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
11941         PR gdb/24789
11942         * eval.c (is_integral_or_integral_reference): New function.
11943         (evaluate_subexp_standard): Allow integer references in
11944         pointer arithmetic.
11946 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11948         * remote.c (remote_target::remote_parse_stop_reply): Remove the
11949         check for no ptid in the stop reply when the target is non-stop.
11951 2020-04-01  Tom Tromey  <tromey@adacore.com>
11953         * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11954         "name" parameter to rvalue reference.  Initialize m_name_holder.
11955         <lookup_name_info>: New overloads.
11956         <name>: Return gdb::string_view.
11957         <c_str>: New method.
11958         <make_ignore_params>: Update.
11959         <search_name_hash>: Update.
11960         <language_lookup_name>: Return const char *.
11961         <m_name>: Change type.
11962         * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11963         (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11964         (lookup_name_info::match_any): Update.
11965         * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11966         Update.
11967         * minsyms.c (linkage_name_str): Update.
11968         * language.c (default_symbol_name_matcher): Update.
11969         * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11970         Update.
11971         * ada-lang.c (ada_fold_name): Change parameter to string_view.
11972         (ada_lookup_name_info::ada_lookup_name_info): Update.
11973         (literal_symbol_name_matcher): Update.
11975 2020-04-01  Tom Tromey  <tromey@adacore.com>
11977         * psymtab.c (psymtab_search_name): Remove function.
11978         (psym_lookup_symbol): Create search name and lookup name here.
11979         (lookup_partial_symbol): Remove "name" parameter; add
11980         lookup_name.
11981         (psym_expand_symtabs_for_function): Update.
11983 2020-03-31  Joel Jones  <joelkevinjones@gmail.com>
11985         PR tui/25597:
11986         * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11988 2020-03-31  Tom Tromey  <tromey@adacore.com>
11990         * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11991         memcpy.
11993 2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
11995         * features/riscv/32bit-csr.xml: Regenerated.
11996         * features/riscv/64bit-csr.xml: Regenerated.
11998 2020-03-30  Tom Tromey  <tromey@adacore.com>
12000         * ada-valprint.c (print_variant_part): Update.
12001         * ada-lang.h (ada_which_variant_applies): Update.
12002         * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12003         outer_valaddr parameters; replace with "outer" value parameter.
12004         (to_fixed_variant_branch_type): Update.
12006 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12008         * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12009         <list>.  Remove inclusion of observable.h.
12010         (PPC_DEBUG_CURRENT_VERSION): Move up define.
12011         (struct arch_lwp_info): New struct.
12012         (class ppc_linux_dreg_interface): New class.
12013         (struct ppc_linux_process_info): New struct.
12014         (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12015         <low_new_clone, low_forget_process, low_prepare_to_resume>
12016         <copy_thread_dreg_state, mark_thread_stale>
12017         <mark_debug_registers_changed, register_hw_breakpoint>
12018         <clear_hw_breakpoint, register_wp, clear_wp>
12019         <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12020         <num_memory_accesses, get_trigger_type>
12021         <create_watchpoint_request, hwdebug_point_cmp>
12022         <init_arch_lwp_info, get_arch_lwp_info>
12023         <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12024         methods.
12025         <struct ptid_hash>: New inner struct.
12026         <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12027         members.
12028         (saved_dabr_value, hwdebug_info, max_slots_number)
12029         (struct hw_break_tuple, struct thread_points, ppc_threads)
12030         (have_ptrace_hwdebug_interface)
12031         (hwdebug_find_thread_points_by_tid)
12032         (hwdebug_insert_point, hwdebug_remove_point): Remove.
12033         (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12034         m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12035         (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12036         use m_dreg_interface.
12037         (hwdebug_point_cmp): Change to...
12038         (ppc_linux_nat_target::hwdebug_point_cmp): ...this method.  Use
12039         reference arguments instead of pointers.
12040         (ppc_linux_nat_target::ranged_break_num_registers): Use
12041         m_dreg_interface.
12042         (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12043         m_dreg_interface.  Call register_hw_breakpoint.
12044         (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12045         m_dreg_interface.  Call clear_hw_breakpoint.
12046         (get_trigger_type): Change to...
12047         (ppc_linux_nat_target::get_trigger_type): ...this method.  Add
12048         comment.
12049         (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12050         use m_dreg_interface.  Call register_hw_breakpoint.
12051         (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12052         use m_dreg_interface.  Call clear_hw_breakpoint.
12053         (can_use_watchpoint_cond_accel): Change to...
12054         (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12055         method.  Update comment, use m_dreg_interface and
12056         m_process_info.
12057         (calculate_dvc): Change to...
12058         (ppc_linux_nat_target::calculate_dvc): ...this method.  Use
12059         m_dreg_interface.
12060         (num_memory_accesses): Change to...
12061         (ppc_linux_nat_target::num_memory_accesses): ...this method.
12062         (check_condition): Change to...
12063         (ppc_linux_nat_target::check_condition): ...this method.
12064         (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12065         comment, use m_dreg_interface.
12066         (create_watchpoint_request): Change to...
12067         (ppc_linux_nat_target::create_watchpoint_request): ...this
12068         method.  Use m_dreg_interface.
12069         (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12070         m_dreg_interface.  Call register_hw_breakpoint or register_wp.
12071         (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12072         m_dreg_interface.  Call clear_hw_breakpoint or clear_wp.
12073         (ppc_linux_nat_target::low_forget_process)
12074         (ppc_linux_nat_target::low_new_fork)
12075         (ppc_linux_nat_target::low_new_clone)
12076         (ppc_linux_nat_target::low_delete_thread)
12077         (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12078         (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12079         only call mark_thread_stale.
12080         (ppc_linux_thread_exit): Remove.
12081         (ppc_linux_nat_target::stopped_data_address): Change to...
12082         (ppc_linux_nat_target::low_stopped_data_address): This. Add
12083         comment, use m_dreg_interface and m_thread_hw_breakpoints.
12084         (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12085         (ppc_linux_nat_target::stopped_by_watchpoint): This.  Add
12086         comment.  Call low_stopped_data_address.
12087         (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12088         m_dreg_interface.
12089         (ppc_linux_nat_target::masked_watch_num_registers): Use
12090         m_dreg_interface.
12091         (ppc_linux_nat_target::copy_thread_dreg_state)
12092         (ppc_linux_nat_target::mark_thread_stale)
12093         (ppc_linux_nat_target::mark_debug_registers_changed)
12094         (ppc_linux_nat_target::register_hw_breakpoint)
12095         (ppc_linux_nat_target::clear_hw_breakpoint)
12096         (ppc_linux_nat_target::register_wp)
12097         (ppc_linux_nat_target::clear_wp)
12098         (ppc_linux_nat_target::init_arch_lwp_info)
12099         (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12100         (_initialize_ppc_linux_nat): Remove observer callback.
12102 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12104         * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12105         (ppc_linux_nat_target::auxv_parse)
12106         (ppc_linux_nat_target::read_description)
12107         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12108         Move up.
12110 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12112         * linux-nat.h (low_new_clone): New method.
12113         * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12115 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12117         * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12118         (dbx_expand_psymtab): ... this.
12119         (start_psymtab): Update.
12120         * mdebugread.c (psymtab_to_symtab_1): Rename to...
12121         (mdebug_expand_psymtab): ... this.
12122         (parse_partial_symbols): Update.
12123         (new_psymtab): Update.
12124         * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12125         (xcoff_expand_psymtab): ... this.
12126         (xcoff_start_psymtab): Update.
12128 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12130         * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12131         <expand_dependencies>: ... this.
12132         * psymtab.c (partial_symtab::read_dependencies): Rename to...
12133         (partial_symtab::expand_dependencies): ... this.
12134         * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12135         Update.
12136         (dwarf2_psymtab::expand_psymtab): Update.
12137         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12138         * mdebugread.c (psymtab_to_symtab_1): Update.
12139         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12141 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12143         * psympriv.h (discard_psymtab): Remove.
12144         * dbxread.c (dbx_end_psymtab): Update.
12145         * xcoffread.c (xcoff_end_psymtab): Update.
12147 2020-03-28  Tom Tromey  <tom@tromey.com>
12149         * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12150         comment.
12152 2020-03-28  Tom Tromey  <tom@tromey.com>
12154         * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12156 2020-03-27  Hannes Domani  <ssbssa@yahoo.de>
12158         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12160 2020-03-26  John Baldwin  <jhb@FreeBSD.org>
12162         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12164 2020-03-26  Tom Tromey  <tom@tromey.com>
12166         * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12167         (mark_common_block_symbol_computed, read_tag_string_type)
12168         (attr_to_dynamic_prop, read_subrange_type): Update.
12169         (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12170         to be methods on struct attribute.
12171         (skip_one_die, process_imported_unit_die, read_namespace_alias)
12172         (read_call_site_scope, partial_die_info::read)
12173         (partial_die_info::read, lookup_die_type, follow_die_ref):
12174         Update.
12175         * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12176         from dwarf2_get_ref_die_offset.
12177         (attribute::constant_value): New method, from
12178         dwarf2_get_attr_constant_value.
12179         * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12180         Declare method.
12181         <constant_value>: New method.
12183 2020-03-26  Tom Tromey  <tom@tromey.com>
12185         * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12186         (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12187         (dwarf_type_encoding_name): Move to stringify.c.
12188         * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12189         * dwarf2/stringify.c: New file.
12190         * dwarf2/stringify.h: New file.
12192 2020-03-26  Tom Tromey  <tom@tromey.com>
12194         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12195         Rewrite.
12197 2020-03-26  Tom Tromey  <tom@tromey.com>
12199         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12200         methods.
12201         * dwarf2/read.c (lookup_addr_base): Move to die.h.
12202         (lookup_ranges_base): Likewise.
12203         (read_cutu_die_from_dwo, read_full_die_1): Update.
12205 2020-03-26  Tom Tromey  <tom@tromey.com>
12207         * dwarf2/read.c (read_import_statement, read_file_scope)
12208         (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12209         (read_lexical_block_scope, read_call_site_scope)
12210         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12211         (handle_struct_member_die, process_structure_scope)
12212         (update_enumeration_type_from_children)
12213         (process_enumeration_scope, read_array_type, read_common_block)
12214         (read_namespace, read_module, read_subroutine_type): Update.
12215         (sibling_die): Remove.
12217 2020-03-26  Tom Tromey  <tom@tromey.com>
12219         * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12220         (build_type_psymtabs_reader, read_structure_type)
12221         (read_enumeration_type, read_full_die_1): Update.
12222         (dwarf2_attr_no_follow): Move to die.h.
12223         * dwarf2/die.h (struct die_info) <attr>: New method.
12225 2020-03-26  Tom Tromey  <tom@tromey.com>
12227         * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12228         <base_address>: Now an optional.
12229         (dwarf2_find_base_address, dwarf2_rnglists_process)
12230         (dwarf2_ranges_process, fill_in_loclist_baton)
12231         (dwarf2_symbol_mark_computed): Update.
12233 2020-03-26  Tom Tromey  <tom@tromey.com>
12235         * dwarf2/read.c (struct die_info): Move to die.h.
12236         * dwarf2/die.h: New file.
12238 2020-03-26  Tom Tromey  <tom@tromey.com>
12240         * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12241         * dwarf2/read.c
12242         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12243         Move to line-header.c.
12244         (read_checked_initial_length_and_offset, read_formatted_entries):
12245         Likewise.
12246         (dwarf_decode_line_header): Split into two.
12247         * dwarf2/line-header.c
12248         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12249         Move from read.c.
12250         (read_checked_initial_length_and_offset, read_formatted_entries):
12251         Likewise.
12252         (dwarf_decode_line_header): New function, split from read.c.
12254 2020-03-26  Tom Tromey  <tom@tromey.com>
12256         * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12257         Declare method.
12258         * dwarf2/read.c (read_attribute_value): Update.
12259         (dwarf2_per_objfile::read_line_string): Rename from
12260         read_indirect_line_string.
12261         (read_formatted_entries): Update.
12263 2020-03-26  Tom Tromey  <tom@tromey.com>
12265         * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12266         variable.
12268 2020-03-26  Tom Tromey  <tom@tromey.com>
12270         * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12271         const.
12272         * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12273         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12274         parameter const.
12276 2020-03-26  Tom Tromey  <tom@tromey.com>
12278         * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12279         * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12280         * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12281         (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12283 2020-03-26  Tom Tromey  <tom@tromey.com>
12285         * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12286         file_names_size, file_full_name, file_file_name>: Use const.
12287         <file_name_at, file_names>: Add const overload.
12288         * dwarf2/line-header.c (line_header::file_file_name)
12289         (line_header::file_full_name): Update.
12291 2020-03-26  Tom Tromey  <tom@tromey.com>
12293         * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12294         (macro_start_file, consume_improper_spaces)
12295         (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12296         (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12297         (dwarf_decode_macros): Move to macro.c.
12298         * dwarf2/macro.c: New file.
12299         * dwarf2/macro.h: New file.
12300         * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12302 2020-03-26  Tom Tromey  <tom@tromey.com>
12304         * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12305         method.
12306         * dwarf2/section.c: New method.  From
12307         read_indirect_string_at_offset_from.
12308         * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12309         (read_indirect_string_at_offset_from): Move to section.c.
12310         (read_indirect_string_at_offset): Rewrite.
12311         (read_indirect_line_string_at_offset): Remove.
12312         (read_indirect_string, read_indirect_line_string)
12313         (dwarf_decode_macro_bytes): Update.
12315 2020-03-26  Tom Tromey  <tom@tromey.com>
12317         * dwarf2/section.h (struct dwarf2_section_info)
12318         <overload_complaint>: Declare.
12319         (dwarf2_section_buffer_overflow_complaint): Don't declare.
12320         * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12321         Rename from dwarf2_section_buffer_overflow_complaint.
12322         * dwarf2/read.c (skip_one_die, partial_die_info::read)
12323         (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12325 2020-03-26  Tom Tromey  <tom@tromey.com>
12327         * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12328         Declare.
12329         * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12330         Move from read.c.
12331         * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12332         to section.c.
12334 2020-03-26  Tom Tromey  <tom@tromey.com>
12336         * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12338 2020-03-26  Tom Tromey  <tom@tromey.com>
12340         * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12341         "builder".
12342         (dwarf_decode_macro_bytes): Likewise.  Add dwarf2_per_objfile
12343         parameter.
12344         (dwarf_decode_macros): Update.
12346 2020-03-26  Tom Tromey  <tom@tromey.com>
12348         * dwarf2/read.c (read_attribute_value): Update.
12349         (read_indirect_string_from_dwz): Move to dwz.c; change into
12350         method.
12351         (dwarf_decode_macro_bytes): Update.
12352         * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12353         * dwarf2/dwz.c: New file.
12354         * Makefile.in (COMMON_SFILES): Add dwz.c.
12356 2020-03-26  Tom Tromey  <tom@tromey.com>
12358         * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12359         * dwarf2/read.c: Add include.
12360         * dwarf2/index-write.c: Add include.
12361         * dwarf2/index-cache.c: Add include.
12362         * dwarf2/dwz.h: New file.
12364 2020-03-25  Tom Tromey  <tom@tromey.com>
12366         * compile/compile-object-load.c (get_out_value_type): Mention
12367         correct symbol name in error message.
12369 2020-03-25  Hannes Domani  <ssbssa@yahoo.de>
12371         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12373 2020-03-25  Tom de Vries  <tdevries@suse.de>
12375         * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12376         * symmisc.c (dump_symtab_1): Print user and includes fields.
12377         (maintenance_info_symtabs): Same.
12379 2020-03-25  Andrew Burgess  <andrew.burgess@embecosm.com>
12381         PR gdb/25534
12382         * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12383         (riscv_regcache_cooked_write): New function.
12384         (riscv_push_dummy_call): Use new function.
12385         (riscv_return_value): Likewise.
12387 2020-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
12389         * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12390         * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12391         * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12392         * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12393         * infrun.c (follow_fork): Likewise.
12394         (follow_fork_inferior): Likewise.
12395         * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12396         * linux-nat.h (class linux_nat_target): Likewise.
12397         * remote.c (class remote_target) <follow_fork>: Likewise.
12398         (remote_target::follow_fork): Likewise.
12399         * target-delegates.c: Re-generate.
12400         * target.c (default_follow_fork): Likewise.
12401         (target_follow_fork): Likewise.
12402         * target.h (struct target_ops) <follow_fork>: Likewise.
12403         (target_follow_fork): Likewise.
12405 2020-03-24  Tom de Vries  <tdevries@suse.de>
12407         * psymtab.c (maintenance_info_psymtabs): Print user field.
12409 2020-03-20  Tom Tromey  <tromey@adacore.com>
12411         * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12412         const.
12413         * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12414         const.
12416 2020-03-20  Simon Marchi  <simon.marchi@efficios.com>
12418         * ptrace.m4: Don't check for ptrace declaration.
12419         * config.in: Re-generate.
12420         * configure: Re-generate.
12421         * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12422         not defined.
12424 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12426         * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12427         `PTRACE_TYPE_RET'.
12428         * i386-bsd-nat.c (gdb_ptrace): Likewise.
12429         * sparc-nat.c (gdb_ptrace): Likewise.
12430         * x86-bsd-nat.c (gdb_ptrace): Likewise.
12432 2020-03-20  Tom Tromey  <tromey@adacore.com>
12434         * c-exp.y (lex_one_token): Fix assert.
12436 2020-03-20  Tom Tromey  <tromey@adacore.com>
12438         * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12439         * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12440         strncpy call.
12442 2020-03-20  Tom Tromey  <tromey@adacore.com>
12444         * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12446 2020-03-20  Tom Tromey  <tromey@adacore.com>
12448         * ada-valprint.c (print_variant_part): Remove parameters; switch
12449         to value-based API.
12450         (print_field_values): Likewise.
12451         (ada_val_print_struct_union): Likewise.
12452         (ada_value_print_1): Update.
12454 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12456         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12457         nbsd_nat_target instead of inf_ptrace_target.
12458         * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12459         nbsd_nat_target.
12461 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12463         * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12464         it to the ptrace call.
12465         * (store_registers): Likewise.
12467 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12469         * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12470         it to the ptrace call.
12471         * (store_registers): Likewise.
12473 2020-03-19  Luis Machado  <luis.machado@linaro.org>
12475         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12476         valid, fetch vg value from ptrace.
12478 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
12479         * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12480         * inf-ptrace.c: Likewise.
12481         * (gdb_ptrace): Add.
12482         * (inf_ptrace_target::resume): Update.
12483         * (inf_ptrace_target::xfer_partial): Likewise.
12484         * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12485         * (inf_ptrace_peek_poke): Update.
12487 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
12489         * x86-bsd-nat.c (gdb_ptrace): New.
12490         * (x86bsd_dr_set): Add new argument `ptid'.
12491         * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12492         x86bsd_dr_set_addr): Update.
12494 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12496         * remote.c (remote_target::process_stop_reply): Handle events for
12497         all threads differently.
12499 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12501         * completer.c (completion_tracker::remove_completion): Define new
12502         function.
12503         * completer.h (completion_tracker::remove_completion): Declare new
12504         function.
12505         * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12506         when adding a C++ function symbol.
12508 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12510         * completer.c (completion_tracker::completion_hash_entry): Define
12511         new class.
12512         (advance_to_filename_complete_word_point): Call
12513         recompute_lowest_common_denominator.
12514         (completion_tracker::completion_tracker): Call discard_completions
12515         to setup the hash table.
12516         (completion_tracker::discard_completions): Allow for being called
12517         from the constructor, pass new equal function, and element deleter
12518         when constructing the hash table.  Initialise new class member
12519         variables.
12520         (completion_tracker::maybe_add_completion): Remove use of
12521         m_entries_vec, and store more information into m_entries_hash.
12522         (completion_tracker::recompute_lcd_visitor): New function, most
12523         content taken from...
12524         (completion_tracker::recompute_lowest_common_denominator):
12525         ...here, this now just visits each item in the hash calling the
12526         above visitor.
12527         (completion_tracker::build_completion_result): Remove use of
12528         m_entries_vec, call recompute_lowest_common_denominator.
12529         * completer.h (completion_tracker::have_completions): Remove use
12530         of m_entries_vec.
12531         (completion_tracker::completion_hash_entry): Declare new class.
12532         (completion_tracker::recompute_lowest_common_denominator): Change
12533         function signature.
12534         (completion_tracker::recompute_lcd_visitor): Declare new function.
12535         (completion_tracker::m_entries_vec): Delete.
12536         (completion_tracker::m_entries_hash): Initialize to NULL.
12537         (completion_tracker::m_lowest_common_denominator_valid): New
12538         member variable.
12539         (completion_tracker::m_lowest_common_denominator_max_length): New
12540         member variable.
12542 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12544         * regformats/regdef.h: Put reg in gdb namespace.
12546 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12548         * i386-bsd-nat.c (gdb_ptrace): New.
12549         * (i386bsd_fetch_inferior_registers,
12550         i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12551         * (i386bsd_fetch_inferior_registers,
12552         i386bsd_store_inferior_registers) Use gdb_ptrace.
12554 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12556         * amd64-bsd-nat.c (gdb_ptrace): New.
12557         * (amd64bsd_fetch_inferior_registers,
12558         amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12559         * (amd64bsd_fetch_inferior_registers,
12560         amd64bsd_store_inferior_registers) Use gdb_ptrace.
12562 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12564         * user-regs.c (user_reg::read): Rename to...
12565         (user_reg::xread): ...this.
12566         * (append_user_reg): Rename argument `read' to `xread'.
12567         * (user_reg_add_builtin): Likewise.
12568         * (user_reg_add): Likewise.
12569         * (value_of_user_reg): Likewise.
12571 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12573         * sparc-nat.c (gdb_ptrace): New.
12574         * sparc-nat.c (sparc_fetch_inferior_registers)
12575         (sparc_store_inferior_registers) Remove obsolete comment.
12576         * sparc-nat.c (sparc_fetch_inferior_registers)
12577         (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12578         * sparc-nat.c (sparc_fetch_inferior_registers)
12579         (sparc_store_inferior_registers) Use gdb_ptrace.
12581 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12583         * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12584         it to the ptrace call.
12585         * sh-nbsd-nat.c (store_registers): Likewise.
12587 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12589         * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12590         nbsd_nat_target instead of inf_ptrace_target.
12591         * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12592         nbsd_nat_target.
12594 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12596         * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12598 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12600         * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12601         <sys/sysctl.h>.
12602         * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12604 2020-03-17  Tom de Vries  <tdevries@suse.de>
12606         PR gdb/23710
12607         * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12608         fields.
12609         * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12610         fields.
12611         (process_imported_unit_die): Skip import of c++ CUs.
12613 2020-03-16  Tom Tromey  <tom@tromey.com>
12615         * p-valprint.c (pascal_object_print_value): Initialize
12616         base_value.
12618 2020-03-16  Anton Kolesov  <anton.kolesov@synopsys.com>
12619             Shahab Vahedi  <shahab@synopsys.com>
12621         * Makefile.in: Add arch/arc.o
12622         * configure.tgt: Likewise.
12623         * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12624         (_initialize_arc_tdep): Don't initialize old target descriptions.
12625         (arc_read_description): New function to cache target descriptions.
12626         * arc-tdep.h (arc_read_description): Add proto type.
12627         * arch/arc.c: New file.
12628         * arch/arc.h: Likewise.
12629         * features/Makefile: Replace old target descriptions with new.
12630         * features/arc-arcompact.c: Remove.
12631         * features/arc-arcompact.xml: Likewise.
12632         * features/arc-v2.c: Likewise
12633         * features/arc-v2.xml: Likewise
12634         * features/arc/aux-arcompact.xml: New file.
12635         * features/arc/aux-v2.xml: Likewise.
12636         * features/arc/core-arcompact.xml: Likewise.
12637         * features/arc/core-v2.xml: Likewise.
12638         * features/arc/aux-arcompact.c: Generate.
12639         * features/arc/aux-v2.c: Likewise.
12640         * features/arc/core-arcompact.c: Likewise.
12641         * features/arc/core-v2.c: Likewise.
12642         * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12644 2020-03-16  Tom Tromey  <tromey@adacore.com>
12646         PR gdb/25663:
12647         * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12648         putting value into bcache.
12650 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12652         PR gdb/21500
12653         * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12654         to...
12655         (amd64_windows_init_abi_common): ... this.  Don't set size of
12656         long type.
12657         (amd64_windows_init_abi): New function.
12658         (amd64_cygwin_init_abi): New function.
12659         (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12660         the Cygwin OS ABI.
12661         * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12662         comment.
12664 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12666         * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12667         * windows-tdep.c (CYGWIN_DLL_NAME): New.
12668         (pe_import_directory_entry): New struct type.
12669         (is_linked_with_cygwin_dll): New function.
12670         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12671         GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12672         * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12674 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12676         * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12677         i386_cygwin_core_osabi_sniffer.
12679 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12681         * i386-cygwin-tdep.c: Rename to...
12682         * i386-windows-tdep.c: ... this.
12683         * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12684         i386-windows-tdep.c.
12685         * configure.tgt: Likewise.
12687 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12689         * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12690         * osabi.c (gdb_osabi_names): Add "Windows".
12691         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12692         GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12693         (i386_cygwin_core_osabi_sniffer): New function, extracted from
12694         i386_cygwin_osabi_sniffer.
12695         (_initialize_i386_cygwin_tdep): Register OS ABI
12696         GDB_OSABI_WINDOWS for i386.
12697         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12698         GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12699         (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12700         for x86-64.
12701         * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12702         when the target matches '*-*-mingw*'.
12704 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12706         * defs.h (enum gdb_osabi): Move to...
12707         * osabi.h (enum gdb_osabi): ... here.
12708         * gdbarch.sh: Include osabi.h in gdbarch.h.
12709         * gdbarch.h: Re-generate.
12711 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12713         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12714         function.
12715         (_initialize_amd64_windows_tdep): Register osabi sniffer.
12717 2020-03-14  Tom Tromey  <tom@tromey.com>
12719         * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12720         for C++.
12721         (c_type_print_modifier): Likewise.  Add "language" parameter.
12722         (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12723         (c_type_print_base_1): Update.
12724         * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12725         constants.
12726         * type-stack.c (type_stack::insert): Handle tp_atomic and
12727         tp_restrict.
12728         (type_stack::follow_type_instance_flags): Likewise.
12729         (type_stack::follow_types): Likewise.  Merge type-following code.
12730         * c-exp.y (RESTRICT, ATOMIC): New tokens.
12731         (space_identifier, cv_with_space_id)
12732         (const_or_volatile_or_space_identifier_noopt)
12733         (const_or_volatile_or_space_identifier): Remove.
12734         (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12735         rules.
12736         (ptr_operator, typebase): Update.
12737         (enum token_flag) <FLAG_C>: New constant.
12738         (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12739         "_Atomic".
12740         (lex_one_token): Handle FLAG_C.
12742 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12744         * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12745         it to the ptrace call.
12746         * m68k-bsd-nat.c (store_registers): Likewise.
12748 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12750         * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12751         gdb_byte *.
12752         * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12753         * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12754         * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12756 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12758         * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12759         nbsd_nat_target instead of inf_ptrace_target.
12760         * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12761         nbsd_nat_target.
12763 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12765         * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12766         register_t.
12768 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12770         * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12771         it to the ptrace call.
12772         * alpha-bsd-nat.c (store_registers): Likewise.
12774 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12776         * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12777         includes.
12778         * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12779         * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12780         fill_fpregset): Likewise.
12782 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12784         * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12785         nbsd_nat_target instead of inf_ptrace_target.
12786         * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12787         nbsd_nat_target.
12789 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12791         * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12792         register_t.
12794 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12796         * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12797         it to the ptrace call.
12798         * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12799         * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12800         * arm-nbsd-nat.c (store_register): Likewise.
12801         * arm-nbsd-nat.c (store_regs): Likewise.
12802         * arm-nbsd-nat.c (store_fp_register): Likewise.
12803         * arm-nbsd-nat.c (store_fp_regs): Likewise.
12805 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12807         * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12808         nbsd_nat_target instead of inf_ptrace_target.
12809         * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12810         nbsd_nat_target.
12812 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12814         * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12815         it to the ptrace call.
12816         * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12818 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12820         * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12821         it to the ptrace call.
12822         * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12824 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12826         * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12827         gdb_byte *.
12828         * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12830 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12832         * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12833         instead of inf_ptrace_target.
12834         * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12835         nbsd_nat_target.
12837 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12839         * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12840         register_t.
12842 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12844         * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12845         register_t.
12847 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12849         * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12850         register_t.
12852 2020-03-13  Tom Tromey  <tom@tromey.com>
12854         * value.h (val_print): Don't declare.
12855         * valprint.h (val_print_array_elements)
12856         (val_print_scalar_formatted, generic_val_print): Don't declare.
12857         * valprint.c (generic_val_print_array): Take a struct value.
12858         (generic_val_print_ptr, generic_val_print_memberptr)
12859         (generic_val_print_bool, generic_val_print_int)
12860         (generic_val_print_char, generic_val_print_complex)
12861         (generic_val_print): Remove.
12862         (generic_value_print): Update.
12863         (do_val_print): Remove unused parameters.  Don't call
12864         la_val_print.
12865         (val_print): Remove.
12866         (common_val_print): Update.  Don't call value_check_printable.
12867         (val_print_scalar_formatted, val_print_array_elements): Remove.
12868         * rust-lang.c (rust_val_print): Remove.
12869         (rust_language_defn): Update.
12870         * p-valprint.c (pascal_val_print): Remove.
12871         (pascal_value_print_inner): Update.
12872         (pascal_object_print_val_fields, pascal_object_print_val):
12873         Remove.
12874         (pascal_object_print_static_field): Update.
12875         * p-lang.h (pascal_val_print): Don't declare.
12876         * p-lang.c (pascal_language_defn): Update.
12877         * opencl-lang.c (opencl_language_defn): Update.
12878         * objc-lang.c (objc_language_defn): Update.
12879         * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12880         * m2-lang.h (m2_val_print): Don't declare.
12881         * m2-lang.c (m2_language_defn): Update.
12882         * language.h (struct language_defn) <la_val_print>: Remove.
12883         * language.c (unk_lang_value_print_inner): Rename.  Change
12884         argument types.
12885         (unknown_language_defn, auto_language_defn): Update.
12886         * go-valprint.c (go_val_print): Remove.
12887         * go-lang.h (go_val_print): Don't declare.
12888         * go-lang.c (go_language_defn): Update.
12889         * f-valprint.c (f_val_print): Remove.
12890         * f-lang.h (f_value_print): Don't declare.
12891         * f-lang.c (f_language_defn): Update.
12892         * d-valprint.c (d_val_print): Remove.
12893         * d-lang.h (d_value_print): Don't declare.
12894         * d-lang.c (d_language_defn): Update.
12895         * cp-valprint.c (cp_print_value_fields)
12896         (cp_print_value_fields_rtti, cp_print_value): Remove.
12897         (cp_print_static_field): Update.
12898         * c-valprint.c (c_val_print_array, c_val_print_ptr)
12899         (c_val_print_struct, c_val_print_union, c_val_print_int)
12900         (c_val_print_memberptr, c_val_print): Remove.
12901         * c-lang.h (c_val_print_array, cp_print_value_fields)
12902         (cp_print_value_fields_rtti): Don't declare.
12903         * c-lang.c (c_language_defn, cplus_language_defn)
12904         (asm_language_defn, minimal_language_defn): Update.
12905         * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12906         (ada_val_print_enum): Take a struct value.
12907         (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12908         (ada_val_print): Remove.
12909         (ada_value_print_1): Update.
12910         (printable_val_type): Remove.
12911         * ada-lang.h (ada_val_print): Don't declare.
12912         * ada-lang.c (ada_language_defn): Update.
12914 2020-03-13  Tom Tromey  <tom@tromey.com>
12916         * valprint.c (do_val_print): Update.
12917         * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12918         a struct value.
12919         (value_to_value_object_no_release): Declare.
12920         * python/py-value.c (value_to_value_object_no_release): New
12921         function.
12922         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12923         struct value.
12924         * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12925         function.
12926         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12927         a struct value.
12928         * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12929         Declare.
12930         (gdbscm_apply_val_pretty_printer): Take a struct value.
12931         * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12932         value.
12933         * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12934         value.
12935         * extension-priv.h (struct extension_language_ops)
12936         <apply_val_pretty_printer>: Take a struct value.
12937         * cp-valprint.c (cp_print_value): Create a struct value.
12938         (cp_print_value): Update.
12940 2020-03-13  Tom Tromey  <tom@tromey.com>
12942         * ada-valprint.c (print_field_values): Call common_val_print.
12944 2020-03-13  Tom Tromey  <tom@tromey.com>
12946         * ada-valprint.c (val_print_packed_array_elements): Remove
12947         bitoffset and val parameters.  Call common_val_print.
12948         (ada_val_print_string): Remove offset, address, and original_value
12949         parameters.
12950         (ada_val_print_array): Update.
12951         (ada_value_print_array): New function.
12952         (ada_value_print_1): Call it.
12954 2020-03-13  Tom Tromey  <tom@tromey.com>
12956         * ada-valprint.c (ada_value_print): Use common_val_print.
12958 2020-03-13  Tom Tromey  <tom@tromey.com>
12960         * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12962 2020-03-13  Tom Tromey  <tom@tromey.com>
12964         * ada-valprint.c (ada_value_print_num): New function.
12965         (ada_value_print_1): Use it.
12967 2020-03-13  Tom Tromey  <tom@tromey.com>
12969         * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12971 2020-03-13  Tom Tromey  <tom@tromey.com>
12973         * ada-valprint.c (ada_value_print_ptr): New function.
12974         (ada_value_print_1): Use it.
12976 2020-03-13  Tom Tromey  <tom@tromey.com>
12978         * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12979         call common_val_print.
12980         (ada_val_print_1): Update.
12981         (ada_value_print_1): New function.
12982         (ada_value_print_inner): Rewrite.
12984 2020-03-13  Tom Tromey  <tom@tromey.com>
12986         * cp-valprint.c (cp_print_value_fields): Update.
12987         (cp_print_value): New function.
12989 2020-03-13  Tom Tromey  <tom@tromey.com>
12991         * m2-valprint.c (m2_value_print_inner): Use
12992         cp_print_value_fields.
12993         * cp-valprint.c (cp_print_value_fields): New function.
12994         * c-valprint.c (c_value_print_struct): New function.
12995         (c_value_print_inner): Use c_value_print_struct.
12996         * c-lang.h (cp_print_value_fields): Declare.
12998 2020-03-13  Tom Tromey  <tom@tromey.com>
13000         * c-valprint.c (c_value_print_array): New function.
13001         (c_value_print_inner): Use it.
13003 2020-03-13  Tom Tromey  <tom@tromey.com>
13005         * c-valprint.c (c_value_print_memberptr): New function.
13006         (c_value_print_inner): Use it.
13008 2020-03-13  Tom Tromey  <tom@tromey.com>
13010         * c-valprint.c (c_value_print_int): New function.
13011         (c_value_print_inner): Use it.
13013 2020-03-13  Tom Tromey  <tom@tromey.com>
13015         * c-valprint.c (c_value_print_ptr): New function.
13016         (c_value_print_inner): Use it.
13018 2020-03-13  Tom Tromey  <tom@tromey.com>
13020         * c-valprint.c (c_value_print_inner): Rewrite.
13022 2020-03-13  Tom Tromey  <tom@tromey.com>
13024         * valprint.c (generic_value_print_complex): New function.
13025         (generic_value_print): Use it.
13027 2020-03-13  Tom Tromey  <tom@tromey.com>
13029         * valprint.c (generic_val_print_float): Don't call
13030         val_print_scalar_formatted.
13031         (generic_val_print, generic_value_print): Update.
13033 2020-03-13  Tom Tromey  <tom@tromey.com>
13035         * valprint.c (generic_value_print_char): New function
13036         (generic_value_print): Use it.
13038 2020-03-13  Tom Tromey  <tom@tromey.com>
13040         * valprint.c (generic_value_print_int): New function.
13041         (generic_value_print): Use it.
13043 2020-03-13  Tom Tromey  <tom@tromey.com>
13045         * valprint.c (generic_value_print_bool): New function.
13046         (generic_value_print): Use it.
13048 2020-03-13  Tom Tromey  <tom@tromey.com>
13050         * valprint.c (generic_val_print_func): Simplify.
13051         (generic_val_print, generic_value_print): Update.
13053 2020-03-13  Tom Tromey  <tom@tromey.com>
13055         * valprint.c (generic_val_print_flags): Remove.
13056         (generic_val_print, generic_value_print): Update.
13057         (val_print_type_code_flags): Add original_value parameter.
13059 2020-03-13  Tom Tromey  <tom@tromey.com>
13061         * valprint.c (generic_val_print): Update.
13062         (generic_value_print): Update.
13063         * valprint.c (generic_val_print_enum): Don't call
13064         val_print_scalar_formatted.
13066 2020-03-13  Tom Tromey  <tom@tromey.com>
13068         * valprint.c (generic_value_print): Call generic_value_print_ptr.
13069         * valprint.c (generic_value_print_ptr): New function.
13071 2020-03-13  Tom Tromey  <tom@tromey.com>
13073         * valprint.c (generic_value_print): Rewrite.
13075 2020-03-13  Tom Tromey  <tom@tromey.com>
13077         * p-valprint.c (pascal_object_print_value_fields)
13078         (pascal_object_print_value): New functions.
13080 2020-03-13  Tom Tromey  <tom@tromey.com>
13082         * p-valprint.c (pascal_value_print_inner): Rewrite.
13084 2020-03-13  Tom Tromey  <tom@tromey.com>
13086         * f-valprint.c (f_value_print_innner): Rewrite.
13088 2020-03-13  Tom Tromey  <tom@tromey.com>
13090         * m2-valprint.c (m2_print_unbounded_array): New overload.
13091         (m2_print_unbounded_array): Update.
13092         (m2_print_array_contents): Take a struct value.
13093         (m2_value_print_inner): Rewrite.
13095 2020-03-13  Tom Tromey  <tom@tromey.com>
13097         * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13098         (d_value_print_inner): New function.
13099         * d-lang.h (d_value_print_inner): Declare.
13100         * d-lang.c (d_language_defn): Use d_value_print_inner.
13102 2020-03-13  Tom Tromey  <tom@tromey.com>
13104         * go-valprint.c (go_value_print_inner): New function.
13105         * go-lang.h (go_value_print_inner): Declare.
13106         * go-lang.c (go_language_defn): Use go_value_print_inner.
13108 2020-03-13  Tom Tromey  <tom@tromey.com>
13110         * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13111         API.
13112         (rust_val_print): Rewrite.
13113         (rust_value_print_inner): New function, from rust_val_print.
13114         (rust_language_defn): Use rust_value_print_inner.
13116 2020-03-13  Tom Tromey  <tom@tromey.com>
13118         * ada-valprint.c (ada_value_print_inner): New function.
13119         * ada-lang.h (ada_value_print_inner): Declare.
13120         * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13122 2020-03-13  Tom Tromey  <tom@tromey.com>
13124         * f-valprint.c (f_value_print_innner): New function.
13125         * f-lang.h (f_value_print_innner): Declare.
13126         * f-lang.c (f_language_defn): Use f_value_print_innner.
13128 2020-03-13  Tom Tromey  <tom@tromey.com>
13130         * p-valprint.c (pascal_value_print_inner): New function.
13131         * p-lang.h (pascal_value_print_inner): Declare.
13132         * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13134 2020-03-13  Tom Tromey  <tom@tromey.com>
13136         * m2-valprint.c (m2_value_print_inner): New function.
13137         * m2-lang.h (m2_value_print_inner): Declare.
13138         * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13140 2020-03-13  Tom Tromey  <tom@tromey.com>
13142         * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13143         * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13144         * c-valprint.c (c_value_print_inner): New function.
13145         * c-lang.h (c_value_print_inner): Declare.
13146         * c-lang.c (c_language_defn, cplus_language_defn)
13147         (asm_language_defn, minimal_language_defn): Use
13148         c_value_print_inner.
13150 2020-03-13  Tom Tromey  <tom@tromey.com>
13152         * p-valprint.c (pascal_object_print_value_fields): Now static.
13153         * p-lang.h (pascal_object_print_value_fields): Don't declare.
13155 2020-03-13  Tom Tromey  <tom@tromey.com>
13157         * c-valprint.c (c_val_print_array): Simplify.
13159 2020-03-13  Tom Tromey  <tom@tromey.com>
13161         * valprint.c (value_print_array_elements): New function.
13162         * valprint.h (value_print_array_elements): Declare.
13164 2020-03-13  Tom Tromey  <tom@tromey.com>
13166         * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13167         * mips-tdep.c (mips_print_register): Use
13168         value_print_scalar_formatted.
13170 2020-03-13  Tom Tromey  <tom@tromey.com>
13172         * valprint.h (value_print_scalar_formatted): Declare.
13173         * valprint.c (value_print_scalar_formatted): New function.
13175 2020-03-13  Tom Tromey  <tom@tromey.com>
13177         * valprint.h (generic_value_print): Declare.
13178         * valprint.c (generic_value_print): New function.
13180 2020-03-13  Tom Tromey  <tom@tromey.com>
13182         * valprint.c (do_val_print): Call la_value_print_inner, if
13183         available.
13184         * rust-lang.c (rust_language_defn): Update.
13185         * p-lang.c (pascal_language_defn): Update.
13186         * opencl-lang.c (opencl_language_defn): Update.
13187         * objc-lang.c (objc_language_defn): Update.
13188         * m2-lang.c (m2_language_defn): Update.
13189         * language.h (struct language_defn) <la_value_print_inner>: New
13190         member.
13191         * language.c (unknown_language_defn, auto_language_defn): Update.
13192         * go-lang.c (go_language_defn): Update.
13193         * f-lang.c (f_language_defn): Update.
13194         * d-lang.c (d_language_defn): Update.
13195         * c-lang.c (c_language_defn, cplus_language_defn)
13196         (asm_language_defn, minimal_language_defn): Update.
13197         * ada-lang.c (ada_language_defn): Update.
13199 2020-03-13  Tom Tromey  <tom@tromey.com>
13201         * c-valprint.c (c_value_print): Use common_val_print.
13203 2020-03-13  Tom Tromey  <tom@tromey.com>
13205         * cp-valprint.c (cp_print_static_field): Use common_val_print.
13207 2020-03-13  Tom Tromey  <tom@tromey.com>
13209         * f-valprint.c (f77_print_array_1, f_val_print): Use
13210         common_val_print.
13212 2020-03-13  Tom Tromey  <tom@tromey.com>
13214         * riscv-tdep.c (riscv_print_one_register_info): Use
13215         common_val_print.
13217 2020-03-13  Tom Tromey  <tom@tromey.com>
13219         * mi/mi-main.c (output_register): Use common_val_print.
13221 2020-03-13  Tom Tromey  <tom@tromey.com>
13223         * infcmd.c (default_print_one_register_info): Use
13224         common_val_print.
13226 2020-03-13  Tom Tromey  <tom@tromey.com>
13228         * valprint.h (common_val_print_checked): Declare.
13229         * valprint.c (common_val_print_checked): New function.
13230         * stack.c (print_frame_arg): Use common_val_print_checked.
13232 2020-03-13  Tom Tromey  <tom@tromey.com>
13234         * valprint.c (do_val_print): New function, from val_print.
13235         (val_print): Use do_val_print.
13236         (common_val_print): Use do_val_print.
13238 2020-03-13  Tom Tromey  <tom@tromey.com>
13240         * valprint.c (value_print): Use scoped_value_mark.
13242 2020-03-13  Tom de Vries  <tdevries@suse.de>
13244         PR symtab/25646
13245         * psymtab.c (partial_symtab::partial_symtab): Don't set
13246         globals_offset and statics_offset.  Push element onto
13247         current_global_psymbols and current_static_psymbols stacks.
13248         (concat): New function.
13249         (end_psymtab_common): Set globals_offset and statics_offset.  Pop
13250         element from current_global_psymbols and current_static_psymbols
13251         stacks.  Concat popped elements to global_psymbols and
13252         static_symbols.
13253         (add_psymbol_to_list): Use current_global_psymbols and
13254         current_static_psymbols stacks.
13255         * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13256         current_static_psymbols fields.
13258 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13260         * corelow.c (sniff_core_bfd): Remove.
13261         (class core_target) <m_core_vec>: Remove.
13262         (core_target::core_target): Update.
13263         (core_file_fns): Remove.
13264         (deprecated_add_core_fns): Remove.
13265         (default_core_sniffer): Remove.
13266         (sniff_core_bfd): Remove.
13267         (default_check_format): Remove.
13268         (gdb_check_format): Remove.
13269         (core_target_open): Update.
13270         (core_target::get_core_register_section): Update.
13271         (get_core_registers_cb): Update.
13272         (core_target::fetch_registers): Update.
13273         * gdbcore.h (struct core_fns): Remove.
13274         (deprecated_add_core_fns): Remove.
13275         (default_core_sniffer): Remove.
13276         (default_check_format): Remove.
13278 2020-03-12  Tom Tromey  <tom@tromey.com>
13280         * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13281         CORE_ADDR.
13282         (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13284 2020-03-12  Tom Tromey  <tom@tromey.com>
13286         * remote.c (remote_target::download_tracepoint)
13287         (remote_target::enable_tracepoint)
13288         (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13289         * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13290         sprintf_vma.
13292 2020-03-12  Tom Tromey  <tom@tromey.com>
13294         * symfile-mem.c: Update CORE_ADDR size assert.
13296 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13298         * selftest.m4: Move to gdbsupport/.
13299         * acinclude.m4: Update path to selftest.m4.
13301 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13303         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13304         (SELFTESTS_SRCS): ... this.  Add disasm-selftests.c,
13305         gdbarch-selfselftests.c and selftest-arch.c.
13306         (SUBDIR_UNITTESTS_OBS): Rename to...
13307         (SELFTESTS_OBS): ... this.
13308         (COMMON_SFILES): Remove disasm-selftests.c and
13309         gdbarch-selftests.c.
13310         * configure.ac: Don't add selftest-arch.{c,o} to
13311         CONFIG_{SRCS,OBS}.
13312         * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13313         preprocessor conditions.
13315 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13317         * configure.ac: Don't source bfd/development.sh.
13318         * selftest.m4: Modify comment.
13319         * configure: Re-generate.
13321 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13323         * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13324         not "true" or "false".
13325         * configure: Re-generate.
13327 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13329         * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13330         * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13331         renamed to arm_nbsd_supply_gregset.
13332         (fetch_register): Update to call arm_nbsd_supply_gregset.
13333         (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13334         (arm_netbsd_nat_target::fetch_registers): Update.
13335         (fetch_elfcore_registers): Removed.
13336         (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13337         * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13338         (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13339         not require NetBSD system headers.
13340         (arm_nbsd_regset): New struct.
13341         (arm_nbsd_iterate_over_regset_sections): New function.
13342         (arm_netbsd_init_abi_common): Updated to call
13343         set_gdbarch_iterate_over_regset_sections.
13344         * arm-nbsd-tdep.h: New file.
13346 2020-03-11  Kevin Buettner  <kevinb@redhat.com>
13348         * symtab.c (find_pc_sect_line): Add check which prevents infinite
13349         recursion.
13350         
13351 2020-03-11  Simon Marchi  <simon.marchi@efficios.com>
13353         * configure: Re-generate.
13355 2020-03-11  Tom Tromey  <tromey@adacore.com>
13357         * ada-typeprint.c (print_choices): Fix comment.
13359 2020-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
13361         * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13362         previous item in the list, when the list has no items.
13364 2020-03-11  Tom de Vries  <tdevries@suse.de>
13366         * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13367         PROP_LOCLIST handling code.
13369 2020-03-10  Andrew Burgess  <andrew.burgess@embecosm.com>
13371         * buildsym-legacy.c (record_line): Pass extra parameter to
13372         record_line.
13373         * buildsym.c (buildsym_compunit::record_line): Take an extra
13374         parameter, reduce duplication in the line table, and record the
13375         is_stmt flag in the line table.
13376         * buildsym.h (buildsym_compunit::record_line): Add extra
13377         parameter.
13378         * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13379         non-statement lines.
13380         * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13381         this to the symtab builder.
13382         (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13383         (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13384         through to dwarf_record_line_1.
13385         * infrun.c (process_event_stop_test): When stepping, don't stop at
13386         a non-statement instruction, and only refresh the step info when
13387         we land in the middle of a line's range.  Also add an extra
13388         comment.
13389         * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13390         field.
13391         * record-btrace.c (btrace_find_line_range): Only record lines
13392         marked as is-statement.
13393         * stack.c (frame_show_address): Show the frame address if we are
13394         in a non-statement sal.
13395         * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13396         (maintenance_print_one_line_table): Print a header for the is_stmt
13397         column, and include is_stmt information in the output.
13398         * symtab.c (find_pc_sect_line): Find lines marked as statements in
13399         preference to non-statements.
13400         (find_pcs_for_symtab_line): Prefer is-statement entries.
13401         (find_line_common): Likewise.
13402         * symtab.h (struct linetable_entry): Add is_stmt field.
13403         (struct symtab_and_line): Likewise.
13404         * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13405         arranging the line table.
13407 2020-03-07  Tom de Vries  <tdevries@suse.de>
13409         * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13410         DIE.
13412 2020-03-07  Tom Tromey  <tom@tromey.com>
13414         * valops.c (value_literal_complex): Remove obsolete comment.
13415         * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13416         comment.
13418 2020-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13420         * infrun.h: Forward-declare thread_info.
13421         (set_step_info): Add thread_info parameter, add doc.
13422         * infrun.c (set_step_info): Add thread_info parameter, move doc
13423         to header.
13424         * infrun.c (process_event_stop_test): Pass thread to
13425         set_step_info call.
13426         * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13427         set_step_info.
13428         (prepare_one_step): Add thread_info parameter, pass it to
13429         set_step_frame and prepare_one_step (recursive) call.
13430         (step_1): Pass thread to prepare_one_step call.
13431         (step_command_fsm::should_stop): Pass thread to
13432         prepare_one_step.
13433         (until_next_fsm): Pass thread to set_step_frame call.
13434         (finish_command): Pass thread to set_step_info call.
13436 2020-03-06  Hannes Domani  <ssbssa@yahoo.de>
13438         * windows-tdep.c (windows_solib_create_inferior_hook):
13439         Check if inferior is running.
13441 2020-03-06  Tom de Vries  <tdevries@suse.de>
13443         * NEWS: Fix "the the".
13444         * ctfread.c: Same.
13446 2020-03-06  Tom de Vries  <tdevries@suse.de>
13448         * psymtab.c (psymtab_to_symtab): Don't print "done.".
13450 2020-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13452         * .dir-locals.el: Add a comment referencing the other copies of
13453         this file.
13455 2020-03-05  John Baldwin  <jhb@FreeBSD.org>
13457         * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13458         psargs.
13460 2020-03-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
13462         * .gitattributes: New file.
13464 2020-03-04  Tom Tromey  <tom@tromey.com>
13466         * symmisc.c (print_symbol_bcache_statistics)
13467         (print_objfile_statistics): Update.
13468         * symfile.c (allocate_symtab): Use intern.
13469         * psymtab.c (partial_symtab::partial_symtab): Use intern.
13470         * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13471         macro_cache>: Remove.
13472         <string_cache>: New member.
13473         (struct objfile) <intern>: New methods.
13474         * elfread.c (elf_symtab_read): Use intern.
13475         * dwarf2/read.c (fixup_go_packaging): Intern package name.
13476         (dwarf2_compute_name, dwarf2_physname)
13477         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13478         names.
13479         (guess_partial_die_structure_name): Update.
13480         (partial_die_info::fixup): Intern name.
13481         (dwarf2_canonicalize_name): Change parameter to objfile.  Intern
13482         name.
13483         (dwarf2_name): Intern name.  Update.
13484         * buildsym.c (buildsym_compunit::get_macro_table): Use
13485         string_cache.
13487 2020-03-04  Tom Tromey  <tom@tromey.com>
13489         * jit.c (bfd_open_from_target_memory): Make "target" const.
13490         * corefile.c (gnutarget): Now const.
13491         * gdbcore.h (gnutarget): Now const.
13493 2020-03-04  Hannes Domani  <ssbssa@yahoo.de>
13495         * NEWS: Mention support for WOW64 processes.
13496         * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13497         (amd64_windows_segment_register_p): Remove static.
13498         (_initialize_amd64_windows_nat): Update.
13499         * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13500         * i386-windows-nat.c (context_offset): Update.
13501         (i386_mappings): Rename and remove static.
13502         (i386_windows_segment_register_p): Remove static.
13503         (_initialize_i386_windows_nat): Update.
13504         * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13505         (STATUS_WX86_SINGLE_STEP): New macro.
13506         (EnumProcessModulesEx): New macro.
13507         (Wow64SuspendThread): New macro.
13508         (Wow64GetThreadContext): New macro.
13509         (Wow64SetThreadContext): New macro.
13510         (Wow64GetThreadSelectorEntry): New macro.
13511         (windows_set_context_register_offsets): Add static.
13512         (windows_set_segment_register_p): Likewise.
13513         (windows_add_thread): Adapt for WOW64 processes.
13514         (windows_fetch_one_register): Likewise.
13515         (windows_nat_target::fetch_registers): Likewise.
13516         (windows_store_one_register): Likewise.
13517         (display_selector): Likewise.
13518         (display_selectors): Likewise.
13519         (handle_exception): Likewise.
13520         (windows_continue): Likewise.
13521         (windows_nat_target::resume): Likewise.
13522         (windows_add_all_dlls): Likewise.
13523         (do_initial_windows_stuff): Likewise.
13524         (windows_nat_target::attach): Likewise.
13525         (windows_get_exec_module_filename): Likewise.
13526         (windows_nat_target::create_inferior): Likewise.
13527         (windows_xfer_siginfo): Likewise.
13528         (_initialize_loadable): Initialize Wow64SuspendThread,
13529         Wow64GetThreadContext, Wow64SetThreadContext,
13530         Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13531         * windows-nat.h (windows_set_context_register_offsets):
13532         Remove declaration.
13533         (windows_set_segment_register_p): Likewise.
13534         (i386_windows_segment_register_p): Add declaration.
13535         (amd64_windows_segment_register_p): Likewise.
13537 2020-03-04  Luis Machado  <luis.machado@linaro.org>
13539         Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13540         in "info registers" for AArch64/ARM.
13542         The change caused "info registers" to not print GPR's.
13544         gdb/ChangeLog:
13546         2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
13548         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13549         when reg->group is empty and reggroup is not.
13551 2020-03-03  Tom Tromey  <tromey@adacore.com>
13553         * dwarf2/frame.c (struct dwarf2_frame_cache)
13554         <checked_tailcall_bottom, entry_cfa_sp_offset,
13555         entry_cfa_sp_offset_p>: Remove members.
13556         (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13557         (dwarf2_frame_prev_register): Don't call
13558         dwarf2_tailcall_sniffer_first.
13559         (dwarf2_append_unwinders): Don't append tailcall unwinder.
13560         * frame-unwind.c (add_unwinder): New fuction.
13561         (frame_unwind_init): Use it.  Add tailcall unwinder.
13563 2020-03-03  Andrew Burgess  <andrew.burgess@embecosm.com>
13564             Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
13566         * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13567         value should be printed as true.
13569 2020-03-03  Hannes Domani  <ssbssa@yahoo.de>
13571         * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13572         (windows_init_abi): Set and use windows_so_ops.
13574 2020-03-03  Sergio Durigan Junior  <sergiodj@redhat.com>
13576         * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13577         when verifying if dealing with a convenience variable.
13579 2020-03-03  Luis Machado  <luis.machado@linaro.org>
13581         * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13583 2020-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13585         * infrun.c (gdbarch_supports_displaced_stepping): New.
13586         (use_displaced_stepping): Break up conditions in smaller pieces.
13587         Use gdbarch_supports_displaced_stepping.
13588         (displaced_step_prepare_throw): Use
13589         gdbarch_supports_displaced_stepping.
13591 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
13593         * NEWS: Mention new behaviour of the history filename.
13594         * top.c (write_history_p): Add comment.
13595         (show_write_history_p): Add header comment, give a different
13596         message when history writing is on, but the history filename is
13597         empty.
13598         (history_filename): Add comment.
13599         (history_filename_empty): New function.
13600         (show_history_filename): Add header comment, give a different
13601         message when the filename is empty.
13602         (init_history): Compare history_filename against nullptr, and only
13603         read history if the filename is not empty.
13604         (set_history_filename): Add header comment, and only make
13605         non-empty filenames absolute.
13606         (init_main): Make the filename argument to 'set history filename'
13607         optional.
13609 2020-03-02  Christian Biesinger  <cbiesinger@google.com>
13611         * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13612         (arm_supply_vfpregset): ...this, and update to use VFP registers.
13613         (fetch_fp_register): Update.
13614         (fetch_fp_regs): Update.
13615         (store_fp_register): Update.
13616         (store_fp_regs): Update.
13617         (arm_netbsd_nat_target::read_description): New function.
13618         (fetch_elfcore_registers): Update.
13620 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
13622         * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13623         general_thread if the stop reply is missing a thread-id.
13624         (remote_target::process_stop_reply): Use the first non-exited
13625         thread if the target didn't pass a thread-id.
13626         * infrun.c (do_target_wait): Move call to
13627         switch_to_inferior_no_thread to ....
13628         (do_target_wait_1): ... here.
13630 2020-02-29  Jon Turney  <jon.turney@dronecode.org.uk>
13632         * debuginfod-support.c: Include defs.h first.
13634 2020-02-28  Tom de Vries  <tdevries@suse.de>
13636         * symfile.c (set_initial_language): Use default language for lookup.
13638 2020-02-28  Simon Marchi  <simon.marchi@efficios.com>
13640         * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13641         reader variable, pass `this` to read_cutu_die_from_dwo.
13643 2020-02-27  Aaron Merey  <amerey@redhat.com>
13645         * source.c (open_source_file): Check for nullptr when computing
13646         srcpath.
13648 2020-02-27  Tom Tromey  <tromey@adacore.com>
13650         * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13651         member.
13652         (dwarf2_add_field): Don't update nfields.
13653         (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13655 2020-02-27  Andrew Burgess  <andrew.burgess@embecosm.com>
13657         * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13658         abs.
13660 2020-02-26  Tom Tromey  <tom@tromey.com>
13662         * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13663         (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13664         (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13665         (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13666         per_cu_data.
13668 2020-02-26  Tom Tromey  <tom@tromey.com>
13670         * dwarf2/index-write.c (psym_index_map): Change type.
13671         (add_address_entry_worker, write_one_signatured_type)
13672         (recursively_count_psymbols, recursively_write_psymbols)
13673         (class debug_names, psyms_seen_size, write_gdbindex)
13674         (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13676 2020-02-26  Aaron Merey  <amerey@redhat.com>
13678         * Makefile.in: Handle optional debuginfod support.
13679         * NEWS: Update.
13680         * README: Add --with-debuginfod summary.
13681         * config.in: Regenerate.
13682         * configure: Regenerate.
13683         * configure.ac: Handle optional debuginfod support.
13684         * debuginfod-support.c: debuginfod helper functions.
13685         * debuginfod-support.h: Ditto.
13686         * doc/gdb.texinfo: Add --with-debuginfod to configure options
13687         summary.
13688         * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13689         when a dwz file cannot be found.
13690         * elfread.c (elf_symfile_read): Query debuginfod servers when a
13691         debuginfo file cannot be found.
13692         * source.c (open_source_file): Query debuginfod servers when a
13693         source file cannot be found.
13694         * top.c (print_gdb_configuration): Include
13695         --{with,without}-debuginfod in the output.
13697 2020-02-26  Jérémie Galarneau  <jeremie.galarneau@efficios.com>
13699         * thread.c (thr_try_catch_cmd): Print thread name.
13701 2020-02-26  Simon Marchi  <simon.marchi@efficios.com>
13703         * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13704         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13705         dwarf2_fetch_die_type_sect_off): Move to...
13706         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13707         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13708         dwarf2_fetch_die_type_sect_off): ... here.
13709         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13710         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13711         dwarf2_fetch_die_type_sect_off): Move doc to header file.
13713 2020-02-26  Tom de Vries  <tdevries@suse.de>
13715         PR gdb/25603
13716         * symfile.c (set_initial_language): Exit-early if
13717         language_mode == language_mode_manual.
13719 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
13721         * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13722         * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13723         * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13725 2020-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
13727         * gdbtypes.c (create_array_type_with_stride): Handle negative
13728         array strides.
13729         * valarith.c (value_subscripted_rvalue): Likewise.
13731 2020-02-25  Luis Machado  <luis.machado@linaro.org>
13733         * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13735 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
13737         * loc.h (dwarf2_get_die_type): Move to...
13738         * read.h (dwarf2_get_die_type): ... here.
13739         * read.c (dwarf2_get_die_type): Move doc to header.
13741 2020-02-25  Joel Brobecker  <brobecker@adacore.com>
13743         * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13744         'gnulib/Makefile.in' to the list.
13746 2020-02-24  Tom Tromey  <tom@tromey.com>
13748         * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13749         Remove.
13750         * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13751         XOBNEWVEC.
13753 2020-02-24  Tom Tromey  <tom@tromey.com>
13755         * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13756         New method.
13757         * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13758         (dw2_do_instantiate_symtab, dw2_get_file_names)
13759         (build_type_psymtab_dependencies, load_full_type_unit): Update.
13761 2020-02-24  Tom Tromey  <tom@tromey.com>
13763         * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13764         make_scoped_restore.
13765         (dwarf2_psymtab::read_symtab): Don't clear
13766         reading_partial_symbols.
13768 2020-02-24  Tom de Vries  <tdevries@suse.de>
13770         PR gdb/25592
13771         * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13773 2020-02-24  Tom de Vries  <tdevries@suse.de>
13775         * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13776         commands layout next/prev/regs.
13778 2020-02-22  Tom Tromey  <tom@tromey.com>
13780         * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13781         * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13783 2020-02-22  Tom Tromey  <tom@tromey.com>
13785         * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13787 2020-02-22  Tom Tromey  <tom@tromey.com>
13789         * tui/tui-win.c (_initialize_tui_win): Add usage text.
13790         * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13791         * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13792         * tui/tui.c (_initialize_tui): Add usage text.
13794 2020-02-22  Tom Tromey  <tom@tromey.com>
13796         * tui/tui-win.c (tui_set_focus_command)
13797         (tui_set_win_height_command): Use error_no_arg.
13798         (_initialize_tui_win): Update help text.
13799         (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13801 2020-02-22  Tom Tromey  <tom@tromey.com>
13803         * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13804         * tui/tui-disasm.h (struct tui_disasm_window)
13805         <display_start_addr>: Declare.
13806         * tui/tui-source.h (struct tui_source_window)
13807         <display_start_addr>: Declare.
13808         * tui/tui-winsource.h (struct tui_source_window_base)
13809         <show_source_line, display_start_addr>: New methods.
13810         <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13811         Rename and move to protected section.
13812         * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13813         (tui_source_window_base::do_erase_source_content): Update.
13814         (tui_source_window_base::show_source_line): Now a method.
13815         (tui_source_window_base::show_source_content)
13816         (tui_source_window_base::tui_source_window_base)
13817         (tui_source_window_base::rerender)
13818         (tui_source_window_base::refill)
13819         (tui_source_window_base::do_scroll_horizontal)
13820         (tui_source_window_base::set_is_exec_point_at)
13821         (tui_source_window_base::update_breakpoint_info)
13822         (tui_source_window_base::update_exec_info): Update.
13823         * tui/tui-source.c (tui_source_window::set_contents)
13824         (tui_source_window::showing_source_p)
13825         (tui_source_window::do_scroll_vertical)
13826         (tui_source_window::location_matches_p)
13827         (tui_source_window::line_is_displayed): Update.
13828         (tui_source_window::display_start_addr): New method.
13829         * tui/tui-disasm.c (tui_disasm_window::set_contents)
13830         (tui_disasm_window::do_scroll_vertical)
13831         (tui_disasm_window::location_matches_p): Update.
13832         (tui_disasm_window::display_start_addr): New method.
13834 2020-02-22  Tom Tromey  <tom@tromey.com>
13836         * NEWS: Add entry for gdb.register_window_type.
13837         * tui/tui-layout.h (window_factory): New typedef.
13838         (tui_register_window): Declare.
13839         * tui/tui-layout.c (saved_tui_windows): New global.
13840         (tui_apply_current_layout): Use it.
13841         (tui_register_window): New function.
13842         * python/python.c (do_start_initialization): Call
13843         gdbpy_initialize_tui.
13844         (python_GdbMethods): Add "register_window_type" function.
13845         * python/python-internal.h (gdbpy_register_tui_window)
13846         (gdbpy_initialize_tui): Declare.
13847         * python/py-tui.c: New file.
13848         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13850 2020-02-22  Tom Tromey  <tom@tromey.com>
13852         * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13854 2020-02-22  Tom Tromey  <tom@tromey.com>
13856         * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13857         * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13858         * tui/tui-data.c (tui_set_win_with_focus): Remove.
13859         (tui_set_win_focus_to): Move from tui-win.c.
13861 2020-02-22  Tom Tromey  <tom@tromey.com>
13863         * tui/tui-layout.c (make_standard_window, get_locator_window): New
13864         functions.
13865         (known_window_types): New global.
13866         (tui_get_window_by_name): Reimplement.
13867         (initialize_known_windows): New function.
13868         (validate_window_name): Rewrite.
13869         (_initialize_tui_layout): Call initialize_known_windows.
13871 2020-02-22  Tom Tromey  <tom@tromey.com>
13873         * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13874         Remove constants.
13875         * tui/tui-winsource.h (struct tui_source_window_base)
13876         <tui_source_window_base>: Remove parameter.
13877         * tui/tui-winsource.c
13878         (tui_source_window_base::tui_source_window_base): Remove
13879         parameter.
13880         (tui_source_window_base::refill): Update.
13881         * tui/tui-stack.h (struct tui_locator_window)
13882         <tui_locator_window>: Update.
13883         * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13884         Default the constructor.
13885         * tui/tui-regs.h (struct tui_data_item_window)
13886         <tui_data_item_window>: Default the constructor.
13887         (struct tui_data_window) <tui_data_window>: Likewise.
13888         * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13889         Default the constructor.
13890         * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13891         Default the constructor.
13892         <type>: Remove.
13893         (struct tui_win_info) <tui_win_info>: Default the constructor.
13894         * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13895         * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13896         Default the constructor.
13898 2020-02-22  Tom Tromey  <tom@tromey.com>
13900         * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13901         * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13902         * tui/tui-win.c (tui_resize_all): Don't call
13903         tui_delete_invisible_windows.
13904         * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13905         done.
13906         (tui_set_layout): Update.
13907         (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13908         * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13909         * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13911 2020-02-22  Tom Tromey  <tom@tromey.com>
13913         * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13914         correctly.
13916 2020-02-22  Tom Tromey  <tom@tromey.com>
13918         * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13920 2020-02-22  Tom Tromey  <tom@tromey.com>
13922         * tui/tui-winsource.h (struct tui_source_window_iterator)
13923         <inner_iterator>: New etytypedef.
13924         <tui_source_window_iterator>: Take "end" parameter.
13925         <tui_source_window_iterator>: Take iterator.
13926         <operator*, advance>: Update.
13927         <m_iter>: Change type.
13928         <m_end>: New field.
13929         (struct tui_source_windows) <begin, end>: Update.
13930         * tui/tui-layout.c (tui_windows): New global.
13931         (tui_apply_current_layout): Clear tui_windows.
13932         (tui_layout_window::apply): Update tui_windows.
13933         * tui/tui-data.h (tui_windows): Declare.
13934         (all_tui_windows): Now inline function.
13935         (class tui_window_iterator, struct all_tui_windows): Remove.
13937 2020-02-22  Tom Tromey  <tom@tromey.com>
13939         PR tui/17850:
13940         * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13941         * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13942         "height" argument.
13943         (class tui_layout_window) <get_sizes>: Likewise.
13944         (class tui_layout_split) <tui_layout_split>: Add "vertical"
13945         argument.
13946         <get_sizes>: Add "height" argument.
13947         <m_vertical>: New field.
13948         * tui/tui-layout.c (tui_layout_split::clone): Update.
13949         (tui_layout_split::get_sizes): Add "height" argument.
13950         (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13951         (tui_new_layout_command): Parse "-horizontal".
13952         (_initialize_tui_layout): Update help string.
13953         (tui_layout_split::specification): Add "-horizontal" when needed.
13954         * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13955         argument.
13956         * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13957         New methods.
13959 2020-02-22  Tom Tromey  <tom@tromey.com>
13961         * tui/tui-layout.h (enum tui_adjust_result): New.
13962         (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13963         (class tui_layout_window) <adjust_size>: Return
13964         tui_adjust_result.  Rewrite.
13965         (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13966         * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13968 2020-02-22  Tom Tromey  <tom@tromey.com>
13970         * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13971         parameter and return types.
13972         (class tui_layout_base) <specification>: Add "depth".
13973         (class tui_layout_window) <specification>: Add "depth".
13974         (class tui_layout_split) <specification>: Add "depth".
13975         * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13976         and return types.
13977         (tui_new_layout_command): Parse sub-layouts.
13978         (_initialize_tui_layout): Update help string.
13979         (tui_layout_window::specification): Add "depth".
13980         (add_layout_command): Update.
13982 2020-02-22  Tom Tromey  <tom@tromey.com>
13984         * NEWS: Add "tui new-layout" item.
13985         * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13986         Add new-layout command to help text.
13987         (validate_window_name): New function.
13988         (tui_new_layout_command): New function.
13989         (_initialize_tui_layout): Register "new-layout".
13990         (tui_layout_window::specification): New method.
13991         (tui_layout_window::specification): New method.
13992         * tui/tui-layout.h (class tui_layout_base) <specification>: New
13993         method.
13994         (class tui_layout_window) <specification>: New method.
13995         (class tui_layout_split) <specification>: New method.
13997 2020-02-22  Tom Tromey  <tom@tromey.com>
13999         * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14000         * tui/tui-win.c (window_name_completer): Update comment.
14001         * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14002         Declare method.
14003         (class tui_layout_window) <replace_window>: Likewise.
14004         (class tui_layout_split) <replace_window>: Likewise.
14005         (tui_set_layout): Don't declare.
14006         (tui_set_initial_layout): Declare function.
14007         * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14008         (asm_regs_layout): New globals.
14009         (tui_current_layout, show_layout): Remove.
14010         (tui_set_layout, tui_add_win_to_layout): Rewrite.
14011         (find_layout, tui_apply_layout): New function.
14012         (layout_completer): Remove.
14013         (tui_next_layout): Reimplement.
14014         (tui_next_layout_command): New function.
14015         (tui_set_initial_layout, tui_prev_layout_command): New functions.
14016         (tui_regs_layout): Reimplement.
14017         (tui_regs_layout_command): New function.
14018         (extract_display_start_addr): Rewrite.
14019         (next_layout, prev_layout): Remove.
14020         (tui_layout_window::replace_window): New method.
14021         (tui_layout_split::replace_window): New method.
14022         (destroy_layout): New function.
14023         (layout_list): New global.
14024         (add_layout_command): New function.
14025         (initialize_layouts): Update.
14026         (tui_layout_command): New function.
14027         (_initialize_tui_layout): Install "layout" commands.
14028         * tui/tui-data.h (enum tui_layout_type): Remove.
14029         (tui_current_layout): Don't declare.
14031 2020-02-22  Tom Tromey  <tom@tromey.com>
14033         * tui/tui-regs.c (tui_reg_layout): Remove.
14034         (tui_reg_command): Use tui_regs_layout.
14035         * tui/tui-layout.h (tui_reg_command): Declare.
14036         * tui/tui-layout.c (tui_reg_command): New function.
14038 2020-02-22  Tom Tromey  <tom@tromey.com>
14040         * tui/tui.c (tui_rl_delete_other_windows): Call
14041         tui_remove_some_windows.
14042         * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14043         Declare method.
14044         (class tui_layout_window) <remove_windows>: New method.
14045         (class tui_layout_split) <remove_windows>: Declare.
14046         (tui_remove_some_windows): Declare.
14047         * tui/tui-layout.c (tui_remove_some_windows): New function.
14048         (tui_layout_split::remove_windows): New method.
14050 2020-02-22  Tom Tromey  <tom@tromey.com>
14052         * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14053         * tui/tui-layout.h (tui_next_layout): Declare.
14054         * tui/tui-layout.c (tui_next_layout): New function.
14056 2020-02-22  Tom Tromey  <tom@tromey.com>
14058         * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14059         correct coordinates.
14061 2020-02-22  Tom Tromey  <tom@tromey.com>
14063         * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14064         * tui/tui-layout.c (tui_add_win_to_layout): Add assert.  Remove
14065         DATA_WIN case.
14067 2020-02-22  Tom Tromey  <tom@tromey.com>
14069         * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14070         TUI_DISASM_WIN, not tui_win_list.
14072 2020-02-22  Tom Tromey  <tom@tromey.com>
14074         * valprint.c (generic_val_print_enum_1)
14075         (val_print_type_code_flags): Style member names.
14076         * rust-lang.c (val_print_struct, rust_print_enum)
14077         (rust_print_struct_def, rust_internal_print_type): Style member
14078         names.
14079         * p-valprint.c (pascal_object_print_value_fields): Style member
14080         names.  Only call fprintf_symbol_filtered for static members.
14081         * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14082         * f-valprint.c (f_val_print): Style member names.
14083         * f-typeprint.c (f_type_print_base): Style member names.
14084         * cp-valprint.c (cp_print_value_fields): Style member names.  Only
14085         call fprintf_symbol_filtered for static members.
14086         (cp_print_class_member): Style member names.
14087         * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14088         member names.
14089         * ada-valprint.c (ada_print_scalar): Style enum names.
14090         (ada_val_print_enum): Likewise.
14091         * ada-typeprint.c (print_enum_type): Style enum names.
14093 2020-02-21  Tom Tromey  <tom@tromey.com>
14095         * psympriv.h (struct partial_symtab): Update comment.
14097 2020-02-21  Tom Tromey  <tromey@adacore.com>
14099         * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14100         type is CORE_ADDR.
14102 2020-02-21  Tom de Vries  <tdevries@suse.de>
14104         PR gdb/25534
14105         * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14106         if dependencies[i]->user != NULL.
14108 2020-02-21  Ali Tamur  <tamur@google.com>
14110         * dwarf2/read.c (dwarf2_name): Add null check.
14112 2020-02-20  Tom Tromey  <tom@tromey.com>
14114         * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14115         ">=", in binary search.
14116         (dwarf2_find_containing_comp_unit): New overload.
14117         (run_test): New self-test.
14118         (_initialize_dwarf2_read): Register new test.
14120 2020-02-20  Nelson Chu  <nelson.chu@sifive.com>
14122         * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14123         * riscv-tdep.h: Likewise.
14124         * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14125         rv32-only CSR.
14126         * features/riscv/64bit-csr.xml: Regenerated.
14128 2020-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
14129             Tom Tromey  <tom@tromey.com>
14131         * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14132         of 'fputc_unfiltered'.
14133         (putchar_unfiltered): Call 'fputc_unfiltered'.
14134         (fputc_unfiltered): Call 'fputs_unfiltered'.
14136 2020-02-20  Andrew Burgess  <andrew.burgess@embecosm.com>
14138         * config.in: Regenerate.
14139         * configure: Regenerate.
14140         * configure.ac: Add --with-python-libdir option.
14141         * main.c: Use WITH_PYTHON_LIBDIR.
14143 2020-02-19  Tom Tromey  <tom@tromey.com>
14145         * symtab.c (general_symbol_info::compute_and_set_names): Use
14146         obstack_strndup.  Simplify call to symbol_set_demangled_name.
14148 2020-02-19  Simon Marchi  <simon.marchi@efficios.com>
14150         * dwarf2/read.c (allocate_signatured_type_table,
14151         allocate_dwo_unit_table, allocate_type_unit_groups_table,
14152         allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14153         Remove objfile parameter, update all callers.
14155 2020-02-19  Doug Evans  <dje@google.com>
14157         PR rust/25535
14158         * rust-lang.c (rust_print_enum): Apply embedded_offset to
14159         rust_enum_variant calculation.
14161 2020-02-19  Tom Tromey  <tromey@adacore.com>
14163         * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14165 2020-02-19  Tom Tromey  <tromey@adacore.com>
14167         * ada-lang.c (cache_symbol): Use obstack_strdup.
14169 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14171         * configure: Regenerate.
14173 2020-02-19  Tom Tromey  <tromey@adacore.com>
14175         * python/python.c (do_start_initialization): Use XNEWVEC.  Remove
14176         NULL check.
14178 2020-02-19  Maciej W. Rozycki  <macro@wdc.com>
14180         * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14182 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14184         * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14185         if GDBSERVER is not defined.
14186         (riscv_tdesc_cache): Likewise, also store const target_desc.
14187         (STATIC_IN_GDB): Define.
14188         (riscv_create_target_description): Update declaration with
14189         STATIC_IN_GDB.
14190         (riscv_lookup_target_description): New function, only define if
14191         GDBSERVER is not defined.
14192         * arch/riscv.h (riscv_create_target_description): Declare only
14193         when GDBSERVER is defined.
14194         (riscv_lookup_target_description): New declaration when GDBSERVER
14195         is not defined.
14196         * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14197         (riscv_linux_read_features): ...this, and return
14198         riscv_gdbarch_features instead of target_desc.
14199         * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14200         (riscv_linux_read_description): Rename to...
14201         (riscv_linux_read_features): ...this.
14202         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14203         Update to use riscv_gdbarch_features and
14204         riscv_lookup_target_description.
14205         * riscv-tdep.c (riscv_find_default_target_description): Use
14206         riscv_lookup_target_description instead of
14207         riscv_create_target_description.
14209 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14211         * valprint.c (generic_val_print_enum_1): When printing a flag
14212         enum with value 0 and there is no enumerator with value 0, print
14213         just "0" instead of "(unknown: 0x0)".
14215 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14217         * valprint.c (generic_val_print_enum_1): Print unknown part of
14218         flag enum in hex.
14220 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14222         * dwarf2/read.c (update_enumeration_type_from_children): Allow
14223         flag enums to contain duplicate enumerators.
14224         * valprint.c (generic_val_print_enum_1): Update comment.
14226 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14228         * dwarf2/read.c: Include "count-one-bits.h".
14229         (update_enumeration_type_from_children): If an enumerator has
14230         multiple bits set, don't treat the enumeration as a "flag enum".
14231         * valprint.c (generic_val_print_enum_1): Assert that enumerators
14232         of flag enums have 0 or 1 bit set.
14234 2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14236         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14237         conversion.
14238         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14239         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14240         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14241         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14242         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14244 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14246         * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14248 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14250         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14251         displaced_step_closure_up.
14252         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14253         (struct displaced_step_closure_up):
14254         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14255         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14256         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14257         Likewise.
14258         * gdbarch.sh (displaced_step_copy_insn): Likewise.
14259         * gdbarch.c, gdbarch.h: Re-generate.
14260         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14261         displaced_step_closure_up.
14262         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14263         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14264         * infrun.h (displaced_step_closure_up): New type alias.
14265         (struct displaced_step_inferior_state) <step_closure>: Change
14266         type to displaced_step_closure_up.
14267         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14268         displaced_step_closure_up.
14269         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14271 2020-02-14  Tom Tromey  <tom@tromey.com>
14273         * minidebug.c (gnu_debug_key): New global.
14274         (find_separate_debug_file_in_section): Use it.
14276 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14278         * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14279         std::unique_ptr.
14280         * gdbarch.c: Re-generate.
14281         * gdbarch.h: Re-generate.
14282         * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14283         change.
14284         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14285         type to std::unique_ptr.
14286         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14287         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14288         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14289         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14290         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14291         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14292         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14293         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14294         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14296 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14298         * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14299         std::unique_ptr.
14300         (displaced_step_clear): Rename to...
14301         (displaced_step_reset): ... this.  Just call displaced->reset ().
14302         (displaced_step_clear_cleanup): Rename to...
14303         (displaced_step_reset_cleanup): ... this.
14304         (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14305         (displaced_step_fixup): Likewise.
14306         (resume_1): Likewise.
14307         (handle_inferior_event): Restore child's memory before calling
14308         displaced_step_fixup on the parent.
14309         * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14310         to std::unique_ptr.
14311         <step_closure>: Change type to std::unique_ptr.
14313 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14315         * arm-tdep.c: Include count-one-bits.h.
14316         (cleanup_block_store_pc): Use count_one_bits.
14317         (cleanup_block_load_pc): Use count_one_bits.
14318         (arm_copy_block_xfer): Use count_one_bits.
14319         (thumb2_copy_block_xfer): Use count_one_bits.
14320         (thumb_copy_pop_pc_16bit): Use count_one_bits.
14321         * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14322         (thumb_get_next_pcs_raw): Use count_one_bits.
14323         (arm_get_next_pcs_raw): Use count_one_bits_l.
14324         * arch/arm.c (bitcount): Remove.
14325         * arch/arm.h (bitcount): Remove.
14327 2020-02-14  Tom Tromey  <tromey@adacore.com>
14329         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14330         Update.
14331         * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14332         * dwarf2/loc.c (call_site_find_chain_1): Return
14333         unique_xmalloc_ptr.
14334         (call_site_find_chain): Likewise.
14336 2020-02-14  Richard Biener  <rguenther@suse.de>
14338         * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14339         on expression with division operators.
14341 2020-02-13  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
14343         * MAINTAINERS (Write After Approval): Adding myself.
14345 2020-02-12  Tom Tromey  <tom@tromey.com>
14347         * event-loop.c (event_data, gdb_event, event_handler_func):
14348         Remove.
14350 2020-02-12  Tom Tromey  <tom@tromey.com>
14352         * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14353         (dwarf2_frame_objfile_data): Add comment.
14354         (find_comp_unit, set_comp_unit): New functions.
14355         (dwarf2_frame_find_fde): Use find_comp_unit.
14356         (dwarf2_build_frame_info): Use set_comp_unit.
14358 2020-02-12  Tom Tromey  <tom@tromey.com>
14360         * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14361         (comp_unit): Don't initialize objfile.
14362         (execute_cfa_program): Add text_offset parameter.
14363         (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14364         (dwarf2_frame_cache): Update.
14365         (dwarf2_build_frame_info): Don't set "objfile" member.
14367 2020-02-12  Tom Tromey  <tom@tromey.com>
14369         * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14370         (decode_frame_entry): Likewise.
14371         (dwarf2_build_frame_info): Update.
14373 2020-02-12  Tom Tromey  <tom@tromey.com>
14375         * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14376         (decode_frame_entry_1): Use the comp_unit obstack.
14378 2020-02-12  Tom Tromey  <tom@tromey.com>
14380         * dwarf2/frame.c (struct comp_unit): Add initializers and
14381         constructor.
14382         (dwarf2_frame_objfile_data): Store a comp_unit.
14383         (dwarf2_frame_find_fde): Update.
14384         (dwarf2_build_frame_info): Use "new".
14386 2020-02-12  Tom Tromey  <tom@tromey.com>
14388         * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14389         (dwarf2_fde_table): Typedef for std::vector.
14390         (dwarf2_frame_objfile_data): Remove the deleter.  Now static.
14391         (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14392         (decode_frame_entry): Update.
14393         (dwarf2_build_frame_info): Use "new".
14395 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
14397         * arm-tdep.c (arm_gdbarch_init): Update.
14398         * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14399         have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14400         have_neon, is_m>: Change to bool.
14402 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
14404         * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14406 2020-02-12  Tom Tromey  <tom@tromey.com>
14408         * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14410 2020-02-12  Hannes Domani  <ssbssa@yahoo.de>
14412         * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14413         (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14415 2020-02-11  Tom Tromey  <tom@tromey.com>
14417         * psymtab.h: Update comment.
14419 2020-02-11  Tom Tromey  <tom@tromey.com>
14421         * gdb_obstack.h (struct auto_obstack): Use
14422         DISABLE_COPY_AND_ASSIGN.
14424 2020-02-11  Tom Tromey  <tom@tromey.com>
14426         * dwarf2/frame.h (struct objfile): Don't forward declare.
14428 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14430         * cris-tdep.c (cris_supply_gregset): Change signature to match
14431         what struct regset expects.
14432         (cris_regset): New struct.
14433         (fetch_core_registers): Remove.
14434         (cris_iterate_over_regset_sections): New function.
14435         (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14436         (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14438 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14440         * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14441         registers.
14443 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14445         * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14447 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14449         * configure: Re-generate.
14451 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14453         * configure: Re-generate.
14455 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14457         * acinclude: Update warning.m4 path.
14458         * warning.m4: Move to gdbsupport.
14460 2020-02-11  Tom Tromey  <tromey@adacore.com>
14462         * remote.c (remote_console_output): Update.
14463         * printcmd.c (printf_command): Update.
14464         * event-loop.c (gdb_wait_for_event): Update.
14465         * linux-nat.c (sigchld_handler): Update.
14466         * remote-sim.c (gdb_os_write_stdout): Update.
14467         (gdb_os_flush_stdout): Update.
14468         (gdb_os_flush_stderr): Update.
14469         (gdb_os_write_stderr): Update.
14470         * exceptions.c (print_exception): Update.
14471         * remote-fileio.c (remote_fileio_func_read): Update.
14472         (remote_fileio_func_write): Update.
14473         * tui/tui.c (tui_enable): Update.
14474         * tui/tui-interp.c (tui_interp::init): Update.
14475         * utils.c (init_page_info): Update.
14476         (putchar_unfiltered, fputc_unfiltered): Update.
14477         (gdb_flush): Update.
14478         (emit_style_escape): Update.
14479         (flush_wrap_buffer, fputs_maybe_filtered): Update.
14480         * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14481         (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14482         (stderr_file::write): Update.
14483         (stderr_file::puts): Update.
14484         * ui-file.h (ui_file_isatty, ui_file_write)
14485         (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14486         (ui_file_puts): Don't declare.
14488 2020-02-10  Tom de Vries  <tdevries@suse.de>
14490         * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14491         sentinel to char *.
14493 2020-02-09  Tom de Vries  <tdevries@suse.de>
14495         * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14496         filename if it matches "<artificial>".
14498 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
14500         * windows-tdep.c (struct enum_value_name): New struct.
14501         (create_enum): New function.
14502         (windows_get_siginfo_type): Create and use enum types.
14504 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
14506         * NEWS: Mention $_siginfo support for Windows.
14507         * windows-nat.c (handle_exception): Set siginfo_er.
14508         (windows_nat_target::mourn_inferior): Reset siginfo_er.
14509         (windows_xfer_siginfo): New function.
14510         (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14511         * windows-tdep.c (struct windows_gdbarch_data): New struct.
14512         (init_windows_gdbarch_data): New function.
14513         (get_windows_gdbarch_data): New function.
14514         (windows_get_siginfo_type): New function.
14515         (windows_init_abi): Register windows_get_siginfo_type.
14516         (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14518 2020-02-08  Tom Tromey  <tom@tromey.com>
14520         * dwarf2/read.c (class cutu_reader) <cutu_reader,
14521         init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14522         <keep>: Declare method.
14523         <m_keep>: Remove member.
14524         <~cutu_reader>: Remove.
14525         (cutu_reader::init_tu_and_read_dwo_dies): Update.
14526         (cutu_reader::cutu_reader): Update.
14527         (cutu_reader::keep): Rename from ~cutu_reader.
14528         (process_psymtab_comp_unit, build_type_psymtabs_1)
14529         (process_skeletonless_type_unit, load_partial_comp_unit)
14530         (load_full_comp_unit, dwarf2_read_addr_index)
14531         (read_signatured_type): Update.
14533 2020-02-08  Tom Tromey  <tom@tromey.com>
14535         * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14536         "want_partial_unit" parameter.
14537         (process_psymtab_comp_unit): Change want_partial_unit to bool.
14538         Inline check for DW_TAG_partial_unit.
14539         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14541 2020-02-08  Tom Tromey  <tom@tromey.com>
14543         * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14544         read.c.
14545         * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14546         read.c.
14548 2020-02-08  Tom Tromey  <tom@tromey.com>
14550         * dwarf2/read.c (read_address): Move to comp-unit.c.
14551         (dwarf2_rnglists_process, dwarf2_ranges_process)
14552         (read_attribute_value, dwarf_decode_lines_1)
14553         (var_decode_location, decode_locdesc): Update.
14554         * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14555         read.c.  Remove "cu" parameter.
14556         * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14557         method.
14559 2020-02-08  Tom Tromey  <tom@tromey.com>
14561         * dwarf2/read.c (read_attribute_value, read_indirect_string)
14562         (read_indirect_line_string): Update.
14563         * dwarf2/comp-unit.c (read_offset): Remove.
14564         (read_comp_unit_head): Update.
14565         * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14566         method.
14567         (read_offset): Don't declare.
14569 2020-02-08  Tom Tromey  <tom@tromey.com>
14571         * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14572         * dwarf2/read.c (struct comp_unit_head): Move to
14573         dwarf2/comp-unit.h.
14574         (enum class rcuh_kind): Move to comp-unit.h.
14575         (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14576         (read_comp_unit_head, error_check_comp_unit_head)
14577         (read_and_check_comp_unit_head): Move to comp-unit.c.
14578         (read_offset, dwarf_unit_type_name): Likewise.
14579         (create_debug_type_hash_table, read_cutu_die_from_dwo)
14580         (cutu_reader::cutu_reader, read_call_site_scope)
14581         (find_partial_die, follow_die_offset): Update.
14582         * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14584 2020-02-08  Tom Tromey  <tom@tromey.com>
14586         * dwarf2/read.c (read_offset_1): Move to leb.c.
14587         (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14588         (dwarf_decode_macro_bytes): Update.
14589         * dwarf2/leb.c (read_offset): Rename; move from read.c.
14590         * dwarf2/leb.h (read_offset): Declare.
14592 2020-02-08  Tom Tromey  <tom@tromey.com>
14594         * dwarf2/read.c (dwarf2_section_size): Remove.
14595         (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14596         Update.
14597         * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14599 2020-02-08  Tom Tromey  <tom@tromey.com>
14601         * dwarf2/read.c (read_initial_length): Move to leb.c.
14602         * dwarf2/leb.h (read_initial_length): Declare.
14603         * dwarf2/leb.c (read_initial_length): Move from read.c.  Add
14604         handle_nonstd parameter.
14605         * dwarf2/frame.c (read_initial_length): Remove.
14606         (decode_frame_entry_1): Update.
14608 2020-02-08  Tom Tromey  <tom@tromey.com>
14610         * dwarf2/loc.c (dwarf2_find_location_expression)
14611         (dwarf_evaluate_loc_desc::get_tls_address)
14612         (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14613         (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14614         (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14615         (dwarf2_compile_property_to_c)
14616         (dwarf2_loc_desc_get_symbol_read_needs)
14617         (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14618         (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14619         (loclist_describe_location, loclist_tracepoint_var_ref)
14620         (loclist_generate_c_location): Update.
14621         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14622         * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14623         (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14624         (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14625         * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14626         (dwarf2_per_cu_data::addr_size)
14627         (dwarf2_per_cu_data::ref_addr_size)
14628         (dwarf2_per_cu_data::text_offset)
14629         (dwarf2_per_cu_data::addr_type): Now methods.
14630         (per_cu_header_read_in): Make per_cu "const".
14631         (dwarf2_version): Remove.
14632         (dwarf2_per_cu_data::int_type): Now a method.
14633         (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14634         (set_die_type, read_array_type, read_subrange_index_type)
14635         (read_tag_string_type, read_subrange_type): Update.
14636         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14637         offset_size, ref_addr_size, text_offset, addr_type, version,
14638         objfile, int_type, addr_sized_int_type>: Declare methods.
14640 2020-02-08  Tom Tromey  <tom@tromey.com>
14642         * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14643         Move earlier.
14645 2020-02-08  Tom Tromey  <tom@tromey.com>
14647         * dwarf2/read.h (dwarf_line_debug): Declare.
14648         * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14649         * dwarf2/read.c: Move line_header code to new files.
14650         (dwarf_line_debug): No longer static.
14651         * dwarf2/line-header.c: New file.
14652         * dwarf2/line-header.h: New file.
14654 2020-02-08  Tom Tromey  <tom@tromey.com>
14656         * dwarf2/read.c (struct line_header) <file_full_name,
14657         file_file_name>: Return unique_xmalloc_ptr.
14658         (line_header::file_file_name): Update.
14659         (line_header::file_full_name): Update.
14660         (dw2_get_file_names_reader): Update.
14661         (macro_start_file): Update.
14663 2020-02-08  Tom Tromey  <tom@tromey.com>
14665         * dwarf2/read.c (struct line_header) <file_full_name,
14666         file_file_name>: Declare methods.
14667         (dw2_get_file_names_reader): Update.
14668         (file_file_name): Now a method.
14669         (file_full_name): Likewise.
14670         (macro_start_file): Update.
14672 2020-02-08  Tom Tromey  <tom@tromey.com>
14674         * dwarf2/read.c (dwarf_always_disassemble)
14675         (show_dwarf_always_disassemble): Move to loc.c.
14676         (_initialize_dwarf2_read): Move "always-disassemble" registration
14677         to loc.c.
14678         * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14679         * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c.  Now
14680         static.
14681         (show_dwarf_always_disassemble): Move from read.c.
14682         (_initialize_dwarf2loc): Move always-disassemble from read.c.
14684 2020-02-08  Tom Tromey  <tom@tromey.com>
14686         * dwarf2/read.c (~dwarf2_per_objfile): Update.
14687         (create_quick_file_names_table): Return htab_up.
14688         (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14689         Update.
14690         * dwarf2/read.h (struct dwarf2_per_objfile)
14691         <quick_file_names_table>: Now htab_up.
14693 2020-02-08  Tom Tromey  <tom@tromey.com>
14695         * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14697 2020-02-08  Tom Tromey  <tom@tromey.com>
14699         * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14700         Rewrite.
14701         (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14702         * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14703         (abbrev_table::abbrev_table): No longer inline.
14704         (ABBREV_HASH_SIZE): Remove.
14705         (abbrev_table::m_abbrevs): Now an htab_up.
14707 2020-02-08  Tom Tromey  <tom@tromey.com>
14709         * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14710         (cutu_reader): Update.
14711         (build_type_psymtabs_1): Update.
14712         * dwarf2/abbrev.c (abbrev_table::read): Rename.
14713         (abbrev_table::alloc_abbrev): Update.
14714         * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14715         (abbrev_table::read): New static method, renamed from
14716         abbrev_table_read_table.
14717         (abbrev_table::alloc_abbrev)
14718         (abbrev_table::add_abbrev): Now private.
14719         (abbrev_table::abbrev_table): Now private.
14720         (abbrev_table::m_abbrev_obstack): Now private.  Rename.
14722 2020-02-08  Tom Tromey  <tom@tromey.com>
14724         * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14725         * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14726         htab_up.
14728 2020-02-08  Tom Tromey  <tom@tromey.com>
14730         * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14731         htab_up.
14732         (lookup_dwo_unit_in_dwp): Update.
14733         (allocate_dwp_loaded_cutus_table): Return htab_up.  Don't allocate
14734         on obstack.
14736 2020-02-08  Tom Tromey  <tom@tromey.com>
14738         * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14739         obstack.
14741 2020-02-08  Tom Tromey  <tom@tromey.com>
14743         * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14744         line_header_hash.
14745         (handle_DW_AT_stmt_list): Update.  Don't allocate on obstack.
14746         * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14747         Change type to htab_up.
14749 2020-02-08  Tom Tromey  <tom@tromey.com>
14751         * dwarf2/read.c (allocate_type_unit_groups_table): Return
14752         htab_up.  Don't allocate on obstack.
14753         (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14754         * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14755         Change type to htab_up.
14757 2020-02-08  Tom Tromey  <tom@tromey.com>
14759         * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14760         Change type to htab_up.
14761         * dwarf2/read.c (create_signatured_type_table_from_index)
14762         (create_signatured_type_table_from_debug_names)
14763         (create_all_type_units, add_type_unit)
14764         (lookup_dwo_signatured_type, lookup_signatured_type)
14765         (process_skeletonless_type_unit): Update.
14766         (create_debug_type_hash_table, create_debug_types_hash_table):
14767         Change type of types_htab.
14768         (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14769         htab_up.  Don't allocate on obstack.
14770         (create_cus_hash_table): Change type of cus_htab parameter.
14771         (struct dwo_file) <cus, tus>: Now htab_up.
14772         (lookup_dwo_signatured_type, lookup_dwo_cutu)
14773         (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14774         (queue_and_load_all_dwo_tus): Update.
14775         * dwarf2/index-write.c (write_gdbindex): Update.
14776         (write_debug_names): Update.
14778 2020-02-08  Tom Tromey  <tom@tromey.com>
14780         * dwarf2/read.h (struct dwarf2_queue_item): Move from
14781         dwarf2/read.c.  Remove "next" member.  Add constructor ntad
14782         destructor.
14783         (struct dwarf2_per_objfile) <queue>: New member.
14784         * dwarf2/read.c (struct dwarf2_queue_item): Move to
14785         dwarf2/read.h.
14786         (dwarf2_queue, dwarf2_queue_tail): Remove.
14787         (class dwarf2_queue_guard): Add parameter to constructor.  Use
14788         DISABLE_COPY_AND_ASSIGN.
14789         <m_per_objfile>: New member.
14790         <~dwarf2_queue_guard>: Rewrite.
14791         (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14792         Update.
14793         (~dwarf2_queue_item): New.
14795 2020-02-08  Tom Tromey  <tom@tromey.com>
14797         * dwarf2/read.c (struct die_info) <has_children>: New member.
14798         (dw2_get_file_names_reader): Remove has_children.
14799         (dw2_get_file_names): Update.
14800         (read_cutu_die_from_dwo): Remove has_children.
14801         (cutu_reader::init_tu_and_read_dwo_dies)
14802         (cutu_reader::cutu_reader): Update.
14803         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14804         Remove has_children.
14805         (build_type_psymtabs_1, process_skeletonless_type_unit)
14806         (load_partial_comp_unit, load_full_comp_unit): Update.
14807         (create_dwo_cu_reader): Remove has_children.
14808         (create_cus_hash_table, read_die_and_children): Update.
14809         (read_full_die_1,read_full_die): Remove has_children.
14810         (read_signatured_type): Update.
14811         (class cutu_reader) <has_children>: Remove.
14813 2020-02-08  Tom Tromey  <tom@tromey.com>
14815         * dwarf2/expr.c: Rename from dwarf2expr.c.
14816         * dwarf2/expr.h: Rename from dwarf2expr.h.
14817         * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14818         * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14819         * dwarf2/frame.c: Rename from dwarf2-frame.c.
14820         * dwarf2/frame.h: Rename from dwarf2-frame.h.
14821         * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14822         * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14823         * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14824         * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14825         * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14826         * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14827         * dwarf2/loc.c: Rename from dwarf2loc.c.
14828         * dwarf2/loc.h: Rename from dwarf2loc.h.
14829         * dwarf2/read.c: Rename from dwarf2read.c.
14830         * dwarf2/read.h: Rename from dwarf2read.h.
14831         * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14832         amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14833         compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14834         compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14835         gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14836         hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14837         i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14838         m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14839         msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14840         riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14841         s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14842         sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14843         tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14844         Update.
14845         * Makefile.in (COMMON_SFILES): Update.
14846         (HFILES_NO_SRCDIR): Update.
14848 2020-02-08  Tom Tromey  <tom@tromey.com>
14850         * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14851         (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14853 2020-02-08  Tom Tromey  <tom@tromey.com>
14855         * dwarf2read.h (struct die_info): Don't declare.
14857 2020-02-08  Tom Tromey  <tom@tromey.com>
14859         * dwarf2read.h (die_info_ptr): Remove typedef.
14861 2020-02-08  Tom Tromey  <tom@tromey.com>
14863         * dwarf2read.c (read_call_site_scope)
14864         (handle_data_member_location, dwarf2_add_member_fn)
14865         (mark_common_block_symbol_computed, read_common_block)
14866         (attr_to_dynamic_prop, partial_die_info::read)
14867         (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14868         (dwarf2_symbol_mark_computed, set_die_type): Update.
14869         * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14870         method.
14871         (attr_form_is_block): Don't declare.
14872         * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14874 2020-02-08  Tom Tromey  <tom@tromey.com>
14876         * dwarf2read.c (dwarf2_find_base_address, )
14877         (read_call_site_scope, rust_containing_type)
14878         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14879         (handle_data_member_location, dwarf2_add_member_fn)
14880         (get_alignment, read_structure_type, process_structure_scope)
14881         (mark_common_block_symbol_computed, read_common_block)
14882         (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14883         (partial_die_info::read, read_attribute_value, new_symbol)
14884         (lookup_die_type, dwarf2_get_ref_die_offset)
14885         (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14886         (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14887         (dwarf2_symbol_mark_computed): Update.
14888         * dwarf2/attribute.h (struct attribute) <value_as_address,
14889         form_is_section_offset, form_is_constant, form_is_ref>: Declare
14890         methods.
14891         (value_as_address, attr_form_is_section_offset)
14892         (attr_form_is_constant, attr_form_is_ref): Don't declare.
14893         * dwarf2/attribute.c (attribute::value_as_address)
14894         (attribute::form_is_section_offset, attribute::form_is_constant)
14895         (attribute::form_is_ref): Now methods.
14897 2020-02-08  Tom Tromey  <tom@tromey.com>
14899         * dwarf2read.c (struct attribute, DW_STRING)
14900         (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14901         (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14902         (attr_form_is_block, attr_form_is_section_offset)
14903         (attr_form_is_constant, attr_form_is_ref): Move.
14904         * dwarf2/attribute.h: New file.
14905         * dwarf2/attribute.c: New file, from dwarf2read.c.
14906         * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14908 2020-02-08  Tom Tromey  <tom@tromey.com>
14910         * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14911         (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14912         Move.
14913         (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14914         (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14915         (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14916         abbrev.c.
14917         * dwarf2/abbrev.h: New file.
14918         * dwarf2/abbrev.c: New file, from dwarf2read.c.
14919         * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14921 2020-02-08  Tom Tromey  <tom@tromey.com>
14923         * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14924         (dwarf2_section_size, dwarf2_get_section_info)
14925         (create_signatured_type_table_from_debug_names)
14926         (create_addrmap_from_aranges, read_debug_names_from_section)
14927         (get_gdb_index_contents_from_section, read_comp_unit_head)
14928         (error_check_comp_unit_head, read_abbrev_offset)
14929         (create_debug_type_hash_table, init_cu_die_reader)
14930         (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14931         (read_comp_units_from_section, create_cus_hash_table)
14932         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14933         (create_dwp_v2_section, dwarf2_rnglists_process)
14934         (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14935         (abbrev_table_read_table, read_indirect_string_at_offset_from)
14936         (read_indirect_string_from_dwz, read_addr_index_1)
14937         (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14938         (dwarf_decode_macro_bytes, dwarf_decode_macros)
14939         (fill_in_loclist_baton): Update.
14940         * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14941         get_containing_section, get_bfd_owner, get_bfd_section,
14942         get_file_name, get_id, get_flags, empty, read>: Declare methods.
14943         (dwarf2_read_section, get_section_name, get_section_file_name)
14944         (get_containing_section, get_section_bfd_owner)
14945         (get_section_bfd_section, get_section_name, get_section_file_name)
14946         (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14947         declare.
14948         * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14949         (dwarf2_section_info::get_bfd_owner)
14950         (dwarf2_section_info::get_bfd_section)
14951         (dwarf2_section_info::get_name)
14952         (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14953         (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14954         (dwarf2_section_info::read): Now methods.
14955         * dwarf-index-write.c (class debug_names): Update.
14957 2020-02-08  Tom Tromey  <tom@tromey.com>
14959         * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14960         Move to dwarf2/section.h.
14961         * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14962         (get_section_bfd_section, get_section_name)
14963         (get_section_file_name, get_section_id, get_section_flags)
14964         (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14965         dwarf2/section.c.
14966         * dwarf2/section.h: New file.
14967         * dwarf2/section.c: New file, from dwarf2read.c.
14968         * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14970 2020-02-08  Tom Tromey  <tom@tromey.com>
14972         * dwarf2read.h (read_unsigned_leb128): Don't declare.
14973         * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14974         (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14975         (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14976         (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14977         * dwarf2/leb.h: New file, from dwarf2read.c.
14978         * dwarf2/leb.c: New file, from dwarf2read.c.
14979         * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14980         Remove.
14981         * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14982         (COMMON_SFILES): Add dwarf2/leb.c.
14984 2020-02-08  Joel Brobecker  <brobecker@adacore.com>
14986         GDB 9.1 released.
14988 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
14990         PR gdb/25190:
14991         * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14992         * gdb/remote.c (remote_console_output): Update.
14993         * gdb/ui-file.c (fputs_unfiltered): Rename to...
14994         (ui_file_puts): ...this.
14995         * gdb/ui-file.h (ui_file_puts): Add declaration.
14996         * gdb/utils.c (emit_style_escape): Update.
14997         (flush_wrap_buffer): Update.
14998         (fputs_maybe_filtered): Update.
14999         (fputs_unfiltered): Add function.
15001 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
15003         * gdb/event-loop.c (gdb_wait_for_event): Update.
15004         * gdb/printcmd.c (printf_command): Update.
15005         * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15006         * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15007         (gdb_os_flush_stderr): Update.
15008         * gdb/remote.c (remote_console_output): Update.
15009         * gdb/ui-file.c (gdb_flush): Rename to...
15010         (ui_file_flush): ...this.
15011         (stderr_file::write): Update.
15012         (stderr_file::puts): Update.
15013         * gdb/ui-file.h (gdb_flush): Rename to...
15014         (ui_file_flush): ...this.
15015         * gdb/utils.c (gdb_flush): Add function.
15016         * gdb/utils.h (gdb_flush): Add declaration.
15018 2020-02-07  Tom Tromey  <tromey@adacore.com>
15020         PR breakpoints/24915:
15021         * source.c (find_and_open_source): Do not check basenames_may_differ.
15023 2020-02-07  Tom Tromey  <tom@tromey.com>
15025         * README: Update gdbserver documentation.
15026         * gdbserver: Move to top level.
15027         * configure.tgt (build_gdbserver): Remove.
15028         * configure.ac: Remove --enable-gdbserver.
15029         * configure: Rebuild.
15030         * Makefile.in (distclean): Don't mention gdbserver.
15032 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15034         * source-cache.c (source_cache::ensure): Surround
15035         get_plain_source_lines with a try/catch.
15036         (source_cache::get_line_charpos): Get rid of try/catch
15037         and only check for the return value of "ensure".
15038         * tui/tui-source.c (tui_source_window::set_contents):
15039         Simplify "nlines" calculation.
15041 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15043         * MAINTAINERS (Write After Approval): Add myself.
15045 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15047         * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15048         function call.
15050 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15052         * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15054 2020-02-05  Maciej W. Rozycki  <macro@wdc.com>
15056         * nat/riscv-linux-tdesc.h: New file.
15057         * nat/riscv-linux-tdesc.c: New file, taking code from...
15058         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15059         ... here.
15060         * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15061         NATDEPFILES.
15063 2020-02-04  Andrew Burgess  <andrew.burgess@embecosm.com>
15065         * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15066         we don't set the fake simulator ptid to the null_ptid.
15068 2020-02-03  Simon Marchi  <simon.marchi@efficios.com>
15070         * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15071         * gdbthread.h (class thread_info) <resumed>: Likewise.
15072         * infrun.c (resume_1): Likewise.
15073         (proceed): Likewise.
15074         (infrun_thread_stop_requested): Likewise.
15075         (stop_all_threads): Likewise.
15076         (handle_inferior_event): Likewise.
15077         (restart_threads): Likewise.
15078         (finish_step_over): Likewise.
15079         (keep_going_stepped_thread): Likewise.
15080         * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15081         (linux_handle_extended_wait): Likewise.
15082         * record-btrace.c (get_thread_current_frame_id): Likewise.
15083         * record-full.c (record_full_wait_1): Likewise.
15084         * remote.c (remote_target::process_initial_stop_replies): Likewise.
15085         * target.c (target_resume): Likewise.
15086         * thread.c (set_running_thread): Likewise.
15088 2020-02-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
15090         * f-valprint.c (f77_print_array_1): Changed datatype of index
15091         variable to LONGEST from int to enable it to contain bound
15092         values correctly.
15094 2020-02-03  Maciej W. Rozycki  <macro@wdc.com>
15096         * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15097         (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15098         offsets according to FLEN determined.
15099         (riscv_linux_nat_target::read_description): Determine FLEN
15100         dynamically.
15101         (riscv_linux_nat_target::fetch_registers): Size regset buffer
15102         according to FLEN determined.
15103         (riscv_linux_nat_target::store_registers): Likewise.
15105 2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
15107         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15108         when reg->group is empty and reggroup is not.
15110 2020-01-31  Tom Tromey  <tromey@adacore.com>
15112         * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15113         Call beneath target's mourn_inferior after unpushing.
15115 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15117         PR tui/9765
15118         * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15119         have enough lines to fill the screen, still return the lowest
15120         address we found.
15122 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15124         * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15125         '-', '<', and '>' commands.
15127 2020-01-29  Pedro Alves  <palves@redhat.com>
15128             Sergio Durigan Junior  <sergiodj@redhat.com>
15130         * infcmd.c (construct_inferior_arguments): Assert that
15131         'argc' is greater than 0.
15133 2020-01-29  Luis Machado  <luis.machado@linaro.org>
15135         * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15136         (BRK_INSN_MASK): Define to 0xd4200000.
15137         (aarch64_program_breakpoint_here_p): New function.
15138         (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15139         * arch-utils.c (default_program_breakpoint_here_p): Moved from
15140         breakpoint.c.
15141         * arch-utils.h (default_program_breakpoint_here_p): Moved from
15142         breakpoint.h
15143         * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15144         call gdbarch_program_breakpoint_here_p.
15145         (program_breakpoint_here): Moved to arch-utils.c, renamed to
15146         default_program_breakpoint_here_p, changed return type to bool and
15147         simplified.
15148         * breakpoint.h (program_breakpoint_here): Moved prototype to
15149         arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15150         return type to bool.
15151         * gdbarch.c: Regenerate.
15152         * gdbarch.h: Regenerate.
15153         * gdbarch.sh (program_breakpoint_here_p): New method.
15154         * infrun.c (handle_signal_stop): Call
15155         gdbarch_program_breakpoint_here_p.
15157 2020-01-26  Tom Tromey  <tom@tromey.com>
15159         * ctfread.c (struct ctf_fp_info): Reindent.
15160         (_initialize_ctfread): Remove.
15162 2020-01-26  Tom Tromey  <tom@tromey.com>
15164         * psymtab.c (partial_map_expand_apply)
15165         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15166         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15167         (psym_print_stats, psym_expand_symtabs_for_function)
15168         (psym_map_symbol_filenames, psym_map_matching_symbols)
15169         (psym_expand_symtabs_matching)
15170         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15171         (maintenance_check_psymtabs): Use new methods.
15172         * psympriv.h (struct partial_symtab) <readin_p,
15173         get_compunit_symtab>: New methods.
15174         <readin, compunit_symtab>: Remove members.
15175         (struct standard_psymtab): New.
15176         (struct legacy_psymtab): Derive from standard_psymtab.
15177         * dwarf2read.h (struct dwarf2_psymtab): Derive from
15178         standard_psymtab.
15179         * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15181 2020-01-26  Tom Tromey  <tom@tromey.com>
15183         * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15184         read_dependencies.  Add assert.
15185         * psymtab.c (partial_symtab::read_dependencies): New method.
15186         * psympriv.h (struct partial_symtab) <read_dependencies>: New
15187         method.
15188         * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15189         * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15190         read_dependencies.
15191         * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15192         Add assert.
15194 2020-01-26  Tom Tromey  <tom@tromey.com>
15196         * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15197         Call expand_psymtab.
15198         (xcoff_read_symtab): Call expand_psymtab.
15199         (xcoff_start_psymtab, xcoff_end_psymtab): Set
15200         legacy_expand_psymtab.
15201         * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15202         method.
15203         (struct legacy_psymtab) <expand_psymtab>: Implement.
15204         <legacy_expand_psymtab>: New member.
15205         * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15206         (parse_partial_symbols): Set legacy_expand_psymtab.
15207         (psymtab_to_symtab_1): Change argument order.  Call
15208         expand_psymtab.
15209         (new_psymtab): Set legacy_expand_psymtab.
15210         * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15211         * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15212         expand_psymtab.
15213         (dwarf2_psymtab::expand_psymtab): Rename from
15214         psymtab_to_symtab_1.  Call expand_psymtab.
15215         * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15216         (dbx_end_psymtab): Likewise.
15217         (dbx_psymtab_to_symtab_1): Change argument order. Call
15218         expand_psymtab.
15219         (dbx_read_symtab): Call expand_psymtab.
15220         * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15221         (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15222         (ctf_psymtab::read_symtab): Call expand_psymtab.
15224 2020-01-26  Tom Tromey  <tom@tromey.com>
15226         * xcoffread.c (xcoff_read_symtab): Remove prints.  Add assert.
15227         * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15228         messages.
15229         * mdebugread.c (mdebug_read_symtab): Remove prints.
15230         * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints.  Add
15231         assert.
15232         * dbxread.c (dbx_read_symtab): Remove prints.  Add assert.
15234 2020-01-26  Tom Tromey  <tom@tromey.com>
15236         * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15237         (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15238         (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15239         legacy_symtab.
15240         * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15241         * psymtab.c (psymtab_to_symtab): Call method.
15242         (dump_psymtab): Update.
15243         * psympriv.h (struct partial_symtab): Add virtual destructor.
15244         <read_symtab>: New method.
15245         (struct legacy_symtab): New.
15246         * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15247         (struct pst_map) <pst>: Now a legacy_psymtab.
15248         (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15249         (new_psymtab): Use legacy_psymtab.
15250         * dwarf2read.h (struct dwarf2_psymtab): New.
15251         (struct dwarf2_per_cu_data) <psymtab>: Use it.
15252         * dwarf2read.c (dwarf2_create_include_psymtab)
15253         (dwarf2_build_include_psymtabs, create_type_unit_group)
15254         (create_partial_symtab, process_psymtab_comp_unit_reader)
15255         (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15256         (set_partial_user): Use dwarf2_psymtab.
15257         (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15258         (psymtab_to_symtab_1, process_full_comp_unit)
15259         (process_full_type_unit, dwarf2_ranges_read)
15260         (dwarf2_get_pc_bounds, psymtab_include_file_name)
15261         (dwarf_decode_lines): Use dwarf2_psymtab.
15262         * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15263         (add_address_entry_worker, write_one_signatured_type)
15264         (recursively_count_psymbols, recursively_write_psymbols)
15265         (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15266         (write_debug_names): Likewise.
15267         * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15268         <pst>: Now a legacy_psymtab.
15269         (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15270         (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15271         (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15272         * ctfread.c (struct ctf_psymtab): New.
15273         (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15274         ctf_psymtab.
15275         (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15276         (create_partial_symtab): Return a ctf_psymtab.
15277         (scan_partial_symbols): Update.
15279 2020-01-26  Tom Tromey  <tom@tromey.com>
15281         * xcoffread.c (xcoff_start_psymtab): Use new.
15282         * psymtab.c (partial_symtab::partial_symtab): New constructor,
15283         renamed from start_psymtab_common.
15284         * psympriv.h (struct partial_symtab): Add new constructor.
15285         (start_psymtab_common): Don't declare.
15286         * mdebugread.c (parse_partial_symbols): Use new.
15287         * dwarf2read.c (create_partial_symtab): Use new.
15288         * dbxread.c (start_psymtab): Use new.
15289         * ctfread.c (create_partial_symtab): Use new.
15291 2020-01-26  Tom Tromey  <tom@tromey.com>
15293         * xcoffread.c (xcoff_end_psymtab): Use new.
15294         * psymtab.c (start_psymtab_common): Use new.
15295         (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15296         Update.
15297         * psympriv.h (struct partial_symtab): Add parameters to
15298         constructor.  Don't inline.
15299         (allocate_psymtab): Don't declare.
15300         * mdebugread.c (new_psymtab): Use new.
15301         * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15302         * dbxread.c (dbx_end_psymtab): Use new.
15304 2020-01-26  Tom Tromey  <tom@tromey.com>
15306         * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15307         allocate_psymtab.  Update documentation.
15308         * psymtab.c (psymtab_storage::install_psymtab): Rename from
15309         allocate_psymtab.  Do not use new.
15310         (allocate_psymtab): Use new.  Update.
15312 2020-01-26  Tom Tromey  <tom@tromey.com>
15314         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15315         * psymtab.c (psym_print_stats): Update.
15316         * psympriv.h (struct partial_symtab) <readin,
15317         psymtabs_addrmap_supported, anonymous>: Now bool.
15318         * mdebugread.c (psymtab_to_symtab_1): Update.
15319         * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15320         (build_type_psymtabs_reader, psymtab_to_symtab_1)
15321         (process_full_comp_unit, process_full_type_unit): Update.
15322         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15323         * ctfread.c (psymtab_to_symtab): Update.
15325 2020-01-26  Tom Tromey  <tom@tromey.com>
15327         * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15328         * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15329         * psymtab.c (psymtab_storage): Delete psymtabs.
15330         (psymtab_storage::allocate_psymtab): Use new.
15331         (psymtab_storage::discard_psymtab): Use delete.
15332         * psympriv.h (struct partial_symtab): Add constructor and
15333         initializers.
15335 2020-01-26  Tom Tromey  <tom@tromey.com>
15337         * machoread.c: Do not include psympriv.h.
15339 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15341         * NEWS: Mention the new option and the set/show commands.
15343 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15345         * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15346         (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15347         (validate_exec_file): New variables, enums, functions.
15348         (exec_file_locate_attach, print_section_info): Style the filenames.
15349         (_initialize_exec): Install show_exec_file_mismatch_command and
15350          set_exec_file_mismatch_command.
15351         * gdbcore.h (validate_exec_file): Declare.
15352         * infcmd.c (attach_command): Call validate_exec_file.
15353         * remote.c ( remote_target::remote_add_inferior): Likewise.
15355 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15357         * frame.c (find_frame_sal): Move call to get_next_frame into more
15358         inner scope.
15359         * inline-frame.c (inilne_state) <inline_state>: Update argument
15360         types.
15361         (inilne_state) <skipped_symbol>: Rename to...
15362         (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15363         (skip_inline_frames): Build vector of skipped symbols and use this
15364         to reate the inline_state.
15365         (inline_skipped_symbol): Add a comment and some assertions, fetch
15366         skipped symbol from the list.
15368 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15370         * buildsym.c (lte_is_less_than): Delete.
15371         (buildsym_compunit::end_symtab_with_blockvector): Create local
15372         lambda function to sort line table entries, and use
15373         std::stable_sort instead of std::sort.
15374         * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15375         markers when looking for a previous line.
15377 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15379         * dwarf2read.c (lnp_state_machine::record_line): Include
15380         end_sequence parameter in debug print out.  Record the line if we
15381         are at an end_sequence marker even if it's not the start of a
15382         statement.
15383         * symmisc.c (maintenance_print_one_line_table): Print end of
15384         sequence markers with 'END' not '0'.
15386 2020-01-24  Pedro Alves  <palves@redhat.com>
15388         PR gdb/25410
15389         * thread.c (scoped_restore_current_thread::restore): Use
15390         switch_to_inferior_no_thread.
15391         * exec.c: Include "progspace-and-thread.h".
15392         (add_target_sections, remove_target_sections):
15393         scoped_restore_current_pspace_and_thread instead of
15394         scoped_restore_current_thread.
15395         * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15396         and aspace to the inferior before calling clone_program_space.
15397         Remove stale comment.
15399 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15401         * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15402         (arm_netbsd_nat_target::fetch_registers): ...this.
15403         (arm_nbsd_nat_target::store_registers): Rename to...
15404         (arm_netbsd_nat_target::store_registers): ...this.
15406 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15408         * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15409         register_t.
15411 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15413         * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15414         Update comment.
15415         * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15416         Likewise.
15417         * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15418         * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15419         the correct replacement (iterate_over_regset_sections).
15420         * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15421         Update comment.
15423 2020-01-24  Graham Markall  <graham.markall@embecosm.com>
15425         PR gdb/23718
15426         * gdb/python/python.c (execute_gdb_command): Call
15427         async_enable_stdin in catch block.
15429 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15431         * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15432         SWITCH_THRU_ALL_UIS.
15434 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15436         PR tui/9765
15437         * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15438         comment, add extra parameter, and update to store previous symbol
15439         when appropriate.
15440         * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15441         add extra parameter.
15442         * tui/tui-disasm.c (tui_disassemble): Update header comment,
15443         remove unneeded parameter, add try/catch around gdb_print_insn,
15444         rewrite to add items to asm_lines vector.
15445         (tui_find_backward_disassembly_start_address): New function.
15446         (tui_find_disassembly_address): Updated throughout.
15447         (tui_disasm_window::set_contents): Update for changes to
15448         tui_disassemble.
15449         (tui_disasm_window::do_scroll_vertical): No need to adjust the
15450         number of lines to scroll.
15452 2020-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
15454         * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15455         (SECT_OFF_DATA): Likewise.
15456         (SECT_OFF_RODATA): Likewise.
15457         (SECT_OFF_TEXT): Likewise.
15458         (SECT_OFF_BSS): Likewise.
15459         (struct objfile) <text_section_offset, data_section_offset>: New
15460         methods.
15461         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15462         objfile::text_section_offset.
15463         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15464         * coffread.c (coff_symtab_read): Likewise.
15465         (enter_linenos): Likewise.
15466         (process_coff_symbol): Likewise.
15467         * ctfread.c (get_objfile_text_range): Likewise.
15468         * dtrace-probe.c (dtrace_probe::get_relocated_address):
15469         Use objfile::data_section_offset.
15470         * dwarf2-frame.c (execute_cfa_program): Use
15471         objfile::text_section_offset.
15472         (dwarf2_frame_find_fde): Likewise.
15473         * dwarf2read.c (create_addrmap_from_index): Likewise.
15474         (create_addrmap_from_aranges): Likewise.
15475         (dw2_find_pc_sect_compunit_symtab): Likewise.
15476         (process_psymtab_comp_unit_reader): Likewise.
15477         (add_partial_symbol): Likewise.
15478         (add_partial_subprogram): Likewise.
15479         (process_full_comp_unit): Likewise.
15480         (read_file_scope): Likewise.
15481         (read_func_scope): Likewise.
15482         (read_lexical_block_scope): Likewise.
15483         (read_call_site_scope): Likewise.
15484         (dwarf2_rnglists_process): Likewise.
15485         (dwarf2_ranges_process): Likewise.
15486         (dwarf2_ranges_read): Likewise.
15487         (dwarf_decode_lines_1): Likewise.
15488         (new_symbol): Likewise.
15489         (dwarf2_fetch_die_loc_sect_off): Likewise.
15490         (dwarf2_per_cu_text_offset): Likewise.
15491         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15492         * hppa-tdep.c (read_unwind_info): Likewise.
15493         * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15494         * psympriv.h (struct partial_symtab): Likewise.
15495         * psymtab.c (find_pc_sect_psymtab): Likewise.
15496         * solib-svr4.c (enable_break): Likewise.
15497         * stap-probe.c (relocate_address): Use
15498         objfile::data_section_offset.
15499         * xcoffread.c (enter_line_range): Use
15500         objfile::text_section_offset.
15501         (read_xcoff_symtab): Likewise.
15503 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
15505         * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15506         declaration to narrower scopes.
15508 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
15510         * darwin-nat.h (struct darwin_exception_msg, enum
15511         darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15512         Move up.
15513         (class darwin_nat_target) <wait_1, check_new_threads,
15514         decode_exception_message, decode_message, stop_inferior,
15515         init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15516         * darwin-nat.c (darwin_check_new_threads): Rename to...
15517         (darwin_nat_target::check_new_threads): ... this.
15518         (darwin_suspend_inferior_it): Remove.
15519         (darwin_decode_exception_message): Rename to...
15520         (darwin_nat_target::decode_exception_message): ... this.
15521         (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15522         (darwin_decode_message): Rename to...
15523         (darwin_nat_target::decode_message): ... this.
15524         (cancel_breakpoint): Rename to...
15525         (darwin_nat_target::cancel_breakpoint): ... this.
15526         (darwin_wait): Rename to...
15527         (darwin_nat_target::wait_1): ... this.  Use range-based for loop
15528         instead of iterate_over_inferiors.
15529         (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15530         (darwin_stop_inferior): Rename to...
15531         (darwin_nat_target::stop_inferior): ... this.
15532         (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15533         (darwin_init_thread_list): Rename to...
15534         (darwin_nat_target::init_thread_list): ... this.
15535         (darwin_ptrace_him): Rename to...
15536         (darwin_nat_target::ptrace_him): ... this.
15537         (darwin_nat_target::create_inferior): Pass lambda function to
15538         fork_inferior.
15539         (darwin_nat_target::detach): Call stop_inferior instead of
15540         darwin_stop_inferior.
15541         * fork-inferior.h (fork_inferior): Change init_trace_fun
15542         parameter to gdb::function_view.
15543         * fork-inferior.c (fork_inferior): Likewise.
15545 2020-01-23  Hannes Domani  <ssbssa@yahoo.de>
15547         * i386-cygwin-tdep.c (core_process_module_section): Update.
15548         * windows-nat.c (struct lm_info_windows): Add text_offset.
15549         (windows_xfer_shared_libraries): Update.
15550         * windows-tdep.c (windows_xfer_shared_library):
15551         Add text_offset_cached argument.
15552         * windows-tdep.h (windows_xfer_shared_library): Update.
15554 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15556         * gdbarch.sh: Add declaration for _initialize_gdbarch.
15558 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15560         * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15561         (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15562         replace with range-based for.
15563         (gdbsim_interrupt_inferior): Remove.
15564         (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15565         with a range-based for.  Inline code from
15566         gdbsim_interrupt_inferior.
15568 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15570         * infrun.c (proceed): Fix indentation.
15572 2020-01-21  Tom Tromey  <tromey@adacore.com>
15574         * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15575         * python/python.c (python_extension_ops): Update.
15576         (gdbpy_colorize): New function.
15577         * python/lib/gdb/__init__.py (colorize): New function.
15578         * extension.h (ext_lang_colorize): Declare.
15579         * extension.c (ext_lang_colorize): New function.
15580         * extension-priv.h (struct extension_language_ops) <colorize>: New
15581         member.
15582         * cli/cli-style.c (_initialize_cli_style): Update help text.
15584 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15586         * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15587         <cond>: Change type to bool.
15588         (aarch64_displaced_step_b_cond): Update cond to use bool type.
15589         (aarch64_displaced_step_cb): Likewise.
15590         (aarch64_displaced_step_tb): Likewise.
15592 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15594         * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15595         output.
15597 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15599         * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15600         <pc_adjust>: Adjust the documentation.
15601         (aarch64_displaced_step_fixup): Check if PC really moved before
15602         adjusting it.
15604 2020-01-19  Tom Tromey  <tom@tromey.com>
15606         * disasm.c (~gdb_disassembler): New destructor.
15607         (gdb_buffered_insn_length): Call disassemble_free_target.
15608         * disasm.h (class gdb_disassembler): Declare destructor.  Use
15609         DISABLE_COPY_AND_ASSIGN.
15611 2020-01-19  Tom Tromey  <tom@tromey.com>
15613         * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15614         (die_reader_func_ftype): Remove.
15615         (cutu_reader): New class.
15616         (dw2_get_file_names_reader): Remove "data" parameter.
15617         (dw2_get_file_names): Use cutu_reader.
15618         (create_debug_type_hash_table): Update.
15619         (read_cutu_die_from_dwo): Update comment.
15620         (lookup_dwo_unit): Add dwo_name parameter.
15621         (cutu_reader::init_tu_and_read_dwo_dies): Now a method.  Remove
15622         die_reader_func_ftype and data parameters.
15623         (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15624         Remove die_reader_func_ftype and data parameters.
15625         (~cutu_reader): New; from init_cutu_and_read_dies.
15626         (cutu_reader::cutu_reader): Rename from
15627         init_cutu_and_read_dies_no_follow.  Remove die_reader_func_ftype
15628         and data parameters.
15629         (init_cutu_and_read_dies_simple): Remove.
15630         (struct process_psymtab_comp_unit_data): Remove.
15631         (process_psymtab_comp_unit_reader): Remove data parameter; add
15632         want_partial_unit and pretend_language parameters.
15633         (process_psymtab_comp_unit): Use cutu_reader.
15634         (build_type_psymtabs_reader): Remove data parameter.
15635         (build_type_psymtabs_1): Use cutu_reader.
15636         (process_skeletonless_type_unit): Likewise.
15637         (load_partial_comp_unit_reader): Remove.
15638         (load_partial_comp_unit): Use cutu_reader.
15639         (load_full_comp_unit_reader): Remove.
15640         (load_full_comp_unit): Use cutu_reader.
15641         (struct create_dwo_cu_data): Remove.
15642         (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15643         dwo_unit parameters.
15644         (create_cus_hash_table): Use cutu_reader.
15645         (struct dwarf2_read_addr_index_data): Remove.
15646         (dwarf2_read_addr_index_reader): Remove.
15647         (dwarf2_read_addr_index): Use cutu_reader.
15648         (read_signatured_type_reader): Remove.
15649         (read_signatured_type): Use cutu_reader.
15651 2020-01-19  Tom Tromey  <tom@tromey.com>
15653         * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15654         * tui/tui-wingeneral.h (class tui_suppress_output): New.
15655         (tui_wrefresh): Declare.
15656         * tui/tui-wingeneral.c (suppress_output): New global.
15657         (tui_suppress_output, ~tui_suppress_output): New constructor and
15658         destructor.
15659         (tui_wrefresh): New function.
15660         (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15661         (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15662         * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15663         method.
15664         * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15665         tui_wrefresh.
15666         (tui_data_window::no_refresh): New method.
15667         (tui_data_item_window::refresh_window): Call tui_wrefresh.
15668         (tui_reg_command): Use tui_suppress_output
15669         * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15670         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15671         method.
15672         * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15674 2020-01-19  Tom Tromey  <tom@tromey.com>
15676         * tui/tui-winsource.c (tui_update_source_windows_with_line):
15677         Handle case where symtab is null.
15679 2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
15681         * linux-fork.c (one_fork_p): Simplify.
15683 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15685         * top.c (struct qt_args): Remove.
15686         (kill_or_detach): Change return type to void, replace `void *`
15687         parameter with a proper one.
15688         (print_inferior_quit_action):  Likewise.
15689         (quit_confirm): Use range-based for loop to iterate over inferiors.
15690         (quit_force): Likewise.
15692 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15694         * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15695         `void *` parameter with proper parameters.
15696         (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15697         (print_one_inferior): Change return type to void, replace `void *`
15698         parameter with proper parameters.
15699         (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15700         inferiors.
15701         (get_other_inferior): Remove.
15702         (mi_cmd_remove_inferior): Use range-based loop to iterate over
15703         inferiors.
15705 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15707         * mi/mi-interp.c (report_initial_inferior): Remove.
15708         (mi_interp::init): Use range-based for to iterate over inferiors.
15710 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15712         * python/py-inferior.c (build_inferior_list): Remove.
15713         (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15715 2020-01-16  Christian Biesinger  <cbiesinger@google.com>
15717         * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15718         (btrace_stitch_trace): Likewise.
15719         * charset.c (intermediate_encoding): Likewise (vaild).
15720         * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15721         * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15722         * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15724 2020-01-16  Hannes Domani  <ssbssa@yahoo.de>
15726         * windows-tdep.c (windows_get_tlb_type):
15727         Add rtl_user_process_parameters type.
15729 2020-01-16  Pedro Alves  <palves@redhat.com>
15730             Norbert Lange  <nolange79@gmail.com>
15732         PR build/24805
15733         * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15734         (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15735         (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15736         (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15737         (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15738         (ps_plog): Redeclare exported functions with default visibility.
15740 2020-01-16  Nitika Achra  <Nitika.Achra@amd.com>
15742         * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15743         DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15745 2020-01-15  Simon Marchi  <simon.marchi@efficios.com>
15747         * infcmd.c (post_create_inferior): Use get_thread_regcache
15748         instead of get_current_regcache.
15750 2020-01-14  Tom Tromey  <tom@tromey.com>
15752         PR symtab/12535:
15753         * python/python.c (gdbpy_decode_line): Treat empty string the same
15754         as no argument.
15756 2020-01-14  Tom Tromey  <tom@tromey.com>
15758         * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15760 2020-01-14  Tom Tromey  <tom@tromey.com>
15762         * nat/linux-btrace.c: Don't include <config.h>.
15763         * nat/linux-ptrace.c: Don't include <config.h>.
15764         * nat/x86-linux-dregs.c: Don't include <config.h>.
15766 2020-01-14  Tom Tromey  <tom@tromey.com>
15768         * configure: Rebuild.
15769         * configure.ac: Move many checks to ../gdbsupport/common.m4.
15771 2020-01-14  Tom Tromey  <tom@tromey.com>
15773         * nat/x86-linux-dregs.c: Include configh.h.
15774         * nat/linux-ptrace.c: Include configh.h.
15775         * nat/linux-btrace.c: Include configh.h.
15776         * defs.h: Include config.h, bfd.h.
15777         * configure.ac: Don't source common.host.
15778         (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15779         * configure: Rebuild.
15780         * acinclude.m4: Update path.
15781         * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15782         (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15783         (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15784         (CLIBS): Add LIBSUPPORT.
15785         (CDEPS): Likewise.
15786         (COMMON_SFILES): Remove gdbsupport files.
15787         (HFILES_NO_SRCDIR): Likewise.
15788         (stamp-version): Update path to create-version.sh.
15789         (ALLDEPFILES): Remove gdbsupport files.
15791 2020-01-14  Tom Tromey  <tom@tromey.com>
15793         * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15794         USE_WIN32API when needed.
15795         * configure.ac (USE_WIN32API): Don't define.
15796         (WIN32LIBS): Use WIN32APILIBS.
15797         * configure: Rebuild.
15799 2020-01-14  Tom Tromey  <tom@tromey.com>
15801         * configure: Rebuild.
15802         * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15804 2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15806         * skip.c (skip_function_command): Make skip w/o arguments use the
15807         name of the inlined function if pc is inside any inlined function.
15809 2020-01-14  Luis Machado  <luis.machado@linaro.org>
15811         * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15812         * infrun.c (resume_1): Likewise.
15813         (handle_inferior_event): Remove stale comment.
15814         * linux-nat.c (linux_nat_target::resume): Update comments.
15815         (save_stop_reason): Likewise.
15816         (linux_nat_filter_event): Likewise.
15817         * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15819 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
15821         * elfread.c (record_minimal_symbol): Set section index to 0 for
15822         non-allocatable sections.
15825 2020-01-13  Ali Tamur <tamur@google.com>
15827         * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15828         (dwarf2_cu): Add str_offsets_base field.  Change the type of addr_base
15829         to gdb::optional.  Update comments.
15830         (dwo_file): Update comments.
15831         (read_attribute): Update API to take an additional out parameter,
15832         need_reprocess.  This is used to mark attributes that need other
15833         attributes (e.g. str_offsets_base) for correct computation which may not
15834         have been read yet.
15835         (read_attribute_reprocess): New function declaration.
15836         (read_addr_index): Likewise.
15837         (read_dwo_str_index): Likewise.
15838         (read_stub_str_index): Likewise.
15839         (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15840         (lookup_addr_base): New function definition.
15841         (lookup_ranges_base): Likewise.
15842         (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15843         lookup_ranges_base.
15844         (init_cutu_and_read_dies): Update comments.
15845         (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15846         unit.  This is used to inherit parent's str_offsets_base and addr_base.
15847         Update comments.
15848         (init_cutu_and_read_dies_simple): Reflect API changes.
15849         (skip_one_die): Reflect API changes.  Handle DW_FORM_rnglistx.
15850         (create_cus_hash_table): Change API to take parent compile unit.  
15851         Reflect API changes.
15852         (open_and_init_dwo_file): Reflect API changes.
15853         (dwarf2_get_pc_bounds): Update comments.
15854         (dwarf2_record_block_ranges): Likewise.
15855         (read_full_die_1): Change implementation to reprocess attributes that
15856         need str_offsets_base and addr_base.
15857         (partial_die_info::read): Likewise.
15858         (read_attribute_reprocess): New function definition.
15859         (read_attribute_value): Change API to take an additional out parameter,
15860         need_reprocess.  Handle DW_FORM_rnglistx.  No longer trigger an error
15861         when a non-dwo compile unit has index based attributes.
15862         (read_attribute): Reflect API changes.
15863         (read_addr_index_1): Reflect API changes.  Update comments.
15864         (dwarf2_read_addr_index_data): Reflect API changes.
15865         (dwarf2_read_addr_index): Likewise.
15866         (read_str_index): Change API and implementation.  This becomes a helper
15867         to be used by the new string index related methods.  Update error
15868         message and comments.
15869         (read_dwo_str_index): New function definition.
15870         (read_stub_str_index): Likewise.
15871         * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15872         * symfile.h (dwarf2_debug_sections): Likewise.
15873         * xcoffread.c (dwarf2_debug_sections): Likewise.
15875 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15877         * gdbcore.h (struct core_fns) <core_read_registers>: Change
15878         core_reg_sect type to gdb_byte *.
15879         * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15880         * cris-tdep.c (fetch_core_registers): Likewise.
15881         * corelow.c (core_target::get_core_register_section): Change
15882         type of `contents` to gdb::byte_vector.
15884 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
15886         * tui/tui-wingeneral.c (box_win): Position the title in the center
15887         of the border.
15889 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
15891         * corelow.c (core_target::get_core_register_section): Use
15892           std::vector instead of alloca.
15894 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15896         * warning.m4: Add -Wmissing-declarations to build_warnings.
15897         * configure: Re-generate.
15899 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15901         * python/python.c (init__gdb_module): Add declaration.
15903 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15905         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15906         * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15907         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15908         * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15909         * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15910         * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15911         * ada-exp.y (_initialize_ada_exp): Add declaration.
15912         * ada-lang.c (_initialize_ada_language): Add declaration.
15913         * ada-tasks.c (_initialize_tasks): Add declaration.
15914         * agent.c (_initialize_agent): Add declaration.
15915         * aix-thread.c (_initialize_aix_thread): Add declaration.
15916         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15917         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15918         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15919         * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15920         * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15921         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15922         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15923         * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15924         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15925         * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15926         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15927         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15928         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15929         * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15930         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15931         * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15932         * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15933         * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15934         * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15935         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15936         * annotate.c (_initialize_annotate): Add declaration.
15937         * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15938         * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15939         * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15940         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15941         * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15942         * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15943         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15944         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15945         * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15946         * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15947         * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15948         * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15949         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15950         * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15951         * auto-load.c (_initialize_auto_load): Add declaration.
15952         * auxv.c (_initialize_auxv): Add declaration.
15953         * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15954         * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15955         * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15956         * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15957         * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15958         * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15959         * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15960         * breakpoint.c (_initialize_breakpoint): Add declaration.
15961         * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15962         * btrace.c (_initialize_btrace): Add declaration.
15963         * charset.c (_initialize_charset): Add declaration.
15964         * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15965         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15966         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15967         * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15968         * cli/cli-script.c (_initialize_cli_script): Add declaration.
15969         * cli/cli-style.c (_initialize_cli_style): Add declaration.
15970         * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15971         * coffread.c (_initialize_coffread): Add declaration.
15972         * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15973         * compile/compile.c (_initialize_compile): Add declaration.
15974         * complaints.c (_initialize_complaints): Add declaration.
15975         * completer.c (_initialize_completer): Add declaration.
15976         * copying.c (_initialize_copying): Add declaration.
15977         * corefile.c (_initialize_core): Add declaration.
15978         * corelow.c (_initialize_corelow): Add declaration.
15979         * cp-abi.c (_initialize_cp_abi): Add declaration.
15980         * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15981         * cp-support.c (_initialize_cp_support): Add declaration.
15982         * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15983         * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15984         * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15985         * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15986         * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15987         * ctfread.c (_initialize_ctfread): Add declaration.
15988         * d-lang.c (_initialize_d_language): Add declaration.
15989         * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15990         * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15991         * dbxread.c (_initialize_dbxread): Add declaration.
15992         * dcache.c (_initialize_dcache): Add declaration.
15993         * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15994         * disasm.c (_initialize_disasm): Add declaration.
15995         * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15996         * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15997         * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15998         * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15999         * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16000         * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16001         * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16002         * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16003         * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16004         * elfread.c (_initialize_elfread): Add declaration.
16005         * exec.c (_initialize_exec): Add declaration.
16006         * extension.c (_initialize_extension): Add declaration.
16007         * f-lang.c (_initialize_f_language): Add declaration.
16008         * f-valprint.c (_initialize_f_valprint): Add declaration.
16009         * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16010         * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16011         * filesystem.c (_initialize_filesystem): Add declaration.
16012         * findcmd.c (_initialize_mem_search): Add declaration.
16013         * findvar.c (_initialize_findvar): Add declaration.
16014         * fork-child.c (_initialize_fork_child): Add declaration.
16015         * frame-base.c (_initialize_frame_base): Add declaration.
16016         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16017         * frame.c (_initialize_frame): Add declaration.
16018         * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16019         * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16020         * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16021         * gcore.c (_initialize_gcore): Add declaration.
16022         * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16023         * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16024         * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16025         * gdbarch.c (_initialize_gdbarch): Add declaration.
16026         * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16027         * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16028         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16029         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16030         * go-lang.c (_initialize_go_language): Add declaration.
16031         * go32-nat.c (_initialize_go32_nat): Add declaration.
16032         * guile/guile.c (_initialize_guile): Add declaration.
16033         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16034         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16035         * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16036         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16037         * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16038         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16039         * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16040         * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16041         * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16042         * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16043         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16044         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16045         * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16046         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16047         * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16048         * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16049         * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16050         * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16051         * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16052         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16053         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16054         * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16055         * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16056         * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16057         * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16058         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16059         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16060         * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16061         * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16062         * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16063         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16064         * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16065         * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16066         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16067         * infcall.c (_initialize_infcall): Add declaration.
16068         * infcmd.c (_initialize_infcmd): Add declaration.
16069         * inflow.c (_initialize_inflow): Add declaration.
16070         * infrun.c (_initialize_infrun): Add declaration.
16071         * interps.c (_initialize_interpreter): Add declaration.
16072         * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16073         * jit.c (_initialize_jit): Add declaration.
16074         * language.c (_initialize_language): Add declaration.
16075         * linux-fork.c (_initialize_linux_fork): Add declaration.
16076         * linux-nat.c (_initialize_linux_nat): Add declaration.
16077         * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16078         * linux-thread-db.c (_initialize_thread_db): Add declaration.
16079         * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16080         * m2-lang.c (_initialize_m2_language): Add declaration.
16081         * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16082         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16083         * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16084         * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16085         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16086         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16087         * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16088         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16089         * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16090         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16091         * machoread.c (_initialize_machoread): Add declaration.
16092         * macrocmd.c (_initialize_macrocmd): Add declaration.
16093         * macroscope.c (_initialize_macroscope): Add declaration.
16094         * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16095         * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16096         * maint.c (_initialize_maint_cmds): Add declaration.
16097         * mdebugread.c (_initialize_mdebugread): Add declaration.
16098         * memattr.c (_initialize_mem): Add declaration.
16099         * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16100         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16101         * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16102         * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16103         * mi/mi-main.c (_initialize_mi_main): Add declaration.
16104         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16105         * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16106         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16107         * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16108         * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16109         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16110         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16111         * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16112         * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16113         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16114         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16115         * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16116         * mipsread.c (_initialize_mipsread): Add declaration.
16117         * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16118         * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16119         * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16120         * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16121         * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16122         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16123         * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16124         * nto-procfs.c (_initialize_procfs): Add declaration.
16125         * objc-lang.c (_initialize_objc_language): Add declaration.
16126         * observable.c (_initialize_observer): Add declaration.
16127         * opencl-lang.c (_initialize_opencl_language): Add declaration.
16128         * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16129         * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16130         * osabi.c (_initialize_gdb_osabi): Add declaration.
16131         * osdata.c (_initialize_osdata): Add declaration.
16132         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16133         * parse.c (_initialize_parse): Add declaration.
16134         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16135         * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16136         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16137         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16138         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16139         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16140         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16141         * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16142         * printcmd.c (_initialize_printcmd): Add declaration.
16143         * probe.c (_initialize_probe): Add declaration.
16144         * proc-api.c (_initialize_proc_api): Add declaration.
16145         * proc-events.c (_initialize_proc_events): Add declaration.
16146         * proc-service.c (_initialize_proc_service): Add declaration.
16147         * procfs.c (_initialize_procfs): Add declaration.
16148         * producer.c (_initialize_producer): Add declaration.
16149         * psymtab.c (_initialize_psymtab): Add declaration.
16150         * python/python.c (_initialize_python): Add declaration.
16151         * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16152         * record-btrace.c (_initialize_record_btrace): Add declaration.
16153         * record-full.c (_initialize_record_full): Add declaration.
16154         * record.c (_initialize_record): Add declaration.
16155         * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16156         * regcache.c (_initialize_regcache): Add declaration.
16157         * reggroups.c (_initialize_reggroup): Add declaration.
16158         * remote-notif.c (_initialize_notif): Add declaration.
16159         * remote-sim.c (_initialize_remote_sim): Add declaration.
16160         * remote.c (_initialize_remote): Add declaration.
16161         * reverse.c (_initialize_reverse): Add declaration.
16162         * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16163         * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16164         * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16165         * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16166         * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16167         * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16168         * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16169         * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16170         Add declaration.
16171         * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16172         * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16173         * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16174         * rust-exp.y (_initialize_rust_exp): Add declaration.
16175         * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16176         * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16177         * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16178         * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16179         * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16180         * score-tdep.c (_initialize_score_tdep): Add declaration.
16181         * ser-go32.c (_initialize_ser_dos): Add declaration.
16182         * ser-mingw.c (_initialize_ser_windows): Add declaration.
16183         * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16184         * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16185         * ser-uds.c (_initialize_ser_socket): Add declaration.
16186         * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16187         * serial.c (_initialize_serial): Add declaration.
16188         * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16189         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16190         * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16191         * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16192         * skip.c (_initialize_step_skip): Add declaration.
16193         * sol-thread.c (_initialize_sol_thread): Add declaration.
16194         * solib-aix.c (_initialize_solib_aix): Add declaration.
16195         * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16196         * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16197         * solib-frv.c (_initialize_frv_solib): Add declaration.
16198         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16199         * solib-target.c (_initialize_solib_target): Add declaration.
16200         * solib.c (_initialize_solib): Add declaration.
16201         * source-cache.c (_initialize_source_cache): Add declaration.
16202         * source.c (_initialize_source): Add declaration.
16203         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16204         * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16205         * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16206         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16207         * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16208         * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16209         * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16210         * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16211         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16212         * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16213         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16214         * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16215         * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16216         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16217         * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16218         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16219         * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16220         * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16221         * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16222         * stabsread.c (_initialize_stabsread): Add declaration.
16223         * stack.c (_initialize_stack): Add declaration.
16224         * stap-probe.c (_initialize_stap_probe): Add declaration.
16225         * std-regs.c (_initialize_frame_reg): Add declaration.
16226         * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16227         * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16228         * symfile.c (_initialize_symfile): Add declaration.
16229         * symmisc.c (_initialize_symmisc): Add declaration.
16230         * symtab.c (_initialize_symtab): Add declaration.
16231         * target.c (_initialize_target): Add declaration.
16232         * target-connection.c (_initialize_target_connection): Add
16233         declaration.
16234         * target-dcache.c (_initialize_target_dcache): Add declaration.
16235         * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16236         * thread.c (_initialize_thread): Add declaration.
16237         * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16238         * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16239         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16240         * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16241         * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16242         * tracectf.c (_initialize_ctf): Add declaration.
16243         * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16244         * tracefile.c (_initialize_tracefile): Add declaration.
16245         * tracepoint.c (_initialize_tracepoint): Add declaration.
16246         * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16247         * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16248         * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16249         * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16250         * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16251         * tui/tui-win.c (_initialize_tui_win): Add declaration.
16252         * tui/tui.c (_initialize_tui): Add declaration.
16253         * typeprint.c (_initialize_typeprint): Add declaration.
16254         * ui-style.c (_initialize_ui_style): Add declaration.
16255         * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16256         * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16257         * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16258         * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16259         * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16260         * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16261         * unittests/filtered_iterator-selftests.c
16262         (_initialize_filtered_iterator_selftests): Add declaration.
16263         * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16264         * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16265         * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16266         * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16267         * unittests/main-thread-selftests.c
16268         (_initialize_main_thread_selftests): Add declaration.
16269         * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16270         * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16271         * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16272         * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16273         * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16274         * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16275         * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16276         * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16277         * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16278         * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16279         * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16280         * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16281         * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16282         * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16283         * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16284         declaration.
16285         * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16286         * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16287         * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16288         * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16289         * user-regs.c (_initialize_user_regs): Add declaration.
16290         * utils.c (_initialize_utils): Add declaration.
16291         * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16292         * valops.c (_initialize_valops): Add declaration.
16293         * valprint.c (_initialize_valprint): Add declaration.
16294         * value.c (_initialize_values): Add declaration.
16295         * varobj.c (_initialize_varobj): Add declaration.
16296         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16297         * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16298         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16299         * windows-nat.c (_initialize_windows_nat): Add declaration.
16300         (_initialize_check_for_gdb_ini): Add declaration.
16301         (_initialize_loadable): Add declaration.
16302         * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16303         * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16304         * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16305         * xcoffread.c (_initialize_xcoffread): Add declaration.
16306         * xml-support.c (_initialize_xml_support): Add declaration.
16307         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16308         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16309         * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16310         * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16312 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16314         * regformats/regdat.sh: Generate declaration for init function.
16316 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16318         * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16319         up.
16320         (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16321         close_one_inferior>: New methods.
16322         (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16323         pass down target to find_inferior_pid.
16324         (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16325         Pass down target to find_inferior_ptid.
16326         (gdbsim_target::create_inferior): Pass down target to
16327         add_thread_silent.
16328         (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16329         target down to find_inferior_ptid and switch_to_thread.
16330         (gdbsim_target::close): Update to call close_one_inferior.
16331         (struct resume_data): Remove.
16332         (gdbsim_resume_inferior): Move to gdbsim_target.  Take arguments
16333         directly, rather than through a void pointer.
16334         (gdbsim_target::resume): Update to call resume_one_inferior.
16336 2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
16338         * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16340 2020-01-12  Pedro Alves  <palves@redhat.com>
16342         * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16343         directly for the current inferior instead of
16344         discard_all_inferiors.
16345         (discard_all_inferiors): Delete.
16347 2020-01-11  Tom Tromey  <tom@tromey.com>
16349         * tui/tui-wingeneral.c (box_win): Check cli_styling.
16350         * tui/tui-winsource.c (tui_source_window_base::refill): Use
16351         deprecated_safe_get_selected_frame.
16353 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
16355         * inferior.c (print_inferior): Switch inferior before printing it.
16357 2020-01-10  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>
16358             Pedro Alves  <palves@redhat.com>
16360         * progspace-and-thread.c (switch_to_program_space_and_thread):
16361         Assert there's an inferior for PSPACE.  Use
16362         switch_to_inferior_no_thread to switch the inferior too.
16363         * progspace.c (program_space::~program_space): Call
16364         clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16365         (program_space::free_all_objfiles): Don't call clear_symtab_users
16366         here.
16367         * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16369 2020-01-10  Pedro Alves  <palves@redhat.com>
16371         * NEWS: Mention multi-target debugging, "info connections", and
16372         "add-inferior -no-connection".
16374 2020-01-10  Pedro Alves  <palves@redhat.com>
16376         * infrun.c: Include "target-connection.h".
16377         (check_multi_target_resumption): New.
16378         (proceed): Call it.
16379         * target-connection.c (make_target_connection_string): Make
16380         extern.
16381         * target-connection.h (make_target_connection_string): Declare.
16383 2020-01-10  Pedro Alves  <palves@redhat.com>
16385         * Makefile.in (COMMON_SFILES): Add target-connection.c.
16386         * inferior.c (uiout_field_connection): New function.
16387         (print_inferior): Add new "connection-id" column.
16388         (add_inferior_command): Show connection number/string of added
16389         inferior.
16390         * process-stratum-target.h
16391         (process_stratum_target::connection_string): New virtual method.
16392         (process_stratum_target::connection_number): New field.
16393         * remote.c (remote_target::connection_string): New override.
16394         * target-connection.c: New file.
16395         * target-connection.h: New file.
16396         * target.c (decref_target): Remove process_stratum targets from
16397         the connection list.
16398         (target_stack::push): Add process_stratum targets to the
16399         connection list.
16401 2020-01-10  Pedro Alves  <palves@redhat.com>
16403         Revert:
16404         2016-04-12  Pedro Alves  <palves@redhat.com>
16405         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16406         Remove references to name.
16407         * serial.h (struct serial) <name>: Delete.
16409 2020-01-10  Pedro Alves  <palves@redhat.com>
16411         * gdbarch-selftests.c (register_to_value_test): Remove "target
16412         already pushed" check.
16414 2020-01-10  Pedro Alves  <palves@redhat.com>
16415             John Baldwin  <jhb@FreeBSD.org>
16417         * aarch64-linux-nat.c
16418         (aarch64_linux_nat_target::thread_architecture): Adjust.
16419         * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16420         (task_command_1): Likewise.
16421         * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16422         (aix_thread_target::wait, aix_thread_target::fetch_registers)
16423         (aix_thread_target::store_registers)
16424         (aix_thread_target::thread_alive): Adjust.
16425         * amd64-fbsd-tdep.c: Include "inferior.h".
16426         (amd64fbsd_get_thread_local_address): Pass down target.
16427         * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16428         thread's gdbarch instead of target_gdbarch.
16429         * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16430         get_last_target_status.
16431         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16432         * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16433         inferiors.
16434         (update_inserted_breakpoint_locations): Skip if inferiors with no
16435         execution.
16436         (update_global_location_list): When handling moribund locations,
16437         find representative inferior for location's pspace, and use thread
16438         count of its process_stratum target.
16439         * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16440         * bsd-uthread.c (bsd_uthread_target::wait): Use
16441         as_process_stratum_target and adjust thread_change_ptid and
16442         add_thread calls.
16443         (bsd_uthread_target::update_thread_list): Use
16444         as_process_stratum_target and adjust find_thread_ptid,
16445         thread_change_ptid and add_thread calls.
16446         * btrace.c (maint_btrace_packet_history_cmd): Adjust
16447         find_thread_ptid call.
16448         * corelow.c (add_to_thread_list): Adjust add_thread call.
16449         (core_target_open): Adjust add_thread_silent and thread_count
16450         calls.
16451         (core_target::pid_to_str): Adjust find_inferior_ptid call.
16452         * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16453         * event-top.c (async_disconnect): Pop targets from all inferiors.
16454         * exec.c (add_target_sections): Push exec target on all inferiors
16455         sharing the program space.
16456         (remove_target_sections): Remove the exec target from all
16457         inferiors sharing the program space.
16458         (exec_on_vfork): New.
16459         * exec.h (exec_on_vfork): Declare.
16460         * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16461         Pass it down.
16462         (fbsd_nat_target::update_thread_list): Adjust.
16463         (fbsd_nat_target::resume): Adjust.
16464         (fbsd_handle_debug_trap): Add fbsd_nat_target parameter.  Pass it
16465         down.
16466         (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16467         * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16468         get_thread_arch_regcache call.
16469         * fork-child.c (gdb_startup_inferior): Pass target down to
16470         startup_inferior and set_executing.
16471         * gdbthread.h (struct process_stratum_target): Forward declare.
16472         (add_thread, add_thread_silent, add_thread_with_info)
16473         (in_thread_list): Add process_stratum_target parameter.
16474         (find_thread_ptid(inferior*, ptid_t)): New overload.
16475         (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16476         parameter.
16477         (all_threads()): Delete overload.
16478         (all_threads, all_non_exited_threads): Add process_stratum_target
16479         parameter.
16480         (all_threads_safe): Use brace initialization.
16481         (thread_count): Add process_stratum_target parameter.
16482         (set_resumed, set_running, set_stop_requested, set_executing)
16483         (threads_are_executing, finish_thread_state): Add
16484         process_stratum_target parameter.
16485         (switch_to_thread): Use is_current_thread.
16486         * i386-fbsd-tdep.c: Include "inferior.h".
16487         (i386fbsd_get_thread_local_address): Pass down target.
16488         * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16489         * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16490         have_inferiors check.
16491         * inf-ptrace.c (inf_ptrace_target::create_inferior)
16492         (inf_ptrace_target::attach): Adjust.
16493         * infcall.c (run_inferior_call): Adjust.
16494         * infcmd.c (run_command_1): Pass target to
16495         scoped_finish_thread_state.
16496         (proceed_thread_callback): Skip inferiors with no execution.
16497         (continue_command): Rename 'all_threads' local to avoid hiding
16498         'all_threads' function.  Adjust get_last_target_status call.
16499         (prepare_one_step): Adjust set_running call.
16500         (signal_command): Use user_visible_resume_target.  Compare thread
16501         pointers instead of inferior_ptid.
16502         (info_program_command): Adjust to pass down target.
16503         (attach_command): Mark target's 'thread_executing' flag.
16504         (stop_current_target_threads_ns): New, factored out from ...
16505         (interrupt_target_1): ... this.  Switch inferior before making
16506         target calls.
16507         * inferior-iter.h
16508         (struct all_inferiors_iterator, struct all_inferiors_range)
16509         (struct all_inferiors_safe_range)
16510         (struct all_non_exited_inferiors_range): Filter on
16511         process_stratum_target too.  Remove explicit.
16512         * inferior.c (inferior::inferior): Push dummy target on target
16513         stack.
16514         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16515         Add process_stratum_target parameter, and pass it down.
16516         (have_live_inferiors): Adjust.
16517         (switch_to_inferior_and_push_target): New.
16518         (add_inferior_command, clone_inferior_command): Handle
16519         "-no-connection" parameter.  Use
16520         switch_to_inferior_and_push_target.
16521         (_initialize_inferior): Mention "-no-connection" option in
16522         the help of "add-inferior" and "clone-inferior" commands.
16523         * inferior.h: Include "process-stratum-target.h".
16524         (interrupt_target_1): Use bool.
16525         (struct inferior) <push_target, unpush_target, target_is_pushed,
16526         find_target_beneath, top_target, process_target, target_at,
16527         m_stack>: New.
16528         (discard_all_inferiors): Delete.
16529         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16530         (all_inferiors, all_non_exited_inferiors): Add
16531         process_stratum_target parameter.
16532         * infrun.c: Include "gdb_select.h" and <unordered_map>.
16533         (target_last_proc_target): New global.
16534         (follow_fork_inferior): Push target on new inferior.  Pass target
16535         to add_thread_silent.  Call exec_on_vfork.  Handle target's
16536         reference count.
16537         (follow_fork): Adjust get_last_target_status call.  Also consider
16538         target.
16539         (follow_exec): Push target on new inferior.
16540         (struct execution_control_state) <target>: New field.
16541         (user_visible_resume_target): New.
16542         (do_target_resume): Call target_async.
16543         (resume_1): Set target's threads_executing flag.  Consider resume
16544         target.
16545         (commit_resume_all_targets): New.
16546         (proceed): Also consider resume target.  Skip threads of inferiors
16547         with no execution.  Commit resumtion in all targets.
16548         (start_remote): Pass current inferior to wait_for_inferior.
16549         (infrun_thread_stop_requested): Consider target as well.  Pass
16550         thread_info pointer to clear_inline_frame_state instead of ptid.
16551         (infrun_thread_thread_exit): Consider target as well.
16552         (random_pending_event_thread): New inferior parameter.  Use it.
16553         (do_target_wait): Rename to ...
16554         (do_target_wait_1): ... this.  Add inferior parameter, and pass it
16555         down.
16556         (threads_are_resumed_pending_p, do_target_wait): New.
16557         (prepare_for_detach): Adjust calls.
16558         (wait_for_inferior): New inferior parameter.  Handle it.  Use
16559         do_target_wait_1 instead of do_target_wait.
16560         (fetch_inferior_event): Adjust.  Switch to representative
16561         inferior.  Pass target down.
16562         (set_last_target_status): Add process_stratum_target parameter.
16563         Save target in global.
16564         (get_last_target_status): Add process_stratum_target parameter and
16565         handle it.
16566         (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16567         (context_switch): Check inferior_ptid == null_ptid before calling
16568         inferior_thread().
16569         (get_inferior_stop_soon): Pass down target.
16570         (wait_one): Rename to ...
16571         (poll_one_curr_target): ... this.
16572         (struct wait_one_event): New.
16573         (wait_one): New.
16574         (stop_all_threads): Adjust.
16575         (handle_no_resumed, handle_inferior_event): Adjust to consider the
16576         event's target.
16577         (switch_back_to_stepped_thread): Also consider target.
16578         (print_stop_event): Update.
16579         (normal_stop): Update.  Also consider the resume target.
16580         * infrun.h (wait_for_inferior): Remove declaration.
16581         (user_visible_resume_target): New declaration.
16582         (get_last_target_status, set_last_target_status): New
16583         process_stratum_target parameter.
16584         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16585         process_stratum_target parameter, and use it.
16586         (clear_inline_frame_state (thread_info*)): New.
16587         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16588         process_stratum_target parameter.
16589         (clear_inline_frame_state (thread_info*)): Declare.
16590         * linux-fork.c (delete_checkpoint_command): Pass target down to
16591         find_thread_ptid.
16592         (checkpoint_command): Adjust.
16593         * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16594         instead of just tweaking inferior_ptid.
16595         (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16596         (exit_lwp): Pass target down to find_thread_ptid.
16597         (attach_proc_task_lwp_callback): Pass target down to
16598         add_thread/set_running/set_executing.
16599         (linux_nat_target::attach): Pass target down to
16600         thread_change_ptid.
16601         (get_detach_signal): Pass target down to find_thread_ptid.
16602         Consider last target status's target.
16603         (linux_resume_one_lwp_throw, resume_lwp)
16604         (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16605         (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16606         (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16607         (linux_nat_target::async_wait_fd): New.
16608         (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16609         target down.
16610         * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16611         * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16612         * linux-thread-db.c (struct thread_db_info::process_target): New
16613         field.
16614         (add_thread_db_info): Save target.
16615         (get_thread_db_info): New process_stratum_target parameter.  Also
16616         match target.
16617         (delete_thread_db_info): New process_stratum_target parameter.
16618         Also match target.
16619         (thread_from_lwp): Adjust to pass down target.
16620         (thread_db_notice_clone): Pass down target.
16621         (check_thread_db_callback): Pass down target.
16622         (try_thread_db_load_1): Always push the thread_db target.
16623         (try_thread_db_load, record_thread): Pass target down.
16624         (thread_db_target::detach): Pass target down.  Always unpush the
16625         thread_db target.
16626         (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16627         target down.  Always unpush the thread_db target.
16628         (find_new_threads_callback, thread_db_find_new_threads_2)
16629         (thread_db_target::update_thread_list): Pass target down.
16630         (thread_db_target::pid_to_str): Pass current inferior down.
16631         (thread_db_target::get_thread_local_address): Pass target down.
16632         (thread_db_target::resume, maintenance_check_libthread_db): Pass
16633         target down.
16634         * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16635         * procfs.c (procfs_target::procfs_init_inferior): Declare.
16636         (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16637         (procfs_init_inferior): Rename to ...
16638         (procfs_target::procfs_init_inferior): ... this and adjust.
16639         (procfs_target::create_inferior, procfs_notice_thread)
16640         (procfs_do_thread_registers): Adjust.
16641         * ppc-fbsd-tdep.c: Include "inferior.h".
16642         (ppcfbsd_get_thread_local_address): Pass down target.
16643         * proc-service.c (ps_xfer_memory): Switch current inferior and
16644         program space as well.
16645         (get_ps_regcache): Pass target down.
16646         * process-stratum-target.c
16647         (process_stratum_target::thread_address_space)
16648         (process_stratum_target::thread_architecture): Pass target down.
16649         * process-stratum-target.h
16650         (process_stratum_target::threads_executing): New field.
16651         (as_process_stratum_target): New.
16652         * ravenscar-thread.c
16653         (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16654         (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16655         down.
16656         * record-btrace.c (record_btrace_target::info_record): Adjust.
16657         (record_btrace_target::record_method)
16658         (record_btrace_target::record_is_replaying)
16659         (record_btrace_target::fetch_registers)
16660         (get_thread_current_frame_id, record_btrace_target::resume)
16661         (record_btrace_target::wait, record_btrace_target::stop): Pass
16662         target down.
16663         * record-full.c (record_full_wait_1): Switch to event thread.
16664         Pass target down.
16665         * regcache.c (regcache::regcache)
16666         (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16667         process_stratum_target parameter and handle it.
16668         (current_thread_target): New global.
16669         (get_thread_regcache): Add process_stratum_target parameter and
16670         handle it.  Switch inferior before calling target method.
16671         (get_thread_regcache): Pass target down.
16672         (get_thread_regcache_for_ptid): Pass target down.
16673         (registers_changed_ptid): Add process_stratum_target parameter and
16674         handle it.
16675         (registers_changed_thread, registers_changed): Pass target down.
16676         (test_get_thread_arch_aspace_regcache): New.
16677         (current_regcache_test): Define a couple local test_target_ops
16678         instances and use them for testing.
16679         (readwrite_regcache): Pass process_stratum_target parameter.
16680         (cooked_read_test, cooked_write_test): Pass mock_target down.
16681         * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16682         (get_thread_arch_aspace_regcache): Add process_stratum_target
16683         parameter.
16684         (regcache::target): New method.
16685         (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16686         (regcache::registers_changed_ptid): Add process_stratum_target
16687         parameter.
16688         (regcache::m_target): New field.
16689         (registers_changed_ptid): Add process_stratum_target parameter.
16690         * remote.c (remote_state::supports_vCont_probed): New field.
16691         (remote_target::async_wait_fd): New method.
16692         (remote_unpush_and_throw): Add remote_target parameter.
16693         (get_current_remote_target): Adjust.
16694         (remote_target::remote_add_inferior): Push target.
16695         (remote_target::remote_add_thread)
16696         (remote_target::remote_notice_new_inferior)
16697         (get_remote_thread_info): Pass target down.
16698         (remote_target::update_thread_list): Skip threads of inferiors
16699         bound to other targets.  (remote_target::close): Don't discard
16700         inferiors.  (remote_target::add_current_inferior_and_thread)
16701         (remote_target::process_initial_stop_replies)
16702         (remote_target::start_remote)
16703         (remote_target::remote_serial_quit_handler): Pass down target.
16704         (remote_target::remote_unpush_target): New remote_target
16705         parameter.  Unpush the target from all inferiors.
16706         (remote_target::remote_unpush_and_throw): New remote_target
16707         parameter.  Pass it down.
16708         (remote_target::open_1): Check whether the current inferior has
16709         execution instead of checking whether any inferior is live.  Pass
16710         target down.
16711         (remote_target::remote_detach_1): Pass down target.  Use
16712         remote_unpush_target.
16713         (extended_remote_target::attach): Pass down target.
16714         (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16715         (remote_target::append_resumption): Pass down target.
16716         (remote_target::append_pending_thread_resumptions)
16717         (remote_target::remote_resume_with_hc, remote_target::resume)
16718         (remote_target::commit_resume): Pass down target.
16719         (remote_target::remote_stop_ns): Check supports_vCont_probed.
16720         (remote_target::interrupt_query)
16721         (remote_target::remove_new_fork_children)
16722         (remote_target::check_pending_events_prevent_wildcard_vcont)
16723         (remote_target::remote_parse_stop_reply)
16724         (remote_target::process_stop_reply): Pass down target.
16725         (first_remote_resumed_thread): New remote_target parameter.  Pass
16726         it down.
16727         (remote_target::wait_as): Pass down target.
16728         (unpush_and_perror): New remote_target parameter.  Pass it down.
16729         (remote_target::readchar, remote_target::remote_serial_write)
16730         (remote_target::getpkt_or_notif_sane_1)
16731         (remote_target::kill_new_fork_children, remote_target::kill): Pass
16732         down target.
16733         (remote_target::mourn_inferior): Pass down target.  Use
16734         remote_unpush_target.
16735         (remote_target::core_of_thread)
16736         (remote_target::remote_btrace_maybe_reopen): Pass down target.
16737         (remote_target::pid_to_exec_file)
16738         (remote_target::thread_handle_to_thread_info): Pass down target.
16739         (remote_target::async_wait_fd): New.
16740         * riscv-fbsd-tdep.c: Include "inferior.h".
16741         (riscv_fbsd_get_thread_local_address): Pass down target.
16742         * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16743         * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16744         (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16745         Adjust.
16746         * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16747         * solib-svr4.c (enable_break): Pass down target.
16748         * spu-multiarch.c (parse_spufs_run): Pass down target.
16749         * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16750         * target-delegates.c: Regenerate.
16751         * target.c (g_target_stack): Delete.
16752         (current_top_target): Return the current inferior's top target.
16753         (target_has_execution_1): Refer to the passed-in inferior's top
16754         target.
16755         (target_supports_terminal_ours): Check whether the initial
16756         inferior was already created.
16757         (decref_target): New.
16758         (target_stack::push): Incref/decref the target.
16759         (push_target, push_target, unpush_target): Adjust.
16760         (target_stack::unpush): Defref target.
16761         (target_is_pushed): Return bool.  Adjust to refer to the current
16762         inferior's target stack.
16763         (dispose_inferior): Delete, and inline parts ...
16764         (target_preopen): ... here.  Only dispose of the current inferior.
16765         (target_detach): Hold strong target reference while detaching.
16766         Pass target down.
16767         (target_thread_name): Add assertion.
16768         (target_resume): Pass down target.
16769         (target_ops::beneath, find_target_at): Adjust to refer to the
16770         current inferior's target stack.
16771         (get_dummy_target): New.
16772         (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16773         has a thread running.
16774         (initialize_targets): Rename to ...
16775         (_initialize_target): ... this.
16776         * target.h: Include "gdbsupport/refcounted-object.h".
16777         (struct target_ops): Inherit refcounted_object.
16778         (target_ops::shortname, target_ops::longname): Make const.
16779         (target_ops::async_wait_fd): New method.
16780         (decref_target): Declare.
16781         (struct target_ops_ref_policy): New.
16782         (target_ops_ref): New typedef.
16783         (get_dummy_target): Declare function.
16784         (target_is_pushed): Return bool.
16785         * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16786         (all_matching_threads_iterator::all_matching_threads_iterator):
16787         Handle filter target.
16788         * thread-iter.h (struct all_matching_threads_iterator, struct
16789         all_matching_threads_range, class all_non_exited_threads_range):
16790         Filter by target too.  Remove explicit.
16791         * thread.c (threads_executing): Delete.
16792         (inferior_thread): Pass down current inferior.
16793         (clear_thread_inferior_resources): Pass down thread pointer
16794         instead of ptid_t.
16795         (add_thread_silent, add_thread_with_info, add_thread): Add
16796         process_stratum_target parameter.  Use it for thread and inferior
16797         searches.
16798         (is_current_thread): New.
16799         (thread_info::deletable): Use it.
16800         (find_thread_ptid, thread_count, in_thread_list)
16801         (thread_change_ptid, set_resumed, set_running): New
16802         process_stratum_target parameter.  Pass it down.
16803         (set_executing): New process_stratum_target parameter.  Pass it
16804         down.  Adjust reference to 'threads_executing'.
16805         (threads_are_executing): New process_stratum_target parameter.
16806         Adjust reference to 'threads_executing'.
16807         (set_stop_requested, finish_thread_state): New
16808         process_stratum_target parameter.  Pass it down.
16809         (switch_to_thread): Also match inferior.
16810         (switch_to_thread): New process_stratum_target parameter.  Pass it
16811         down.
16812         (update_threads_executing): Reimplement.
16813         * top.c (quit_force): Pop targets from all inferior.
16814         (gdb_init): Don't call initialize_targets.
16815         * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16816         Declare.
16817         (windows_add_thread, windows_delete_thread): Adjust.
16818         (get_windows_debug_event): Rename to ...
16819         (windows_nat_target::get_windows_debug_event): ... this.  Adjust.
16820         * tracefile-tfile.c (tfile_target_open): Pass down target.
16821         * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16822         Forward declare.
16823         (switch_to_thread): Add process_stratum_target parameter.
16824         * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16825         parameter.  Use it.
16826         (mi_on_resume): Pass target down.
16827         * nat/fork-inferior.c (startup_inferior): Add
16828         process_stratum_target parameter.  Pass it down.
16829         * nat/fork-inferior.h (startup_inferior): Add
16830         process_stratum_target parameter.
16831         * python/py-threadevent.c (py_get_event_thread): Pass target down.
16833 2020-01-10  Pedro Alves  <palves@redhat.com>
16835         * remote.c (remote_target::start_remote): Don't set inferior_ptid
16836         directly.  Instead find the first thread in the thread list and
16837         use switch_to_thread.
16839 2020-01-10  Pedro Alves  <palves@redhat.com>
16841         * remote.c (remote_target::remote_add_inferior): Don't bind a
16842         process to the current inferior if the current inferior is already
16843         bound to a process.
16845 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
16846             Pedro Alves  <palves@redhat.com>
16848         * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16849         If no process is specified, return null_ptid instead of
16850         inferior_ptid.
16851         (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16852         TARGET_WAITKIND_SIGNALLED with no pid.
16854 2020-01-10  Pedro Alves  <palves@redhat.com>
16856         * remote.c (first_remote_resumed_thread): New.
16857         (remote_target::wait_as): Use it as default event_ptid instead of
16858         inferior_ptid.
16860 2020-01-10  Pedro Alves  <palves@redhat.com>
16862         * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16864 2020-01-10  Pedro Alves  <palves@redhat.com>
16866         * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16867         not -1.
16869 2020-01-10  Pedro Alves  <palves@redhat.com>
16871         * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16872         ptid to get_last_target_status.
16873         * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16874         ptid to get_last_target_status.
16875         * infcmd.c (continue_command): Don't pass a target_waitstatus to
16876         get_last_target_status.
16877         (info_program_command): Don't pass a target_waitstatus to
16878         get_last_target_status.
16879         * infrun.c (init_wait_for_inferior): Use
16880         nullify_last_target_wait_ptid.
16881         (get_last_target_status): Handle nullptr arguments.
16882         (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16883         (print_stop_event): Don't pass a ptid to get_last_target_status.
16884         (normal_stop): Don't pass a ptid to get_last_target_status.
16885         * infrun.h (get_last_target_status, set_last_target_status): Move
16886         comments here and update.
16887         (nullify_last_target_wait_ptid): Declare.
16888         * linux-fork.c (fork_load_infrun_state): Remove local extern
16889         declaration of nullify_last_target_wait_ptid.
16890         * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16891         to get_last_target_status.
16893 2020-01-10  Pedro Alves  <palves@redhat.com>
16895         * gdbthread.h (scoped_restore_current_thread)
16896         <dont_restore, restore, m_dont_restore>: Declare.
16897         * thread.c (thread_alive): Add assertion.  Return bool.
16898         (switch_to_thread_if_alive): New.
16899         (prune_threads): Switch inferior/thread.
16900         (print_thread_info_1): Switch thread before calling target methods.
16901         (scoped_restore_current_thread::restore): New, factored out from
16902         ...
16903         (scoped_restore_current_thread::~scoped_restore_current_thread):
16904         ... this.
16905         (scoped_restore_current_thread::scoped_restore_current_thread):
16906         Add assertion.
16907         (thread_apply_all_command, thread_select): Use
16908         switch_to_thread_if_alive.
16909         * infrun.c (proceed, restart_threads, handle_signal_stop)
16910         (switch_back_to_stepped_thread): Switch current thread before
16911         calling target methods.
16913 2020-01-10  Pedro Alves <palves@redhat.com>
16915         * inferior.c (switch_to_inferior_no_thread): New function,
16916         factored out from ...
16917         (inferior_command): ... here.
16918         * inferior.h (switch_to_inferior_no_thread): Declare.
16919         * mi/mi-main.c (run_one_inferior): Use
16920         switch_to_inferior_no_thread.
16922 2020-01-10  Pedro Alves  <palves@redhat.com>
16924         * infcmd.c (kill_command): Remove dead code.
16926 2020-01-10  Pedro Alves  <palves@redhat.com>
16928         * remote.c (remote_target::mourn_inferior): No longer check
16929         whether the target is running.
16931 2020-01-10  Pedro Alves  <palves@redhat.com>
16933         * corelow.c (core_target::has_execution): Change parameter type to
16934         inferior pointer.
16935         * inferior.c (number_of_live_inferiors): Use
16936         inferior::has_execution instead of target_has_execution_1.
16937         * inferior.h (inferior::has_execution): New.
16938         * linux-thread-db.c (thread_db_target::update_thread_list): Use
16939         inferior::has_execution instead of target_has_execution_1.
16940         * process-stratum-target.c
16941         (process_stratum_target::has_execution): Change parameter type to
16942         inferior pointer.  Check the inferior's PID instead of
16943         inferior_ptid.
16944         * process-stratum-target.h
16945         (process_stratum_target::has_execution): Change parameter type to
16946         inferior pointer.
16947         * record-full.c (record_full_core_target::has_execution): Change
16948         parameter type to inferior pointer.
16949         * target.c (target_has_execution_1): Change parameter type to
16950         inferior pointer.
16951         (target_has_execution_current): Adjust.
16952         * target.h (target_ops::has_execution): Change parameter type to
16953         inferior pointer.
16954         (target_has_execution_1): Change parameter type to inferior
16955         pointer.  Change return type to bool.
16956         * tracefile.h (tracefile_target::has_execution): Change parameter
16957         type to inferior pointer.
16959 2020-01-10  Pedro Alves  <palves@redhat.com>
16961         * exceptions.c (print_flush): Remove current_top_target() check.
16963 2020-01-10  Pedro Alves  <palves@redhat.com>
16965         * remote.c (show_remote_exec_file): Show the current inferior's
16966         exec-file instead of the command variable's value.
16968 2020-01-10  Pedro Alves  <palves@redhat.com>
16970         * record-full.c (record_full_resume_ptid): New global.
16971         (record_full_target::resume): Set it.
16972         (record_full_wait_1): Use record_full_resume_ptid instead of
16973         inferior_ptid.
16975 2020-01-10  Pedro Alves  <palves@redhat.com>
16977         * gdbthread.h (scoped_restore_current_thread)
16978         <dont_restore, restore, m_dont_restore>: Declare.
16979         * thread.c (thread_alive): Add assertion.  Return bool.
16980         (switch_to_thread_if_alive): New.
16981         (prune_threads): Switch inferior/thread.
16982         (print_thread_info_1): Switch thread before calling target methods.
16983         (scoped_restore_current_thread::restore): New, factored out from
16984         ...
16985         (scoped_restore_current_thread::~scoped_restore_current_thread):
16986         ... this.
16987         (scoped_restore_current_thread::scoped_restore_current_thread):
16988         Add assertion.
16989         (thread_apply_all_command, thread_select): Use
16990         switch_to_thread_if_alive.
16992 2020-01-10  George Barrett  <bob@bob131.so>
16994         * stap-probe.c (stap_modify_semaphore): Don't check for null
16995         semaphores.
16996         (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16997         for null semaphores.
16999 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
17001         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17002         all source windows, and maintain horizontal scroll status while
17003         doing so.
17005 2020-01-09  Tom Tromey  <tom@tromey.com>
17007         PR tui/18932:
17008         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17009         update_source_window, not print_source_lines.
17011 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
17013         * tui/tui.c (tui_enable): Register tui hooks after calling
17014         tui_display_main.
17016 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17018         * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17020 2020-01-08  Simon Marchi  <simon.marchi@efficios.com>
17022         * thread.c (print_thread_info_1): Fix indentation.
17024 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17026         * symtab.c (general_symbol_info::compute_and_set_names): Move the
17027         unique_xmalloc_ptr outside the if to always free the demangled name.
17029 2020-01-08  Tom Tromey  <tromey@adacore.com>
17031         * xcoffread.c (enter_line_range, read_xcoff_symtab)
17032         (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17033         * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17034         (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17035         Remove.
17036         (section_offsets): New typedef.
17037         * symtab.c (fixup_section, get_msymbol_address): Update.
17038         * symmisc.c (dump_msymbols): Update.
17039         * symfile.h (relative_addr_info_to_section_offsets)
17040         (symfile_map_offsets_to_segments): Update.
17041         * symfile.c (build_section_addr_info_from_objfile)
17042         (init_objfile_sect_indices): Update.
17043         (struct place_section_arg): Change type of "offsets".
17044         (place_section): Update.
17045         (relative_addr_info_to_section_offsets): Change type of
17046         "section_offsets".  Remove "num_sections" parameter.
17047         (default_symfile_offsets, syms_from_objfile_1)
17048         (set_objfile_default_section_offset): Update.
17049         (reread_symbols): No need to preserve section offsets by hand.
17050         (symfile_map_offsets_to_segments): Change type of "offsets".
17051         * stap-probe.c (relocate_address): Update.
17052         * stabsread.h (process_one_symbol): Update.
17053         * solib-target.c (struct lm_info_target) <offsets>: Change type.
17054         (solib_target_relocate_section_addresses): Update.
17055         * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17056         Update.
17057         * solib-frv.c (frv_relocate_main_executable): Update.
17058         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17059         * solib-aix.c (solib_aix_get_section_offsets): Change return
17060         type.
17061         (solib_aix_solib_create_inferior_hook): Update.
17062         * remote.c (remote_target::get_offsets): Update.
17063         * psymtab.c (find_pc_sect_psymtab): Update.
17064         * psympriv.h (struct partial_symbol) <address, text_low,
17065         text_high>: Update.
17066         * objfiles.h (obj_section_offset): Update.
17067         (struct objfile) <section_offsets>: Change type.
17068         <num_sections>: Remove.
17069         (objfile_relocate): Update.
17070         * objfiles.c (entry_point_address_query): Update
17071         (relocate_one_symbol): Change type of "section_offsets".
17072         (objfile_relocate1, objfile_relocate1): Change type of
17073         "new_offsets".
17074         (objfile_rebase1): Update.
17075         * mipsread.c (mipscoff_symfile_read): Update.
17076         (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17077         parameter.
17078         * mdebugread.c (parse_symbol): Change type of "section_offsets".
17079         (parse_external, psymtab_to_symtab_1): Update.
17080         * machoread.c (macho_symfile_offsets): Update.
17081         * ia64-tdep.c (ia64_find_unwind_table): Update.
17082         * hppa-tdep.c (read_unwind_info): Update.
17083         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17084         * dwarf2read.c (create_addrmap_from_index)
17085         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17086         (process_psymtab_comp_unit_reader, add_partial_symbol)
17087         (add_partial_subprogram, process_full_comp_unit)
17088         (read_file_scope, read_func_scope, read_lexical_block_scope)
17089         (read_call_site_scope, dwarf2_rnglists_process)
17090         (dwarf2_ranges_process, dwarf2_ranges_read)
17091         (dwarf_decode_lines_1, var_decode_location, new_symbol)
17092         (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17093         Update.
17094         * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17095         Update.
17096         * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17097         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17098         (process_one_symbol): Change type of "section_offsets".
17099         * ctfread.c (get_objfile_text_range): Update.
17100         * coffread.c (coff_symtab_read, enter_linenos)
17101         (process_coff_symbol): Update.
17102         * coff-pe-read.c (add_pe_forwarded_sym): Update.
17103         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17105 2020-01-08  Tom Tromey  <tromey@adacore.com>
17107         * dwarf2read.c (parse_macro_definition): Use std::string.
17108         (parse_macro_definition): Likewise.
17110 2020-01-08  Tom Tromey  <tromey@adacore.com>
17112         * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17113         (ATTR_ALLOC_CHUNK): Remove.
17115 2020-01-08  Tom Tromey  <tromey@adacore.com>
17117         * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17119 2020-01-08  Tom Tromey  <tromey@adacore.com>
17121         * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17122         (dwarf2_compute_name, open_dwo_file): Likewise.
17123         (process_enumeration_scope): Use std::vector.
17124         (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17125         (partial_die_info::fixup, dwarf2_start_subfile)
17126         (guess_full_die_structure_name, dwarf2_name): Likewise.
17127         (determine_prefix): Update.
17128         (guess_full_die_structure_name): Make return type const.
17129         (partial_die_full_name): Return unique_xmalloc_ptr.
17130         (DW_FIELD_ALLOC_CHUNK): Remove.
17132 2020-01-07  Tom Tromey  <tromey@adacore.com>
17134         PR build/24937:
17135         * stap-probe.c (class stap_static_probe_ops): Add constructor.
17137 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17139         * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17141 2020-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
17143         * stack.c (print_frame_info): Move disassemble_next_line code
17144         inside source_print block.
17146 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17148         * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17149         gdb/signals.h, as we are now using native signal symbols.
17151 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17153         * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17154         overflow by an early check of content vs threshold.
17155         * tui/tui-source.c (tui_source_window::line_is_displayed):
17156         Likewise.
17158 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17160         * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17162 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17164         * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17165         export table if no section contains it's RVA.
17167 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17169         * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17171 2020-01-06  Hannes Domani  <ssbssa@yahoo.de>
17173         * source.c (print_source_lines_base): Set last_line_listed.
17175 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17177         * tui/tui-disasm.c: Remove trailing spaces.
17179 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17180             Pedro Alves  <palves@redhat.com>
17182         * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17183         * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17184         (windows_gdb_signal_to_target): New function, uses the above
17185         enumeration to convert GDB internal signal codes to equivalent
17186         Windows codes.
17187         (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17188         * windows-nat.c: Include "gdb_wait.h".
17189         (get_windows_debug_event): Extract the fatal exception from the
17190         exit status and convert to the equivalent Posix signal number.
17191         * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17192         possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17193         * gdbsupport/gdb_wait.c: New file, implements
17194         windows_status_to_termsig.
17195         * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17196         (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17198 2020-01-05  Andrew Burgess  <andrew.burgess@embecosm.com>
17200         * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17201         show_layout.
17203 2020-01-05  Luis Machado  <luis.machado@linaro.org>
17205         * aarch64-linux-nat.c
17206         (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17207         and bfd_mach_aarch64.
17209 2020-01-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
17211         * ui-file.c (stdio_file::can_emit_style_escape)
17212         (tee_file::can_emit_style_escape): Ensure style is used also on
17213         gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17214         to gdb_stdout.
17215         * main.c (set_gdb_data_directory): Use file style to output the
17216         warning that the given pathname is not a directory.
17217         * top.c (show_history_filename, gdb_safe_append_history)
17218         (show_gdb_datadir): Use file style.
17220 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17222         * solib-target.c (struct lm_info_target):
17223         Change offsets to be a unique_xmalloc_ptr.
17224         (solib_target_relocate_section_addresses): Update.
17226 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17228         * windows-nat.c (windows_clear_solib): Free so_list linked list.
17230 2020-01-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17232         * MAINTAINERS (Write After Approval): Add myself.
17234 2020-01-02  Luis Machado  <luis.machado@linaro.org>
17236         * proc-service.c (get_ps_regcache): Remove reference to obsolete
17237         Cell BE architecture.
17238         * target.h (struct target_ops) <thread_architecture>: Likewise.
17240 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17242         * Makefile.in: Use INSTALL_PROGRAM_ENV.
17244 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17246         * MAINTAINERS (Write After Approval): Add myself.
17248 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17250         * gdbarch.sh: Update copyright year range of generated files.
17252 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17254         Update copyright year range in all GDB files.
17256 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17258         * copyright.py: Convert to Python 3.
17260 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17262         * copyright.py: Adapt after move of gnulib directory from gdb
17263         directory to toplevel directory.
17265 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17267         * copyright.py (main): Exit if run from the wrong directory.
17269 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17271         * top.c (print_gdb_version): Change copyright year to 2020.
17273 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17275         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17277 For older changes see ChangeLog-2019.
17279 Local Variables:
17280 mode: change-log
17281 left-margin: 8
17282 fill-column: 74
17283 version-control: never
17284 coding: utf-8
17285 End: