valarith.c: Replace INIT_VAL_WITH_FIXED_POINT_VAL macro by lambda
[binutils-gdb.git] / gdb / ChangeLog
blob014687416432d3bfa184afa715ac66fecb10748b
1 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
3         * valarith.c (fixed_point_binop): Replace the
4         INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda.  Update all
5         users accordingly.
7 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
9         * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
10         replacing fixed_point_scaling_factor.  All callers updated
11         throughout this project.
12         (fixed_point_scaling_factor): Delete declaration.
13         * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
14         fixed_point_scaling_factor.  Adjust implementation accordingly.
16 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
18         * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
19         replacing the fixed_point_type_base_type function. All callers
20         updated throughout this project.
21         (fixed_point_type_base_type): Remove declaration.
22         * gdbtypes.c (type::fixed_point_type_base_type): Replaces
23         fixed_point_type_base_type.  Adjust implementation accordingly.
25 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
27         * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
28         New methods.
29         (INIT_FIXED_POINT_SPECIFIC): Adjust.
30         (TYPE_FIXED_POINT_INFO): Delete macro.
31         (allocate_fixed_point_type_info): Change return type to void.
32         * gdbtypes.c (copy_type_recursive): Replace the use of
33         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
34         (fixed_point_scaling_factor): Likewise.
35         (allocate_fixed_point_type_info): Change return type to void.
36         Adjust implementation accordingly.
37         * dwarf2/read.c (finish_fixed_point_type): Replace the use of
38         TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
40 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
42         * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
43         into one single gdb::array_view parameter.
44         (gdb_mpz::write): Likewise.
45         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
46         * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
47         into one single gdb::array_view parameter.
48         Adjust implementation accordingly.
49         (gdb_mpz::write): Likewise.
50         (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
51         * unittests/gmp-utils-selftests.c: Adapt following changes above.
52         * valarith.c, valops.c, valprint.c, value.c: Likewise.
54 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
56         * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
57         Change return type to std::string. Update all callers.
58         * gmp-utils.c (gmp_string_printf): Likewise.
60 2020-11-24  Joel Brobecker  <brobecker@adacore.com>
62         * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
63         instead of mpq_set_ui to initialize our GMP rational.
65 2020-11-23  Tom de Vries  <tdevries@suse.de>
67         * debuginfod-support.c (debuginfod_source_query)
68         (debuginfod_debuginfo_query): Only set DESTNAME if successful.
70 2020-11-21  Tom Tromey  <tom@tromey.com>
72         * breakpoint.c (watchpoint_exp_is_const): Return bool.
74 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
76         * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
77         Pass 2.0 to pow.
78         (gdb_mpz_write_all_from_small): Likewise.
80 2020-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
82         * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
83         of abs.
85 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
87         * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
88         ctf_arc_open_by_name.
90 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
92         * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
93         (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
95 2020-11-20  Pedro Alves  <pedro@palves.net>
97         * language.c (language_arch_info::lookup_primitive_type): Use
98         gdb::function_view instead of gdb::function.
99         (template language_lookup_primitive_type): Rename to ...
100         (language_lookup_primitive_type_1): ... this, and make static.
101         (language_lookup_primitive_type(const struct language_defn *,
102         struct gdbarch *, const char *): Make non-template.
103         (language_lookup_primitive_type(const struct language_defn *,
104         struct gdbarch *, std::function<bool (struct type *)>): Make
105         non-template and use gdb::function_view.
106         * language.h (language_arch_info::lookup_primitive_type): Use
107         gdb::function_view instead of std::function.
108         (language_lookup_primitive_type): No longer template.
109         * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
110         lambda instead of a std::function.
112 2020-11-19  Andreas Arnez  <arnez@linux.ibm.com>
114         PR tdep/26916
115         * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
116         and STOCFH.
118 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
120         * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
122 2020-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
124         * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
125         in `loop_cb` parameter.
126         * gdbarch.c: Re-generate.
127         * gdbarch.h: Re-generate.
128         * arch-utils.c (default_read_core_file_mappings): Remove `other`
129         parameter.
130         * arch-utils.h (default_read_core_file_mappings): Likewise.
131         * corelow.c (core_target::build_file_mappings): Likewise.
132         * linux-tdep.c (linux_read_core_file_mappings): Likewise.
133         (linux_core_info_proc_mappings): Likewise.
135 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
137         * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
138         * NEWS: Mention new options.
139         * f-array-walker.h: New file.
140         * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
141         (repack_array_slices): New static global.
142         (show_repack_array_slices): New function.
143         (fortran_array_slicing_debug): New static global.
144         (show_fortran_array_slicing_debug): New function.
145         (value_f90_subarray): Delete.
146         (skip_undetermined_arglist): Delete.
147         (class fortran_array_repacker_base_impl): New class.
148         (class fortran_lazy_array_repacker_impl): New class.
149         (class fortran_array_repacker_impl): New class.
150         (fortran_value_subarray): Complete rewrite.
151         (set_fortran_list): New static global.
152         (show_fortran_list): Likewise.
153         (_initialize_f_language): Register new commands.
154         (fortran_adjust_dynamic_array_base_address_hack): New function.
155         * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
156         Declare.
157         * f-valprint.c: Include 'f-array-walker.h'.
158         (class fortran_array_printer_impl): New class.
159         (f77_print_array_1): Delete.
160         (f77_print_array): Delete.
161         (fortran_print_array): New.
162         (f_value_print_inner): Update to call fortran_print_array.
163         * gdbtypes.c: Include 'f-lang.h'.
164         (resolve_dynamic_type_internal): Call
165         fortran_adjust_dynamic_array_base_address_hack.
167 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
169         * breakpoint.c (struct watch_options): New struct.
170         (watch_option_defs): New static global.
171         (make_watch_options_def_group): New function.
172         (watch_maybe_just_location): Convert option parsing.
173         (watch_command_completer): New function.
174         (_initialize_breakpoint): Build help text using options mechanism.
176 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
178         * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
179         (watch_command_1): Update parameter types.  Convert locals to
180         bool.
181         (watch_command_wrapper): Change parameter type.
182         (watch_maybe_just_location): Change locals to bool.
183         (rwatch_command_wrapper): Update parameter type.
184         (awatch_command_wrapper): Update parameter type.
185         * breakpoint.h (watch_command_wrapper): Change parameter type.
186         (rwatch_command_wrapper): Update parameter type.
187         (awatch_command_wrapper): Update parameter type.
188         * eval.c (fetch_subexp_value): Change parameter type.
189         * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
190         'false' not '0'.
191         * value.h (fetch_subexp_value): Change parameter type in
192         declaration.
194 2020-11-19  Andrew Burgess  <andrew.burgess@embecosm.com>
196         * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
197         skip_spaces.
199 2020-11-18  Keith Seitz  <keiths@redhat.com>
201         * linux-tdep.c (dump_note_entry_p): Return true instead of
202         checking `filename'.
204 2020-11-18  Tom de Vries  <tdevries@suse.de>
206         * debuginfod-support.c (debuginfod_source_query)
207         (debuginfod_debuginfo_query): Also do early exit if
208         "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
210 2020-11-18  Tom de Vries  <tdevries@suse.de>
212         * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
213         warning.
215 2020-11-17  Simon Marchi  <simon.marchi@polymtl.ca>
217         * gdbtypes.h (get_array_bounds): Return bool, adjust some
218         callers.  Move doc here.
219         * gdbtypes.c (get_array_bounds): Return bool
221 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
223         * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
224         assert.
225         * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
226         * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
227         case to the default.
229 2020-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
231         * printcmd.c: Include 'safe-ctype.c'.
232         (skip_over_slash_fmt): New function.
233         (print_command_completer): Call skip_over_slash_fmt.
234         (display_and_x_command_completer): New function.
235         (_initialize_printcmd): Add command completion for 'x' and
236         'display'.
238 2020-11-16  Pedro Alves  <pedro@palves.net>
240         * frame.c (get_prev_frame): Move get_frame_id call from here ...
241         (get_prev_frame_always_1): ... to here.
242         * inline-frame.c (inline_frame_this_id): Mention
243         get_prev_frame_always_1 in comment.
245 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
247         * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
248         handling.
249         (value_less): Add fixed-point handling.
251 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
253         * eval.c (binop_promote): Add fixed-point type handling.
254         * valarith.c (fixed_point_binop): New function.
255         (scalar_binop): Add fixed-point type handling.
256         (value_neg): Add fixed-point type handling.
257         * valops.c (value_cast_to_fixed_point): New function.
258         (value_cast): Add fixed-point type handling.
260 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
262         * ada-typeprint.c (ada_print_type): Add handing of fixed-point
263         range types.
264         * c-typeprint.c (c_type_print_varspec_prefix)
265         (c_type_print_varspec_suffix, c_type_print_base_1): Add
266         TYPE_CODE_FIXED_POINT handling.
267         * p-typeprint.c (pascal_type_print_varspec_prefix)
268         (pascal_type_print_varspec_suffix): Likewise.
269         * typeprint.c (print_type_fixed_point): New function.
270         * typeprint.h (print_type_fixed_point): Add declaration.
272 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
274         * printcmd.c (print_scalar_formatted): Add fixed-point type
275         handling when options->format is set.
277 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
279         * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
280         * dwarf2/read.c (get_dwarf2_rational_constant)
281         (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
282         (has_zero_over_zero_small_attribute): New functions.
283         read_base_type, set_die_type): Add fixed-point type handling.
284         * gdb-gdb.py.in: Add fixed-point type handling.
285         * gdbtypes.c: #include "gmp-utils.h".
286         (create_range_type, set_type_code): Add fixed-point type handling.
287         (init_fixed_point_type): New function.
288         (is_integral_type, is_scalar_type): Add fixed-point type handling.
289         (print_fixed_point_type_info): New function.
290         (recursive_dump_type, copy_type_recursive): Add fixed-point type
291         handling.
292         (fixed_point_type_storage): New typedef.
293         (fixed_point_objfile_key): New static global.
294         (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
295         (fixed_point_type_base_type, fixed_point_scaling_factor): New
296         functions.
297         * gdbtypes.h: #include "gmp-utils.h".
298         (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
299         (union type_specific) <fixed_point_info>: New field.
300         (struct fixed_point_type_info): New struct.
301         (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
302         (init_fixed_point_type, is_fixed_point_type)
303         (fixed_point_type_base_type, fixed_point_scaling_factor)
304         (allocate_fixed_point_type_info): Add declarations.
305         * valprint.c (generic_val_print_fixed_point): New function.
306         (generic_value_print): Add fixed-point type handling.
307         * value.c (value_as_address, unpack_long): Add fixed-point type
308         handling.
310 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
312         * utils.h (uinteger_pow): Add declaration.
313         * utils.c (uinteger_pow): Moved here (without changes)...
314         * valarith.c (uinteger_pow): ... from here.
316 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
318         * gmp-utils.h,  gmp-utils.c: New file.
319         * unittests/gmp-utils-selftests.c: New file.
320         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
321         unittests/gmp-utils-selftests.c.
322         (COMMON_SFILES) Add gmp-utils.c.
323         (HFILES_NO_SRCDIR): Add gmp-utils.h.
325 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
327         * configure.ac: Generate an error if a usable GMP library
328         could not be found.
329         * configure: Regenerate.
331 2020-11-15  Joel Brobecker  <brobecker@adacore.com>
333         * configure.ac: Add support for --with-libgmp-prefix.
334         * Makefile.in (LIBGMP): New variable.
335         (CLIBS): Include $(LIBGMP).
336         * configure, config.in: Regenerate
338 2020-11-14  Andrew Burgess  <andrew.burgess@embecosm.com>
340         PR cli/26879
341         * f-exp.y (COMPLETE): New token.
342         (exp): Two new rules for tab-completion.
343         (saw_name_at_eof): New static global.
344         (last_was_structop): Likewise.
345         (yylex): Set new variables, and return COMPLETE token at the end
346         of the input stream in some cases.
348 2020-11-14  Tom Tromey  <tom@tromey.com>
350         * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
352 2020-11-14  Tom Tromey  <tom@tromey.com>
354         * opencl-lang.c (opencl_component_ref): Make "comps" const.
356 2020-11-14  Simon Marchi  <simon.marchi@polymtl.ca>
358         * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
360 2020-11-13  Tom Tromey  <tom@tromey.com>
362         * c-lang.c (convert_ucn, convert_octal, convert_hex)
363         (convert_escape, parse_one_string): Constify.
365 2020-11-13  Keith Seitz  <keiths@redhat.com>
367         https://bugzilla.redhat.com/show_bug.cgi?id=1553086
368         * elfread.c (elf_symfile_segments): Omit "Loadable section ...
369         outside of ELF segments" warning for debugin
371 2020-11-13  Keith Seitz  <keiths@redhat.com>
373         PR gdb/23034
374         * elfread.c (elf_symfile_segments): Output a BFD file name
375         for the "Loadable section ... outside of ELF segments" warning.
377 2020-11-13  Simon Marchi  <simon.marchi@polymtl.ca>
379         PR gdb/26835
380         * arm-tdep.c (class arm_instruction_reader): New.
381         (target_arm_instruction_reader): New.
382         (arm_analyze_prologue): Add instruction reader parameter and use
383         it.  Use arm_expand_immediate.
384         (class target_arm_instruction_reader): Adjust.
385         (arm_skip_prologue): Adjust.
386         (arm_expand_immediate): New.
387         (arm_scan_prologue): Adjust.
388         (arm_analyze_prologue_test): New.
389         (class test_arm_instruction_reader): New.
391 2020-11-13  Andrew Burgess  <andrew.burgess@embecosm.com>
393         * f-lang.c (fortran_argument_convert): Add declaration.  Add
394         header comment, taken from f-lang.h.  Make static.
395         * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
396         (fortran_argument_convert): Delete declaration.
398 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
400         * ada-exp.y (find_primitive_type): Make parameter const.
401         * ada-lang.c (enum ada_primitive_types): Delete.
402         (ada_language::language_arch_info): Update.
403         * c-lang.c (enum c_primitive_types): Delete.
404         (c_language_arch_info): Update.
405         (enum cplus_primitive_types): Delete.
406         (cplus_language::language_arch_info): Update.
407         * d-lang.c (enum d_primitive_types): Delete.
408         (d_language::language_arch_info): Update.
409         * f-lang.c (enum f_primitive_types): Delete.
410         (f_language::language_arch_info): Update.
411         * go-lang.c (enum go_primitive_types): Delete.
412         (go_language::language_arch_info): Update.
413         * language.c (auto_or_unknown_language::language_arch_info):
414         Update.
415         (language_gdbarch_post_init): Use obstack_new, use array indexing.
416         (language_string_char_type): Add header comment, call function in
417         language_arch_info.
418         (language_bool_type): Likewise
419         (language_arch_info::bool_type): Define.
420         (language_lookup_primitive_type_1): Delete.
421         (language_lookup_primitive_type): Rewrite as a templated function
422         to call function in language_arch_info, then instantiate twice.
423         (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
424         (language_arch_info::lookup_primitive_type_and_symbol): Define.
425         (language_arch_info::lookup_primitive_type): Define twice with
426         different signatures.
427         (language_arch_info::lookup_primitive_type_as_symbol): Define.
428         (language_lookup_primitive_type_as_symbol): Rewrite to call a
429         member function in language_arch_info.
430         * language.h (language_arch_info): Complete rewrite.
431         (language_lookup_primitive_type): Make templated.
432         * m2-lang.c (enum m2_primitive_types): Delete.
433         (m2_language::language_arch_info): Update.
434         * opencl-lang.c (OCL_P_TYPE): Delete.
435         (enum opencl_primitive_types): Delete.
436         (opencl_type_data): Delete.
437         (builtin_opencl_type): Delete.
438         (lookup_opencl_vector_type): Update.
439         (opencl_language::language_arch_info): Update, lots of content
440         moved from...
441         (build_opencl_types): ...here.  This function is now deleted.
442         (_initialize_opencl_language): Delete.
443         * p-lang.c (enum pascal_primitive_types): Delete.
444         (pascal_language::language_arch_info): Update.
445         * rust-lang.c (enum rust_primitive_types): Delete.
446         (rust_language::language_arch_info): Update.
448 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
450         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
451         dwarf2_queue_guard.
453 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
455         * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
456         comment.
458 2020-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
460         * dwarf2/read.c (dwarf_read_debug_printf,
461         dwarf_read_debug_printf_v): New macros, use throughout the file.
463 2020-11-12  Shahab Vahedi  <shahab@synopsys.com>
465         * arc-linux-tdep.c (collect_register): Populate "eret" by
466         "pc" value from the regcache when asked for "pc" value.
468 2020-11-12  Tom Tromey  <tom@tromey.com>
470         PR rust/26799:
471         * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
472         exist.
474 2020-11-12  Andrew Burgess  <andrew.burgess@embecosm.com>
476         * features/Makefile (XMLTOC): Add rx.xml.
477         (FEATURE_XMLFILES): Remove rx.xml.
478         (FEATURE_CFILES rule): Pass '-single-feature' flag.
479         * features/rx.c: Regenerate.
480         * features/rx.xml: Wrap in `target` tags, and reindent.
481         * target-descriptions.c (struct maint_print_c_tdesc_options): New
482         structure.
483         (maint_print_c_tdesc_opt_def): New typedef.
484         (maint_print_c_tdesc_opt_defs): New static global.
485         (make_maint_print_c_tdesc_options_def_group): New function.
486         (maint_print_c_tdesc_cmd): Make use of command line flags, only
487         print single feature C file for target descriptions containing a
488         single feature.
489         (maint_print_c_tdesc_cmd_completer): New function.
490         (_initialize_target_descriptions): Update call to register command
491         completer, and include command line flag in help text.
493 2020-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
495         * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
496         numbers.
497         * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
498         enum values.
500 2020-11-10  Tom Tromey  <tom@tromey.com>
502         * value.h (internalvar_name): Update.
503         * value.c (internalvar_name): Make return type const.
505 2020-11-10  Tom Tromey  <tom@tromey.com>
507         * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
508         (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
509         const.
511 2020-11-10  Tom Tromey  <tom@tromey.com>
513         * objc-lang.h (value_nsstring): Update.
514         * objc-lang.c (value_nsstring): Make "ptr" const.
516 2020-11-06  Andrew Burgess  <andrew.burgess@embecosm.com>
518         * expprint.c (print_subexp_funcall): Increment expression position
519         after reading argument count.
520         * f-lang.c (print_subexp_f): Skip over opcode before calling
521         common function.
522         (dump_subexp_body_f): Likewise.
524 2020-11-06  Romain Geissler  <romain.geissler@amadeus.com>
526         PR python/26832
527         * configure: Regenerate.
528         * configure.ac: Check for python modules ctypes instead of
529         itertools.
531 2020-11-06  Pedro Alves  <pedro@palves.net>
533         * macroexp.c (struct macro_buffer): Split in two classes.  Add
534         uses adjusted.
535         (struct shared_macro_buffer): New, factored out from struct
536         macro_buffer.
537         (struct growable_macro_buffer): New, factored out from struct
538         macro_buffer.
539         (set_token, get_comment, get_identifier, get_pp_number)
540         (get_character_constant, get_string_literal, get_punctuator)
541         (get_next_token_for_substitution): Constify parameters.
542         (substitute_args): Constify locals.
544 2020-11-05  Tom Tromey  <tom@tromey.com>
546         * dwarf2/read.c (read_cutu_die_from_dwo)
547         (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
548         (build_type_psymtabs_1): Update.
549         * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
550         parameter.
551         * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
552         Don't read section.  Add assert.
554 2020-11-04  Tom Tromey  <tromey@adacore.com>
556         * ada-typeprint.c (ada_print_type): Handle __XVL fields.
558 2020-11-04  Tom Tromey  <tromey@adacore.com>
560         * ada-typeprint.c (ada_print_type): Handle __T types.
562 2020-11-04  Tom Tromey  <tromey@adacore.com>
564         * dwarf2/read.c (add_partial_symbol, process_die):
565         Handle DW_TAG_array_type.
566         (is_type_tag_for_partial): Add "lang" parameter.
567         (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
569 2020-11-04  Tom Tromey  <tromey@adacore.com>
571         * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
573 2020-11-04  Tom Tromey  <tromey@adacore.com>
575         * dwarf2/read.c (read_array_type): Only apply stride to innermost
576         array.
578 2020-11-04  Tom Tromey  <tromey@adacore.com>
580         * gdbtypes.c (update_static_array_size): Handle bit stride.
582 2020-11-04  Tom Tromey  <tromey@adacore.com>
584         * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
586 2020-11-04  Tom Tromey  <tromey@adacore.com>
588         * ada-lang.c (ada_is_any_packed_array_type): New function.
589         (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
591 2020-11-04  Tom Tromey  <tromey@adacore.com>
593         * dwarf2/read.c (recognize_bound_expression)
594         (quirk_ada_thick_pointer): New functions.
595         (read_array_type): Call quirk_ada_thick_pointer.
596         (set_die_type): Add "skip_data_location" parameter.
597         (quirk_ada_thick_pointer): New function.
598         (process_structure_scope): Call quirk_ada_thick_pointer.
599         * ada-lang.c (ada_is_unconstrained_packed_array_type)
600         (decode_packed_array_bitsize): Handle thick pointers without
601         parallel types.
602         (ada_is_gnat_encoded_packed_array_type): Rename from
603         ada_is_packed_array_type.
604         (ada_is_constrained_packed_array_type): Update.
605         * ada-valprint.c (ada_val_print_gnat_array): Remove.
606         (ada_value_print_1): Use ada_get_decoded_value.
608 2020-11-04  Tom Tromey  <tromey@adacore.com>
610         * ada-lang.c (recursively_update_array_bitsize): New function.
611         (decode_constrained_packed_array_type): Call it.
613 2020-11-04  Tom Tromey  <tromey@adacore.com>
615         * ada-lang.c (to_fixed_array_type): Error if
616         decode_constrained_packed_array_type returns NULL.
618 2020-11-04  Tom Tromey  <tromey@adacore.com>
620         * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
622 2020-11-02  Tom Tromey  <tromey@adacore.com>
624         * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
625         (ALLDEPFILES): Add amd64-ravenscar-thread.c.
626         (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
627         * amd64-ravenscar-thread.c: New file.
628         * amd64-ravenscar-thread.h: New file.
629         * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
630         * configure.tgt (amd64_tobjs): Add ravenscar objects.
632 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
634         * main.c (execute_cmdargs): New function.
635         (captured_main_1): Make use of execute_cmdargs.
637 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
639         * NEWS: Mention changes to config file search path.
640         * main.c
642 2020-11-02  Tom Tromey  <tromey@adacore.com>
644         * python/python.c: Consolidate two HAVE_PYTHON blocks.
645         (python_GdbModuleDef): Move earlier.  Now static.
646         (do_start_initialization): Consolidate some IS_PY3K blocks.
648 2020-11-02  Simon Marchi  <simon.marchi@efficios.com>
650         * aarch64-linux-tdep.c: Fix indentation.
651         * aarch64-ravenscar-thread.c: Fix indentation.
652         * aarch64-tdep.c: Fix indentation.
653         * aarch64-tdep.h: Fix indentation.
654         * ada-lang.c: Fix indentation.
655         * ada-lang.h: Fix indentation.
656         * ada-tasks.c: Fix indentation.
657         * ada-typeprint.c: Fix indentation.
658         * ada-valprint.c: Fix indentation.
659         * ada-varobj.c: Fix indentation.
660         * addrmap.c: Fix indentation.
661         * addrmap.h: Fix indentation.
662         * agent.c: Fix indentation.
663         * aix-thread.c: Fix indentation.
664         * alpha-bsd-nat.c: Fix indentation.
665         * alpha-linux-tdep.c: Fix indentation.
666         * alpha-mdebug-tdep.c: Fix indentation.
667         * alpha-nbsd-tdep.c: Fix indentation.
668         * alpha-obsd-tdep.c: Fix indentation.
669         * alpha-tdep.c: Fix indentation.
670         * amd64-bsd-nat.c: Fix indentation.
671         * amd64-darwin-tdep.c: Fix indentation.
672         * amd64-linux-nat.c: Fix indentation.
673         * amd64-linux-tdep.c: Fix indentation.
674         * amd64-nat.c: Fix indentation.
675         * amd64-obsd-tdep.c: Fix indentation.
676         * amd64-tdep.c: Fix indentation.
677         * amd64-windows-tdep.c: Fix indentation.
678         * annotate.c: Fix indentation.
679         * arc-tdep.c: Fix indentation.
680         * arch-utils.c: Fix indentation.
681         * arch/arm-get-next-pcs.c: Fix indentation.
682         * arch/arm.c: Fix indentation.
683         * arm-linux-nat.c: Fix indentation.
684         * arm-linux-tdep.c: Fix indentation.
685         * arm-nbsd-tdep.c: Fix indentation.
686         * arm-pikeos-tdep.c: Fix indentation.
687         * arm-tdep.c: Fix indentation.
688         * arm-tdep.h: Fix indentation.
689         * arm-wince-tdep.c: Fix indentation.
690         * auto-load.c: Fix indentation.
691         * auxv.c: Fix indentation.
692         * avr-tdep.c: Fix indentation.
693         * ax-gdb.c: Fix indentation.
694         * ax-general.c: Fix indentation.
695         * bfin-linux-tdep.c: Fix indentation.
696         * block.c: Fix indentation.
697         * block.h: Fix indentation.
698         * blockframe.c: Fix indentation.
699         * bpf-tdep.c: Fix indentation.
700         * break-catch-sig.c: Fix indentation.
701         * break-catch-syscall.c: Fix indentation.
702         * break-catch-throw.c: Fix indentation.
703         * breakpoint.c: Fix indentation.
704         * breakpoint.h: Fix indentation.
705         * bsd-uthread.c: Fix indentation.
706         * btrace.c: Fix indentation.
707         * build-id.c: Fix indentation.
708         * buildsym-legacy.h: Fix indentation.
709         * buildsym.c: Fix indentation.
710         * c-typeprint.c: Fix indentation.
711         * c-valprint.c: Fix indentation.
712         * c-varobj.c: Fix indentation.
713         * charset.c: Fix indentation.
714         * cli/cli-cmds.c: Fix indentation.
715         * cli/cli-decode.c: Fix indentation.
716         * cli/cli-decode.h: Fix indentation.
717         * cli/cli-script.c: Fix indentation.
718         * cli/cli-setshow.c: Fix indentation.
719         * coff-pe-read.c: Fix indentation.
720         * coffread.c: Fix indentation.
721         * compile/compile-cplus-types.c: Fix indentation.
722         * compile/compile-object-load.c: Fix indentation.
723         * compile/compile-object-run.c: Fix indentation.
724         * completer.c: Fix indentation.
725         * corefile.c: Fix indentation.
726         * corelow.c: Fix indentation.
727         * cp-abi.h: Fix indentation.
728         * cp-namespace.c: Fix indentation.
729         * cp-support.c: Fix indentation.
730         * cp-valprint.c: Fix indentation.
731         * cris-linux-tdep.c: Fix indentation.
732         * cris-tdep.c: Fix indentation.
733         * darwin-nat-info.c: Fix indentation.
734         * darwin-nat.c: Fix indentation.
735         * darwin-nat.h: Fix indentation.
736         * dbxread.c: Fix indentation.
737         * dcache.c: Fix indentation.
738         * disasm.c: Fix indentation.
739         * dtrace-probe.c: Fix indentation.
740         * dwarf2/abbrev.c: Fix indentation.
741         * dwarf2/attribute.c: Fix indentation.
742         * dwarf2/expr.c: Fix indentation.
743         * dwarf2/frame.c: Fix indentation.
744         * dwarf2/index-cache.c: Fix indentation.
745         * dwarf2/index-write.c: Fix indentation.
746         * dwarf2/line-header.c: Fix indentation.
747         * dwarf2/loc.c: Fix indentation.
748         * dwarf2/macro.c: Fix indentation.
749         * dwarf2/read.c: Fix indentation.
750         * dwarf2/read.h: Fix indentation.
751         * elfread.c: Fix indentation.
752         * eval.c: Fix indentation.
753         * event-top.c: Fix indentation.
754         * exec.c: Fix indentation.
755         * exec.h: Fix indentation.
756         * expprint.c: Fix indentation.
757         * f-lang.c: Fix indentation.
758         * f-typeprint.c: Fix indentation.
759         * f-valprint.c: Fix indentation.
760         * fbsd-nat.c: Fix indentation.
761         * fbsd-tdep.c: Fix indentation.
762         * findvar.c: Fix indentation.
763         * fork-child.c: Fix indentation.
764         * frame-unwind.c: Fix indentation.
765         * frame-unwind.h: Fix indentation.
766         * frame.c: Fix indentation.
767         * frv-linux-tdep.c: Fix indentation.
768         * frv-tdep.c: Fix indentation.
769         * frv-tdep.h: Fix indentation.
770         * ft32-tdep.c: Fix indentation.
771         * gcore.c: Fix indentation.
772         * gdb_bfd.c: Fix indentation.
773         * gdbarch.sh: Fix indentation.
774         * gdbarch.c: Re-generate
775         * gdbarch.h: Re-generate.
776         * gdbcore.h: Fix indentation.
777         * gdbthread.h: Fix indentation.
778         * gdbtypes.c: Fix indentation.
779         * gdbtypes.h: Fix indentation.
780         * glibc-tdep.c: Fix indentation.
781         * gnu-nat.c: Fix indentation.
782         * gnu-nat.h: Fix indentation.
783         * gnu-v2-abi.c: Fix indentation.
784         * gnu-v3-abi.c: Fix indentation.
785         * go32-nat.c: Fix indentation.
786         * guile/guile-internal.h: Fix indentation.
787         * guile/scm-cmd.c: Fix indentation.
788         * guile/scm-frame.c: Fix indentation.
789         * guile/scm-iterator.c: Fix indentation.
790         * guile/scm-math.c: Fix indentation.
791         * guile/scm-ports.c: Fix indentation.
792         * guile/scm-pretty-print.c: Fix indentation.
793         * guile/scm-value.c: Fix indentation.
794         * h8300-tdep.c: Fix indentation.
795         * hppa-linux-nat.c: Fix indentation.
796         * hppa-linux-tdep.c: Fix indentation.
797         * hppa-nbsd-nat.c: Fix indentation.
798         * hppa-nbsd-tdep.c: Fix indentation.
799         * hppa-obsd-nat.c: Fix indentation.
800         * hppa-tdep.c: Fix indentation.
801         * hppa-tdep.h: Fix indentation.
802         * i386-bsd-nat.c: Fix indentation.
803         * i386-darwin-nat.c: Fix indentation.
804         * i386-darwin-tdep.c: Fix indentation.
805         * i386-dicos-tdep.c: Fix indentation.
806         * i386-gnu-nat.c: Fix indentation.
807         * i386-linux-nat.c: Fix indentation.
808         * i386-linux-tdep.c: Fix indentation.
809         * i386-nto-tdep.c: Fix indentation.
810         * i386-obsd-tdep.c: Fix indentation.
811         * i386-sol2-nat.c: Fix indentation.
812         * i386-tdep.c: Fix indentation.
813         * i386-tdep.h: Fix indentation.
814         * i386-windows-tdep.c: Fix indentation.
815         * i387-tdep.c: Fix indentation.
816         * i387-tdep.h: Fix indentation.
817         * ia64-libunwind-tdep.c: Fix indentation.
818         * ia64-libunwind-tdep.h: Fix indentation.
819         * ia64-linux-nat.c: Fix indentation.
820         * ia64-linux-tdep.c: Fix indentation.
821         * ia64-tdep.c: Fix indentation.
822         * ia64-tdep.h: Fix indentation.
823         * ia64-vms-tdep.c: Fix indentation.
824         * infcall.c: Fix indentation.
825         * infcmd.c: Fix indentation.
826         * inferior.c: Fix indentation.
827         * infrun.c: Fix indentation.
828         * iq2000-tdep.c: Fix indentation.
829         * language.c: Fix indentation.
830         * linespec.c: Fix indentation.
831         * linux-fork.c: Fix indentation.
832         * linux-nat.c: Fix indentation.
833         * linux-tdep.c: Fix indentation.
834         * linux-thread-db.c: Fix indentation.
835         * lm32-tdep.c: Fix indentation.
836         * m2-lang.c: Fix indentation.
837         * m2-typeprint.c: Fix indentation.
838         * m2-valprint.c: Fix indentation.
839         * m32c-tdep.c: Fix indentation.
840         * m32r-linux-tdep.c: Fix indentation.
841         * m32r-tdep.c: Fix indentation.
842         * m68hc11-tdep.c: Fix indentation.
843         * m68k-bsd-nat.c: Fix indentation.
844         * m68k-linux-nat.c: Fix indentation.
845         * m68k-linux-tdep.c: Fix indentation.
846         * m68k-tdep.c: Fix indentation.
847         * machoread.c: Fix indentation.
848         * macrocmd.c: Fix indentation.
849         * macroexp.c: Fix indentation.
850         * macroscope.c: Fix indentation.
851         * macrotab.c: Fix indentation.
852         * macrotab.h: Fix indentation.
853         * main.c: Fix indentation.
854         * mdebugread.c: Fix indentation.
855         * mep-tdep.c: Fix indentation.
856         * mi/mi-cmd-catch.c: Fix indentation.
857         * mi/mi-cmd-disas.c: Fix indentation.
858         * mi/mi-cmd-env.c: Fix indentation.
859         * mi/mi-cmd-stack.c: Fix indentation.
860         * mi/mi-cmd-var.c: Fix indentation.
861         * mi/mi-cmds.c: Fix indentation.
862         * mi/mi-main.c: Fix indentation.
863         * mi/mi-parse.c: Fix indentation.
864         * microblaze-tdep.c: Fix indentation.
865         * minidebug.c: Fix indentation.
866         * minsyms.c: Fix indentation.
867         * mips-linux-nat.c: Fix indentation.
868         * mips-linux-tdep.c: Fix indentation.
869         * mips-nbsd-tdep.c: Fix indentation.
870         * mips-tdep.c: Fix indentation.
871         * mn10300-linux-tdep.c: Fix indentation.
872         * mn10300-tdep.c: Fix indentation.
873         * moxie-tdep.c: Fix indentation.
874         * msp430-tdep.c: Fix indentation.
875         * namespace.h: Fix indentation.
876         * nat/fork-inferior.c: Fix indentation.
877         * nat/gdb_ptrace.h: Fix indentation.
878         * nat/linux-namespaces.c: Fix indentation.
879         * nat/linux-osdata.c: Fix indentation.
880         * nat/netbsd-nat.c: Fix indentation.
881         * nat/x86-dregs.c: Fix indentation.
882         * nbsd-nat.c: Fix indentation.
883         * nbsd-tdep.c: Fix indentation.
884         * nios2-linux-tdep.c: Fix indentation.
885         * nios2-tdep.c: Fix indentation.
886         * nto-procfs.c: Fix indentation.
887         * nto-tdep.c: Fix indentation.
888         * objfiles.c: Fix indentation.
889         * objfiles.h: Fix indentation.
890         * opencl-lang.c: Fix indentation.
891         * or1k-tdep.c: Fix indentation.
892         * osabi.c: Fix indentation.
893         * osabi.h: Fix indentation.
894         * osdata.c: Fix indentation.
895         * p-lang.c: Fix indentation.
896         * p-typeprint.c: Fix indentation.
897         * p-valprint.c: Fix indentation.
898         * parse.c: Fix indentation.
899         * ppc-linux-nat.c: Fix indentation.
900         * ppc-linux-tdep.c: Fix indentation.
901         * ppc-nbsd-nat.c: Fix indentation.
902         * ppc-nbsd-tdep.c: Fix indentation.
903         * ppc-obsd-nat.c: Fix indentation.
904         * ppc-ravenscar-thread.c: Fix indentation.
905         * ppc-sysv-tdep.c: Fix indentation.
906         * ppc64-tdep.c: Fix indentation.
907         * printcmd.c: Fix indentation.
908         * proc-api.c: Fix indentation.
909         * producer.c: Fix indentation.
910         * producer.h: Fix indentation.
911         * prologue-value.c: Fix indentation.
912         * prologue-value.h: Fix indentation.
913         * psymtab.c: Fix indentation.
914         * python/py-arch.c: Fix indentation.
915         * python/py-bpevent.c: Fix indentation.
916         * python/py-event.c: Fix indentation.
917         * python/py-event.h: Fix indentation.
918         * python/py-finishbreakpoint.c: Fix indentation.
919         * python/py-frame.c: Fix indentation.
920         * python/py-framefilter.c: Fix indentation.
921         * python/py-inferior.c: Fix indentation.
922         * python/py-infthread.c: Fix indentation.
923         * python/py-objfile.c: Fix indentation.
924         * python/py-prettyprint.c: Fix indentation.
925         * python/py-registers.c: Fix indentation.
926         * python/py-signalevent.c: Fix indentation.
927         * python/py-stopevent.c: Fix indentation.
928         * python/py-stopevent.h: Fix indentation.
929         * python/py-threadevent.c: Fix indentation.
930         * python/py-tui.c: Fix indentation.
931         * python/py-unwind.c: Fix indentation.
932         * python/py-value.c: Fix indentation.
933         * python/py-xmethods.c: Fix indentation.
934         * python/python-internal.h: Fix indentation.
935         * python/python.c: Fix indentation.
936         * ravenscar-thread.c: Fix indentation.
937         * record-btrace.c: Fix indentation.
938         * record-full.c: Fix indentation.
939         * record.c: Fix indentation.
940         * reggroups.c: Fix indentation.
941         * regset.h: Fix indentation.
942         * remote-fileio.c: Fix indentation.
943         * remote.c: Fix indentation.
944         * reverse.c: Fix indentation.
945         * riscv-linux-tdep.c: Fix indentation.
946         * riscv-ravenscar-thread.c: Fix indentation.
947         * riscv-tdep.c: Fix indentation.
948         * rl78-tdep.c: Fix indentation.
949         * rs6000-aix-tdep.c: Fix indentation.
950         * rs6000-lynx178-tdep.c: Fix indentation.
951         * rs6000-nat.c: Fix indentation.
952         * rs6000-tdep.c: Fix indentation.
953         * rust-lang.c: Fix indentation.
954         * rx-tdep.c: Fix indentation.
955         * s12z-tdep.c: Fix indentation.
956         * s390-linux-tdep.c: Fix indentation.
957         * score-tdep.c: Fix indentation.
958         * ser-base.c: Fix indentation.
959         * ser-mingw.c: Fix indentation.
960         * ser-uds.c: Fix indentation.
961         * ser-unix.c: Fix indentation.
962         * serial.c: Fix indentation.
963         * sh-linux-tdep.c: Fix indentation.
964         * sh-nbsd-tdep.c: Fix indentation.
965         * sh-tdep.c: Fix indentation.
966         * skip.c: Fix indentation.
967         * sol-thread.c: Fix indentation.
968         * solib-aix.c: Fix indentation.
969         * solib-darwin.c: Fix indentation.
970         * solib-frv.c: Fix indentation.
971         * solib-svr4.c: Fix indentation.
972         * solib.c: Fix indentation.
973         * source.c: Fix indentation.
974         * sparc-linux-tdep.c: Fix indentation.
975         * sparc-nbsd-tdep.c: Fix indentation.
976         * sparc-obsd-tdep.c: Fix indentation.
977         * sparc-ravenscar-thread.c: Fix indentation.
978         * sparc-tdep.c: Fix indentation.
979         * sparc64-linux-tdep.c: Fix indentation.
980         * sparc64-nbsd-tdep.c: Fix indentation.
981         * sparc64-obsd-tdep.c: Fix indentation.
982         * sparc64-tdep.c: Fix indentation.
983         * stabsread.c: Fix indentation.
984         * stack.c: Fix indentation.
985         * stap-probe.c: Fix indentation.
986         * stubs/ia64vms-stub.c: Fix indentation.
987         * stubs/m32r-stub.c: Fix indentation.
988         * stubs/m68k-stub.c: Fix indentation.
989         * stubs/sh-stub.c: Fix indentation.
990         * stubs/sparc-stub.c: Fix indentation.
991         * symfile-mem.c: Fix indentation.
992         * symfile.c: Fix indentation.
993         * symfile.h: Fix indentation.
994         * symmisc.c: Fix indentation.
995         * symtab.c: Fix indentation.
996         * symtab.h: Fix indentation.
997         * target-float.c: Fix indentation.
998         * target.c: Fix indentation.
999         * target.h: Fix indentation.
1000         * tic6x-tdep.c: Fix indentation.
1001         * tilegx-linux-tdep.c: Fix indentation.
1002         * tilegx-tdep.c: Fix indentation.
1003         * top.c: Fix indentation.
1004         * tracefile-tfile.c: Fix indentation.
1005         * tracepoint.c: Fix indentation.
1006         * tui/tui-disasm.c: Fix indentation.
1007         * tui/tui-io.c: Fix indentation.
1008         * tui/tui-regs.c: Fix indentation.
1009         * tui/tui-stack.c: Fix indentation.
1010         * tui/tui-win.c: Fix indentation.
1011         * tui/tui-winsource.c: Fix indentation.
1012         * tui/tui.c: Fix indentation.
1013         * typeprint.c: Fix indentation.
1014         * ui-out.h: Fix indentation.
1015         * unittests/copy_bitwise-selftests.c: Fix indentation.
1016         * unittests/memory-map-selftests.c: Fix indentation.
1017         * utils.c: Fix indentation.
1018         * v850-tdep.c: Fix indentation.
1019         * valarith.c: Fix indentation.
1020         * valops.c: Fix indentation.
1021         * valprint.c: Fix indentation.
1022         * valprint.h: Fix indentation.
1023         * value.c: Fix indentation.
1024         * value.h: Fix indentation.
1025         * varobj.c: Fix indentation.
1026         * vax-tdep.c: Fix indentation.
1027         * windows-nat.c: Fix indentation.
1028         * windows-tdep.c: Fix indentation.
1029         * xcoffread.c: Fix indentation.
1030         * xml-syscall.c: Fix indentation.
1031         * xml-tdesc.c: Fix indentation.
1032         * xstormy16-tdep.c: Fix indentation.
1033         * xtensa-config.c: Fix indentation.
1034         * xtensa-linux-nat.c: Fix indentation.
1035         * xtensa-linux-tdep.c: Fix indentation.
1036         * xtensa-tdep.c: Fix indentation.
1038 2020-11-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1039             Craig Blackmore   <craig.blackmore@embecosm.com>
1041         * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1042         as an unsigned value.
1044 2020-11-01  Tom Tromey  <tom@tromey.com>
1046         * dbxread.c (dbx_end_psymtab): Update.
1047         * dwarf2/read.c (process_psymtab_comp_unit_reader)
1048         (build_type_psymtabs_reader): Update.
1049         * xcoffread.c (xcoff_end_psymtab): Update.
1050         * ctfread.c (scan_partial_symbols): Update.
1051         * psymtab.c (sort_pst_symbols): Remove.
1052         (partial_symtab::end): Rename from end_psymtab_common.  Inline
1053         sort_pst_symbols.
1054         * psympriv.h (struct partial_symtab) <end>: New method.
1055         (end_psymtab_common): Don't declare.
1057 2020-11-01  Tom Tromey  <tom@tromey.com>
1059         * symmisc.c (count_psyms): New function.
1060         (print_objfile_statistics): Use it.
1061         * psymtab.c (append_psymbol_to_list): Remove.
1062         (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1063         * objfiles.h (struct objstats) <n_psyms>: Remove.
1065 2020-11-01  Tom Tromey  <tom@tromey.com>
1067         * dbxread.c (dbx_end_psymtab): Update.
1068         * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1069         (build_type_psymtabs_reader): Update.
1070         * xcoffread.c (xcoff_end_psymtab): Update.
1071         * ctfread.c (scan_partial_symbols): Update.
1072         * psympriv.h (end_psymtab_common): Update.
1073         * psymtab.c (end_psymtab_common): Remove objfile parameter.
1074         (sort_pst_symbols): Likewise.
1076 2020-11-01  Tom Tromey  <tom@tromey.com>
1078         * dbxread.c (dbx_symfile_read): Update.
1079         * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1080         * xcoffread.c (xcoff_initial_scan): Update.
1081         * psympriv.h (init_psymbol_list): Don't declare.
1082         * psymtab.c (init_psymbol_list): Remove.
1084 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1086         * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1087         gnat_encoded_fixed_type_info.  Update all callers.
1089 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1091         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1092         line too long.
1094 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
1096         * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1097         cast_from_fixed.  Update all callers.
1098         (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1099         Update all callers.
1100         (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1101         Update all callers.
1102         * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1103         ada_scaling_factor.
1104         * ada-typeprint.c: Replace call to ada_scaling_factor by call
1105         to print_gnat_encoded_fixed_point_type.
1106         * ada-valprint.c: Likewise.
1108 2020-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1110         * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1111         (debug_prefixed_printf): Add check of debug_displaced flag.
1112         * linux-nat.c (linux_nat_debug_printf): Add check of
1113         debug_linux_nat flag.
1115 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1117         * infrun.c (infrun_debug_printf_1): Remove.
1118         (displaced_debug_printf_1): Remove.
1119         (stop_all_threads): Use debug_prefixed_printf.
1120         * infrun.h (infrun_debug_printf_1): Remove.
1121         (infrun_debug_printf): Use debug_prefixed_printf.
1122         (displaced_debug_printf_1): Remove.
1123         (displaced_debug_printf): Use debug_prefixed_printf.
1124         * linux-nat.c (linux_nat_debug_printf_1): Remove.
1125         (linux_nat_debug_printf): Use debug_prefixed_printf.
1127 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1129         * configure: Re-generate.
1130         * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1131         AC_LANG_PROGRAM.
1133 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1135         * configure: Re-generate.
1137 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1139         * configure: Re-generate.
1141 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1143         * configure: Re-generate.
1145 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1147         * configure: Re-generate.
1149 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1151         * acinclude.m4: Modernize.
1152         * configure: Re-generate.
1154 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1156         * configure.ac: Modernize.
1157         * configure: Re-generate.
1159 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1161         * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1162         * configure: Re-generate.
1163         * configure.ac: Remove AM_PROG_CC_STDC.
1165 2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
1167         * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1168         AC_CANONICAL_SYSTEM.
1169         * configure: Re-generate.
1171 2020-10-30  Simon Marchi  <simon.marchi@efficios.com>
1173         * infrun.h (displaced_debug_printf): New macro.  Replace
1174         displaced debug prints throughout to use it.
1175         (displaced_debug_printf_1): New declaration.
1176         (displaced_step_dump_bytes): Return string, remove ui_file
1177         parameter, update all callers.
1178         * infrun.c (displaced_debug_printf_1): New function.
1179         (displaced_step_dump_bytes): Return string, remove ui_file
1180         parameter
1182 2020-10-30  Simon Marchi  <simon.marchi@polymtl.ca>
1184         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1186 2020-10-30  Tom Tromey  <tromey@adacore.com>
1188         * Makefile.in (stamp-init): Depend on config.status.
1190 2020-10-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1192         * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1194 2020-10-30  Pedro Alves  <pedro@palves.net>
1196         * thread.c (lookup_selected_frame): Move ...
1197         * frame.c (lookup_selected_frame): ... here.
1199 2020-10-30  Pedro Alves  <pedro@palves.net>
1201         * blockframe.c (block_innermost_frame): Use get_selected_frame.
1202         * frame.c
1203         (scoped_restore_selected_frame::scoped_restore_selected_frame):
1204         Use save_selected_frame.  Save language as well.
1205         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1206         Use restore_selected_frame, and restore language as well.
1207         (selected_frame_id, selected_frame_level): New.
1208         (selected_frame): Update comments.
1209         (save_selected_frame, restore_selected_frame): New.
1210         (get_selected_frame): Use lookup_selected_frame.
1211         (get_selected_frame_if_set): Delete.
1212         (select_frame): Record selected_frame_level and selected_frame_id.
1213         * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1214         fields.
1215         (get_selected_frame): Make 'message' parameter optional.
1216         (get_selected_frame_if_set): Delete declaration.
1217         (select_frame): Update comments.
1218         (save_selected_frame, restore_selected_frame)
1219         (lookup_selected_frame): Declare.
1220         * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1221         * infrun.c (struct infcall_control_state) <selected_frame_level>:
1222         New field.
1223         (save_infcall_control_state): Use save_selected_frame.
1224         (restore_selected_frame): Delete.
1225         (restore_infcall_control_state): Use restore_selected_frame.
1226         * stack.c (select_frame_command_core, frame_command_core): Use
1227         get_selected_frame.
1228         * thread.c (restore_selected_frame): Rename to ...
1229         (lookup_selected_frame): ... this and make extern.  Select the
1230         current frame if the frame level is -1.
1231         (scoped_restore_current_thread::restore): Also restore the
1232         language.
1233         (scoped_restore_current_thread::~scoped_restore_current_thread):
1234         Don't try/catch.
1235         (scoped_restore_current_thread::scoped_restore_current_thread):
1236         Save the language as well.  Use save_selected_frame.
1238 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1240         * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1241         documentation.
1242         * gdbarch.h: Re-generate.
1244 2020-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1246         * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1247         parameter.
1248         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1249         Likewise.
1250         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1251         Likewise.
1252         * arch-utils.c (default_displaced_step_hw_singlestep):
1253         Likewise.
1254         * arch-utils.h (default_displaced_step_hw_singlestep):
1255         Likewise.
1256         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1257         Likewise.
1258         * s390-tdep.c (s390_displaced_step_hw_singlestep):
1259         Likewise.
1260         * gdbarch.c: Re-generate.
1261         * gdbarch.h: Re-generate.
1262         * infrun.c (resume_1): Adjust.
1264 2020-10-29  Tom Tromey  <tom@tromey.com>
1266         * progspace.c (program_space::~program_space): Don't call
1267         exec_close.
1269 2020-10-29  Tom Tromey  <tom@tromey.com>
1271         * exec.c (exec_target::close): Don't change current program
1272         space.
1274 2020-10-29  Tom Tromey  <tom@tromey.com>
1276         * symfile.c (add_symbol_file_command): Update.
1277         * exec.c (program_space::add_target_sections): Rename.
1278         * symfile-mem.c (symbol_file_add_from_memory): Update.
1279         * progspace.h (struct program_space) <add_target_sections>:
1280         Declare new overload.
1281         * exec.h (add_target_sections_of_objfile): Don't declare.
1283 2020-10-29  Tom Tromey  <tom@tromey.com>
1285         * solib.c (solib_map_sections): Update.
1286         * exec.c (program_space::add_target_sections): Now a method.
1287         (exec_file_attach): Update.
1288         * exec.h (add_target_sections): Don't declare.
1289         * progspace.h (struct program_space) <add_target_sections>:
1290         Declare.
1292 2020-10-29  Tom Tromey  <tom@tromey.com>
1294         * progspace.h (struct program_space) <remove_target_sections>:
1295         Declare.
1296         * exec.c (program_space::remove_target_sections): Now a method.
1297         * exec.h (remove_target_sections): Don't declare.
1299 2020-10-29  Tom Tromey  <tom@tromey.com>
1301         * inferior.c (delete_inferior): Update.
1302         * progspace.c (program_space::empty): Rename from
1303         program_space_empty_p.  Return bool.
1304         * progspace.h (struct program_space) <empty>: New method.
1305         (program_space_empty_p): Don't declare.
1307 2020-10-29  Tom Tromey  <tom@tromey.com>
1309         * progspace.c (program_space::~program_space): Don't call
1310         clear_program_space_solib_cache.
1311         (program_space::clear_solib_cache): Rename from
1312         clear_solib_cache.
1313         * solib.c (handle_solib_event): Update.
1314         * progspace.h (struct program_space) <clear_solib_cache>: New
1315         method.
1316         (clear_program_space_solib_cache): Don't declare.
1318 2020-10-29  Tom Tromey  <tom@tromey.com>
1320         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1321         * target.c (info_target_command): Update.
1322         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1323         (symbol_file_clear, reread_symbols): Update.
1324         * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1325         * stabsread.c (scan_file_globals): Update.
1326         * solib.c (update_solib_list): Update.
1327         * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1328         (svr4_fetch_objfile_link_map, enable_break)
1329         (svr4_relocate_main_executable)
1330         (svr4_iterate_over_objfiles_in_search_order): Update.
1331         * solib-frv.c (lm_base, enable_break)
1332         (frv_relocate_main_executable): Update.
1333         (main_got, frv_fdpic_find_canonical_descriptor): Update.
1334         (frv_fetch_objfile_link_map): Update.
1335         * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1336         * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1337         * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1338         * remote.c (remote_target::get_offsets): Update.
1339         (remote_target::start_remote)
1340         (extended_remote_target::post_attach): Update.
1341         * objfiles.c (entry_point_address_query): Update.
1342         * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1343         * minsyms.c (get_symbol_leading_char): Update.
1344         * frame.c (inside_main_func): Update.
1345         * progspace.h (symfile_objfile): Remove macro.
1347 2020-10-29  Tom Tromey  <tom@tromey.com>
1349         * exec.c (exec_file_attach): Update.
1350         * progspace.c (program_space::exec_close): Update.
1351         * progspace.h (struct program_space) <ebfd>: Now a
1352         gdb_bfd_ref_ptr.
1353         <set_exec_bfd>: Change argument type.
1354         <exec_bfd>: Update.
1356 2020-10-29  Tom Tromey  <tom@tromey.com>
1358         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1359         * symfile.c (reread_symbols): Update.
1360         * symfile-mem.c (add_symbol_file_from_memory_command)
1361         (add_vsyscall_page): Update.
1362         * source-cache.c (source_cache::get_plain_source_lines): Update.
1363         * solib-svr4.c (find_program_interpreter, elf_locate_base)
1364         (svr4_current_sos_direct, svr4_exec_displacement)
1365         (svr4_relocate_main_executable): Update.
1366         (svr4_iterate_over_objfiles_in_search_order): Update.
1367         * solib-frv.c (enable_break2, enable_break): Update.
1368         * solib-dsbt.c (lm_base, enable_break): Update.
1369         * solib-darwin.c (find_program_interpreter)
1370         (darwin_solib_create_inferior_hook): Update.
1371         * sol-thread.c (rw_common, ps_pdmodel): Update.
1372         * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1373         * remote.c (compare_sections_command)
1374         (remote_target::trace_set_readonly_regions): Update.
1375         * remote-sim.c (get_sim_inferior_data)
1376         (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1377         (gdbsim_target_open, gdbsim_target::files_info): Update.
1378         * exec.h (exec_bfd): Remove macro.
1379         * progspace.c (initialize_progspace): Update.
1380         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1381         Update.
1382         * nto-procfs.c (nto_procfs_target::post_attach)
1383         (nto_procfs_target::create_inferior): Update.
1384         * maint.c (maintenance_info_sections): Update.
1385         * linux-thread-db.c (thread_db_target::get_thread_local_address):
1386         Update.
1387         * infcmd.c (post_create_inferior): Update.
1388         * gcore.c (default_gcore_arch, default_gcore_target): Update.
1389         (objfile_find_memory_regions): Update.
1390         * exec.c (validate_exec_file, exec_file_attach)
1391         (exec_read_partial_read_only, print_section_info): Update.
1392         * corelow.c (core_target_open): Update.
1393         * corefile.c (reopen_exec_file, validate_files): Update.
1394         * arm-tdep.c (gdb_print_insn_arm): Update.
1395         * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1396         * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1397         methods.
1399 2020-10-29  Tom Tromey  <tom@tromey.com>
1401         * progspace.h (current_target_sections): Remove macro.
1402         * solib-svr4.c (scan_dyntag): Update.
1403         * solib-dsbt.c (scan_dyntag): Update.
1404         * exec.c (exec_target::close): Update.
1405         (add_target_sections, add_target_sections_of_objfile)
1406         (remove_target_sections, exec_target::get_section_table)
1407         (exec_target::files_info, set_section_command)
1408         (exec_set_section_address, exec_target::has_memory)
1409         (exec_target::has_memory): Update.
1411 2020-10-29  Tom Tromey  <tom@tromey.com>
1413         * source-cache.c (source_cache::get_plain_source_lines): Use
1414         current_program_space.
1415         * corefile.c (reopen_exec_file): Use current_program_space.
1416         * exec.c (exec_file_attach): Use current_program_space.
1417         * exec.h (exec_bfd_mtime): Remove.
1419 2020-10-29  Tom Tromey  <tom@tromey.com>
1421         * gcore.c (default_gcore_mach): Remove.
1422         (create_gcore_bfd): Update.
1424 2020-10-29  Tom Tromey  <tom@tromey.com>
1426         * progspace.c (program_space::exec_close): New method, from
1427         exec_close in exec.c.
1428         * exec.c (exec_close): Move to progspace.c.
1429         (exec_target::close, exec_file_attach): Update.
1430         * progspace.h (struct program_space) <exec_close>: Declare
1431         method.
1433 2020-10-29  Tom Tromey  <tom@tromey.com>
1435         * progspace.h (struct program_space) <exec_filename>: Rename from
1436         pspace_exec_filename.  Now a unique_xmalloc_ptr.
1437         * inferior.c (print_selected_inferior): Update.
1438         (print_inferior): Update.
1439         * mi/mi-main.c (print_one_inferior): Update.
1440         * exec.h (exec_filename): Remove macro.
1441         * corefile.c (get_exec_file): Update.
1442         * exec.c (exec_close): Update.
1443         (exec_file_attach): Update.
1444         * progspace.c (clone_program_space): Update.
1445         (print_program_space): Update.
1447 2020-10-29  Tom Tromey  <tom@tromey.com>
1449         * target-section.h (struct target_section): Add constructor.
1450         * exec.c (build_section_table, add_target_sections_of_objfile):
1451         Update.
1452         * corelow.c (core_target::build_file_mappings): Update.
1454 2020-10-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1456         PR gdb/19318
1457         * inferior.c (detach_inferior_command): Restore the current thread.
1458         (kill_inferior_command): Ditto.
1460 2020-10-28  Tom de Vries  <tdevries@suse.de>
1462         PR symtab/26772
1463         * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1464         map, check it in the "best match" loop.
1466 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1468         * m32c-tdep.c: Remove unused includes.
1470 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1472         * xtensa-tdep.c: Remove includes.
1474 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1476         * breakpoint.c (struct condition_command_opts): New struct.
1477         (condition_command_option_defs): New static global.
1478         (make_condition_command_options_def_group): New function.
1479         (condition_completer): Update to consider the '-force' flag.
1480         (condition_command): Use gdb::option for the '-force' flag.
1482 2020-10-27  Tom de Vries  <tdevries@suse.de>
1484         * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1485         symbols in section check.
1487 2020-10-27  Tom de Vries  <tdevries@suse.de>
1489         * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1491 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1493         * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1494         * breakpoint.c: Update the help text of the 'condition' and 'break'
1495         commands.
1496         (set_breakpoint_condition): Take a new bool parameter
1497         to control whether condition definition should be forced even when
1498         the condition expression is invalid in all of the current locations.
1499         (condition_command): Update the call to 'set_breakpoint_condition'.
1500         (find_condition_and_thread): Take the "-force-condition" flag into
1501         account.
1502         * linespec.c (linespec_keywords): Add "-force-condition" as an
1503         element.
1504         (FORCE_KEYWORD_INDEX): New #define.
1505         (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1506         as a keyword.
1507         * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1508         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1509         * python/py-breakpoint.c (bppy_set_condition): Ditto.
1510         * NEWS: Mention the changes to the 'break' and 'condition' commands.
1512 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1514         * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1515         * breakpoint.c (set_breakpoint_location_condition): New function.
1516         (set_breakpoint_condition): Disable a breakpoint location if parsing
1517         the condition string gives an error.
1518         (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1519         (build_target_condition_list): Ditto.
1520         (build_target_command_list): Ditto.
1521         (build_bpstat_chain): Ditto.
1522         (print_one_breakpoint_location): Ditto.
1523         (print_one_breakpoint): Ditto.
1524         (breakpoint_1): Ditto.
1525         (bp_location::bp_location): Ditto.
1526         (locations_are_equal): Ditto.
1527         (update_breakpoint_locations): Ditto.
1528         (enable_disable_bp_num_loc): Ditto.
1529         (init_breakpoint_sal): Use set_breakpoint_location_condition.
1530         (find_condition_and_thread_for_sals): New static function.
1531         (create_breakpoint): Call find_condition_and_thread_for_sals.
1532         (location_to_sals): Call find_condition_and_thread_for_sals instead
1533         of find_condition_and_thread.
1535 2020-10-26  Tom de Vries  <tdevries@suse.de>
1537         * dwarf2/read.c (process_full_comp_unit): Call
1538         dwarf2_find_base_address.
1540 2020-10-26  Tom Tromey  <tromey@adacore.com>
1542         * gdbtypes.c (create_range_type): Revert previous patch.  Add
1543         comment.
1545 2020-10-26  Pedro Alves  <pedro@palves.net>
1547         * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1548         (my_waitpid): Use gdb::handle_eintr.
1550 2020-10-25  Simon Marchi  <simon.marchi@polymtl.ca>
1552         * acinclude.m4: Update ptrace.m4 path.
1553         * ptrace.m4: Moved to gdbsupport.
1555 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1557         * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1558         instead of target_gdbarch.
1560 2020-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1562         * jit.c (jit_reader_load_command): Pass current inferior.
1563         (jit_inferior_init): Change parameter type to inferior, use it.
1564         (jit_inferior_created): Remove.
1565         (jit_inferior_created_hook): Pass inferior parameter down.
1566         (_initialize_jit): Use jit_inferior_created_hook instead of
1567         jit_inferior_created.
1568         * jit.h (jit_inferior_created_hook): Add inferior parameter.
1569         * infrun.c (follow_exec): Pass inferior to
1570         jit_inferior_created_hook.
1572 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
1574         * linux-thread-db.c (check_pid_namespace_match): Add inferior
1575         parameter and use it.
1576         (thread_db_inferior_created): Pass inferior argument.
1578 2020-10-24  Simon Marchi  <simon.marchi@efficios.com>
1580         * aix-thread.c (aix_thread_inferior_created): Add inferior
1581         parameter.
1582         * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1583         * dummy-frame.c (cleanup_dummy_frames): Likewise.
1584         * jit.c (jit_inferior_created): Likewise.
1585         * linux-thread-db.c (thread_db_inferior_created): Likewise.
1586         * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1587         * observable.h (inferior_created): Likewise.
1588         * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1589         * symfile-mem.c (add_vsyscall_page): Likewise.
1590         * infcmd.c (post_create_inferior): Pass inferior argument.
1592 2020-10-24  Joel Brobecker  <brobecker@adacore.com>
1594         GDB 10.1 released.
1596 2020-10-23  Joel Brobecker  <brobecker@adacore.com>
1598         * ada-typeprint.c (ada_print_type): Remove superfluous second call
1599         to ada_check_typedef.
1601 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1603         * f-exp.y (f_parse): Rename to...
1604         (f_language::parser): ...this.
1605         * f-lang.c (f_get_encoding): Rename to...
1606         (f_language::get_encoding): ...this.
1607         (f_op_print_tab): Rename to...
1608         (f_language::op_print_tab): ...this.
1609         (exp_descriptor_f): Rename to...
1610         (f_language::exp_descriptor_tab): ...this.
1611         (class f_language): Moved to f-lang.h.
1612         (f_language::language_arch_info): New function, moved out of class
1613         declaration.
1614         (f_language::search_name_hash): Likewise.
1615         (f_language::lookup_symbol_nonlocal): Likewise.
1616         (f_language::get_symbol_name_matcher_inner): Likewise.
1617         * f-lang.h: Add 'valprint.h' include.
1618         (class f_language): Moved here from f-lang.c.
1619         * f-typeprint.c (f_type_print_args): Delete commented out
1620         declaration.
1621         (f_print_typedef): Rename to...
1622         (f_language::print_typedef): ...this.
1623         (f_print_type): Rename to...
1624         (f_language::print_type): ...this.
1625         (f_type_print_varspec_prefix): Delete declaration and rename to...
1626         (f_language::f_type_print_varspec_prefix): ...this.
1627         (f_type_print_varspec_suffix): Delete declaration and rename to...
1628         (f_language::f_type_print_varspec_suffix): ...this.
1629         (f_type_print_base): Delete declaration and rename to...
1630         (f_language::f_type_print_base): ...this.
1631         * f-valprint.c (f_value_print_inner): Rename to...
1632         (f_language::value_print_inner): ...this.
1633         * parse.c: Delete 'f-lang.h' include.
1635 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1637         * language.h (language_defn::print_type): Add variable names in
1638         declaration, and update header comment.
1640 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1642         * ada-lang.c (ada_language::demangle): Rename to...
1643         (ada_language::demangle_symbol): ...this.
1644         * c-lang.c (cplus_language::demangle): Rename to...
1645         (cplus_language::demangle_symbol): ...this.
1646         * d-lang.c (d_language::demangle): Rename to...
1647         (d_language::demangle_symbol): ...this.
1648         * f-lang.c (f_language::demangle): Rename to...
1649         (f_language::demangle_symbol): ...this.
1650         * go-lang.c (go_language::demangle): Rename to...
1651         (go_language::demangle_symbol): ...this.
1652         * language.c (language_demangle): Update call to demangle_symbol.
1653         (auto_or_unknown_language::demangle): Rename to...
1654         (auto_or_unknown_language::demangle_symbol): ...this.
1655         * language.h (language_defn::demangle): Rename to...
1656         (language_defn::demangle_symbol): ...this.
1657         * objc-lang.c (objc_language::demangle): Rename to...
1658         (objc_language::demangle_symbol): ...this.
1659         * rust-lang.c (rust_language::demangle): Rename to...
1660         (rust_language::demangle_symbol): ...this.
1662 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1664         * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1665         (iterate_over_file_blocks): Replace use of macro with the macros
1666         definition.
1668 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1670         * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1671         * valprint.c (maybe_print_array_index): Replace use of macro with
1672         the macros definition.
1674 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1676         * ada-lang.c (ada_language::print_array_index): Call value_print
1677         directly.
1678         * language.c (language_defn::print_array_index): Likewise.
1679         * language.h (LA_VALUE_PRINT): Delete.
1680         * valprint.c (value_print): Call value_print on the
1681         current_language directly.
1683 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1685         * language.h (LA_PRINT_TYPEDEF): Delete.
1686         * typeprint.c (typedef_print): Call print_typedef directly on the
1687         current_language object.
1689 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1691         * m2-exp.y (m2_parse): Rename to...
1692         (m2_language::parser): ...this.  Update function signature.
1693         * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1694         (m2_op_print): Rename to...
1695         (m2_language::op_print_tab): ...this, and make const.
1696         (exp_descriptor_modula2): Rename to...
1697         (m2_language::exp_descriptor_modula2): ...this.
1698         (class m2_language): Move to m2-lang.h.
1699         (m2_language::language_arch_info): New function, moved out of
1700         class declaration.
1701         (m2_language::printchar): New function, body from m2_printchar.
1702         (m2_language::printstr): New function, moved out of class
1703         declaration.
1704         (m2_language::emitchar): Likewise.
1705         * m2-lang.h (m2_parse): Delete declaration.
1706         (m2_print_typedef): Delete declaration.
1707         (m2_value_print_inner): Delete declaration.
1708         (class m2_language): Class declaration moved from m2-lang.c,
1709         larger functions are left in m2-lang.c.
1710         * m2-typeprint.c (m2_print_typedef): Rename to...
1711         (m2_language::print_typedef): ...this, and update function
1712         signature.
1713         * m2-valprint.c (m2_value_print_inner): Rename to...
1714         (m2_language::value_print_inner): ...this, replace use of
1715         LA_PRINT_STRING with a direct call to printstr member function,
1716         and update recursive call.
1718 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1720         * language.c (default_is_string_type_p): Delete, implementation
1721         moved into auto_or_unknown_language::is_string_type_p.
1722         (unk_op_print_tab): Moved into
1723         auto_or_unknown_language::opcode_print_table.
1724         (unknown_language_arch_info): Delete, implementation moved into
1725         auto_or_unknown_language::language_arch_info.
1726         (class auto_or_unknown_language): New class, member functions
1727         copied from unknown_language class, with some updates.
1728         (class unknown_language): Most member functions moved into
1729         auto_or_unknown_language class.  Inherit from
1730         auto_or_unknown_language class.
1731         (class auto_language): Inherit from auto_or_unknown_language.
1732         Delete most member functions.
1734 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
1736         * stabsread.c (read_member_functions): Remove gdb_assert.
1738 2020-10-22  Hannes Domani  <ssbssa@yahoo.de>
1740         * gdbtypes.c (init_complex_type): Check target type name.
1742 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1744         * target-debug.h (target_debug_print_struct_target_ops_p):
1745         Remove.
1746         (target_debug_print_async_callback_ftype_p): Remove.
1747         (target_debug_print_struct_trace_state_variable_p): Remove.
1748         (target_debug_print_struct_traceframe_info_p): Remove.
1749         (target_debug_print_VEC__btrace_block_s__pp): Remove.
1750         (target_debug_print_enum_btrace_format): Remove.
1751         (target_debug_print_enum_info_proc_what): Remove.
1752         (target_debug_print_thread_info_pp): Remove.
1754 2020-10-22  Simon Marchi  <simon.marchi@efficios.com>
1756         * target.h (struct target_ops) <make_corefile_notes>:
1757         Change return type to unique pointer.
1758         * target.c (dummy_make_corefile_notes): Likewise.
1759         * exec.c (struct exec_target) <make_corefile_notes>:
1760         Likewise.
1761         (exec_target::make_corefile_notes): Likewise.
1762         * procfs.c (class procfs_target) <make_corefile_notes>:
1763         Likewise.
1764         (procfs_do_thread_registers): Adjust to unique pointer.
1765         (struct procfs_corefile_thread_data): Add constructor.
1766         <note_data>: Change type to unique pointer.
1767         (procfs_corefile_thread_callback): Adjust to unique pointer.
1768         (procfs_target::make_corefile_notes): Change return type to
1769         unique pointer.
1770         * target-delegates.c: Re-generate.
1771         * gcore.c (write_gcore_file_1): Adjust.
1772         * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1773         New.
1775 2020-10-22  Tom de Vries  <tdevries@suse.de>
1777         * block.c (find_block_in_blockvector): Make sure the returned block
1778         contains pc.
1780 2020-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1782         PR gdb/26693
1783         * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1784         parameter.
1785         (load_cu): Pass existing CU.
1786         (process_imported_unit_die): Likewise.
1787         (follow_die_offset): Likewise.
1789 2020-10-22  Luis Machado  <luis.machado@linaro.org>
1791         * corelow.c (core_target::xfer_partial): Also check for an empty
1792         m_core_unavailable_mappings vector.
1794 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1796         * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1797         * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1798         * f-exp.y (arglist): Allow for a series of subranges.
1799         (subrange): Add cases for subranges with strides.
1800         * f-lang.c (value_f90_subarray): Catch use of array strides and
1801         throw an error.
1802         * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1804 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1806         * expprint.c (print_subexp_standard): Change enum range_type to
1807         range_flag and rename variables to match.
1808         (dump_subexp_body_standard): Likewise.
1809         * expression.h (enum range_type): Rename to...
1810         (enum range_flag): ...this.
1811         (range_types): Rename to...
1812         (range_flags): ...this.
1813         * f-lang.c (value_f90_subarray): Change enum range_type to
1814         range_flag and rename variables to match.
1815         * parse.c (operator_length_standard): Likewise.
1816         * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1817         range_type to range_flag.
1818         * rust-lang.c (rust_evaluate_funcall): Likewise.
1819         (rust_range): Likewise.
1820         (rust_compute_range): Likewise.
1821         (rust_subscript): Likewise.
1823 2020-10-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1825         * expprint.c (print_subexp_standard): Update to reflect changes to
1826         enum range_type.
1827         (dump_subexp_body_standard): Likewise.
1828         * expression.h (enum range_type): Convert to a bit field enum, and
1829         make the enum unsigned.
1830         * f-exp.y (subrange): Update to reflect changes to enum
1831         range_type.
1832         * f-lang.c (value_f90_subarray): Likewise.
1833         * parse.c (operator_length_standard): Likewise.
1834         * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1835         * rust-lang.c (rust_range): Likewise.
1836         (rust_compute_range): Likewise.
1837         (rust_subscript): Likewise.
1839 2020-10-21  Simon Marchi  <simon.marchi@efficios.com>
1841         * infrun.c (displaced_step_in_progress_thread): Fix comment.
1842         (displaced_step_in_progress): Fix comment.
1844 2020-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1846         * gdbarch.sh (make_corefile_notes): Return unique pointer.
1847         * gdbarch.c: Re-generate.
1848         * gdbarch.h: Re-generate.
1849         * gcore.c (write_gcore_file_1): Adjust.
1850         * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1851         constructor.
1852         <note_data>: Change type to unique pointer.
1853         <abort_iteration>: Change type to bool.
1854         (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1855         (fbsd_collect_thread_registers): Return void, adjust.
1856         (struct fbsd_corefile_thread_data): Add construtor.
1857         <note_data>: Change type to unique pointer.
1858         (fbsd_corefile_thread): Adjust.
1859         (fbsd_make_corefile_notes): Return unique pointer, adjust.
1860         * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1861         to unique pointer, adjust.
1862         (struct linux_collect_regset_section_cb_data): Add constructor.
1863         <note_data>: Change type to unique pointer.
1864         <abort_iteration>: Change type to bool.
1865         (linux_collect_thread_registers): Return void, adjust.
1866         (struct linux_corefile_thread_data): Add constructor.
1867         <note_data>: Change type to unique pointer.
1868         (linux_corefile_thread): Adjust.
1869         (linux_make_corefile_notes): Return unique pointer, adjust.
1871 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1873         * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1874         * gdbarch.c: Re-generate.
1875         * gdbarch.h: Re-generate.
1876         * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1877         bool.
1878         * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1879         Likewise.
1880         * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1881         * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1882         * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1883         * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1885 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1887         * gdbarch.sh: Make generated predicates return bool.
1888         * gdbarch.c: Re-generate.
1889         * gdbarch.h: Re-generate.
1891 2020-10-20  Tom Tromey  <tom@tromey.com>
1893         * varobj-iter.h (struct varobj_item): Remove typedef.
1895 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1897         * infrun.c (currently_stepping): Change int to bool
1898         (maybe_software_singlestep): Likewise.
1899         (show_stop_on_solib_events): Likewise.
1900         (stepping_past_nonsteppable_watchpoint): Likewise.
1901         (displaced_step_in_progress_any_inferior): Likewise.
1902         (displaced_step_in_progress_thread): Likewise.
1903         (keep_going_stepped_thread): Likewise.
1904         (thread_still_needs_step_over): Likewise.
1905         (start_step_over): Likewise.
1906         (do_target_resume): Likewise.
1907         (resume_1): Likewise.
1908         (clear_proceed_status): Likewise.
1909         (thread_still_needs_step_over_bp): Likewise.
1910         (proceed): Likewise.
1911         (switch_back_to_stepped_thread): Likewise.
1912         (adjust_pc_after_break): Likewise.
1913         (stepped_in_from): Likewise.
1914         (handle_stop_requested): Likewise.
1915         (handle_syscall_event): Likewise.
1916         (handle_no_resumed): Likewise.
1917         (handle_inferior_event): Likewise.
1918         (finish_step_over): Likewise.
1919         (handle_signal_stop): Likewise.
1920         (process_event_stop_test): Likewise.
1922 2020-10-20  Simon Marchi  <simon.marchi@polymtl.ca>
1924         * infrun.c (get_displaced_stepping_state): Fix comment.
1926 2020-10-20  Andreas Schwab  <schwab@linux-m68k.org>
1928         * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1930 2020-10-19  Tom Tromey  <tromey@adacore.com>
1932         PR tui/26719
1933         * tui/tui-winsource.h (struct tui_source_window_base)
1934         <refresh_window>: Rename from refresh_pad.
1935         * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1936         Rename from refresh_pad.
1937         (tui_source_window_base::show_source_content)
1938         (tui_source_window_base::do_scroll_horizontal): Update.
1940 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1942         * thread.c (_initialize_thread): Fine-tune the help text of
1943         'info threads'.
1945 2020-10-19  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1947         * frame.c: Remove the unused 'uinteger_option_def' type alias.
1949 2020-10-14  Mihails Strasuns  <mihails.strasuns@intel.com>
1951         * breakpoint.c (handle_jit_event): Add an argument, change how
1952         `jit_event_handler` is called.
1954 2020-10-17  Tom Tromey  <tom@tromey.com>
1956         * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1957         (scan_xcoff_symtab): Update.
1958         * psymtab.h (class psymtab_storage) <global_psymbols,
1959         static_psymbols, current_global_psymbols,
1960         current_static_psymbols>: Remove.
1961         * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1962         (match_partial_symbol, lookup_partial_symbol): Update.
1963         (print_partial_symbols): Change parameters.
1964         (dump_psymtab, recursively_search_psymtabs)
1965         (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1966         (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1967         (concat): Remove.
1968         (end_psymtab_common): Simplify.
1969         (append_psymbol_to_list): Change parameters.
1970         (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1971         (init_psymbol_list): Simplify.
1972         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1973         * psympriv.h (struct partial_symtab) <empty>: New method.
1974         <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1975         Remove.
1976         <global_psymbols, static_psymbols>: New members.
1977         <add_psymbol>: New methods.
1978         (add_psymbol_to_list): Don't declare.
1979         (psymbol_placement): Move earlier.
1980         * mdebugread.c (parse_partial_symbols): Update.
1981         (handle_psymbol_enumerators): Change parameters.
1982         (mdebug_expand_psymtab): Update.
1983         * dwarf2/read.c (process_psymtab_comp_unit_reader)
1984         (add_partial_symbol): Update.
1985         * dwarf2/index-write.c (write_psymbols): Change parameters.
1986         (write_one_signatured_type): Update.
1987         (recursively_count_psymbols): Update.
1988         (recursively_write_psymbols): Update.
1989         (class debug_names) <recursively_write_psymbols>: Update.
1990         <write_psymbols>: Change parameters.
1991         <write_one_signatured_type>: Update.
1992         * dbxread.c (read_dbx_symtab): Update.
1993         (dbx_end_psymtab): Use partial_symtab::empty.
1994         * ctfread.c (struct ctf_context) <pst>: New member.
1995         (create_partial_symtab): Set it.
1996         (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1997         (scan_partial_symbols): Use the psymtab's context.  Update.
1999 2020-10-17  Tom Tromey  <tom@tromey.com>
2001         * valprint.c (generic_value_print): Remove comment.
2002         * m2-valprint.c (m2_value_print_inner): Remove comment.
2003         * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2004         type.
2006 2020-10-17  Tom de Vries  <tdevries@suse.de>
2008         PR symtab/26317
2009         * source.c (select_source_symtab): Handling sal.symtab == NULL for
2010         symbol main.
2012 2020-10-14  Tom de Vries  <tdevries@suse.de>
2014         PR gdb/26733
2015         * solib.c (solib_contains_address_p): Handle
2016         'solib->sections == nullptr'.
2018 2020-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
2020         PR gdb/26642
2021         * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2022         target can't do async.
2023         * target.c (target_wait): Assert that we don't pass
2024         TARGET_WNOHANG to a target that can't async.
2026 2020-10-13  Kamil Rytarowski  <n54@gmx.com>
2028         * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2029         HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2030         * alpha-bsd-nat.c: Adjust include.
2031         * alpha-bsd-tdep.h: Adjust comment.
2032         * alpha-nbsd-tdep.c: Rename to ...
2033         * alpha-netbsd-tdep.c: ... this, adjust include.
2034         * amd64-nbsd-nat.c: Rename to ...
2035         * amd64-netbsd-nat.c: ... this, adjust include.
2036         * amd64-nbsd-tdep.c: Rename to ...
2037         * amd64-netbsd-tdep.c: ... this, adjust include.
2038         * amd64-tdep.h: Adjust include.
2039         * arm-nbsd-nat.c: Rename to ...
2040         * arm-netbsd-nat.c: ... this, adjust include.
2041         * arm-nbsd-tdep.c: Rename to ...
2042         * arm-netbsd-tdep.c: ... this, adjust include.
2043         * arm-nbsd-tdep.h: Rename to ...
2044         * arm-netbsd-tdep.h: ... this, adjust include.
2045         * configure.nat: Adjust file lists.
2046         * configure.tgt: Likewise.
2047         * hppa-nbsd-nat.c: Rename to ...
2048         * hppa-netbsd-nat.c: ... this, adjust include.
2049         * hppa-nbsd-tdep.c: Rename to ...
2050         * hppa-netbsd-tdep.c: ... this, adjust include.
2051         * i386-nbsd-nat.c: Rename to ...
2052         * i386-netbsd-nat.c: ... this, adjust include.
2053         * i386-nbsd-tdep.c: Rename to ...
2054         * i386-netbsd-tdep.c: ... this, adjust include.
2055         * m68k-bsd-nat.c: Adjust include.
2056         * mips-nbsd-nat.c: Rename to ...
2057         * mips-netbsd-nat.c: ... this, adjust include.
2058         * mips-nbsd-tdep.c: Rename to ...
2059         * mips-netbsd-tdep.c: ... this, adjust include.
2060         * mips-nbsd-tdep.h: Rename to ...
2061         * mips-netbsd-tdep.h: ... this.
2062         * nbsd-nat.c: Rename to ...
2063         * netbsd-nat.c: ... this, adjust include.
2064         * nbsd-nat.h: Rename to ...
2065         * netbsd-nat.h: ... this, adjust include.
2066         * nbsd-tdep.c: Rename to ...
2067         * netbsd-tdep.c: ... this, adjust include.
2068         * nbsd-tdep.h: Rename to ...
2069         * netbsd-tdep.h: ... this.
2070         * ppc-nbsd-nat.c: Rename to ...
2071         * ppc-netbsd-nat.c: ... this, adjust include.
2072         * ppc-nbsd-tdep.c: Rename to ...
2073         * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2074         * ppc-nbsd-tdep.h: Rename to ...
2075         * ppc-netbsd-tdep.h: ... this.
2076         * sh-nbsd-nat.c: Rename to ...
2077         * sh-netbsd-nat.c: ... this, adjust include.
2078         * sh-nbsd-tdep.c: Rename to ...
2079         * sh-netbsd-tdep.c: ... this, adjust include.
2080         * sparc-nbsd-nat.c: Rename to ...
2081         * sparc-netbsd-nat.c: ... this.
2082         * sparc-nbsd-tdep.c: Rename to ...
2083         * sparc-netbsd-tdep.c: ... this, adjust include.
2084         * sparc64-nbsd-nat.c: Rename to ...
2085         * sparc64-netbsd-nat.c: ... this.
2086         * sparc64-nbsd-tdep.c: Rename to ...
2087         * sparc64-netbsd-tdep.c: ... this, adjust include.
2088         * sparc64-tdep.h: Adjust comment.
2089         * vax-bsd-nat.c: Adjust include.
2090         * vax-nbsd-tdep.c: Rename to ...
2091         * vax-netbsd-tdep.c: ... this, adjust include.
2093 2020-10-12  Tom Tromey  <tom@tromey.com>
2095         * target.h (struct target_ops) <get_section_table>: Update.
2096         (target_get_section_table): Update.
2097         * target.c (target_get_section_table, target_section_by_addr)
2098         (memory_xfer_partial_1): Update.
2099         * target-section.h (target_section_table): Now an alias.
2100         * target-delegates.c: Rebuild.
2101         * target-debug.h (target_debug_print_target_section_table_p):
2102         Rename from target_debug_print_struct_target_section_table_p.
2103         * symfile.c (build_section_addr_info_from_section_table): Update.
2104         * solib.c (solib_map_sections, solib_contains_address_p): Update.
2105         * solib-svr4.c (scan_dyntag): Update.
2106         * solib-dsbt.c (scan_dyntag): Update.
2107         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2108         Update.
2109         * record-full.c (record_full_core_target::xfer_partial): Update.
2110         * progspace.h (struct program_space) <target_sections>: Update.
2111         * exec.h (print_section_info): Update.
2112         * exec.c (exec_target::close, build_section_table)
2113         (add_target_sections, add_target_sections_of_objfile)
2114         (remove_target_sections, exec_on_vfork)
2115         (section_table_available_memory)
2116         (section_table_xfer_memory_partial)
2117         (exec_target::get_section_table, exec_target::xfer_partial)
2118         (print_section_info, set_section_command)
2119         (exec_set_section_address, exec_target::has_memory): Update.
2120         * corelow.c (core_target::build_file_mappings)
2121         (core_target::xfer_partial, core_target::info_proc_mappings)
2122         (core_target::info_proc_mappings): Update.
2123         * bfd-target.c (class target_bfd): Update
2125 2020-10-12  Tom Tromey  <tom@tromey.com>
2127         * progspace.c (program_space::~program_space): Don't call
2128         clear_section_table.
2129         * exec.h (clear_section_table): Don't declare.
2130         * exec.c (exec_target::close): Update.
2131         (clear_section_table): Remove.
2133 2020-10-12  Tom Tromey  <tom@tromey.com>
2135         * exec.c (add_target_sections_of_objfile): Simplify.
2137 2020-10-12  Tom Tromey  <tom@tromey.com>
2139         * solib.c (solib_map_sections): Update.
2140         * record-full.c (record_full_core_open_1): Update.
2141         * exec.h (build_section_table): Return a target_section_table.
2142         * exec.c (exec_file_attach): Update.
2143         (build_section_table): Return a target_section_table.
2144         * corelow.c (core_target::core_target): Update.
2145         * bfd-target.c (target_bfd::target_bfd): Update.
2147 2020-10-12  Tom Tromey  <tom@tromey.com>
2149         * target.c (target_section_by_addr, memory_xfer_partial_1):
2150         Update.
2151         * target-section.h (struct target_section_table): Use
2152         std::vector.
2153         * symfile.h (build_section_addr_info_from_section_table): Take a
2154         target_section_table.
2155         * symfile.c (build_section_addr_info_from_section_table): Take a
2156         target_section_table.
2157         * solist.h (struct so_list) <sections>: Change type.
2158         <sections_end>: Remove.
2159         * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2160         (solib_contains_address_p): Update.
2161         * solib-svr4.c (scan_dyntag): Update.
2162         * solib-dsbt.c (scan_dyntag): Update.
2163         * remote.c (remote_target::remote_xfer_live_readonly_partial):
2164         Update.
2165         * record-full.c (record_full_core_start, record_full_core_end):
2166         Remove.
2167         (record_full_core_sections): New global.
2168         (record_full_core_open_1, record_full_core_target::xfer_partial):
2169         Update.
2170         * exec.h (build_section_table, section_table_xfer_memory_partial)
2171         (add_target_sections): Take a target_section_table.
2172         * exec.c (exec_file_attach, clear_section_table): Update.
2173         (resize_section_table): Remove.
2174         (build_section_table, add_target_sections): Take a
2175         target_section_table.
2176         (add_target_sections_of_objfile, remove_target_sections)
2177         (exec_on_vfork): Update.
2178         (section_table_available_memory): Take a target_section_table.
2179         (section_table_read_available_memory): Update.
2180         (section_table_xfer_memory_partial): Take a target_section_table.
2181         (print_section_info, set_section_command)
2182         (exec_set_section_address, exec_target::has_memory): Update.
2183         * corelow.c (class core_target) <m_core_section_table,
2184         m_core_file_mappings>: Remove braces.
2185         <~core_target>: Remove.
2186         (core_target::core_target): Update.
2187         (core_target::~core_target): Remove.
2188         (core_target::build_file_mappings)
2189         (core_target::xfer_memory_via_mappings)
2190         (core_target::xfer_partial, core_target::info_proc_mappings):
2191         Update.
2192         * bfd-target.c (target_bfd::xfer_partial): Update.
2193         (target_bfd::target_bfd): Update.
2194         (target_bfd::~target_bfd): Remove.
2196 2020-10-12  Tom Tromey  <tom@tromey.com>
2198         * target.h (struct target_section, struct target_section_table):
2199         Move to target-section.h.
2200         * target-section.h: New file.
2202 2020-10-12  Pedro Alves  <pedro@palves.net>
2204         PR exp/26602
2205         * valops.c (struct struct_field_searcher): New.
2206         (update_search_result): Rename to ...
2207         (struct_field_searcher::update_result): ... this.  Simplify
2208         prototype.  Record all found fields.
2209         (do_search_struct_field): Rename to ...
2210         (struct_field_searcher::search): ... this.  Simplify prototype.
2211         Maintain stack of visited baseclass path.  Call update_result for
2212         fields too.  Keep searching fields in baseclasses instead of
2213         stopping at the first found field.
2214         (search_struct_field): Use struct_field_searcher.  When looking
2215         for fields, report ambiguous access attempts.
2217 2020-10-11  Andrew Burgess  <andrew.burgess@embecosm.com>
2219         * frame.c (inside_main_func): Check full symbols as well as
2220         minimal symbols.
2222 2020-10-09  Joel Brobecker  <brobecker@adacore.com>
2224         * ada-lang.c (advance_wild_match): Rewrite the function's
2225         description.  Change the type of target0, t0 and t1 to char.
2227 2020-10-09  Tom Tromey  <tromey@adacore.com>
2229         * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2231 2020-10-09  Tom Tromey  <tromey@adacore.com>
2233         * ada-lang.h (ada_encode): Return std::string.
2234         * ada-lang.c (ada_encode_1): Return std::string.
2235         (ada_encode): Likewise.
2236         (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2237         Update.
2238         * ada-exp.y (block_lookup, write_var_or_type): Update.
2240 2020-10-09  Hannes Domani  <ssbssa@yahoo.de>
2242         PR exp/26714
2243         * printcmd.c (print_formatted): Handle void results as
2244         unformatted prints.
2246 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2248         * arch/aarch32.c (aarch32_create_target_description): Release the
2249         target_desc_up as late as possible.
2250         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2251         * arch/amd64.c (amd64_create_target_description): Likewise.
2252         * arch/arc.c (arc_create_target_description): Return a
2253         target_desc_up, don't release it.
2254         * arch/arc.h (arc_create_target_description): Update declaration.
2255         (arc_lookup_target_description): Move target_desc_up into the
2256         cache, and return a borrowed pointer.
2257         * arch/arm.c (arm_create_target_description): Release the
2258         target_desc_up as late as possible.
2259         * arch/i386.c (i386_create_target_description): Likewise.
2260         * arch/riscv.h (riscv_create_target_description): Update
2261         declaration to match definition.
2262         * arch/tic6x.c (tic6x_create_target_description): Release the
2263         target_desc_up as late as possible.
2265 2020-10-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2267         * Makefile.in: Include Makefile.gnulib.inc.  Don't define LIBGNU
2268         or INCGNU.  Make use of LIBGNU_EXTRA_LIBS when linking.
2270 2020-10-09  Jan Vrany  <jan.vrany@labware.com>
2272         * source.c (directory_command): Notify observers that "directories"
2273         parameter has changed.
2275 2020-10-08  Tom Tromey  <tom@tromey.com>
2277         * cli/cli-cmds.c (print_disassembly): Style function name and
2278         addresses.  Add _() wrappers.
2280 2020-10-08  Shahab Vahedi  <shahab@synopsys.com>
2282         * NEWS: Mention ARC support in GDBserver.
2284 2020-10-08  Andrew Burgess  <andrew.burgess@embecosm.com>
2286         * arch/aarch32.c (aarch32_create_target_description): Release
2287         unique_ptr returned from allocate_target_description.
2288         * arch/aarch64.c (aarch64_create_target_description): Likewise.
2289         * arch/amd64.c (amd64_create_target_description): Likewise.
2290         * arch/arc.c (arc_create_target_description): Likewise.
2291         * arch/arm.c (arm_create_target_description): Likewise.
2292         * arch/i386.c (i386_create_target_description): Likewise.
2293         * arch/riscv.c (riscv_create_target_description): Update return
2294         type.  Handle allocate_target_description returning a unique_ptr.
2295         (riscv_lookup_target_description): Update to handle unique_ptr.
2296         * arch/tic6x.c (tic6x_create_target_description): Release
2297         unique_ptr returned from allocate_target_description.
2298         * features/microblaze-with-stack-protect.c: Regenerate.
2299         * features/microblaze.c: Regenerate.
2300         * features/mips-dsp-linux.c: Regenerate.
2301         * features/mips-linux.c: Regenerate.
2302         * features/mips64-dsp-linux.c: Regenerate.
2303         * features/mips64-linux.c: Regenerate.
2304         * features/nds32.c: Regenerate.
2305         * features/nios2.c: Regenerate.
2306         * features/or1k.c: Regenerate.
2307         * features/rs6000/powerpc-32.c: Regenerate.
2308         * features/rs6000/powerpc-32l.c: Regenerate.
2309         * features/rs6000/powerpc-403.c: Regenerate.
2310         * features/rs6000/powerpc-403gc.c: Regenerate.
2311         * features/rs6000/powerpc-405.c: Regenerate.
2312         * features/rs6000/powerpc-505.c: Regenerate.
2313         * features/rs6000/powerpc-601.c: Regenerate.
2314         * features/rs6000/powerpc-602.c: Regenerate.
2315         * features/rs6000/powerpc-603.c: Regenerate.
2316         * features/rs6000/powerpc-604.c: Regenerate.
2317         * features/rs6000/powerpc-64.c: Regenerate.
2318         * features/rs6000/powerpc-64l.c: Regenerate.
2319         * features/rs6000/powerpc-7400.c: Regenerate.
2320         * features/rs6000/powerpc-750.c: Regenerate.
2321         * features/rs6000/powerpc-860.c: Regenerate.
2322         * features/rs6000/powerpc-altivec32.c: Regenerate.
2323         * features/rs6000/powerpc-altivec32l.c: Regenerate.
2324         * features/rs6000/powerpc-altivec64.c: Regenerate.
2325         * features/rs6000/powerpc-altivec64l.c: Regenerate.
2326         * features/rs6000/powerpc-e500.c: Regenerate.
2327         * features/rs6000/powerpc-e500l.c: Regenerate.
2328         * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2329         * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2330         * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2331         * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2332         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2333         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2334         * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2335         * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2336         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2337         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2338         * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2339         * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2340         * features/rs6000/powerpc-vsx32.c: Regenerate.
2341         * features/rs6000/powerpc-vsx32l.c: Regenerate.
2342         * features/rs6000/powerpc-vsx64.c: Regenerate.
2343         * features/rs6000/powerpc-vsx64l.c: Regenerate.
2344         * features/rs6000/rs6000.c: Regenerate.
2345         * features/rx.c: Regenerate.
2346         * features/s390-gs-linux64.c: Regenerate.
2347         * features/s390-linux32.c: Regenerate.
2348         * features/s390-linux32v1.c: Regenerate.
2349         * features/s390-linux32v2.c: Regenerate.
2350         * features/s390-linux64.c: Regenerate.
2351         * features/s390-linux64v1.c: Regenerate.
2352         * features/s390-linux64v2.c: Regenerate.
2353         * features/s390-te-linux64.c: Regenerate.
2354         * features/s390-tevx-linux64.c: Regenerate.
2355         * features/s390-vx-linux64.c: Regenerate.
2356         * features/s390x-gs-linux64.c: Regenerate.
2357         * features/s390x-linux64.c: Regenerate.
2358         * features/s390x-linux64v1.c: Regenerate.
2359         * features/s390x-linux64v2.c: Regenerate.
2360         * features/s390x-te-linux64.c: Regenerate.
2361         * features/s390x-tevx-linux64.c: Regenerate.
2362         * features/s390x-vx-linux64.c: Regenerate.
2363         * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2364         from allocate_target_description.
2365         * target-descriptions.c (allocate_target_description): Update
2366         return type.
2367         (print_c_tdesc::visit_pre): Release unique_ptr returned from
2368         allocate_target_description.
2370 2020-10-07  Tom Tromey  <tromey@adacore.com>
2372         * unittests/search-memory-selftests.c: New file.
2373         * Makefile.in (SELFTESTS_SRCS): Add
2374         unittests/search-memory-selftests.c.
2376 2020-10-07  Tom Tromey  <tromey@adacore.com>
2378         PR gdb/16930:
2379         * findcmd.c (_initialize_mem_search): Mention that the range is
2380         inclusive.
2382 2020-10-07  Tom Tromey  <tromey@adacore.com>
2384         * target.h (simple_search_memory): Don't declare.
2385         * target.c (simple_search_memory): Move to gdbsupport.
2386         (default_search_memory): Update.
2387         * remote.c (remote_target::search_memory): Update.
2389 2020-10-07  Simon Marchi  <simon.marchi@efficios.com>
2391         * Makefile.in (COMPILE): Add CXXFLAGS.
2392         (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2393         (check-headers): Add CXXFLAGS.
2395 2020-10-07  Anton Kolesov  <anton.kolesov@synopsys.com>
2397         * arc-linux-tdep.h: New file.
2398         * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2399         arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2400         arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2401         arc_linux_gregset, arc_linux_v2_regset,
2402         arc_linux_iterate_over_regset_sections,
2403         arc_linux_core_read_description): Implement.
2404         (arc_linux_init_osabi): Set iterate_over_regset_sections.
2405         * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2406         (arc_gdbarch_features_create): Add.
2407         * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2409 2020-10-07  Shahab Vahedi  <shahab@synopsys.com>
2411         * arch/arc.h: Rename "arc_gdbarch_features" to
2412         "arc_arch_features".
2413         * arc-tdep.h: Likewise.
2414         * arc-tdep.c: Likewise.
2416 2020-10-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2418         * infcmd.c (attach_command): Remove the redundant call to
2419         `clear_proceed_status`.
2421 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
2423         * nat/netbsd-nat.c (write_memory, read_memory): Update.
2425 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
2427         * nat/netbsd-nat.c (write_memory, read_memory): Add.
2428         * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2429         * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2431 2020-10-07  Simon Marchi  <simon.marchi@polymtl.ca>
2433         * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2434         (_initialize_break_catch_sig): Don't allocate array.
2436 2020-10-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2438         * symtab.c (find_pc_line): Return unmapped addresses when the
2439         requested address is also unmapped.
2441 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
2443         * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2444         tui/tui-out.h.
2446 2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
2448         * amd64-windows-tdep.c (amd64_windows_return_value): Use
2449         type::is_vector instead of TYPE_VECTOR.
2451 2020-10-05  Simon Marchi  <simon.marchi@polymtl.ca>
2453         * auto-load.c (auto_load_objfile_script_1): Don't use
2454         debugfile_holder as temporary variable when stripping drive
2455         letter.
2457 2020-10-05  Hannes Domani  <ssbssa@yahoo.de>
2459         * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2460         Add TYPE_CODE_COMPLEX.
2461         (amd64_windows_return_value): Fix types returned via XMM0.
2463 2020-10-05  Alan Hayward  <alan.hayward@arm.com>
2465         * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2466         AArch64/ARM maintainers.
2468 2020-10-04  Simon Marchi  <simon.marchi@polymtl.ca>
2470         * NEWS: Mention set/show debug event-loop.
2472 2020-10-02  Tom Tromey  <tromey@adacore.com>
2474         * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2475         REG_EXTENDED.
2477 2020-10-02  Simon Marchi  <simon.marchi@efficios.com>
2479         * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2480         * procfs.c (procfs_inferior_created): Remove.
2481         (_initialize_procfs): Don't register procfs_inferior_created.
2483 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2485         * async-event.c (invoke_async_signal_handlers): Add debug
2486         print.
2487         (check_async_event_handlers): Likewise.
2488         * event-top.c (show_debug_event_loop): New function.
2489         (_initialize_event_top): Register "set debug event-loop"
2490         setting.
2492 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2494         * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2495         * debug.h: Remove.
2496         * infrun.c: Include gdbsupport/common-debug.h.
2497         * linux-nat.c: Likewise.
2499 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2501         * async-event.h (create_async_signal_handler): Add name
2502         parameter.
2503         (create_async_event_handler): Likewise.
2504         * async-event.c (struct async_signal_handler) <name>: New field.
2505         (struct async_event_handler) <name>: New field.
2506         (create_async_signal_handler): Assign name.
2507         (create_async_event_handler): Assign name.
2508         * event-top.c (async_init_signals): Pass name when creating
2509         handler.
2510         * infrun.c (_initialize_infrun): Likewise.
2511         * record-btrace.c (record_btrace_push_target): Likewise.
2512         * record-full.c (record_full_open): Likewise.
2513         * remote-notif.c (remote_notif_state_allocate): Likewise.
2514         * remote.c (remote_target::open_1): Likewise.
2515         * tui/tui-win.c (tui_initialize_win): Likewise.
2517 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2519         * async-event.c (initialize_async_signal_handlers): Pass name to
2520         add_file_handler
2521         * event-top.c (ui_register_input_event_handler): Likewise.
2522         * linux-nat.c (linux_nat_target::async): Likewise.
2523         * run-on-main-thread.c (_initialize_run_on_main_thread):
2524         Likewise
2525         * ser-base.c (reschedule): Likewise.
2526         (ser_base_async): Likewise.
2527         * tui/tui-io.c: Likewise.
2528         * top.h (struct ui) <num>: New field.
2529         * top.c (highest_ui_num): New variable.
2530         (ui::ui): Initialize num.
2532 2020-10-02  Simon Marchi  <simon.marchi@polymtl.ca>
2534         * observable.h <inferior_created>: Remove parameters.  Update all
2535         listeners.
2536         * inferior.h (post_create_inferior): Remove target parameter.
2537         Update all callers.
2539 2020-10-02  Nitika Achra  <Nitika.Achra@amd.com>
2541         * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2542         and DW_MACRO_undef_strx.
2543         (dwarf_decode_macros): Likewise
2544         * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2545         which is the value of DW_AT_str_offsets_base.
2546          * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2547         str_offsets_base.
2549 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2551         * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2553 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2555         * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2556         * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2558 2020-10-01  Kamil Rytarowski  <n54@gmx.com>
2560         * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2562 2020-09-30  Tom de Vries  <tdevries@suse.de>
2564         PR symtab/26683
2565         * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2567 2020-09-30  Tom Tromey  <tromey@adacore.com>
2569         * dwarf2/read.c (handle_variant): Use constant_value.
2571 2020-09-29  Tom Tromey  <tom@tromey.com>
2573         * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2574         (read_file_scope, dwarf2_get_pc_bounds)
2575         (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2576         (read_structure_type, handle_struct_member_die)
2577         (read_enumeration_type, read_array_type, read_set_type)
2578         (read_tag_pointer_type, read_tag_reference_type)
2579         (read_subroutine_type, read_base_type, read_subrange_type)
2580         (read_full_die_1, partial_die_info::read)
2581         (partial_die_info::read, by, new_symbol)
2582         (dwarf2_const_value_data, dwarf2_const_value_attr)
2583         (dump_die_shallow, dwarf2_fetch_constant_bytes)
2584         (prepare_one_comp_unit): Update.
2585         * dwarf2/attribute.h (DW_UNSND): Remove.
2587 2020-09-29  Tom Tromey  <tom@tromey.com>
2589         * dwarf2/read.c (read_func_scope, prototyped_function_p)
2590         (read_subroutine_type, partial_die_info::read)
2591         (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2592         (dwarf2_add_member_fn): Update.
2593         * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2594         * dwarf2/attribute.c (attribute::as_boolean): New method.
2596 2020-09-29  Tom Tromey  <tom@tromey.com>
2598         * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2599         * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2600         method.
2601         * dwarf2/attribute.c (attribute::as_virtuality): New method.
2603 2020-09-29  Tom Tromey  <tom@tromey.com>
2605         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2606         the attribute's form.
2608 2020-09-29  Tom Tromey  <tom@tromey.com>
2610         * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2611         (dwarf2_add_member_fn): Update.
2612         * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2613         * dwarf2/attribute.c (attribute::defaulted): New method, from
2614         is_valid_DW_AT_defaulted.
2616 2020-09-29  Tom Tromey  <tom@tromey.com>
2618         * dwarf2/read.c (dw2_get_file_names_reader)
2619         (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2620         (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2621         (dwarf2_symbol_mark_computed): Use as_unsigned.
2622         * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2623         method.
2624         <form_is_section_offset>: Update comment.
2626 2020-09-29  Tom Tromey  <tom@tromey.com>
2628         * dwarf2/read.c (dwarf2_access_attribute): Rename from
2629         dwarf2_default_access_attribute.  Look up attribute.
2630         (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2631         Update.
2633 2020-09-29  Tom Tromey  <tom@tromey.com>
2635         * dwarf2/read.c (skip_one_die): Update.
2636         (read_full_die_1): Change how reprocessing is done.
2637         (partial_die_info::read): Update.
2638         (read_attribute_value): Remove need_reprocess parameter.
2639         (read_attribute): Likewise.
2640         * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2641         New method.
2643 2020-09-29  Tom Tromey  <tom@tromey.com>
2645         * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2646         (dwarf2_const_value_attr, dump_die_shallow)
2647         (dwarf2_fetch_constant_bytes): Update.
2648         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2649         comment.
2650         <set_address>: New method.
2651         (DW_ADDR): Remove.
2652         * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2653         (attribute::as_string, attribute::as_address): Add assert.
2655 2020-09-29  Tom Tromey  <tom@tromey.com>
2657         * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2658         (read_attribute_reprocess, read_attribute_value): Update.
2659         (read_attribute): Clear requires_reprocessing.
2660         * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2661         form_requires_reprocessing>: New methods.
2662         <string_init>: Clear requires_reprocessing.
2663         <set_unsigned_reprocess>: New method.
2664         <name>: Shrink by one bit.
2665         <requires_reprocessing>: New member.
2666         * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2667         method.
2669 2020-09-29  Tom Tromey  <tom@tromey.com>
2671         * dwarf2/read.c (read_attribute_value): Update.
2672         * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2673         set_unsigned>: New methods.
2674         * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2676 2020-09-29  Tom Tromey  <tom@tromey.com>
2678         * dwarf2/read.c (get_alignment, read_array_order)
2679         (read_attribute_value, dwarf2_const_value_attr)
2680         (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2681         * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2682         New methods.
2683         (DW_SND): Remove.
2685 2020-09-29  Tom Tromey  <tom@tromey.com>
2687         * dwarf2/read.c (read_attribute_value, lookup_die_type)
2688         (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2689         Update.
2690         * dwarf2/attribute.h (struct attribute) <as_signature,
2691         set_signature>: New methods.
2692         (DW_SIGNATURE): Remove.
2694 2020-09-29  Tom Tromey  <tom@tromey.com>
2696         * dwarf2/read.c (read_call_site_scope)
2697         (handle_data_member_location, dwarf2_add_member_fn)
2698         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2699         (partial_die_info::read, read_attribute_value)
2700         (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2701         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2702         (dwarf2_symbol_mark_computed): Update.
2703         * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2704         methods.
2705         (DW_BLOCK): Remove.
2706         * dwarf2/attribute.c (attribute::form_is_block): Add
2707         DW_FORM_data16.
2709 2020-09-29  Tom Tromey  <tom@tromey.com>
2711         * dwarf2/read.c (read_cutu_die_from_dwo)
2712         (read_attribute_reprocess, read_attribute_value, read_attribute)
2713         (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2714         (dwarf2_fetch_constant_bytes): Update.
2715         * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2716         <set_string_noncanonical, set_string_canonical>: New methods.
2717         <string_is_canonical>: Update comment.
2718         <canonical_string_p>: Add assert.
2719         (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2720         * dwarf2/attribute.c (attribute::form_is_string): New method.
2721         (attribute::string): Use it.
2723 2020-09-29  Tom Tromey  <tom@tromey.com>
2725         * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2726         (dump_die_shallow): Use canonical_string_p.
2727         * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2728         method.
2730 2020-09-29  Tom Tromey  <tom@tromey.com>
2732         * dwarf2/read.c (partial_die_info::read)
2733         (dwarf2_const_value_attr, anonymous_struct_prefix, )
2734         (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2735         attribute::as_string.
2737 2020-09-29  Tom Tromey  <tom@tromey.com>
2739         * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2740         DW_ADDR.
2741         (attribute::string): Don't use DW_STRING.
2742         (attribute::get_ref_die_offset): Don't use DW_UNSND.
2743         (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2745 2020-09-29  Tom Tromey  <tom@tromey.com>
2747         * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2748         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2749         (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2750         * dwarf2/attribute.h (struct attribute): Rename methods.
2751         * dwarf2/attribute.c (attribute::as_address): Rename from
2752         value_as_address.
2753         (attribute::as_string): Rename from value_as_string.
2755 2020-09-29  Tom Tromey  <tom@tromey.com>
2757         * dwarf2/read.c (partial_die_info::read) <case
2758         DW_AT_linkage_name>: Use value_as_string.
2759         (dwarf2_string_attr): Use value_as_string.
2760         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2761         method.
2762         * dwarf2/attribute.c (attribute::value_as_string): New method.
2764 2020-09-29  Pedro Alves  <pedro@palves.net>
2766         * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2767         defined before using '#pragma GCC diagnostic' instead of checking
2768         __clang__.
2770 2020-09-28  Tom Tromey  <tom@tromey.com>
2772         * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2773         (handle_signal_stop): Update.
2774         * procfs.c (procfs_target::insert_watchpoint): Update.
2775         * target.h (target_have_steppable_watchpoint): Now a function.
2777 2020-09-28  Tom Tromey  <tom@tromey.com>
2779         * infrun.c (set_schedlock_func): Update.
2780         * target.h (target_can_lock_scheduler): Now a function.
2782 2020-09-28  Tom Tromey  <tom@tromey.com>
2784         * inferior.h (class inferior) <has_execution>: Update.
2785         * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2786         * valops.c (find_function_in_inferior)
2787         (value_allocate_space_in_inferior): Update.
2788         * top.c (kill_or_detach): Update.
2789         * target.c (target_preopen, set_target_permissions): Update.
2790         (target_has_execution_current): Remove.
2791         * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2792         Update.
2793         * solib.c (update_solib_list, reload_shared_libraries): Update.
2794         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2795         * solib-dsbt.c (enable_break): Update.
2796         * score-tdep.c (score7_fetch_inst): Update.
2797         * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2798         Update.
2799         * remote.c (remote_target::start_remote)
2800         (remote_target::remote_check_symbols, remote_target::open_1)
2801         (remote_target::remote_detach_1, remote_target::verify_memory)
2802         (remote_target::xfer_partial, remote_target::read_description)
2803         (remote_target::get_min_fast_tracepoint_insn_len): Update.
2804         * record-full.c (record_full_open_1): Update.
2805         * record-btrace.c (record_btrace_target_open): Update.
2806         * objc-lang.c (lookup_objc_class, lookup_child_selector)
2807         (value_nsstring): Update.
2808         * linux-thread-db.c (add_thread_db_info)
2809         (thread_db_find_new_threads_silently, check_thread_db_callback)
2810         (try_thread_db_load_1, record_thread): Update.
2811         * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2812         Update.
2813         * linux-fork.c (checkpoint_command): Update.
2814         * infrun.c (set_non_stop, set_observer_mode)
2815         (check_multi_target_resumption, for_each_just_stopped_thread)
2816         (maybe_remove_breakpoints, normal_stop)
2817         (class infcall_suspend_state): Update.
2818         * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2819         (info_program_command, attach_command): Update.
2820         * infcall.c (call_function_by_hand_dummy): Update.
2821         * inf-loop.c (inferior_event_handler): Update.
2822         * gcore.c (gcore_command, derive_heap_segment): Update.
2823         * exec.c (exec_file_command): Update.
2824         * eval.c (evaluate_subexp): Update.
2825         * compile/compile.c (compile_to_object): Update.
2826         * cli/cli-dump.c (restore_command): Update.
2827         * breakpoint.c (update_watchpoint)
2828         (update_inserted_breakpoint_locations)
2829         (insert_breakpoint_locations, get_bpstat_thread): Update.
2830         * target.h (target_has_execution): Remove macro.
2831         (target_has_execution_current): Don't declare.
2832         (target_has_execution): Rename from target_has_execution_1.  Add
2833         argument default.
2835 2020-09-28  Tom Tromey  <tom@tromey.com>
2837         * mi/mi-main.c (exec_reverse_continue)
2838         (mi_cmd_list_target_features): Update.
2839         * infrun.c (set_exec_direction_func): Update.
2840         * target.c (default_execution_direction): Update.
2841         * reverse.c (exec_reverse_once): Update.
2842         * target.h (target_can_execute_reverse): Now a function.
2844 2020-09-28  Tom Tromey  <tom@tromey.com>
2846         * tui/tui-regs.c (tui_get_register)
2847         (tui_data_window::show_registers): Update.
2848         * thread.c (scoped_restore_current_thread::restore)
2849         (scoped_restore_current_thread::scoped_restore_current_thread):
2850         Update.
2851         * regcache-dump.c (regcache_print): Update.
2852         * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2853         Update.
2854         * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2855         * mep-tdep.c (current_me_module, current_options): Update.
2856         * linux-thread-db.c (thread_db_load): Update.
2857         * infcmd.c (registers_info, info_vector_command)
2858         (info_float_command): Update.
2859         * ia64-tdep.c (ia64_frame_prev_register)
2860         (ia64_sigtramp_frame_prev_register): Update.
2861         * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2862         * gcore.c (derive_stack_segment): Update.
2863         * frame.c (get_current_frame, has_stack_frames): Update.
2864         * findvar.c (language_defn::read_var_value): Update.
2865         * arm-tdep.c (arm_pc_is_thumb): Update.
2866         * target.c (target_has_registers): Rename from
2867         target_has_registers_1.
2868         * target.h (target_has_registers): Remove macro.
2869         (target_has_registers): Rename from target_has_registers_1.
2871 2020-09-28  Tom Tromey  <tom@tromey.com>
2873         * windows-tdep.c (tlb_make_value): Update.
2874         * tui/tui-regs.c (tui_data_window::show_registers): Update.
2875         * thread.c (scoped_restore_current_thread::restore)
2876         (scoped_restore_current_thread::scoped_restore_current_thread)
2877         (thread_command): Update.
2878         * stack.c (backtrace_command_1, frame_apply_level_command)
2879         (frame_apply_all_command, frame_apply_command): Update.
2880         * infrun.c (siginfo_make_value, restore_infcall_control_state):
2881         Update.
2882         * gcore.c (derive_stack_segment): Update.
2883         * frame.c (get_current_frame, has_stack_frames): Update.
2884         * auxv.c (info_auxv_command): Update.
2885         * ada-tasks.c (ada_build_task_list): Update.
2886         * target.c (target_has_stack): Rename from target_has_stack_1.
2887         * target.h (target_has_stack): Remove macro.
2888         (target_has_stack): Rename from target_has_stack_1.
2890 2020-09-28  Tom Tromey  <tom@tromey.com>
2892         * target.c (target_has_memory): Rename from target_has_memory_1.
2893         * tui/tui-regs.c (tui_data_window::show_registers): Update.
2894         * thread.c (scoped_restore_current_thread::restore)
2895         (scoped_restore_current_thread::scoped_restore_current_thread):
2896         Update.
2897         * frame.c (get_current_frame, has_stack_frames): Update.
2898         * target.h (target_has_memory): Remove macro.
2899         (target_has_memory): Rename from target_has_memory_1.
2901 2020-09-28  Tom Tromey  <tom@tromey.com>
2903         * target.c (target_has_all_memory_1): Remove.
2904         * target.h (target_has_all_memory): Remove define.
2905         (target_has_all_memory_1): Don't declare.
2907 2020-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
2909         * ser-base.c: Adjust comments formatting.
2911 2020-09-27  Tom Tromey  <tom@tromey.com>
2913         PR tui/25342:
2914         * tui/tui-io.c (tui_puts): Rewrite.  Move earlier.
2916 2020-09-27  Tom Tromey  <tom@tromey.com>
2918         PR tui/25342:
2919         * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2921 2020-09-27  Tom Tromey  <tom@tromey.com>
2923         * unittests/tui-selftests.c: Update.
2924         * tui/tui-winsource.h (struct tui_source_window_base)
2925         <extra_margin, show_line_number, refresh_pad>: New methods.
2926         <m_max_length, m_pad>: New members.
2927         (tui_copy_source_line): Update.
2928         * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2929         first_col, line_width, ndigits parameters.  Add length.
2930         (tui_source_window_base::show_source_line): Write to pad.  Line
2931         number now 0-based.
2932         (tui_source_window_base::refresh_pad): New method.
2933         (tui_source_window_base::show_source_content): Write to pad.  Call
2934         refresh_pad.
2935         (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2936         not refill.
2937         (tui_source_window_base::update_exec_info): Call
2938         show_line_number.
2939         * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2940         method.
2941         <m_digits>: New member.
2942         * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2943         and m_max_length.
2944         (tui_source_window::show_line_number): New method.
2945         * tui/tui-io.h (tui_puts): Fix comment.
2946         * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2947         m_max_length.
2949 2020-09-27  Tom Tromey  <tom@tromey.com>
2951         * tui/tui-winsource.c
2952         (tui_source_window_base::set_is_exec_point_at): Don't call
2953         show_source_line.
2955 2020-09-27  Tom Tromey  <tom@tromey.com>
2957         * python/py-tui.c (class tui_py_window) <refresh_window>: New
2958         method.
2959         <erase>: Update.
2960         <cursor_x, cursor_y>: Remove.
2961         <m_inner_window>: New member.
2962         (tui_py_window::rerender): Create inner window.
2963         (tui_py_window::output): Write to inner window.
2965 2020-09-26  Gareth Rees <grees@undo.io>  (tiny change)
2967         PR python/26586
2968         * cli/cli-script.c (execute_control_commands): don't set
2969         instream to nullptr here as this breaks the from_tty argument
2970         to gdb.execute in Python.
2971         (execute_user_command): set instream to nullptr here instead.
2973 2020-09-25  Simon Marchi  <simon.marchi@efficios.com>
2975         * infrun.h (infrun_debug_printf): Fix formatting.
2976         * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2978 2020-09-25  Saagar Jha  <saagar@saagarjha.com>
2980         * compile/compile-object-load.h (struct munmap_list): Add
2981         explicitly-defined move constructor.
2983 2020-09-24  Tom Tromey  <tromey@adacore.com>
2985         PR tui/26638:
2986         * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2987         method.
2988         * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2989         * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2990         (tui_prev_win): Rewrite.
2992 2020-09-23  Hannes Domani  <ssbssa@yahoo.de>
2994         * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2995         in WOW64 processes as SIGINT.
2996         * nat/windows-nat.h: Make wow64_process a shared variable.
2997         * windows-nat.c: Remove static wow64_process variable.
2999 2020-09-23  Tom Tromey  <tom@tromey.com>
3001         PR symtab/25470:
3002         * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3003         offset and bit size.
3004         * printcmd.c (print_scalar_formatted): Handle zero-length
3005         integer.
3006         (print_scalar_formatted): Use bit_size_differs_p.
3007         * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3008         constant.
3009         (union type_specific): <int_stuff>: New member.
3010         (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3011         methods.
3012         * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3013         TYPE_SPECIFIC_FIELD.
3014         (recursive_dump_type, copy_type_recursive): Update.
3015         * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3016         DW_AT_data_bit_offset.
3018 2020-09-23  Tom Tromey  <tom@tromey.com>
3020         * utils.h (class gdb_argv): Add move operators.
3021         <append>: New methods.
3022         * compile/compile.c (build_argc_argv): Remove.
3023         (compile_args_argc): Remove.
3024         (compile_args_argv): Change type.
3025         (set_compile_args): Simplify.
3026         (append_args): Remove.
3027         (filter_args): Remove argcp parameter.
3028         (get_args): Return gdb_argv.  Simplify.
3029         (compile_to_object): Update.
3031 2020-09-23  Tom Tromey  <tom@tromey.com>
3033         * compile/compile-object-run.c (do_module_cleanup)
3034         <~do_module_cleanup> :Remove.
3035         (do_module_cleanup): Update.
3036         * compile/compile-object-load.h (struct munmap_list): Add move
3037         assignment operator.
3038         <source_file>: Now a std::string.
3039         <munmap_list>: Rename.  No longer a pointer.
3040         * compile/compile-object-load.c (struct setup_sections_data): Add
3041         constructor.
3042         <setup_one_section>: Declare.
3043         <munmap_list>: Move earlier.
3044         <m_bfd>: New member.
3045         <m_last_size, m_last_section_first, m_last_prot,
3046         m_last_max_alignment>: Rename, add initializers where needed.
3047         (setup_sections_data::setup_one_section): Rename from
3048         setup_sections.  Update.
3049         (compile_object_load): Update.  Don't use bfd_map_over_sections.
3051 2020-09-23  Tom Tromey  <tom@tromey.com>
3053         * compile/compile-object-run.c (struct do_module_cleanup): Add
3054         parameters to constructor.  Update destructor.
3055         <source_file, scope, scope_data, out_value_type, out_value_addr,
3056         munmap_list_head, objfile_name_string>: Remove.
3057         <module>: New member.
3058         (do_module_cleanup): Update.
3059         (compile_object_run): Update.
3061 2020-09-23  Tom Tromey  <tom@tromey.com>
3063         * compile/compile.c (eval_compile_command): Update.
3064         * compile/compile-object-run.h (compile_object_run): Take a
3065         compile_module_up.
3066         * compile/compile-object-run.c (compile_object_run): Take a
3067         compile_module_up.
3068         * compile/compile-object-load.h (struct compile_module): Add
3069         constructor, destructor.
3070         (compile_module_up): New typedef.
3071         (compile_object_load): Return compile_object_up.
3072         * compile/compile-object-load.c (compile_object_load): Return
3073         compile_module_up.
3075 2020-09-23  Tom Tromey  <tom@tromey.com>
3077         * compile/compile-object-run.c (struct do_module_cleanup): Add
3078         constructor, destructor.
3079         <objfile_name_string>: Don't use struct hack.
3080         (do_module_cleanup): Use delete.
3081         (compile_object_run): Use new.
3083 2020-09-23  Tom Tromey  <tom@tromey.com>
3085         * compile/compile-cplus-types.c
3086         (compile_cplus_convert_struct_or_union): Use std::vector.
3087         (compile_cplus_convert_func): Likewise.
3088         * compile/compile-c-types.c (convert_func): Use std::vector.
3090 2020-09-21  Tom Tromey  <tromey@adacore.com>
3092         * sparc-tdep.c (sparc32_skip_prologue): Use
3093         skip_prologue_using_sal.
3095 2020-09-19  Tom Tromey  <tom@tromey.com>
3097         * symfile.c (add_section_size_callback): Remove.
3098         (load_one_section): Rename from load_section_callback.  Change
3099         parameters.
3100         (generic_load): Use foreach.
3102 2020-09-19  Tom Tromey  <tom@tromey.com>
3104         * exec.c (add_to_section_table): Remove.
3105         (build_section_table): Use foreach.
3107 2020-09-19  Tom Tromey  <tom@tromey.com>
3109         * elfread.c (elf_locate_sections): Change parameters.
3110         (elf_symfile_read): Use foreach.
3112 2020-09-19  Tom Tromey  <tom@tromey.com>
3114         * cli/cli-dump.c (struct callback_data): Remove.
3115         (restore_one_section): Rename from restore_section_callback.
3116         Change parameters.
3117         (restore_binary_file): Change parameters.
3118         (restore_command): Use foreach.
3120 2020-09-19  Tom Tromey  <tom@tromey.com>
3122         * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3123         (gcore_copy_callback): Likewise.
3124         (gcore_memory_sections): Use foreach.
3126 2020-09-19  Tom Tromey  <tom@tromey.com>
3128         * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3129         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3130         parameters.
3131         (generic_elf_osabi_sniffer): Use foreach.
3132         * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3133         * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3135 2020-09-19  Tom Tromey  <tom@tromey.com>
3137         * dwarf2/read.c (locate_dwz_sections): Change parameters.
3138         (dwarf2_get_dwz_file): Use foreach.
3139         (dwarf2_locate_dwo_sections): Change parameters.
3140         (open_and_init_dwo_file): Use foreach.
3141         (dwarf2_locate_common_dwp_sections): Change parameters.
3142         (open_and_init_dwp_file): Use foreach.
3144 2020-09-19  Tom Tromey  <tom@tromey.com>
3146         * symfile.h: (find_lowest_section): Don't declare.
3147         * symfile.c (find_lowest_section): Now static.  Change
3148         parameters.
3149         (struct place_section_arg): Remove.
3150         (place_section): Change parameters.
3151         (addr_info_make_relative): Use foreach.
3152         (symfile_dummy_outputs): Remove.
3153         (default_symfile_relocate): Use foreach.
3155 2020-09-19  Tom Tromey  <tom@tromey.com>
3157         * objfiles.c (add_to_objfile_sections): Rename from
3158         add_to_objfile_sections_full.
3159         (add_to_objfile_sections): Remove.
3160         (build_objfile_section_table): Use foreach.
3162 2020-09-19  Tom Tromey  <tom@tromey.com>
3164         * stap-probe.c (get_stap_base_address_1): Remove.
3165         (get_stap_base_address): Use foreach.
3167 2020-09-19  Tom Tromey  <tom@tromey.com>
3169         * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3170         parameters.
3171         (gdb_bfd_close_or_warn): Use foreach.
3173 2020-09-19  Tom Tromey  <tom@tromey.com>
3175         * corelow.c (add_to_thread_list): Change parameters.
3176         (core_target_open): Use foreach.
3178 2020-09-19  Tom Tromey  <tom@tromey.com>
3180         * gdb_bfd.h (gdb_bfd_sections): New overload.  Fix formatting of
3181         existing function.
3183 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3185         * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3186         for arrays.
3188 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3190         * eval.c: Remove 'f-lang.h' include.
3191         (value_f90_subarray): Moved to f-lang.c.
3192         (eval_call): Renamed to...
3193         (evaluate_subexp_do_call): ...this, is no longer static, header
3194         comment moved into header file.
3195         (evaluate_funcall): Update call to eval_call.
3196         (skip_undetermined_arglist): Moved to f-lang.c.
3197         (fortran_value_subarray): Likewise.
3198         (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3199         moved to evaluate_subexp_f.
3200         (calc_f77_array_dims): Moved to f-lang.c
3201         * expprint.c (print_subexp_funcall): New function.
3202         (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3203         moved to print_subexp_f, OP_FUNCALL uses new function.
3204         (dump_subexp_body_funcall): New function.
3205         (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3206         moved to dump_subexp_f, OP_FUNCALL uses new function.
3207         * expression.h (evaluate_subexp_do_call): Declare.
3208         * f-lang.c (value_f90_subarray): Moved from eval.c.
3209         (skip_undetermined_arglist): Likewise.
3210         (calc_f77_array_dims): Likewise.
3211         (fortran_value_subarray): Likewise.
3212         (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3213         (operator_length_f): Likewise.
3214         (print_subexp_f): Likewise.
3215         (dump_subexp_body_f): Likewise.
3216         * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3217         declaration of this operation to here.
3218         * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3219         support moved to operator_length_f.
3220         * parser-defs.h (dump_subexp_body_funcall): Declare.
3221         (print_subexp_funcall): Declare.
3222         * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3223         fortran-operator.def.
3225 2020-09-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3227         * eval.c (fortran_value_subarray): New function, content is taken
3228         from...
3229         (evaluate_subexp_standard): ...here, in two places.  Now arrays
3230         and strings both call the new function.
3231         (calc_f77_array_dims): Add header comment, handle strings.
3233 2020-09-18  Victor Collod  <vcollod@nvidia.com>
3235         PR gdb/26635
3236         * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3237         (i386_analyze_prologue): Call i386_skip_endbr.
3239 2020-09-18  Tom Tromey  <tromey@adacore.com>
3241         * windows-nat.c (struct windows_nat_target) <wait>: Update.
3242         (windows_nat_target::wait): Update.
3243         * target/wait.h (enum target_wait_flag): New.  Use
3244         DEF_ENUM_FLAGS_TYPE.
3245         * target/target.h (target_wait): Change type of options.
3246         * target.h (target_options_to_string, default_target_wait):
3247         Update.
3248         (struct target_ops) <wait>: Change type of options.
3249         * target.c (target_wait, default_target_wait, do_option): Change
3250         type of "options".
3251         (target_options_to_string): Likewise.
3252         * target-delegates.c: Rebuild.
3253         * target-debug.h (target_debug_print_target_wait_flags): Rename
3254         from target_debug_print_options.
3255         * sol-thread.c (class sol_thread_target) <wait>: Update.
3256         (sol_thread_target::wait): Update.
3257         * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3258         (rs6000_nat_target::wait): Update.
3259         * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3260         Update.
3261         (remote_target::wait_ns, remote_target::wait_as): Change type of
3262         "options".
3263         (remote_target::wait): Update.
3264         * remote-sim.c (struct gdbsim_target) <wait>: Update.
3265         (gdbsim_target::wait): Update.
3266         * record-full.c (class record_full_base_target) <wait>: Update.
3267         (record_full_wait_1): Change type of "options".
3268         (record_full_base_target::wait): Update.
3269         * record-btrace.c (class record_btrace_target) <wait>: Update.
3270         (record_btrace_target::wait): Update.
3271         * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3272         Update.
3273         (ravenscar_thread_target::wait): Update.
3274         * procfs.c (class procfs_target) <wait>: Update.
3275         (procfs_target::wait): Update.
3276         * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3277         * obsd-nat.c (obsd_nat_target::wait): Update.
3278         * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3279         (nto_procfs_target::wait): Update.
3280         * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3281         * nbsd-nat.c (nbsd_wait): Change type of "options".
3282         (nbsd_nat_target::wait): Update.
3283         * linux-thread-db.c (class thread_db_target) <wait>: Update.
3284         (thread_db_target::wait): Update.
3285         * linux-nat.h (class linux_nat_target) <wait>: Update.
3286         * linux-nat.c (linux_nat_target::wait): Update.
3287         (linux_nat_wait_1): Update.
3288         * infrun.c (do_target_wait_1, do_target_wait): Change type of
3289         "options".
3290         * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3291         * inf-ptrace.c (inf_ptrace_target::wait): Update.
3292         * go32-nat.c (struct go32_nat_target) <wait>: Update.
3293         (go32_nat_target::wait): Update.
3294         * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3295         * gnu-nat.c (gnu_nat_target::wait): Update.
3296         * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3297         * fbsd-nat.c (fbsd_nat_target::wait): Update.
3298         * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3299         * darwin-nat.c (darwin_nat_target::wait): Update.
3300         * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3301         (bsd_uthread_target::wait): Update.
3302         * aix-thread.c (class aix_thread_target) <wait>: Update.
3303         (aix_thread_target::wait): Update.
3305 2020-09-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3307         * compile/compile-object-run.c (create_copied_type_recursive): New
3308         function.
3309         (compile_object_run): Use new function.
3311 2020-08-21  Jon Turney  <jon.turney@dronecode.org.uk>
3313         * NEWS: Mention x86_64 Cygwin core file support.
3315 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3317         * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3318         (core_process_module_section): Handle NOTE_INFO_MODULE64.
3320 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3322         * windows-tdep.h: Add prototypes.
3323         * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3324         (i386_windows_core_pid_to_str): Move and rename ...
3325         * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3326         (windows_core_pid_to_str): ... and here.
3327         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3329 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3330         * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3331         (amd64_windows_init_abi_common): ... and register.
3333 2020-07-01  Jon Turney  <jon.turney@dronecode.org.uk>
3335         * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3336         (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3338 2020-09-18  Pedro Alves  <pedro@palves.net>
3340         PR gdb/26631
3341         * thread.c (thread_find_command): Switch inferior before calling
3342         target methods.
3344 2020-09-17  Tom Tromey  <tromey@adacore.com>
3346         * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3347         * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3348         (tdesc_arch_data_up): New typedef.
3349         (tdesc_use_registers, tdesc_data_alloc): Update.
3350         (tdesc_data_cleanup): Don't declare.
3351         * target-descriptions.c (tdesc_data_alloc): Return a
3352         tdesc_arch_data_up.
3353         (tdesc_arch_data_deleter::operator()): Rename from
3354         tdesc_data_cleanup.  Change argument type.
3355         (tdesc_use_registers): Change early_data to an rvalue reference.
3356         (tdesc_use_registers): Don't use delete.
3357         * sparc-tdep.c (sparc32_gdbarch_init): Update.
3358         * s390-tdep.c (s390_gdbarch_init): Update.
3359         * rx-tdep.c (rx_gdbarch_init): Update.
3360         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3361         * riscv-tdep.c (riscv_gdbarch_init): Update.
3362         * or1k-tdep.c (or1k_gdbarch_init): Update.
3363         * nios2-tdep.c (nios2_gdbarch_init): Update.
3364         * nds32-tdep.c (nds32_gdbarch_init): Update.
3365         * mips-tdep.c (mips_gdbarch_init): Update.
3366         * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3367         * m68k-tdep.c (m68k_gdbarch_init): Update.
3368         * i386-tdep.c (i386_gdbarch_init): Update.
3369         * arm-tdep.c (arm_gdbarch_init): Update.
3370         * arc-tdep.c (arc_tdesc_init): Update.
3371         (arc_gdbarch_init): Update.
3372         * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3374 2020-09-17  Hannes Domani  <ssbssa@yahoo.de>
3376         * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3377         for WOW64 processes.
3379 2020-09-17  Tom Tromey  <tom@tromey.com>
3381         * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3383 2020-09-17  Tom Tromey  <tom@tromey.com>
3385         * value.c (preserve_values): Update.
3386         * python/py-type.c (save_objfile_types): Update.
3387         * guile/scm-type.c (save_objfile_types): Update.
3388         * gdbtypes.h (create_copied_types_hash): Return htab_up.
3389         * gdbtypes.c (create_copied_types_hash): Return htab_up.
3390         * compile/compile-object-run.c (compile_object_run): Update.
3392 2020-09-17  Tom Tromey  <tom@tromey.com>
3394         * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3395         Remove.
3396         <m_table>: Now htab_up.
3397         * typeprint.c (typedef_hash_table::recursively_update)
3398         (typedef_hash_table::add_template_parameters)
3399         (typedef_hash_table::typedef_hash_table): Update.
3400         (typedef_hash_table::~typedef_hash_table): Remove.
3401         (typedef_hash_table::typedef_hash_table)
3402         (typedef_hash_table::find_global_typedef)
3403         (typedef_hash_table::find_typedef): Update.
3405 2020-09-17  Tom Tromey  <tom@tromey.com>
3407         * target-descriptions.c (tdesc_use_registers): Use htab_up.
3409 2020-09-17  Tom Tromey  <tom@tromey.com>
3411         * linespec.c (class decode_compound_collector)
3412         <~decode_compound_collector>: Remove.
3413         <m_unique_syms>: Now htab_up.
3414         (decode_compound_collector::operator ()): Update.
3415         (class symtab_collector) <~symtab_collector>: Remove.
3416         <m_symtab_table>: Now htab_up.
3417         (symtab_collector::operator ()): Update.
3419 2020-09-17  Tom Tromey  <tom@tromey.com>
3421         * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3422         (filename_seen_cache::clear): Update.
3423         (~filename_seen_cache): Remove.
3424         (filename_seen_cache::seen): Update.
3425         * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3426         htab_up.
3427         <~filename_seen_cache>: Remove.
3428         <traverse>: Update.
3430 2020-09-17  Tom Tromey  <tom@tromey.com>
3432         * completer.c (completion_tracker::discard_completions)
3433         (completion_tracker::~completion_tracker)
3434         (completion_tracker::maybe_add_completion)
3435         (completion_tracker::remove_completion)
3436         (completion_tracker::recompute_lowest_common_denominator)
3437         (completion_tracker::build_completion_result): Update.
3438         * completer.h (class completion_tracker) <have_completions>:
3439         Update.
3440         <m_entries_hash>: Now htab_up.
3442 2020-09-17  Tom Tromey  <tom@tromey.com>
3444         * breakpoint.c (ambiguous_names_p): Use htab_up.
3446 2020-09-17  Tom Tromey  <tom@tromey.com>
3448         * auto-load.c (struct auto_load_pspace_info)
3449         <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3450         <loaded_script_files, loaded_script_texts>: Change type to
3451         htab_up.
3452         (~auto_load_pspace_info) Remove.
3453         (init_loaded_scripts_info, maybe_add_script_file)
3454         (maybe_add_script_text, auto_load_info_scripts): Update.
3456 2020-09-17  Tom Tromey  <tromey@adacore.com>
3458         * c-exp.y (name_obstack): Now static.
3460 2020-09-17  Chungyi Chi  <demonic@csie.io>
3462         * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3464 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
3466         * breakpoint.h (init_catchpoint): Change int parameter to bool.
3467         (add_solib_catchpoint): Likewise.
3468         * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3469         to bool.
3470         (add_solib_catchpoint): Change int parameter/variable to bool.
3471         (catch_load_or_unload): Likewise.
3472         (init_catchpoint): Likewise.
3473         (create_fork_vfork_event_catchpoint): Likewise.
3474         (catch_fork_command_1): Likewise.
3475         (catch_exec_command_1): Likewise.
3477 2020-09-16  Simon Marchi  <simon.marchi@efficios.com>
3479         * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3480         Change instance_flags to m_instance_flags.
3482 2020-09-16  Tom Tromey  <tromey@adacore.com>
3484         PR gdb/26598:
3485         * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3487 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3489         * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3490         PL_FLAG_EXEC.
3491         (fbsd_nat_target::insert_exec_catchpoint)
3492         (fbsd_nat_target::remove_exec_catchpoint): Always define.
3493         * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3494         (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3496 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3498         * configure.ac: Remove check for kinfo_getvmmap().
3499         * configure, config.in: Regenerate.
3500         * fbsd-nat.c (fbsd_read_mapping): Remove
3501         (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3502         (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3503         kinfo_get_vmmap() are always present.
3505 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3507         * fbsd-nat.c: Always include support for
3508         TARGET_OBJECT_SIGNAL_INFO.
3510 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3512         * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3513         sysctl and remove procfs fallback.
3515 2020-09-16  John Baldwin  <jhb@FreeBSD.org>
3517         * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3518         * fbsd-nat.h: Likewise.
3520 2020-09-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
3522         * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3523         argument.
3525 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3527         * ada-lang.c (ada_language_data): Delete.
3528         (ada_language): Remove references to ada_language_data.
3529         * c-lang.c (c_language_data): Delete.
3530         (c_language): Remove references to c_language_data.
3531         (cplus_language_data): Delete.
3532         (cplus_language): Remove references to cplus_language_data.
3533         (asm_language_data): Delete.
3534         (asm_language): Remove references to asm_language_data.
3535         (minimal_language_data): Delete.
3536         (minimal_language): Remove references to minimal_language_data.
3537         * d-lang.c (d_language_data): Delete.
3538         (d_language): Remove references to d_language_data.
3539         * f-lang.c (f_language_data): Delete.
3540         (f_language): Remove references to f_language_data.
3541         * go-lang.c (go_language_data): Delete.
3542         (go_language): Remove references to go_language_data.
3543         * language.c (unknown_language_data): Delete.
3544         (unknown_language): Remove references to unknown_language_data.
3545         (auto_language_data): Delete.
3546         (auto_language): Remove references to auto_language_data.
3547         * language.h (language_data): Delete struct.
3548         (language_defn): No longer inherit from language_data.
3549         * m2-lang.c (m2_language_data): Delete.
3550         (m2_language): Remove references to m2_language_data.
3551         * objc-lang.c (objc_language_data): Delete.
3552         (objc_language): Remove references to objc_language_data.
3553         * opencl-lang.c (opencl_language_data): Delete.
3554         (opencl_language): Remove references to opencl_language_data.
3555         * p-lang.c (pascal_language_data): Delete.
3556         (pascal_language): Remove references to pascal_language_data.
3557         * rust-lang.c (rust_language_data): Delete.
3558         (rust_language): Remove references to rust_language_data.
3560 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3562         * ada-lang.c (ada_language_data): Remove la_op_print_tab
3563         initializer.
3564         (ada_language::opcode_print_table): New member function.
3565         * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3566         (c_language::opcode_print_table): New member function.
3567         (cplus_language_data): Remove la_op_print_tab initializer.
3568         (cplus_language::opcode_print_table): New member function.
3569         (asm_language_data): Remove la_op_print_tab initializer.
3570         (asm_language::opcode_print_table): New member function.
3571         (minimal_language_data): Remove la_op_print_tab initializer.
3572         (minimal_language::opcode_print_table): New member function.
3573         * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3574         (d_language::opcode_print_table): New member function.
3575         * expprint.c (print_subexp_standard): Update call to
3576         opcode_print_table.
3577         (op_string): Likewise.
3578         * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3579         (f_language::opcode_print_table): New member function.
3580         * go-lang.c (go_language_data): Remove la_op_print_tab
3581         initializer.
3582         (go_language::opcode_print_table): New member function.
3583         * language.c (unknown_language_data): Remove la_op_print_tab
3584         initializer.
3585         (unknown_language::opcode_print_table): New member function.
3586         (auto_language_data): Remove la_op_print_tab initializer.
3587         (auto_language::opcode_print_table): New member function.
3588         * language.h (language_data): Remove la_op_print_tab field.
3589         (language_defn::opcode_print_table): Declare new member function.
3590         * m2-lang.c (m2_language_data): Remove la_op_print_tab
3591         initializer.
3592         (m2_language::opcode_print_table): New member function.
3593         * objc-lang.c (objc_language_data): Remove la_op_print_tab
3594         initializer.
3595         (objc_language::opcode_print_table): New member function.
3596         * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3597         initializer.
3598         (opencl_language::opcode_print_table): New member function.
3599         * p-lang.c (pascal_language_data): Remove la_op_print_tab
3600         initializer.
3601         (pascal_language::opcode_print_table): New member function.
3602         * rust-lang.c (rust_language_data): Remove la_op_print_tab
3603         initializer.
3604         (rust_language::opcode_print_table): New member function.
3606 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3608         * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3609         (ada_language::expression_ops): New member function.
3610         * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3611         (c_language::expression_ops): New member function.
3612         (cplus_language_data): Remove la_exp_desc initializer.
3613         (cplus_language::expression_ops): New member function.
3614         (asm_language_data): Remove la_exp_desc initializer.
3615         (asm_language::expression_ops): New member function.
3616         (minimal_language_data): Remove la_exp_desc initializer.
3617         (minimal_language::expression_ops): New member function.
3618         * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3619         (d_language::expression_ops): New member function.
3620         * eval.c (evaluate_subexp): Update call to expression_ops.
3621         * expprint.c (print_subexp): Likewise.
3622         (op_name): Likewise.
3623         (dump_subexp_body): Likewise.
3624         * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3625         (f_language::expression_ops): New member function.
3626         * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3627         (go_language::expression_ops): New member function.
3628         * language.c (language_defn::expression_ops): New function.
3629         (unknown_language_data): Remove la_exp_desc initializer.
3630         (auto_language_data): Likewise.
3631         * language.h (language_data): Remove la_exp_desc field.
3632         (language_defn::expression_ops): Declare new member function.
3633         * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3634         (m2_language::expression_ops): New member function.
3635         * objc-lang.c (objc_language_data): Remove la_exp_desc
3636         initializer.
3637         * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3638         initializer.
3639         (opencl_language::expression_ops): New member function.
3640         * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3641         * parse.c (operator_length): Update call to expression_ops.
3642         (exp_iterate): Likewise.
3643         * rust-lang.c (rust_language_data): Remove la_exp_desc
3644         initializer.
3645         (ruse_language::expression_ops): New member function.
3647 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3649         * ada-lang.c (ada_language_data): Remove la_varobj_ops
3650         initializer.
3651         (ada_language::varobj_ops): New member function.
3652         * c-lang.c (c_language_data): Remove la_varobj_ops
3653         initializer.
3654         (cplus_language_data): Likewise.
3655         (cplus_language::varobj_ops): New member function.
3656         (asm_language_data): Remove la_varobj_ops initializer.
3657         (minimal_language_data): Likewise.
3658         * d-lang.c (d_language_data): Likewise.
3659         * f-lang.c (f_language_data): Likewise.
3660         * go-lang.c (go_language_data): Likewise.
3661         * language.c (language_defn::varobj_ops): New function.
3662         (unknown_language_data): Remove la_varobj_ops
3663         initializer.
3664         (auto_language_data): Likewise.
3665         * language.h (language_data): Remove la_varobj_ops field.
3666         (language_defn::varobj_ops): Declare new member function.
3667         * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3668         * objc-lang.c (objc_language_data): Likewise.
3669         * opencl-lang.c (opencl_language_data): Likewise.
3670         * p-lang.c (pascal_language_data): Likewise.
3671         * rust-lang.c (rust_language_data): Likewise.
3672         * varobj.c (varobj_create): Update call to varobj_ops.
3673         * varobj.h (default_varobj_ops): Delete define.
3675 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3677         * ada-lang.c (ada_language_data): Remove la_macro_expansion
3678         initializer.
3679         * c-lang.c (c_language_data): Likewise.
3680         (c_language::macro_expansion): New member function.
3681         (cplus_language_data): Likewise.
3682         (cplus_language::macro_expansion): New member function.
3683         (asm_language_data): Likewise.
3684         (asm_language::macro_expansion): New member function.
3685         (minimal_language_data): Likewise.
3686         (minimal_language::macro_expansion): New member function.
3687         * d-lang.c (d_language_data): Remove la_macro_expansion
3688         initializer.
3689         * f-lang.c (f_language_data): Likewise.
3690         * go-lang.c (go_language_data): Likewise.
3691         * language.c (unknown_language_data): Likewise.
3692         (auto_language_data): Likewise.
3693         * language.h (language_data): Remove la_macro_expansion field.
3694         (language_defn::macro_expansion): New member function.
3695         * m2-lang.c (m2_language_data): Remove la_macro_expansion
3696         initializer.
3697         * objc-lang.c (objc_language_data): Likewise.
3698         (objc_language::macro_expansion): New member function.
3699         * opencl-lang.c (opencl_language_data): Likewise.
3700         (opencl_language::macro_expansion): New member function.
3701         * p-lang.c (pascal_language_data): Remove la_macro_expansion
3702         initializer.
3703         * rust-lang.c (rust_language_data): Likewise.
3704         * symtab.c (default_collect_symbol_completion_matches_break_on):
3705         Update call to macro_expansion.
3707 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3709         * ada-lang.c (ada_language_data): Remove la_array_ordering
3710         initializer.
3711         * c-lang.c (c_language_data): Likewise.
3712         (cplus_language_data): Likewise.
3713         (asm_language_data): Likewise.
3714         (minimal_language_data): Likewise.
3715         * d-lang.c (d_language_data): Likewise.
3716         * dwarf2/read.c (read_array_order): Update for call to
3717         array_ordering.
3718         * f-lang.c (f_language_data): Remove la_array_ordering
3719         initializer.
3720         (f_language::array_ordering): New member function.
3721         * go-lang.c (go_language_data): Remove la_array_ordering
3722         initializer.
3723         * language.c (unknown_language_data): Likewise.
3724         (auto_language_data): Likewise.
3725         * language.h (language_data): Delete la_array_ordering field.
3726         (language_defn::array_ordering): New member function.
3727         * m2-lang.c (m2_language_data): Remove la_array_ordering
3728         initializer.
3729         * objc-lang.c (objc_language_data): Likewise.
3730         * opencl-lang.c (opencl_language_data): Likewise.
3731         * p-lang.c (pascal_language_data): Likewise.
3732         * rust-lang.c (rust_language_data): Likewise.
3734 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3736         * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3737         initializer.
3738         * c-lang.c (c_language_data): Likewise.
3739         (cplus_language_data): Likewise.
3740         (asm_language_data): Likewise.
3741         (minimal_language_data): Likewise.
3742         * d-lang.c (d_language_data): Likewise.
3743         * f-lang.c (f_language_data): Likewise.
3744         (f_language::case_sensitivity): New member function.
3745         * go-lang.c (go_language_data): Remove la_case_sensitivity
3746         initializer.
3747         * language.c (enum case_mode): Moved here from language.h.
3748         (case_mode): Make static.
3749         (show_case_command): Update for case_sensitivity being a method.
3750         (set_case_command): Likewise.
3751         (set_range_case): Likewise.
3752         (unknown_language_data): Remove la_case_sensitivity initializer.
3753         (auto_language_data): Likewise.
3754         * language.h (case_mode): Delete, move enum declaration to
3755         language.c.
3756         (language_data): Delete la_case_sensitivity field.
3757         (language_defn::case_sensitivity): New member function.
3758         * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3759         initializer.
3760         * objc-lang.c (objc_language_data): Likewise.
3761         * opencl-lang.c (opencl_language_data): Likewise.
3762         * p-lang.c (pascal_language_data): Likewise.
3763         * rust-lang.c (rust_language_data): Likewise.
3765 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3767         * ada-lang.c (ada_language_data): Remove la_range_check
3768         initializer.
3769         * c-lang.c (c_language_data): Likewise.
3770         (cplus_language_data): Likewise.
3771         (asm_language_data): Likewise.
3772         (minimal_language_data): Likewise.
3773         * d-lang.c (d_language_data): Likewise.
3774         * f-lang.c (f_language_data): Likewise.
3775         (f_language::range_checking_on_by_default): New member function.
3776         * go-lang.c (go_language_data): Remove la_range_check initializer.
3777         * language.c (enum range_mode): Moved here from language.h.
3778         (range_mode): Made static.
3779         (show_range_command): Update to use
3780         range_checking_on_by_default.
3781         (set_range_command): Likewise.
3782         (set_range_case): Likewise.
3783         (unknown_language_data): Remove la_range_check initializer.
3784         (auto_language_data): Likewise.
3785         * language.h (range_mode): Delete.  Enum definition moved to
3786         language.c.
3787         (language_data): Remove la_range_check field.
3788         (language_defn::range_checking_on_by_default): New member
3789         function.
3790         * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3791         (m2_language::range_checking_on_by_default): New member function.
3792         * objc-lang.c (objc_language_data): Remove la_range_check
3793         initializer.
3794         * opencl-lang.c (opencl_language_data): Likewise.
3795         * p-lang.c (pascal_language_data): Likewise.
3796         (pascal_language::range_checking_on_by_default): New member
3797         function.
3798         * rust-lang.c (rust_language_data): Remove la_range_check
3799         initializer.
3800         (rust_language::range_checking_on_by_default): New member
3801         function.
3803 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3805         * dwarf2/read.c (dwarf2_physname): Remove special case for
3806         language_go.
3807         * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3808         member function.
3810 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3812         * ada-lang.c (ada_language_data): Remove
3813         la_store_sym_names_in_linkage_form_p initializer.
3814         (ada_language::store_sym_names_in_linkage_form_p): New member
3815         function.
3816         * c-lang.c (c_language_data): Remove
3817         la_store_sym_names_in_linkage_form_p initializer.
3818         (c_language::store_sym_names_in_linkage_form_p): New member
3819         function.
3820         (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3821         initializer.
3822         (asm_language_data): Likewise.
3823         (asm_language::store_sym_names_in_linkage_form_p): New member
3824         function.
3825         (minimal_language_data): Remove
3826         la_store_sym_names_in_linkage_form_p initializer.
3827         (minimal_language::store_sym_names_in_linkage_form_p): New member
3828         function.
3829         * d-lang.c (d_language_data): Remove
3830         la_store_sym_names_in_linkage_form_p initializer.
3831         * dwarf2/read.c (dwarf2_physname): Update call to
3832         store_sym_names_in_linkage_form_p.
3833         * f-lang.c (f_language_data): Remove
3834         la_store_sym_names_in_linkage_form_p initializer.
3835         * go-lang.c (go_language_data): Remove
3836         la_store_sym_names_in_linkage_form_p initializer.
3837         * language.c (unknown_language_data): Remove
3838         la_store_sym_names_in_linkage_form_p initializer.
3839         (unknown_language::store_sym_names_in_linkage_form_p): New member
3840         function.
3841         (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3842         initializer.
3843         (auto_language::store_sym_names_in_linkage_form_p): New member
3844         function.
3845         * language.h (language_data): Remove
3846         la_store_sym_names_in_linkage_form_p member variable.
3847         (language_defn::store_sym_names_in_linkage_form_p): New member
3848         function.
3849         * m2-lang.c (m2_language_data): Remove
3850         la_store_sym_names_in_linkage_form_p initializer.
3851         * objc-lang.c (objc_language_data): Likewise.
3852         * opencl-lang.c (opencl_language_data): Likewise.
3853         * p-lang.c (pascal_language_data): Likewise.
3854         * rust-lang.c (rust_language_data): Likewise.
3856 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3858         * ada-lang.c (ada_language_data): Remove string_lower_bound
3859         initializer.
3860         * c-lang.c (c_language_data): Likewise.
3861         (cplus_language_data): Likewise.
3862         (asm_language_data): Likewise.
3863         (minimal_language_data): Likewise.
3864         * d-lang.c (d_language_data): Likewise.
3865         * f-lang.c (f_language_data): Likewise.
3866         * go-lang.c (go_language_data): Likewise.
3867         * language.c (unknown_language_data): Likewise.
3868         (auto_language_data): Likewise.
3869         * language.h (language_data): Remove string_lower_bound field.
3870         (language_defn::string_lower_bound): New member function.
3871         * m2-lang.c (m2_language_data): Remove string_lower_bound
3872         initializer.
3873         (m2_language::string_lower_bound): New member function.
3874         * objc-lang.c (objc_language_data): Remove string_lower_bound
3875         initializer.
3876         * opencl-lang.c (opencl_language_data): Likewise.
3877         * p-lang.c (pascal_language_data): Likewise.
3878         * rust-lang.c (rust_language_data): Likewise.
3879         * valops.c (value_cstring): Update call to string_lower_bound.
3880         (value_string): Likewise.
3881         * value.c (allocate_repeated_value): Likewise.
3883 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3885         * valops.c (value_repeat): Fix incorrect argument name in comment.
3887 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3889         * ada-lang.c (ada_language_data): Remove c_style_arrays
3890         initializer.
3891         (ada_language::c_style_arrays_p): New member fuction.
3892         * c-lang.c (c_language_data): Remove c_style_arrays
3893         initializer.
3894         (cplus_language_data): Likewise.
3895         (asm_language_data): Likewise.
3896         (minimal_language_data): Likewise.
3897         * d-lang.c (d_language_data): Likewise.
3898         * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3899         * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3900         (f_language::c_style_arrays_p): New member function.
3901         * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3902         * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3903         * language.c (unknown_language_data): Remove c_style_arrays
3904         initializer.
3905         (auto_language_data): Likewise.
3906         * language.h (language_data): Remove c_style_arrays field.
3907         (language_defn::c_style_arrays_p): New member function.
3908         * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3909         (m2_language::c_style_arrays_p): New member function.
3910         * objc-lang.c (objc_language_data): Remove c_style_arrays
3911         initializer.
3912         * opencl-lang.c (opencl_language_data): Likewise.
3913         * p-lang.c (pascal_language_data): Likewise.
3914         * rust-lang.c (rust_language_data): Likewise.
3915         * valarith.c (value_subscript): Update call to c_style_arrays_p,
3916         and update local variable to a bool.
3917         * valops.c (value_cast): Update call to c_style_arrays_p.
3918         (value_array): Likewise.
3919         * value.c (coerce_array): Likewise.
3921 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3923         * ada-lang.c (ada_language_data): Remove la_language initializer.
3924         * c-lang.c (c_language_data): Likewise.
3925         (cplus_language_data): Likewise.
3926         (asm_language_data): Likewise.
3927         (minimal_language_data): Likewise.
3928         * d-lang.c (d_language_data): Likewise.
3929         * f-lang.c (f_language_data): Likewise.
3930         * go-lang.c (go_language_data): Likewise.
3931         * language.c (unknown_language_data): Likewise.
3932         (auto_language_data): Likewise.
3933         * language.h (language_data): Remove la_language field.
3934         (language_defn::language_defn): Initialise la_language field.
3935         (language_defn::la_language): New member variable.
3936         * m2-lang.c (m2_language_data): Remove la_language field.
3937         * objc-lang.c (objc_language_data): Likewise.
3938         * opencl-lang.c (opencl_language_data): Likewise.
3939         * p-lang.c (pascal_language_data): Likewise.
3940         * rust-lang.c (rust_language_data): Likewise.
3942 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3944         * ada-lang.c (ada_extensions): Delete, moved into
3945         ada_language::filename_extensions.
3946         (ada_language_data): Remove la_filename_extensions initializer.
3947         (ada_language::filename_extensions): New member function.
3948         * c-lang.c (c_extensions): Delete, moved into
3949         c_language::filename_extensions.
3950         (c_language_data): Remove la_filename_extensions initializer.
3951         (c_language::filename_extensions): New member function.
3952         (cplus_extensions): Delete, moved into
3953         cplus_language::filename_extensions.
3954         (cplus_language_data): Remove la_filename_extensions initializer.
3955         (cplus_language::filename_extensions): New member function.
3956         (asm_extensions): Delete, moved into
3957         asm_language::filename_extensions.
3958         (asm_language_data): Remove la_filename_extensions initializer.
3959         (asm_language::filename_extensions): New member function.
3960         (minimal_language_data): Remove la_filename_extensions
3961         initializer.
3962         * d-lang.c (d_extensions): Delete, moved into
3963         d_language::filename_extensions.
3964         (d_language_data): Remove la_filename_extensions initializer.
3965         (d_language::filename_extensions): New member function.
3966         * f-lang.c (f_extensions): Delete, moved into
3967         f_language::filename_extensions.
3968         (f_language_data): Remove la_filename_extensions initializer.
3969         (f_language::filename_extensions): New member function.
3970         * go-lang.c (go_language_data): Remove la_filename_extensions
3971         initializer.
3972         * language.c (add_set_language_command): Update now that
3973         filename_extensions returns a vector.
3974         (unknown_language_data): Remove la_filename_extensions
3975         initializer.
3976         (auto_language_data): Likewise.
3977         * language.h (language_data): Remove la_filename_extensions field.
3978         (language_defn::filename_extensions): New member function.
3979         * m2-lang.c (m2_language_data): Remove la_filename_extensions
3980         initializer.
3981         * objc-lang.c (objc_extensions): Delete, moved into
3982         objc_language::filename_extensions.
3983         (objc_language_data): Remove la_filename_extensions initializer.
3984         (objc_language::filename_extensions): New member function.
3985         * opencl-lang.c (opencl_language_data): Remove
3986         la_filename_extensions initializer.
3987         * p-lang.c (pascal_extensions): Delete, moved into
3988         pascal_language::filename_extensions.
3989         (pascal_language_data): Remove la_filename_extensions initializer.
3990         (pascal_language::filename_extensions): New member function.
3991         * rust-lang.c (rust_extensions): Delete, moved into
3992         rust_language::filename_extensions.
3993         (rust_language_data): Remove la_filename_extensions initializer.
3994         (rust_language::filename_extensions): New member function.
3995         * symfile.c (add_filename_language): Add new assert.
3997 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3999         * ada-lang.c (ada_language_data): Remove la_name and
4000         la_natural_name initializers.
4001         (ada_language::name): New member function.
4002         (ada_language::natural_name): New member function.
4003         * c-lang.c (c_language_data): Remove la_name and
4004         la_natural_name initializers.
4005         (c_language::name): New member function.
4006         (c_language::natural_name): New member function.
4007         (cplus_language_data): Remove la_name and
4008         la_natural_name initializers.
4009         (cplus_language::name): New member function.
4010         (cplus_language::natural_name): New member function.
4011         (asm_language_data): Remove la_name and
4012         la_natural_name initializers.
4013         (asm_language::name): New member function.
4014         (asm_language::natural_name): New member function.
4015         (minimal_language_data): Remove la_name and
4016         la_natural_name initializers.
4017         (minimal_language::name): New member function.
4018         (minimal_language::natural_name): New member function.
4019         * compile/compile.c (compile_to_object): Update call to
4020         lanugage_defn::name.
4021         * d-lang.c (d_language_data): Remove la_name and
4022         la_natural_name initializers.
4023         (d_language::name): New member function.
4024         (d_language::natural_name): New member function.
4025         * expprint.c (print_subexp_standard): Update call to
4026         language_defn::name.
4027         (dump_raw_expression): Likewise
4028         (dump_prefix_expression): Likewise.
4029         * f-lang.c (f_language_data): Remove la_name and
4030         la_natural_name initializers.
4031         (f_language::name): New member function.
4032         (f_language::natural_name): New member function.
4033         * go-lang.c (go_language_data): Remove la_name and
4034         la_natural_name initializers.
4035         (go_language::name): New member function.
4036         (go_language::natural_name): New member function.
4037         * language.c (show_language_command): Update call to
4038         language_defn::name.
4039         (set_language_command): Likewise.
4040         (language_enum): Likewise.
4041         (language_str): Likewise.
4042         (add_set_language_command): Likewise, use
4043         language_defn::natural_name in the doc string.
4044         (unknown_language_data): Remove la_name and
4045         la_natural_name initializers.
4046         (unknown_language::name): New member function.
4047         (unknown_language::natural_name): New member function.
4048         (auto_language_data): Remove la_name and
4049         la_natural_name initializers.
4050         (auto_language::name): New member function.
4051         (auto_language::natural_name): New member function.
4052         (language_lookup_primitive_type_as_symbol): Update call to
4053         language_defn::name.
4054         * language.h (language_data): Remove la_name and la_natural_name
4055         member variables.
4056         (language_defn::name): New member function.
4057         (language_defn::natural_name): New member function.
4058         * m2-lang.c (m2_language_data): Remove la_name and
4059         la_natural_name initializers.
4060         (m2_language::name): New member function.
4061         (m2_language::natural_name): New member function.
4062         * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4063         language_defn::natural_name.
4064         * objc-lang.c (objc_language_data): Remove la_name and
4065         la_natural_name initializers.
4066         (objc_language::name): New member function.
4067         (objc_language::natural_name): New member function.
4068         * opencl-lang.c (opencl_language_data): Remove la_name and
4069         la_natural_name initializers.
4070         (opencl_language::name): New member function.
4071         (opencl_language::natural_name): New member function.
4072         * p-lang.c (pascal_language_data): Remove la_name and
4073         la_natural_name initializers.
4074         (pascal_language::name): New member function.
4075         (pascal_language::natural_name): New member function.
4076         * rust-lang.c (rust_language_data): Remove la_name and
4077         la_natural_name initializers.
4078         (rust_language::name): New member function.
4079         (rust_language::natural_name): New member function.
4080         * symtab.c (lookup_language_this): Update call to
4081         language_defn::name.
4083 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4085         * ada-lang.c (ada_language_data): Remove la_name_of_this
4086         initializer.
4087         * ax-gdb.c (gen_expr): Update call to name_of_this.
4088         * c-exp.y (classify_name): Likewise.
4089         * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4090         (cplus_language_data): Likewise.
4091         (cplus_language::name_of_this): New member function.
4092         (asm_language_data): Remove la_name_of_this initializer.
4093         (minimal_language_data): Likewise.
4094         * d-lang.c (d_language_data): Likewise.
4095         (d_language::name_of_this): New member function.
4096         * expprint.c (print_subexp_standard): Update call to name_of_this.
4097         * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4098         * go-lang.c (go_language_data): Likewise.
4099         * language.c (unknown_language_data): Likewise.
4100         (unknown_language::name_of_this): New member function.
4101         (auto_language_data): Remove la_name_of_this initializer.
4102         (auto_language::name_of_this): New member function.
4103         * language.h (language_data): Delete la_name_of_this member
4104         variable.
4105         (language_defn::name_of_this): New member function.
4106         * m2-lang.c (m2_language_data): Remove la_name_of_this
4107         initializer.
4108         * objc-lang.c (objc_language_data): Likewise.
4109         (objc_language::name_of_this): New member function.
4110         * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4111         initializer.
4112         * p-lang.c (pascal_language_data): Likewise.
4113         (pascal_language::name_of_this): New member function.
4114         * rust-lang.c (rust_language_data): Remove la_name_of_this
4115         initializer.
4116         * symtab.c (lookup_language_this): Update call to name_of_this.
4117         (lookup_symbol_aux): Likewise.
4118         * valops.c (value_of_this): Likewise.
4120 2020-09-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4122         * ada-lang.c (ada_language_data): Remove
4123         la_struct_too_deep_ellipsis initializer.
4124         (ada_language::struct_too_deep_ellipsis): New member function.
4125         * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4126         initializer.
4127         (cplus_language_data): Likewise.
4128         (asm_language_data): Likewise.
4129         (minimal_language_data): Likewise.
4130         * cp-valprint.c (cp_print_value): Update call to
4131         struct_too_deep_ellipsis.
4132         * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4133         initializer.
4134         * f-lang.c (f_language_data): Likewise.
4135         (f_language::struct_too_deep_ellipsis): New member function.
4136         * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4137         initializer.
4138         * language.c (unknown_language_data): Likewise.
4139         (auto_language_data): Likewise.
4140         * language.h (language_data): Delete la_struct_too_deep_ellipsis
4141         member variable.
4142         (language_defn::struct_too_deep_ellipsis): New member function.
4143         * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4144         initializer.Q
4145         * objc-lang.c (objc_language_data): Likewise.
4146         * opencl-lang.c (opencl_language_data): Likewise.
4147         * p-lang.c (pascal_language_data): Likewise.
4148         * rust-lang.c (rust_language_data): Likewise.
4149         * valprint.c (val_print_check_max_depth): Update call to
4150         struct_too_deep_ellipsis.
4152 2020-09-16  Felix Willgerodt  <felix.willgerodt@intel.com>
4154         * MAINTAINERS (Write After Approval): Add myself.
4156 2020-09-15  Tom Tromey  <tom@tromey.com>
4158         * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4159         Remove.
4161 2020-09-15  Tom Tromey  <tom@tromey.com>
4163         * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4164         and TYPE_CODE_METHODPTR cases.
4165         * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4166         (c_value_print_inner): Update.
4167         * valprint.c (generic_value_print_memberptr): New function, from
4168         c_value_print_memberptr.
4169         (generic_value_print): Use it.  Call cplus_print_method_ptr.
4171 2020-09-15  Tom Tromey  <tromey@adacore.com>
4173         * python/python-internal.h (PyInt_FromLong): Remove define.
4174         * python/py-value.c (convert_value_from_python): Use
4175         gdb_py_object_from_longest.
4176         * python/py-type.c (typy_get_code): Use
4177         gdb_py_object_from_longest.
4178         * python/py-symtab.c (salpy_get_line): Use
4179         gdb_py_object_from_longest.
4180         * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4181         gdb_py_object_from_longest.
4182         * python/py-record.c (recpy_gap_reason_code): Use
4183         gdb_py_object_from_longest.
4184         * python/py-record-btrace.c (recpy_bt_insn_size)
4185         (recpy_bt_func_level, btpy_list_count): Use
4186         gdb_py_object_from_longest.
4187         * python/py-infthread.c (gdbpy_create_ptid_object): Use
4188         gdb_py_object_from_longest.  Fix error handling.
4189         * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4190         gdb_py_object_from_longest.
4191         * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4192         gdb_py_object_from_longest.
4193         * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4194         (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4195         (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4197 2020-09-15  Tom Tromey  <tromey@adacore.com>
4199         * python/python.c (gdbpy_parameter_value): Use
4200         gdb_py_object_from_ulongest.
4202 2020-09-15  Tom Tromey  <tromey@adacore.com>
4204         * python/py-infevents.c (create_register_changed_event_object):
4205         Use gdb_py_object_from_longest.
4206         * python/py-exitedevent.c (create_exited_event_object): Use
4207         gdb_py_object_from_longest.
4209 2020-09-15  Tom Tromey  <tromey@adacore.com>
4211         * python/python.c (gdbpy_parameter_value): Use
4212         gdb_py_object_from_longest.
4213         * python/py-type.c (convert_field, typy_range): Use
4214         gdb_py_object_from_longest.
4215         * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4216         gdb_py_object_from_longest.
4217         * python/py-lazy-string.c (stpy_get_length): Use
4218         gdb_py_object_from_longest.
4219         * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4220         gdb_py_object_from_longest.
4221         * python/py-infevents.c (create_memory_changed_event_object): Use
4222         gdb_py_object_from_longest.
4223         * python/py-inferior.c (infpy_get_num): Use
4224         gdb_py_object_from_longest.
4225         (infpy_get_pid): Likewise.
4227 2020-09-15  Tom Tromey  <tromey@adacore.com>
4229         * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4230         defines.
4231         * python/py-value.c (valpy_long): Use
4232         gdb_py_object_from_ulongest.
4233         * python/py-symtab.c (salpy_get_pc): Use
4234         gdb_py_object_from_ulongest.
4235         (salpy_get_last): Likewise.
4236         * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4237         gdb_py_object_from_ulongest.
4238         * python/py-lazy-string.c (stpy_get_address): Use
4239         gdb_py_object_from_ulongest.
4240         * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4241         * python/py-arch.c (archpy_disassemble): Use
4242         gdb_py_object_from_ulongest and gdb_py_object_from_longest.  Fix
4243         error handling.
4245 2020-09-15  Tom Tromey  <tromey@adacore.com>
4247         * python/python-internal.h (gdb_py_long_from_longest): Remove
4248         defines.
4249         * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4250         * python/py-type.c (convert_field, typy_get_sizeof): Use
4251         gdb_py_object_from_longest.
4252         * python/py-record-btrace.c (btpy_list_index): Use
4253         gdb_py_object_from_longest.
4255 2020-09-15  Tom Tromey  <tromey@adacore.com>
4257         * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4258         * python/py-record.c (recpy_element_number): Use
4259         gdb_py_object_from_longest.
4260         (recpy_gap_number): Likewise.
4262 2020-09-15  Tom Tromey  <tromey@adacore.com>
4264         * top.c (ui::ui): Update.
4265         (highest_ui_num): Remove.
4266         * top.h (struct ui) <num>: Remove.
4268 2020-09-15  Tom Tromey  <tromey@adacore.com>
4270         * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4271         * ui-style.c (ansi_regex_text): Now array.
4272         * rust-exp.y (number_regex_text): Now array.
4273         * linespec.c (linespec_quote_characters): Now array.
4274         * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4275         Now arrays.
4277 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4279         * debuginfod-support.c (debuginfod_client_deleter): New.
4280         (debuginfod_client_up): New.
4281         (debuginfod_init): Return debuginfod_client_up.
4282         (debuginfod_source_query): Adjust.
4283         (debuginfod_debuginfo_query): Adjust.
4285 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4287         * debuginfod-support.c (debuginfod_source_query): Use
4288         make_unique_xstrdup.
4290 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4292         * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4293         with `type::instance_flags`.
4295 2020-09-14  Michael Mullin  <masmullin@gmail.com>
4297         * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4298         Remove baton parameter.
4300 2020-09-14  Pedro Alves  <pedro@palves.net>
4302         * Makefile.in (SELFTESTS_SRCS): Add
4303         unittests/enum-flags-selftests.c.
4304         * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4305         btrace_function_flags instead of enum btrace_function_flag.
4306         * compile/compile-c-types.c (convert_qualified): Use
4307         enum_flags::raw.
4308         * compile/compile-cplus-symbols.c (convert_one_symbol)
4309         (convert_symbol_bmsym):
4310         * compile/compile-cplus-types.c (compile_cplus_convert_method)
4311         (compile_cplus_convert_struct_or_union_methods)
4312         (compile_cplus_instance::convert_qualified_base):
4313         * go-exp.y (parse_string_or_char): Add cast to int.
4314         * unittests/enum-flags-selftests.c: New file.
4315         * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4316         type to btrace_thread_flags from btrace_thread_flag.
4317         (record_btrace_cancel_resume, record_btrace_step_thread): Change
4318         local's type to btrace_thread_flags from btrace_thread_flag.  Add
4319         cast in DEBUG call.
4321 2020-09-14  Pedro Alves  <pedro@palves.net>
4323         * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4324         * gdbtypes.c (address_space_name_to_int): Rename to ...
4325         (address_space_name_to_type_instance_flags): ... this.
4326         (address_space_int_to_name): Rename to ...
4327         (address_space_type_instance_flags_to_name): ... this.
4328         * gdbtypes.h (address_space_name_to_int): Rename to ...
4329         (address_space_name_to_type_instance_flags): ... this.
4330         (address_space_int_to_name): Rename to ...
4331         (address_space_type_instance_flags_to_name): ... this.
4332         * type-stack.c (type_stack::insert): Adjust to rename.
4333         * type-stack.h (type_stack::insert): Likewise.
4335 2020-09-14  Pedro Alves  <pedro@palves.net>
4336             Andrew Burgess  <andrew.burgess@embecosm.com>
4338         * avr-tdep.c (avr_address_class_type_flags): Return
4339         type_instance_flags.
4340         (avr_address_class_type_flags_to_name): Take a
4341         type_instance_flags.
4342         (avr_address_class_name_to_type_flags): Return bool and take a
4343         type_instance_flags.
4344         * d-lang.c (build_d_types): Use type::set_instance_flags.
4345         * ft32-tdep.c (ft32_address_class_type_flags): Return
4346         type_instance_flags.
4347         (ft32_address_class_type_flags_to_name): Take a
4348         type_instance_flags.
4349         (ft32_address_class_name_to_type_flags): Return bool and take a
4350         type_instance_flags.
4351         (ft32_gdbarch_init): Use type::set_instance_flags.
4352         * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4353         * gdbarch.h, gdbarch.c: Regenerate.
4354         * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4355         (address_class_name_to_type_flags): Use type_instance_flags and
4356         bool.
4357         * gdbtypes.c (address_space_name_to_int)
4358         (address_space_int_to_name, make_qualified_type): Use
4359         type_instance_flags.
4360         (make_qualified_type): Use type_instance_flags and
4361         type::set_instance_flags.
4362         (make_type_with_address_space, make_cv_type, make_vector_type)
4363         (check_typedef): Use type_instance_flags.
4364         (recursive_dump_type): Cast type_instance_flags to unsigned for
4365         printing.
4366         (copy_type_recursive): Use type::set_instance_flags.
4367         (gdbtypes_post_init): Use type::set_instance_flags.
4368         * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4369         <m_instance_flags>: ... this.
4370         <instance_flags, set_instance_flags>: New methods.
4371         (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4372         (SET_TYPE_INSTANCE_FLAGS): New.
4373         (address_space_name_to_int, address_space_int_to_name)
4374         (make_type_with_address_space): Pass flags using
4375         type_instance_flags instead of int.
4376         * stabsread.c (cleanup_undefined_types_noname): Use
4377         type::set_instance_flags.
4378         * s390-tdep.c (s390_address_class_type_flags): Return
4379         type_instance_flags.
4380         (s390_address_class_type_flags_to_name): Take a
4381         type_instance_flags.
4382         (s390_address_class_name_to_type_flags): Return bool and take a
4383         type_instance_flags.
4384         * type-stack.c (type_stack::follow_types): Use
4385         type_instance_flags.
4386         * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4388 2020-09-14  Tom Tromey  <tromey@adacore.com>
4390         * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4391         * x86-tdep.c (x86_is_thunk_register_name)
4392         (x86_in_indirect_branch_thunk): Update.
4393         * sparc64-tdep.c (sparc64_fpu_register_names)
4394         (sparc64_cp0_register_names, sparc64_register_names)
4395         (sparc64_pseudo_register_names): Now const.
4396         * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4397         cp0_registers_num>: Now const.
4398         * sparc-tdep.c (sparc_core_register_names)
4399         (sparc32_fpu_register_names, sparc32_cp0_register_names)
4400         (sparc32_pseudo_register_names): Now const.
4401         (validate_tdesc_registers): Update.
4402         * rust-lang.c (rust_extensions): Now const.
4403         * p-lang.c (p_extensions): Now const.
4404         * objc-lang.c (objc_extensions): Now const.
4405         * nto-tdep.c (nto_thread_state_str): Now const.
4406         * moxie-tdep.c (moxie_register_names): Now const.
4407         * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4408         Now const.
4409         * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4410         (mips_linux_reg_names): Now const.
4411         (mips_gdbarch_init): Update.
4412         * microblaze-tdep.c (microblaze_register_names): Now const.
4413         * m68k-tdep.c (m68k_register_names): Now const.
4414         * m32r-tdep.c (m32r_register_names): Now const.
4415         * ia64-tdep.c (ia64_register_names): Now const.
4416         * i386-tdep.h (struct gdbarch_tdep) <register_names,
4417         ymmh_register_names, ymm16h_regnum, mpx_register_names,
4418         k_register_names, zmmh_register_names, xmm_avx512_register_names,
4419         ymm_avx512_register_names, pkeys_register_names>: Now const.
4420         * i386-tdep.c (i386_register_names, i386_zmm_names)
4421         (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4422         (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4423         (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4424         * f-lang.c (f_extensions): Now const.
4425         * d-lang.c (d_extensions): Now const.
4426         * csky-tdep.c (csky_register_names): Now const.
4427         * charset.c (default_charset_names, charset_enum): Now const.
4428         (_initialize_charset): Update.
4429         * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4430         const.
4431         * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4432         (bsd_uthread_solib_loaded): Update.
4433         (bsd_uthread_state): Now const.
4434         * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4435         (amd64_ymm_avx512_names, amd64_ymmh_names)
4436         (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4437         (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4438         (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4439         (amd64_dword_names): Now const.
4440         * agent.c (can_use_agent_enum): Now const.
4441         * ada-tasks.c (task_states, long_task_states): Now const.
4442         * ada-lang.c (known_runtime_file_name_patterns)
4443         (known_auxiliary_function_name_patterns, attribute_names)
4444         (standard_exc, ada_extensions): Now const.
4446 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4448         * bcache.h (struct bcache) <bcache>: Remove constructor.
4449         <m_hash_function, m_compare_function>: Remove.
4450         <~bcache>: Make virtual.
4451         <compare>: Remove static method, introduce virtual method.
4452         <default_hash>: Remove.
4453         <hash>: New virtual method.
4454         * bcache.c (bcache::expand_hash_table): Update.
4455         (bcache::insert): Update.
4456         (bcache::hash): New.
4457         (bcache::compare): Update comment and parameter names.
4458         * gdbtypes.c (types_deeply_equal): Update.
4459         * psymtab.h (struct psymbol_bcache): New struct.
4460         (class psymtab_storage) <psymtab_storage>: Make default.
4461         <psymbol_cache>: Change type to psymbol_bcache.
4462         * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4463         (psymbol_hash): Change to...
4464         (psymbol_bcache::hash): ... this.
4465         (psymbol_compare): Change to...
4466         (psymbol_bcache::compare): ... this.
4468 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4470         * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4471         checking for initial lwp.
4473 2020-09-14  Tom Tromey  <tromey@adacore.com>
4475         * m68k-tdep.c (m68k_extract_return_value): Use
4476         pointer_result_regnum.
4477         (m68k_store_return_value): Likewise.
4478         (m68k_reg_struct_return_p): Handle vectors and arrays.
4479         (m68k_return_value): Handle arrays.
4480         (m68k_svr4_return_value): Fix single-element aggregate handling.
4481         Handle long double.  Adjust for embedded ABI.
4482         (m68k_svr4_init_abi): Set pointer_result_regnum.
4483         (m68k_embedded_init_abi): New function.
4484         (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4485         (m68k_osabi_sniffer): New function.
4486         (_initialize_m68k_tdep): Register osabi sniffer.
4487         * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4488         member.
4490 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4492         * xml-support.c (xml_fetch_content_from_file): Replace xfree
4493         with gdb::unique_xmalloc_ptr<char>.
4495 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4497         * xml-support.h (xml_fetch_another): Change type to be a
4498         function_view.
4499         (xml_process_xincludes): Remove baton parameter.
4500         (xml_fetch_content_from_file): Change baton parameter to
4501         dirname.
4502         * xml-support.c (struct xinclude_parsing_data)
4503         <xinclude_parsing_data>: Remove baton parameter.
4504         <fetcher_baton>: Remove.
4505         (xinclude_start_include): Adjust.
4506         (xml_process_xincludes): Adjust.
4507         (xml_fetch_content_from_file): Replace baton parameter with
4508         dirname.
4509         * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4510         (xml_init_syscalls_info): Use a lambda.
4511         * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4512         (file_read_description_xml): Use a lambda.
4513         (fetch_available_features_from_target): Change baton parameter
4514         to target_ops.
4515         (target_read_description_xml): Use a lambda.
4516         (target_fetch_description_xml): Use a lambda.
4517         (string_read_description_xml): Update.
4519 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
4521         * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4522         uses with type::endianity_is_not_default.
4524 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4526         * gdbtypes.h (struct type) <endianity_is_not_default,
4527         set_endianity_is_not_default>: New methods.
4528         (TYPE_ENDIANITY_NOT_DEFAULT): Use
4529         type::endianity_is_not_default, change all write call sites to
4530         use type::set_endianity_is_not_default.
4532 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4534         * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4535         uses with type::is_fixed_instance.
4537 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4539         * gdbtypes.h (struct type) <is_fixed_instance,
4540         set_is_fixed_instance>: New methods.
4541         (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4542         write call sites to use type::set_is_fixed_instance.
4544 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4546         * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4547         uses with type::is_gnu_ifunc.
4549 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4551         * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4552         (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4553         use type::set_is_gnu_ifunc.
4555 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4557         * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4558         uses with type::stub_is_supported.
4560 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4562         * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4563         (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4564         use type::set_stub_is_supported.
4566 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4568         * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4569         uses with type::is_vector.
4571 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4573         * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4574         (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4575         use type::set_is_vector.
4577 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4579         * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4580         uses with type::has_varargs.
4582 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4584         * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4585         (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4586         use type::set_has_varargs.
4588 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4590         * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4591         uses with type::is_prototyped.
4593 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4595         * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4596         New methods.
4597         (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4598         call sites to use type::set_is_prototyped.
4600 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4602         * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4603         uses with type::target_is_stub.
4605 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4607         * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4608         New methods.
4609         (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4610         sites to use type::set_target_is_stub.
4612 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4614         * gdbtypes.h (TYPE_STUB): Remove, replace all
4615         uses with type::is_stub.
4617 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4619         * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4620         (TYPE_STUB): Use type::is_stub, change all write call sites to
4621         use type::set_is_stub.
4623 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4625         * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4626         type::has_no_signedness.
4628 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4630         * gdbtypes.h (struct type) <has_no_signedness,
4631         set_has_no_signedness>: New methods.
4632         (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4633         call sites to use type::set_has_no_signedness.
4635 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4637         * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4638         type::is_unsigned.
4640 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
4642         * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4643         methods.
4644         (TYPE_UNSIGNED): Use type::is_unsigned.  Change all write call
4645         sites to use type::set_is_unsigned.
4647 2020-09-14  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
4648             Adam Renquinha <arenquinha@cimeq.qc.ca>
4650         * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4651         pointer and stack frame offset when unwinding.
4653 2020-09-13  Pedro Alves  <pedro@palves.net>
4655         * NEWS: Document "-break-insert --qualified".
4656         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4658 2020-09-13  Pedro Alves  <pedro@palves.net>
4660         * linespec.c (classify_mtype, compare_msyms): Delete.
4661         (search_minsyms_for_name): Remove classification logic.  Instead
4662         filter out trampoline symbols if we also found an external
4663         function of the same name.
4665 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
4667         * NEWS: Create a new section for the next release branch.
4668         Rename the section of the current branch, now that it has
4669         been cut.
4671 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
4673         GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4674         * version.in: Bump version to 11.0.50.DATE-git.
4676 2020-09-12  Joel Brobecker  <brobecker@adacore.com>
4678         * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4680 2020-09-11  Moritz Riesterer  <moritz.riesterer@intel.com>
4681             Felix Willgerodt  <Felix.Willgerodt@intel.com>
4683         * gdbarch.sh: Added bfloat16 type.
4684         * gdbarch.c: Regenerated.
4685         * gdbarch.h: Regenerated.
4686         * gdbtypes.c (floatformats_bfloat16): New struct.
4687         (gdbtypes_post_init): Add builtin_bfloat16.
4688         * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4689         (floatformats_bfloat16): New struct.
4690         * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4691         (i386_ymm_type): Add field "v16_bfloat16"
4692         (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4693         * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4694         * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4695         * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4696         * features/i386/64bit-avx512.xml: Add bfloat16 type.
4697         * features/i386/64bit-avx512.c: Regenerated.
4698         * features/i386/64bit-sse.xml: Add bfloat16 type.
4699         * features/i386/64bit-sse.c: Regenerated.
4701 2020-09-11  Felix Willgerodt  <felix.willgerodt@intel.com>
4703         * i386-tdep.c (i386_zmm_type): Fix field names.
4704         (i386_ymm_type): Fix field names.
4706 2020-09-11  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4708         * breakpoint.c: Fix typo in the help message of the
4709         "set breakpoint condition-evaluation" command.
4711 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4713         * nbsd-nat.c: Include "nat/netbsd-nat.h".
4714         * (nbsd_nat_target::pid_to_exec_file)
4715         (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4716         (nbsd_nat_target::post_startup_inferior)
4717         (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4718         (nbsd_add_threads): Switch local code to common gdb/nat functions.
4719         * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4720         * (nbsd_thread_lister): Remove.
4722 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4724         * fork-inferior.c (startup_inferior): Avoid double free.
4726 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4728         * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4729         * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4731 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4733         * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4734         * netbsd-nat.c: Include <sys/ptrace.h>.
4735         * (netbsd_nat::enable_proc_events): Add.
4737 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4739         * netbsd-nat.h: Include "gdbsupport/function-view.h".
4740         * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4741         (netbsd_nat::for_each_thread): Add.
4742         * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4743         "gdbsupport/common-debug.h".
4744         * (netbsd_nat::netbsd_thread_lister)
4745         (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4746         (netbsd_nat::for_each_thread): Add.
4748 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4750         * netbsd-nat.h: Include <unistd.h>.
4751         * (netbsd_nat::pid_to_exec_file): Add.
4752         * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4753         * (netbsd_nat::pid_to_exec_file) Add.
4755 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4757         * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4759 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
4761         * netbsd-nat.h: New file.
4762         * netbsd-nat.c: Likewise.
4764 2020-09-09  Tom Tromey  <tromey@adacore.com>
4766         * ada-lang.c (remove_extra_symbols): Do not increment when
4767         removing an element
4769 2020-09-08  Tom Tromey  <tromey@adacore.com>
4771         * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4773 2020-09-08  Tom Tromey  <tromey@adacore.com>
4775         PR win32/25302:
4776         * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4777         (gdb_bfd_init_data): New function.
4778         (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4780 2020-09-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
4782         * infrun.c (fetch_inferior_event): Use
4783         `switch_to_target_no_thread` to switch the target.
4785 2020-09-06  Tom Tromey  <tom@tromey.com>
4787         * symfile.h (dwarf2_free_objfile): Don't declare.
4789 2020-09-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
4791         * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4792         to match 16 byte real/complex type generated by Flang compiler.
4794 2020-09-03  Tom de Vries  <tdevries@suse.de>
4796         PR breakpoint/26546
4797         * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4798         LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4800 2020-09-02  Simon Marchi  <simon.marchi@polymtl.ca>
4802         * maint.c (index_digits): New function.
4803         (struct maint_print_section_data): Remove.
4804         (print_bfd_section_info): Remove print_data parameter, add arg
4805         and index_digits.
4806         (print_objfile_section_info): Likewise.
4807         (print_bfd_section_info_maybe_relocated): Likewise (plus
4808         objfile).
4809         (maintenance_info_sections): Adjust calls.
4811 2020-09-02  Tom Tromey  <tromey@adacore.com>
4813         * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4814         for null pointers.
4815         (ada_varobj_adjust_for_child_access): Special-case null pointers.
4817 2020-09-01  Simon Marchi  <simon.marchi@polymtl.ca>
4819         * bcache.h (struct bcache) <insert>: Change type of `added` to
4820         pointer to bool.
4821         * bcache.c (bcache::insert): Likewise.
4822         * gdbtypes.c (check_types_worklist): Adjust.
4823         * psymtab.c (add_psymbol_to_bcache): Adjust.
4825 2020-08-31  Kevin Buettner  <kevinb@redhat.com>
4827         * corelow.c (unordered_set): Include.
4828         (class core_target): Add field 'm_core_unavailable_mappings'.
4829         (core_target::build_file_mappings): Print only one warning
4830         per inaccessible file.  Add unavailable/broken mappings
4831         to m_core_unavailable_mappings.
4832         (core_target::xfer_partial): Call...
4833         (core_target::xfer_memory_via_mappings): New method.
4835 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
4837         * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4838         type to bool.
4840 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
4842         * dwarf2/read.c (struct field_info): Fix indentation.
4844 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4846         * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4847         ordering in comment.
4848         * frame.c (frame_id_eq): Fix indentation.
4850 2020-08-31  Scott Linder  <scott@scottlinder.com>
4851             Simon Marchi  <simon.marchi@efficios.com>
4853         * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4854         inline frame ids in outer frame.
4856 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4858         * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4859         * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4860         (outer_frame_id): Use FID_STACK_OUTER instead of
4861         FID_STACK_INVALID.
4862         (frame_id_p): Don't check for outer_frame_id.
4864 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4866         * frame-unwind.c (frame_unwind_got_optimized): Don't set
4867         regnum/frame in value.  Call allocate_value_lazy.
4868         * frame.c (frame_unwind_register_value): Use
4869         val_print_not_saved.
4871 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
4873         * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4875 2020-08-29  Pedro Alves  <pedro@palves.net>
4877         * progspace.c (print_program_space): Use all_inferiors.  Switch to
4878         the inferior before calling target_pid_to_str.
4880 2020-08-28  Tom Tromey  <tom@tromey.com>
4882         * xcoffread.c (xcoff_end_psymtab): Update comment.
4883         * dbxread.c (dbx_end_psymtab): Update comment.
4885 2020-08-28  Tom de Vries  <tdevries@suse.de>
4887         PR breakpoint/26544
4888         * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4889         event_location.
4890         (create_breakpoint): Same.
4891         (base_breakpoint_decode_location): Same.
4892         (bkpt_create_sals_from_location): Same.
4893         (bkpt_decode_location): Same.
4894         (bkpt_probe_create_sals_from_location): Same.
4895         (bkpt_probe_decode_location): Same.
4896         (tracepoint_create_sals_from_location): Same.
4897         (tracepoint_decode_location): Same.
4898         (tracepoint_probe_decode_location): Same.
4899         (strace_marker_create_sals_from_location): Same.
4900         (strace_marker_decode_location): Same.
4901         (create_sals_from_location_default): Same.
4902         (decode_location_default): Same.
4903         * breakpoint.h (struct breakpoint_ops): Same.
4904         (create_breakpoint): Same.
4905         * linespec.h (decode_line_full): Same.
4906         * linespec.c (decode_line_full): Same.  Throw error if
4907         result.size () == 0.
4909 2020-08-27  Pedro Alves  <pedro@palves.net>
4911         PR gdb/26524
4912         * breakpoint.c (until_break_fsm) <location_breakpoint,
4913         caller_breakpoint>: Delete fields.
4914         <breakpoints>: New field.
4915         <until_break_fsm>: Adjust to save a breakpoint vector instead of
4916         two individual breakpoints.
4917         (until_break_fsm::should_stop): Loop over breakpoints in the
4918         breakpoint vector.
4919         (until_break_fsm::clean_up): Adjust to clear the breakpoints
4920         vector.
4921         (until_break_command): Handle location expanding into multiple
4922         sals.
4924 2020-08-27  Pedro Alves  <pedro@palves.net>
4926         PR gdb/26523
4927         * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4928         bp_until breakpoints user-specified locations.  Update intro
4929         comment.
4931 2020-08-27  Simon Marchi  <simon.marchi@polymtl.ca>
4933         * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4934         gdb_bfd_sections): New.
4935         * maint.c (print_bfd_section_info): Change param type to
4936         maint_print_section_data.
4937         (print_objfile_section_info): Likewise.
4938         (print_bfd_section_info_maybe_relocated): Likewise.
4939         (maintenance_info_sections): Use gdb_bfd_sections.
4941 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4943         * MAINTAINERS: Add ARC target and maintainer.
4945 2020-08-25  Anton Kolesov  <anton.kolesov@synopsys.com>
4947         * configure.tgt: ARC support for GNU/Linux.
4948         * Makefile.in (ALL_TARGET_OBJS): Likewise.
4949         * arc-linux-tdep.c: New file.
4950         * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4951         * arc-tdep.c (arc_write_pc): Use it.
4953 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4955         * arc-tdep.c (arc_check_for_hardware_loop): New.
4956         * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4958 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4960         * arc-tdep.h: Include "gdbarch.h".
4962 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
4964         * arch/arc.h
4965         (arc_gdbarch_features): New class to stir the selection of target XML.
4966         (arc_create_target_description): Use FEATURES to choose XML target.
4967         (arc_lookup_target_description): Use arc_create_target_description
4968         to create _new_ target descriptions or return the already created
4969         ones if the FEATURES is the same.
4970         * arch/arc.c: Implementation of prototypes described above.
4971         * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4972         (arc_gdbarch_features_init): Initialize the FEATURES struct.
4973         * arc-tdep.c (*_feature_name): Make feature names consistent.
4974         (arc_register_feature): A new struct to hold information about
4975         registers of a particular target/feature.
4976         (arc_check_tdesc_feature): Check if XML provides registers in
4977         compliance with ARC_REGISTER_FEATURE structs.
4978         (arc_update_acc_reg_names): Add aliases for r58 and r59.
4979         (determine_*_reg_feature_set): Which feature name to look for.
4980         (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4981         (mach_type_to_arc_isa): Convert from a set of binutils machine types
4982         to expected ISA enums to be used in arc_gdbarch_features structs.
4983         * features/Makefile (FEATURE_XMLFILES): Add new files.
4984         * gdb/features/arc/v1-aux.c: New file.
4985         * gdb/features/arc/v1-aux.xml: Likewise.
4986         * gdb/features/arc/v1-core.c: Likewise.
4987         * gdb/features/arc/v1-core.xml: Likewise.
4988         * gdb/features/arc/v2-aux.c: Likewise.
4989         * gdb/features/arc/v2-aux.xml: Likewise.
4990         * gdb/features/arc/v2-core.c: Likewise.
4991         * gdb/features/arc/v2-core.xml: Likewise.
4992         * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4994 2020-08-25  Gaius Mulley  <gaiusmod2@gmail.com>
4995             Andrew Burgess  <andrew.burgess@embecosm.com>
4997         PR m2/26372
4998         * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4999         an assert.  Remove single element array indexing pattern as the
5000         MULTI_SUBSCRIPT support will handle this case too.
5002 2020-08-24  Simon Marchi  <simon.marchi@polymtl.ca>
5004         * value.h (valprint_check_validity): Move declaration from
5005         here...
5006         * valprint.h (valprint_check_validity): ... to here.
5008 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5010         * debug.h: New file.
5011         * debug.c (debug_prefixed_vprintf): New function.
5012         * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5013         * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5015 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
5017         * infrun.h (infrun_debug_printf_1): New function declaration.
5018         (infrun_debug_printf): New macro.
5019         * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5020         throughout.
5021         (infrun_debug_printf): New function.
5022         * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5023         (handle_jit_event): Likewise.
5025 2020-08-21  Mark Wielaard  <mark@klomp.org>
5027         * ada-lex.l: Extend register warnings diagnostics comment for g++.
5029 2020-08-22  Simon Marchi  <simon.marchi@efficios.com>
5031         * frame.c (enum class frame_id_status): New.
5032         (struct frame_info) <this_id::p>: Change type to frame_id_status.
5033         (fprintf_frame): Update.
5034         (compute_frame_id): Set frame id status to "computing" on entry.
5035         Set it back to "not_computed" on failure and to "computed" on
5036         success.
5037         (get_frame_id): Assert the frame id is not being computed.
5038         (create_sentinel_frame): Use frame_id_status::COMPUTED.
5039         (create_new_frame): Likewise.
5040         (frame_cleanup_after_sniffer): Update assert.
5042 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5044         * regcache.c (pid_ptid_regcache_map): New type.
5045         (target_ptid_regcache_map): Remove.
5046         (target_pid_ptid_regcache_map): New type.
5047         (regcaches): Change type to target_pid_ptid_regcache_map.
5048         (get_thread_arch_aspace_regcache): Update.
5049         (regcache_thread_ptid_changed): Update, handle pid-like ptid
5050         case.
5051         (regcaches_size): Update.
5052         (regcache_count): Update.
5053         (registers_changed_ptid_target_pid_test): New.
5054         (_initialize_regcache): Register new test.
5056 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5058         * regcache.c (regcache_count): New.
5059         (struct regcache_test_data): New.
5060         (regcache_test_data_up): New.
5061         (populate_regcaches_for_test): New.
5062         (regcaches_test): Remove.
5063         (get_thread_arch_aspace_regcache_test): New.
5064         (registers_changed_ptid_all_test): New.
5065         (registers_changed_ptid_target_test): New.
5066         (registers_changed_ptid_target_ptid_test): New.
5067         (regcache_thread_ptid_changed): Remove regcache_count lambda.
5068         (_initialize_regcache): Register new tests.
5070 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5072         * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5073         (get_thread_arch_aspace_regcache_and_check): ... this.  Remove
5074         gdbarch and aspace parameter.  Use current inferior's aspace.
5075         Validate regcache's arch value.
5076         (regcaches_test): Update.
5078 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
5080         * regcache.c (regcaches_test): Call registers_changed.
5082 2020-08-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5084         * infrun.c (process_event_stop_test): Fix typo "breapoint".
5086 2020-08-19  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
5088         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5089         to find the end of prologue for flang compiled binaries.
5090         * arm-tdep.c (arm_skip_prologue): Likewise.
5091         * i386-tdep.c (i386_skip_prologue): Likewise.
5092         * producer.c (producer_is_llvm): New function.
5093         (producer_parsing_tests): Added new tests for clang/flang.
5094         * producer.h (producer_is_llvm): New declaration.
5096 2020-08-18  Simon Marchi  <simon.marchi@efficios.com>
5098         * linux-nat.c (linux_nat_debug_printf): New function.
5099         (linux_nat_debug_printf_1): New macro.  Use throughout the file.
5101 2020-08-18  Aaron Merey  <amerey@redhat.com>
5103         * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5104         (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5105         (CLIBS): Add DEBUGINFOD_LIBS.
5107 2020-08-17  Sergei Trofimovich  <siarheit@google.com>
5109         * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5110         'gdbarch_num_regs'.
5112 2020-08-17  Tom Tromey  <tromey@adacore.com>
5114         * ada-varobj.c (ada_varobj_decode_var): Handle case where
5115         ada_get_decoded_value returns NULL.
5117 2020-08-17  Tom Tromey  <tromey@adacore.com>
5119         * python/py-inferior.c (infpy_search_memory): Use
5120         gdb_py_object_from_ulongest.
5121         * python/py-infevents.c (create_inferior_call_event_object)
5122         (create_memory_changed_event_object): Use
5123         gdb_py_object_from_ulongest.
5124         * python/py-linetable.c (ltpy_entry_get_pc): Use
5125         gdb_py_object_from_ulongest.
5127 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5129         * loc.c (class symbol_needs_eval_context): Fix indentation.
5131 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
5133         * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5134         bool.
5136 2020-08-17  Tom de Vries  <tdevries@suse.de>
5138         PR gdb/26393
5139         * gdbtypes.c (dump_dynamic_prop): New function.
5140         (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5142 2020-08-15  Tom de Vries  <tdevries@suse.de>
5144         PR backtrace/26390
5145         * stack.c (print_frame_args): Temporarily set the selected
5146         frame to FRAME while printing the frame's arguments.
5148 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5150         PR breakpoints/26385
5151         * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5152         Always clear watchpoint with PTRACE_SET_DEBUGREG.
5154 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
5156         * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5157         (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5158         and >= to check return value instead of == -1 and != -1.
5160 2020-08-14  Simon Marchi  <simon.marchi@polymtl.ca>
5162         * utils.h (class gdb_argv) <as_array_view>: New method.
5163         * utils.c (gdb_argv_as_array_view_test): New.
5164         (_initialize_utils): Register selftest.
5165         * maint.c (maintenance_selftest): Use the new method.
5167 2020-08-13  Kamil Rytarowski  <n54@gmx.com>
5169         * target.h (supports_dumpcore, dumpcore): New
5170         function declarations.
5171         * target.c (supports_dumpcore, dumpcore): New
5172         functions.
5173         * target-delegates.c: Rebuild.
5174         * gcore.c (gcore_command): Use target_supports_dumpcore ()
5175         and target_dumpcore ().
5177 2020-08-13  Aaron Merey  <amerey@redhat.com>
5179         * debuginfod-support.c: Replace global variables with user_data.
5181 2020-08-13  Simon Marchi  <simon.marchi@polymtl.ca>
5183         * maint.c (maintenance_selftest): Split args and pass array_view
5184         to run_tests.
5186 2020-08-12  Luis Machado  <luis.machado@linaro.org>
5188         * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5189         type's length.
5190         Use %s and pulongest to print the length.
5192 2020-08-12  Pedro Alves  <palves@redhat.com>
5194         * NEWS: Move "Multi-target debugging support" item to the
5195         "Changes since GDB 9" section.
5197 2020-08-12  Pedro Alves  <palves@redhat.com>
5199         PR gdb/26336
5200         * progspace.c (program_space::remove_objfile): Invalidate the
5201         frame cache.
5203 2020-08-11  Tom de Vries  <tdevries@suse.de>
5205         * MAINTAINERS: Mark ms1 as deleted.
5207 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5209         PR gdb/26310
5211         * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5212         act accordingly.
5213         (aarch64_analyze_prologue_test): Add more unit tests to exercise
5214         movz/str/stur/stp skipping behavior.
5216 2020-08-10  Luis Machado  <luis.machado@linaro.org>
5218         * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5219         struct user_sve_header instead of struct sve_context.
5221 2020-08-09  Simon Marchi  <simon.marchi@polymtl.ca>
5223         * read.h (dwarf2_fetch_die_loc_sect_off,
5224         dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5225         `void *` parameter with function_view.
5226         * read.c (dwarf2_fetch_die_loc_sect_off,
5227         dwarf2_fetch_die_loc_cu_off): Likewise.
5228         * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5229         (per_cu_dwarf_call): Adjust.
5230         (get_frame_address_in_block_wrapper): Remove.
5231         (indirect_synthetic_pointer): Adjust.
5232         (get_ax_pc): Remove.
5233         (dwarf2_compile_expr_to_ax): Adjust.
5235 2020-08-08  Tom de Vries  <tdevries@suse.de>
5237         PR build/26344
5238         * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5239         constructor.
5240         * regcache.c (get_thread_arch_aspace_regcache): Same.
5242 2020-08-07  Tom Tromey  <tromey@adacore.com>
5244         * ravenscar-thread.c
5245         (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5246         New method.
5247         (ravenscar_thread_target::wait): Check
5248         runtime_initialized.
5249         (ravenscar_thread_target::prepare_to_store)
5250         (ravenscar_thread_target::stopped_by_sw_breakpoint)
5251         (ravenscar_thread_target::stopped_by_hw_breakpoint)
5252         (ravenscar_thread_target::stopped_by_watchpoint)
5253         (ravenscar_thread_target::stopped_data_address)
5254         (ravenscar_thread_target::core_of_thread): Use
5255         scoped_restore_current_thread and
5256         set_base_thread_from_ravenscar_task.
5258 2020-08-07  Tom Tromey  <tromey@adacore.com>
5260         * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5262 2020-08-07  Tom Tromey  <tromey@adacore.com>
5264         * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5265         update_inferior_ptid before update_thread_list.
5266         (temporarily_change_regcache_ptid): New class.
5267         (ravenscar_thread_target::fetch_registers)
5268         (ravenscar_thread_target::store_registers)
5269         (ravenscar_thread_target::prepare_to_store): Use base thread when
5270         forwarding operation.
5272 2020-08-07  Tom Tromey  <tromey@adacore.com>
5274         * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5275         "is_pid" case.
5277 2020-08-07  Tom Tromey  <tromey@adacore.com>
5279         * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5280         New methods.
5281         (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5282         first.
5283         (ravenscar_thread_target::add_thread): Rename from
5284         ravenscar_add_thread.
5285         (ravenscar_thread_target::update_thread_list): Use a lambda.
5286         (ravenscar_thread_target::xfer_partial): New method.
5288 2020-08-07  Tom Tromey  <tromey@adacore.com>
5290         * ada-lang.h (ada_task_list_iterator_ftype): Now a
5291         gdb::function_view.
5292         (iterate_over_live_ada_tasks): Change type of argument.
5293         * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5294         of argument.
5296 2020-08-07  Tom Tromey  <tromey@adacore.com>
5298         * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5299         Remove.
5300         (ravenscar_thread_target::extra_thread_info): Remove.
5301         (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5302         defer to target beneath for non-Ravenscar threads.
5304 2020-08-07  Tom Tromey  <tromey@adacore.com>
5306         * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5307         get_base_thread_from_ravenscar_task>: Now methods.
5308         <m_cpu_map>: New member.
5309         (ravenscar_thread_target::get_thread_base_cpu): Rename from
5310         ravenscar_get_thread_base_cpu.  Check m_cpu_map.
5311         (ravenscar_thread_target::task_is_currently_active): Update.
5312         (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5313         Now a method.
5314         (ravenscar_thread_target::add_active_thread): Put initial thread
5315         into the m_cpu_map.
5317 2020-08-07  Tom Tromey  <tromey@adacore.com>
5319         * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5320         event_ptid.
5322 2020-08-07  Tom Tromey  <tromey@adacore.com>
5324         * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5325         runtime_initialized.
5327 2020-08-07  Tom Tromey  <tromey@adacore.com>
5329         * ravenscar-thread.c (ravenscar_thread_target): Don't call
5330         add_active_thread.
5331         (ravenscar_thread_target::add_active_thread): Now public.
5332         (ravenscar_inferior_created): Call add_active_thread after pushing
5333         the target.
5335 2020-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
5337         * regcache.c (ptid_regcache_map): New type.
5338         (target_ptid_regcache_map): New type.
5339         (regcaches): Change type to target_ptid_regcache_map.
5340         (get_thread_arch_aspace_regcache): Update to regcaches' new
5341         type.
5342         (regcache_thread_ptid_changed): Likewise.
5343         (registers_changed_ptid): Likewise.
5344         (regcaches_size): Likewise.
5345         (regcaches_test): Update.
5346         (regcache_thread_ptid_changed): Update.
5347         * regcache.h (regcache_up): New type.
5348         * gdbsupport/ptid.h (hash_ptid): New struct.
5350 2020-08-07  Simon Marchi  <simon.marchi@efficios.com>
5352         * observable.h (thread_ptid_changed): Add parameter
5353         `process_stratum_target *`.
5354         * infrun.c (infrun_thread_ptid_changed): Add parameter
5355         `process_stratum_target *` and use it.
5356         (selftests): New namespace.
5357         (infrun_thread_ptid_changed): New function.
5358         (_initialize_infrun): Register selftest.
5359         * regcache.c (regcache_thread_ptid_changed): Add parameter
5360         `process_stratum_target *` and use it.
5361         (regcache_thread_ptid_changed): New function.
5362         (_initialize_regcache): Register selftest.
5363         * thread.c (thread_change_ptid): Pass target to
5364         thread_ptid_changed observable.
5366 2020-08-06  Caroline Tice <cmtice@google.com>
5368         * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5369         (struct dwp_sections): Update field comments.  Add loclists and
5370         rnglists fields.
5371         (struct virtual_v2_dwo_sections): Rename struct to
5372         'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5373         size & offset fields for loclists and rnglists.
5374         (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5375         (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5376         skipping dummy type units.
5377         (create_dwp_hash_table): Update the large comment above the function to
5378         discuss Version 5 DWP files as well, with references.  Update all the
5379         version checks in the function to check for version 5 as well.  Add new
5380         section at the end to create dwp hash table for version 5.
5381         (create_dwp_v2_section): Rename function to
5382         'create_dwp_v2_or_v5_section'.  Update function comment appropriately.
5383         Add V5 to error message text.
5384         (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5385         into calls to create_dwp_v2_or_v5_section.
5386         (create_dwo_unit_in_dwp_v5): New function.
5387         (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5388         check for version2; add else clause to handle version 5.
5389         (open_and_init_dwo_file): Add code to check dwarf version & only call
5390         create_debug_types_hash_table (with sections.types) if version is not 5;
5391         else call create_debug_type_hash_table, with sections.info.
5392         (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5393         version 5.
5394         (dwarf2_locate_v5_dwp_sections): New function.
5395         (open_and_init_dwp_file): Add else-if clause for version 5 to call
5396         bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5398 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
5400         * regcache.h (class regcache): Remove friend
5401         registers_changed_ptid.
5402         <regcache_thread_ptid_changed>: Remove.
5403         <regcaches>: Remove.
5404         * regcache.c (regcache::regcaches): Rename to...
5405         (regcaches): ... this.  Make static.
5406         (get_thread_arch_aspace_regcache): Update.
5407         (regcache::regcache_thread_ptid_changed): Rename to...
5408         (regcache_thread_ptid_changed): ... this.  Update.
5409         (class regcache_access): Remove.
5410         (regcaches_test): Update.
5411         (_initialize_regcache): Update.
5412         * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5413         <forward_list>.
5415 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
5417         * regcache.h (class regcache) <current_regcache>: Rename to...
5418         <regcaches>: ... this.  Move doc here.
5419         * regcache.c (regcache::current_regcache) Rename to...
5420         (regcache::regcaches): ... this.  Move doc to header.
5421         (get_thread_arch_aspace_regcache): Update.
5422         (regcache::regcache_thread_ptid_changed): Update.
5423         (registers_changed_ptid): Update.
5424         (class regcache_access) <current_regcache_size>: Rename to...
5425         <regcaches_size>: ... this.
5426         (current_regcache_test): Rename to...
5427         (regcaches_test): ... this.
5428         (_initialize_regcache): Update.
5430 2020-08-06  Victor Collod  <vcollod@nvidia.com>
5432         * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5434 2020-08-05  Kevin Buettner  <kevinb@redhat.com>
5436         * corelow.c (core_target::build_file_mappings): Don't output
5437         null pathname in warning.
5439 2020-08-05  Simon Marchi  <simon.marchi@polymtl.ca>
5441         * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5442         gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5443         gdb.dwarf2/dw2-single-line-discriminators.exp,
5444         dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5446 2020-08-05  Tom Tromey  <tromey@adacore.com>
5448         PR rust/26197:
5449         * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5450         (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5451         Fix off-by-one and type size errors in ordinary case.
5453 2020-08-05  Tom de Vries  <tdevries@suse.de>
5455         * gdbtypes.c (type_not_allocated, type_not_associated): Use
5456         "prop->const_val () == 0" instead of "prop->const_val () != 0".
5458 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
5460         * frame.h (frame_id_p): Return bool.
5461         (frame_id_artificial_p): Return bool.
5462         (frame_id_eq): Return bool.
5463         (has_stack_frames): Return bool.
5464         (get_selected_frame): Fix typo in comment.
5465         (get_frame_pc_if_available): Return bool.
5466         (get_frame_address_in_block_if_available): Return bool.
5467         (get_frame_func_if_available): Return bool.
5468         (read_frame_register_unsigned): Return bool.
5469         (get_frame_register_bytes): Return bool.
5470         (safe_frame_unwind_memory): Return bool.
5471         (deprecated_frame_register_read): Return bool.
5472         (frame_unwinder_is): Return bool.
5473         * frame.c (struct frame_info) <prev_arch::p>: Change type to
5474         bool.
5475         <this_id::p>: Likewise.
5476         <prev_p>: Likewise.
5477         (frame_stash_add): Return bool.
5478         (get_frame_id): Use bool.
5479         (frame_id_build_special) Use bool.
5480         (frame_id_build_unavailable_stack): Use bool.
5481         (frame_id_build): Use bool.
5482         (frame_id_p): Return bool, use true/false instead of 1/0.
5483         (frame_id_artificial_p): Likewise.
5484         (frame_id_eq): Likewise.
5485         (frame_id_inner): Likewise.
5486         (get_frame_func_if_available): Likewise.
5487         (read_frame_register_unsigned): Likewise.
5488         (deprecated_frame_register_read): Likewise.
5489         (get_frame_register_bytes): Likewise.
5490         (has_stack_frames): Likewise.
5491         (inside_main_func): Likewise.
5492         (inside_entry_func): Likewise.
5493         (get_frame_pc_if_available): Likewise.
5494         (get_frame_address_in_block_if_available): Likewise.
5495         (frame_unwinder_is): Likewise.
5496         (safe_frame_unwind_memory): Likewise.
5497         (frame_unwind_arch): Likewise.
5499 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
5501         * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5502         type to cached_copy_status.
5503         (fprintf_frame): Adjust.
5504         (get_frame_func_if_available): Adjust.
5505         (frame_cleanup_after_sniffer): Adjust.
5507 2020-08-04  Mark Wielaard  <mark@klomp.org>
5509         * MAINTAINERS (Write After Approval): Update email address.
5511 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5513         * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5514         dynamic_prop::const_val.
5516 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5518         * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5519         dynamic_prop::kind.
5521 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
5523         * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5525 2020-08-04  Jose E. Marchesi  <jose.marchesi@oracle.com>
5527         * configure.tgt: Set gdb_sim for bpf-*-* targets.
5529 2020-08-04  Weimin Pan <weimin.pan@oracle.com>
5530             Jose E. Marchesi  <jose.marchesi@oracle.com>
5532         * configure.tgt: Add entry for bpf-*-*.
5533         * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5534         (ALLDEPFILES): Add bpf-tdep.c.
5535         * bpf-tdep.c: New file.
5536         * MAINTAINERS: Add bpf target and maintainer.
5537         * NEWS: Mention the support for the new target.
5539 2020-08-04  Tom de Vries  <tdevries@suse.de>
5541         PR symtab/23270
5542         * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5543         Error.
5545 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
5547         * syscalls/freebsd.xml: Regenerate.
5549 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
5551         * syscalls/update-freebsd.sh: Fix usage and year range.
5553 2020-08-03  Tom de Vries  <tdevries@suse.de>
5555         PR symtab/26333
5556         * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5557         DW_LNE_lo_user/DW_LNE_hi_user range.
5559 2020-07-30  Simon Marchi  <simon.marchi@polymtl.ca>
5561         PR ada/26318
5562         * ada-lang.c (ada_modulus): Return 0 if property is not of const
5563         kind.
5565 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5567         * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5569 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5571         * breakpoint.c (set_breakpoint_condition): Update the condition
5572         expressions after checking that the input condition string parses
5573         successfully and does not contain junk at the end.
5575 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5577         * breakpoint.c (set_breakpoint_condition): Update the
5578         condition string after parsing the new condition successfully.
5580 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5582         * proc-api.c (_STRUCTURED_PROC): Don't define.
5583         * proc-events.c: Likewise.
5584         * proc-flags.c: Likewise.
5585         * proc-why.c: Likewise.
5586         * procfs.c: Likewise.
5588         * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5589         * configure, config.in: Regenerate.
5591 2020-07-30  Tom de Vries  <tdevries@suse.de>
5593         PR build/26320
5594         * ui-style.h (struct ui_file_style::color): Wrap m_value and
5595         m_red/m_green/m_blue in a union.
5597 2020-07-29  Tom de Vries  <tdevries@suse.de>
5599         PR tdep/26280
5600         * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5602 2020-07-28  Tom Tromey  <tromey@adacore.com>
5604         PR symtab/26270:
5605         * symtab.h (find_pc_partial_function_sym): Declare.
5606         * cli/cli-cmds.c (disassemble_command): Use
5607         find_pc_partial_function_sym.  Check asm_demangle.
5608         * blockframe.c (cache_pc_function_sym): New global.
5609         (cache_pc_function_name): Remove.
5610         (clear_pc_function_cache): Update.
5611         (find_pc_partial_function_sym): New function, from
5612         find_pc_partial_function.
5613         (find_pc_partial_function): Rewrite using
5614         find_pc_partial_function_sym.
5616 2020-07-28  Tom Tromey  <tromey@adacore.com>
5618         * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5619         help.  Add usage.
5621 2020-07-28  Tom Tromey  <tromey@adacore.com>
5623         * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5624         <DW_OP_GNU_variable_value>: Cast to address type.
5626 2020-07-28  Kamil Rytarowski  <n54@gmx.com>
5628         * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5629         * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5630         * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5631         (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5632         (nbsd_get_siginfo_type): New.
5633         (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5634         (_initialize_nbsd_tdep): New.
5636 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5638         PR binutils/26301
5639         * configure: Regenerated.
5641 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5643         PR binutils/26301
5644         * configure: Regenerated.
5646 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
5648         * python/py-frame.c: Remove 'user-regs.h' include.
5649         (frapy_read_register): Rewrite to make use of
5650         gdbpy_parse_register_id.
5651         * python/py-registers.c (gdbpy_parse_register_id): New function,
5652         moved here from python/py-unwind.c.  Updated the return type, and
5653         also accepts register descriptor objects.
5654         * python/py-unwind.c: Remove 'user-regs.h' include.
5655         (pyuw_parse_register_id): Moved to python/py-registers.c.
5656         (unwind_infopy_add_saved_register): Update to use
5657         gdbpy_parse_register_id.
5658         (pending_framepy_read_register): Likewise.
5659         * python/python-internal.h (gdbpy_parse_register_id): Declare.
5661 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
5663         * python/py-registers.c: Add 'user-regs.h' include.
5664         (register_descriptor_iter_find): New function.
5665         (register_descriptor_iterator_object_methods): New static global
5666         methods array.
5667         (register_descriptor_iterator_object_type): Add pointer to methods
5668         array.
5670 2020-07-27  John Baldwin  <jhb@FreeBSD.org>
5672         * fbsd-nat.h: Include <osreldate.h>.  Define USE_SIGTRAP_SIGINFO
5673         for all architectures on FreeBSD 11.3 and later.
5675 2020-07-27  Tom Tromey  <tromey@adacore.com>
5677         * gcore.h (load_corefile): Don't declare.
5679 2020-07-27  Tom de Vries  <tdevries@suse.de>
5681         * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5682         * config.in: Regenerate.
5683         * configure: Regenerate.
5685 2020-07-26  Eli Zaretskii  <eliz@gnu.org>
5687         * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5688         ws2tcpip.h.  When checking whether socklen_t type is defined, use
5689         ws2tcpip.h if it is available and sys/socket.h isn't.
5690         * configure: Regenerate.
5691         * config.in: Regenerate.
5693 2020-07-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5695         PR fortran/23051
5696         PR fortran/26139
5697         * valops.c (value_ind): Pass address to
5698         readjust_indirect_value_type.
5699         * value.c (readjust_indirect_value_type): Make parameter
5700         non-const, and add extra address parameter.  Resolve original type
5701         before using it.
5702         * value.h (readjust_indirect_value_type): Update function
5703         signature and comment.
5705 2020-07-25  Tom de Vries  <tdevries@suse.de>
5707         PR symtab/26243
5708         * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5709         entries.
5711 2020-07-24  Aaron Merey  <amerey@redhat.com>
5713         * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5714         * configure: Rebuild.
5716 2020-07-23  Kevin Buettner  <kevinb@redhat.com>
5718         PR corefiles/26294
5719         * corelow.c (_initialize_corelow): Add period to help text
5720         for "maintenance print core-file-backed-mappings".
5722 2020-07-23  Pedro Alves  <pedro@palves.net>
5724         * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5725         touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5726         meanwhile.
5727         * frame.c (frame_cache_generation, get_frame_cache_generation):
5728         New.
5729         (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5730         (get_prev_frame_if_no_cycle): On exception, don't touch
5731         PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5732         * frame.h (get_frame_cache_generation): Declare.
5734 2020-07-23  Tom de Vries  <tdevries@suse.de>
5736         PR tui/26282
5737         * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5738         New default constructor.
5740 2020-07-23  Andrew Burgess  <andrew.burgess@embecosm.com>
5742         * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5743         exclude non-statement entries.
5745 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5747         * NEWS (New commands): Mention new command
5748         "maintenance print core-file-backed-mappings".
5750 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5752         * corelow.c (gdbcmd.h): Include.
5753         (core_target::info_proc_mappings): New method.
5754         (get_current_core_target): New function.
5755         (maintenance_print_core_file_backed_mappings): New function.
5756         (_initialize_corelow): Add core-file-backed-mappings to
5757         "maint print" commands.
5759 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5761         * linux-tdep.c (dump_note_entry_p): New function.
5762         (linux_dump_mapping_p_ftype): New typedef.
5763         (linux_find_memory_regions_full): Add new parameter,
5764         should_dump_mapping_p.
5765         (linux_find_memory_regions): Adjust call to
5766         linux_find_memory_regions_full.
5767         (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5768         call to linux_find_memory_regions_full.
5770 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5772         * corelow.c (solist.h, unordered_map): Include.
5773         (class core_target): Add field m_core_file_mappings and
5774         method build_file_mappings.
5775         (core_target::core_target): Call build_file_mappings.
5776         (core_target::~core_target): Free memory associated with
5777         m_core_file_mappings.
5778         (core_target::build_file_mappings): New method.
5779         (core_target::xfer_partial): Use m_core_file_mappings
5780         for memory transfers.
5781         * linux-tdep.c (linux_read_core_file_mappings): New
5782         function.
5783         (linux_core_info_proc_mappings): Rewrite to use
5784         linux_read_core_file_mappings.
5785         (linux_init_abi): Register linux_read_core_file_mappings.
5787 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5789         * arch-utils.c (default_read_core_file_mappings): New function.
5790         * arch-utils.c (default_read_core_file_mappings): Declare.
5791         * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5792         * gdbarch.h, gdbarch.c: Regenerate.
5794 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5796         PR corefiles/25631
5797         * corelow.c (core_target:xfer_partial):  Revise
5798         TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5799         case after first checking the stratum beneath the core
5800         target.
5801         (has_all_memory): Return true.
5802         * target.c (raw_memory_xfer_partial): Revise comment
5803         regarding use of has_all_memory.
5805 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
5807         * exec.h (section_table_xfer_memory): Revise declaration,
5808         replacing section name parameter with an optional callback
5809         predicate.
5810         * exec.c (section_table_xfer_memory): Likewise.
5811         * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5812         of section_table_xfer_memory.
5814 2020-07-22  Tom Tromey  <tromey@adacore.com>
5816         * mi/mi-cmd-stack.c (list_args_or_locals): Use
5817         lookup_symbol_search_name.
5819 2020-07-22  Andrew Burgess  <andrew.burgess@embecosm.com>
5821         * python/py-registers.c (gdbpy_register_object_data_init): Remove
5822         redundant local variable.
5823         (gdbpy_get_register_descriptor): Extract descriptor vector as a
5824         reference, not pointer, update code accordingly.
5826 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5827             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5829         * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5830         * jit.c (jit_breakpoint_re_set_internal): Use the
5831         `skip_jit_symbol_lookup` field.
5833 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5834             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5836         * jit.c (jit_read_descriptor): Define the descriptor address once,
5837         use twice.
5838         (jit_breakpoint_deleted): Move the declaration of the loop variable
5839         `iter` into the loop header.
5840         (jit_breakpoint_re_set_internal): Move the declaration of the local
5841         variable `objf_data` to the first point of definition.
5842         (jit_event_handler): Move the declaration of local variables
5843         `code_entry`, `entry_addr`, and `objf` to their first point of use.
5844         Rename `objf` to `jited`.
5846 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5848         * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5849         Remove.
5850         * jit.c (get_jiter_objfile_data): Update.
5852 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5853             Simon Marchi  <simon.marchi@polymtl.ca>
5855         * jit.c (struct jit_program_space_data): Remove.
5856         (jit_program_space_key): Remove.
5857         (jiter_objfile_data::~jiter_objfile_data): Remove program space
5858         stuff.
5859         (get_jit_program_space_data): Remove.
5860         (jit_breakpoint_deleted): Iterate on all of the program space's
5861         objfiles.
5862         (jit_inferior_init): Likewise.
5863         (jit_breakpoint_re_set_internal): Likewise.  Also change return
5864         type to void.
5865         (jit_breakpoint_re_set): Pass current_program_space to
5866         jit_breakpoint_re_set_internal.
5868 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5870         * jit.h (struct jiter_objfile_data) <cached_code_address,
5871         jit_breakpoint>: Move to here from ...
5872         * jit.c (jit_program_space_data): ... here.
5873         (jiter_objfile_data::~jiter_objfile_data): Update.
5874         (jit_breakpoint_deleted): Update.
5875         (jit_breakpoint_re_set_internal): Update.
5877 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5879         * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5880         checks.
5881         (jit_read_descriptor): Remove NULL check.
5882         (jit_event_handler): Add an assertion.
5884 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5886         * jit.h (struct jit_objfile_data):  Split into...
5887         (struct jiter_objfile_data): ... this ...
5888         (struct jited_objfile_data): ... and this.
5889         * objfiles.h (struct objfile) <jit_data>: Remove.
5890         <jiter_data, jited_data>: New fields.
5891         * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5892         (jiter_objfile_data::~jiter_objfile_data): ... this.
5893         (get_jit_objfile_data): Rename to ...
5894         (get_jiter_objfile_data): ... this.
5895         (add_objfile_entry): Update.
5896         (jit_read_descriptor): Use get_jiter_objfile_data.
5897         (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5898         (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5899         (jit_inferior_exit_hook): Use objfile's jited_data field.
5901 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5903         * jit.h: Forward-declare `struct minimal_symbol`.
5904         (struct jit_objfile_data): Migrate to here from jit.c; also add a
5905         constructor, destructor, and an objfile* field.
5906         * jit.c (jit_objfile_data): Remove.
5907         (struct jit_objfile_data): Migrate from here to jit.h.
5908         (jit_objfile_data::~jit_objfile_data): New destructor
5909         implementation with code moved from free_objfile_data.
5910         (free_objfile_data): Delete.
5911         (get_jit_objfile_data): Update to use the jit_data field of objfile.
5912         (jit_find_objf_with_entry_addr): Ditto.
5913         (jit_inferior_exit_hook): Ditto.
5914         (_initialize_jit): Remove the call to
5915         register_objfile_data_with_cleanup.
5916         * objfiles.h (struct objfile) <jit_data>: New field.
5918 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5920         * jit.h: Forward-declare `struct objfile`.
5921         (jit_event_handler): Add a second parameter, the JITer objfile.
5922         * jit.c (jit_read_descriptor): Change the signature to take the
5923         JITer objfile as an argument instead of the jit_program_space_data.
5924         (jit_inferior_init): Update the call to jit_read_descriptor.
5925         (jit_event_handler): Use the new JITer objfile argument when calling
5926         jit_read_descriptor.
5927         * breakpoint.c (handle_jit_event): Update the call to
5928         jit_event_handler to pass the JITer objfile.
5930 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5932         * gdbarch.c: Regenerate.
5933         * gdbarch.h: Regenerate.
5934         * gdbarch.sh (handle_segmentation_fault): Remove method.
5935         * infrun.c (handle_segmentation_fault): Remove.
5936         (print_signal_received_reason): Remove call to
5937         handle_segmentation_fault.
5939 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5941         * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5942         Rename to sparc64_linux_report_signal_info and add siggnal
5943         argument.
5944         (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5945         instead of sparc64_linux_handle_segmentation_fault.
5947 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5949         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5950         i386_linux_report_signal_info instead of
5951         i386_linux_handle_segmentation_fault.
5952         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5953         to i386_linux_report_signal_info and add siggnal argument.
5954         (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5955         of i386_linux_handle_segmentation_fault.
5956         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5957         to i386_linux_report_signal_info and add siggnal argument.
5959 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5961         * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5962         hook if present.
5964 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
5966         * gdbarch.c: Regenerate.
5967         * gdbarch.h: Regenerate.
5968         * gdbarch.sh (report_signal_info): New method.
5969         * infrun.c (print_signal_received_reason): Invoke gdbarch
5970         report_signal_info hook if present.
5972 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5974         * python/py-registers.c : Add 'unordered_map' include.
5975         (gdbpy_new_reggroup): Renamed to...
5976         (gdbpy_get_reggroup): ...this.  Update to only create register
5977         group descriptors when needed.
5978         (gdbpy_reggroup_iter_next): Update.
5980 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5982         * python/py-registers.c (gdbpy_register_object_data): New static
5983         global.
5984         (gdbpy_register_object_data_init): New function.
5985         (gdbpy_new_register_descriptor): Renamed to...
5986         (gdbpy_get_register_descriptor): ...this, and update to reuse
5987         existing register descriptors where possible.
5988         (gdbpy_register_descriptor_iter_next): Update.
5989         (gdbpy_initialize_registers): Register new gdbarch data.
5991 2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
5993         * linux-nat.c (stopped_pids): Make static.
5995 2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
5997         PR ada/26235
5998         * gdbtypes.c (ada_discrete_type_low_bound,
5999         ada_discrete_type_high_bound): Handle undefined bounds.
6001 2020-07-21  Kamil Rytarowski  <n54@gmx.com>
6003         * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6004         declaration.
6005         * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6006         function.
6008 2020-07-20  John Baldwin  <jhb@FreeBSD.org>
6010         * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6011         (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6012         * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6013         * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6014         (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6015         method.
6017 2020-07-20 Ludovic Courtès  <ludo@gnu.org>
6019         * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6020         and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6021         which are deprecated in Guile 3.0.
6022         * configure.ac (try_guile_versions): Add "guile-3.0".
6023         * configure (try_guile_versions): Regenerate.
6024         * NEWS: Update entry.
6026 2020-07-20  Ludovic Courtès  <ludo@gnu.org>
6027             Doug Evans  <dje@google.com>
6029         PR gdb/21104
6030         * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6031         (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6032         USING_GUILE_BEFORE_2_2.
6033         (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6034         Change type to 'scm_t_port_type *'.
6035         (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6036         (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6037         parameter and honor it.  Update callers.
6038         (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6039         (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6040         functions.
6041         (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6042         USING_GUILE_BEFORE_2_2.
6043         (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6044         'ioscm_read_from_port'.  Call 'scm_set_port_read_wait_fd'.
6045         (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6046         (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6047         and 'SCM_PORT_TYPE'.
6048         (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6049         (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6050         (gdbscm_memory_port_read, gdbscm_memory_port_write)
6051         (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6052         [!USING_GUILE_BEFORE_2_2]: New functions.
6053         (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6054         (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6055         'gdbscm_memory_port_read'.
6056         Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6057         'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6058         (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6059         function.
6060         (ioscm_init_memory_port): Remove.
6061         (ioscm_init_memory_port_stream): New function
6062         (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6063         function.
6064         (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6065         Return scm_from_uint (0).
6066         (gdbscm_set_memory_port_read_buffer_size_x)
6067         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6068         (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6069         Return scm_from_uint (0).
6070         (gdbscm_set_memory_port_write_buffer_size_x)
6071         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6072         * configure.ac (try_guile_versions): Add "guile-2.2".
6073         * configure: Regenerate.
6074         * NEWS: Add entry.
6076 2020-07-18  Tom Tromey  <tom@tromey.com>
6078         * linux-nat.c (linux_multi_process): Remove.
6079         (linux_nat_target::supports_multi_process): Return true.
6081 2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
6083         * arch/riscv.c (riscv_tdesc_cache): Change map type.
6084         (riscv_lookup_target_description): Return pointer out of
6085         unique_ptr.
6086         * target-descriptions.c (allocate_target_description): Add
6087         comment.
6088         (target_desc_deleter::operator()): Likewise.
6089         * target-descriptions.h (struct target_desc_deleter): Moved to
6090         gdbsupport/tdesc.h.
6091         (target_desc_up): Likewise.
6093 2020-07-17  Tom Tromey  <tromey@adacore.com>
6095         * linux-nat.c (linux_nat_target::supports_non_stop)
6096         (linux_nat_target::always_non_stop_p): Use "true".
6097         (linux_nat_target::supports_disable_randomization): Use "true" and
6098         "false".
6100 2020-07-16  Caroline Tice  <cmtice@google.com>
6102         * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6103         (RNGLIST_HEADER_SIZE64): New constant definition.
6104         (struct dwop_section_names): Add rnglists_dwo.
6105         (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6106         (struct loclist_header): Rename to 'loclists_rnglists_header'.
6107         (struct dwo_sections): Add rnglists field.
6108         (read_attribut_reprocess): Add tag parameter.
6109         (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6110         (cu_debug_rnglists_section): New function (decl & definition).
6111         (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6112         (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6113         die whose range is being checked; get rnglist section from
6114         cu_debug_rnglists_section, to get from either objfile or dwo file as
6115         appropriate.  Add cases for DW_RLE_base_addressx,
6116         DW_RLE_startx_length, DW_RLE_startx_endx.  Also, update to only add
6117         the base address to DW_RLE_offset_pairs (not to all ranges), moving
6118         test inside if-condition and updating complaint message.
6119         (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6120         dwarf2_rnglists_process.
6121         (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6122         dwarf2_ranges_process.
6123         (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6124         need_ranges_base and update comment appropriately.  Also pass die tag
6125         to dwarf2_ranges_read.
6126         (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6127         need_ranges_base and update comment appropriately.  Also pass die tag
6128         to dwarf2_ranges_process.
6129         (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6130         cu->ranges_base.  Also pass die tag to read_attribute_reprocess.
6131         (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6132         need_ranges_base and update comment appropriately.  Also pass die tag
6133         to read_attribute_reprocess and dwarf2_ranges_read.
6134         (read_loclist_header): Rename function to read_loclists_rnglists_header,
6135         and update function comment appropriately.
6136         (read_loclist_index): Call read_loclists_rnglists_header instead of
6137         read_loclist_header.
6138         (read_rnglist_index): New function.
6139         (read_attribute_reprocess):  Add tag parameter. Add code for
6140         DW_FORM_rnglistx, passing tag to read_rnglist_index.
6141         (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6143 2020-07-15  Andrew Burgess  <andrew.burgess@embecosm.com>
6145         * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6146         being resolved.
6148 2020-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
6150         * arch-utils.c (show_architecture): Update formatting of messages.
6152 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6154         * gdbtypes.h (struct type) <bounds>: Handle array and string
6155         types.
6156         * ada-lang.c (assign_aggregate): Use type::bounds on
6157         array/string type.
6158         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6159         * c-varobj.c (c_number_of_children): Likewise.
6160         (c_describe_child): Likewise.
6161         * eval.c (evaluate_subexp_for_sizeof): Likewise.
6162         * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6163         (f_type_print_base): Likewise.
6164         * f-valprint.c (f77_array_offset_tbl): Likewise.
6165         (f77_get_upperbound): Likewise.
6166         (f77_print_array_1): Likewise.
6167         * guile/scm-type.c (gdbscm_type_range): Likewise.
6168         * m2-typeprint.c (m2_array): Likewise.
6169         (m2_is_long_set_of_type): Likewise.
6170         * m2-valprint.c (get_long_set_bounds): Likewise.
6171         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6172         * python/py-type.c (typy_range): Likewise.
6173         * rust-lang.c (rust_internal_print_type): Likewise.
6174         * type-stack.c (type_stack::follow_types): Likewise.
6175         * valarith.c (value_subscripted_rvalue): Likewise.
6176         * valops.c (value_cast): Likewise.
6178 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6180         * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove.  Update all
6181         callers to use the equivalent accessor methods.
6183 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6185         * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6186         (struct type) <bit_stride>: New method.
6187         (TYPE_BIT_STRIDE): Remove.
6188         * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6190 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6192         * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6193         TYPE_ARRAY_UPPER_BOUND_VALUE): Remove.  Update all
6194         callers to use the equivalent accessor methods instead.
6196 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6198         * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6199         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove.  Update all
6200         callers to use the equivalent accessor methods instead.
6202 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6204         * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6205         TYPE_HIGH_BOUND_KIND): Remove.  Update all callers
6206         to use dynamic_prop::kind.
6208 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6210         * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6211         TYPE_HIGH_BOUND_UNDEFINED): Remove.  Update all callers
6212         to get the bound property's kind and check against
6213         PROP_UNDEFINED.
6215 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6217         * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove.  Update
6218         all callers to use type::range_bounds followed by
6219         dynamic_prop::{low,high}.
6221 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6223         * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6224         const_val, set_const_val, baton, set_locexpr, set_loclist,
6225         set_addr_offset, variant_parts, set_variant_parts,
6226         original_type, set_original_type>: New methods.
6227         <kind>: Rename to...
6228         <m_kind>: ... this.  Update all users to use the new methods
6229         instead.
6230         <data>: Rename to...
6231         <m_data>: ... this.  Update all users to use the new methods
6232         instead.
6234 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6236         * gdbtypes.c (get_discrete_bounds): Return failure if
6237         the range type's bounds are not both defined and constant
6238         values.
6239         (get_array_bounds): Update comment.  Remove undefined bound check.
6241 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
6243         * gdbtypes.h (TYPE_RANGE_DATA): Remove.  Update callers to use
6244         the type::bounds method directly.
6246 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
6248         * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6249         (TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
6250         are used to set the range type's bounds to use set_bounds.
6252 2020-07-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6254         * exec.c (_initialize_exec): Update exec-file-mismatch help.
6256 2020-07-10  Pedro Alves  <pedro@palves.net>
6258         * gdbthread.h (inferior_ref): Define.
6259         (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6260         (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6261         * thread.c
6262         (scoped_restore_current_thread::restore):
6263         Adjust to gdb::ref_ptr.
6264         (scoped_restore_current_thread::~scoped_restore_current_thread):
6265         Remove manual decref handling.
6266         (scoped_restore_current_thread::scoped_restore_current_thread):
6267         Adjust to use
6268         inferior_ref::new_reference/thread_info_ref::new_reference.
6269         Incref the thread before calling get_frame_id instead of after.
6270         Let TARGET_CLOSE_ERROR propagate.
6272 2020-07-10  Pedro Alves  <pedro@palves.net>
6274         * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6275         NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6276         NOT_AVAILABLE_ERROR.
6277         * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6278         OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6280 2020-07-10  Simon Marchi  <simon.marchi@polymtl.ca>
6281             Pedro Alves  <pedro@palves.net>
6283         PR gdb/26199
6284         * infrun.c (threads_are_resumed_pending_p): Delete.
6285         (do_target_wait): Remove threads_are_executing and
6286         threads_are_resumed_pending_p checks from the inferior_matches
6287         lambda.  Update comments.
6289 2020-07-10  Pedro Alves  <pedro@palves.net>
6291         PR gdb/26199
6292         * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6293         executing threads.
6295 2020-07-10  Pedro Alves  <pedro@palves.net>
6297         PR gdb/26199
6298         * infrun.c (handle_no_resumed): Handle multiple targets.
6300 2020-07-10  Pedro Alves  <pedro@palves.net>
6302         PR gdb/26199
6303         * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6304         target_is_async_p.
6306 2020-07-10  Pedro Alves  <pedro@palves.net>
6308         PR gdb/26199
6309         * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6310         threads, not all threads.
6312 2020-07-10  Pedro Alves  <pedro@palves.net>
6314         PR gdb/26199
6315         * remote.c (remote_target::open_1): Pass remote target pointer as
6316         data to create_async_event_handler.
6317         (remote_async_inferior_event_handler): Mark async event handler
6318         before returning if the remote target still has either pending
6319         events or unacknowledged notifications.
6321 2020-07-10  John Baldwin  <jhb@FreeBSD.org>
6323         * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6324         declaration.
6325         * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6326         function.
6328 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6330         * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6331         inferior_ptid.
6333 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
6335         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6336         AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6337         AT_FREEBSD_PS_STRINGS.
6339 2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
6341         * auto-load.c (auto_load_objfile_script_1): Convert drive part
6342         of debugfile path on Windows.
6344 2020-07-08  John Baldwin  <jhb@FreeBSD.org>
6346         * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6347         argument to 'data'.
6349 2020-07-08  Tom Tromey  <tromey@adacore.com>
6351         * ada-lang.c (ada_exception_message_1): Use read_memory.
6353 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6355         PR python/22748
6356         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6357         special handling for inline frames.
6358         * findvar.c (value_of_register_lazy): Skip inline frames when
6359         creating lazy register values.
6360         * frame.c (frame_id_computed_p): Delete definition.
6361         * frame.h (frame_id_computed_p): Delete declaration.
6363 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6365         * NEWS: Mention additions to Python API.
6366         * python/py-arch.c (archpy_register_groups): New function.
6367         (arch_object_methods): Add 'register_groups' method.
6368         * python/py-registers.c (reggroup_iterator_object): New struct.
6369         (reggroup_object): New struct.
6370         (gdbpy_new_reggroup): New function.
6371         (gdbpy_reggroup_to_string): New function.
6372         (gdbpy_reggroup_name): New function.
6373         (gdbpy_reggroup_iter): New function.
6374         (gdbpy_reggroup_iter_next): New function.
6375         (gdbpy_new_reggroup_iterator): New function
6376         (gdbpy_initialize_registers): Register new types.
6377         (reggroup_iterator_object_type): Define new Python type.
6378         (gdbpy_reggroup_getset): New static global.
6379         (reggroup_object_type): Define new Python type.
6380         * python/python-internal.h
6382 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6384         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6385         * python/py-arch.c (archpy_registers): New function.
6386         (arch_object_methods): Add 'registers' method.
6387         * python/py-registers.c: New file.
6388         * python/python-internal.h
6389         (gdbpy_new_register_descriptor_iterator): Declare.
6390         (gdbpy_initialize_registers): Declare.
6391         * python/python.c (do_start_initialization): Call
6392         gdbpy_initialize_registers.
6393         * NEWS: Mention additions to the Python API.
6395 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6397         * NEWS: Mention new Python API method.
6398         * python/py-unwind.c (pending_framepy_architecture): New function.
6399         (pending_frame_object_methods): Add architecture method.
6401 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6403         * gdbarch.c: Regenerate.
6404         * gdbarch.h: Regenerate.
6405         * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6406         (gdbarch_data): Use internal_error for the case where
6407         deprecated_set_gdbarch_data was originally needed.
6408         * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6409         and use passed in obstack.
6410         (libunwind_frame_set_descr): Should no longer get back NULL from
6411         gdbarch_data.
6412         (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6413         type.
6414         * user-regs.c (user_regs_init): Update parameters, and use passed
6415         in obstack.
6416         (user_reg_add): Should no longer get back NULL from gdbarch_data.
6417         (_initialize_user_regs): Register as a pre-init gdbarch data type.
6419 2020-07-06  Tom de Vries  <tdevries@suse.de>
6421         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6422         End-Of-Sequence in lte_is_less_than.
6423         * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6424         "gdb: Don't reorder line table entries too much when sorting".
6426 2020-07-06  Tom de Vries  <tdevries@suse.de>
6428         PR tui/26205
6429         * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6431 2020-07-05  Tom de Vries  <tdevries@suse.de>
6433         PR build/26187
6434         * inferior.h (struct infcall_suspend_state_deleter): If available, use
6435         std::uncaught_exceptions instead of deprecated
6436         std::uncaught_exception.
6438 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6440         * macroexp.h (macro_stringify): Return
6441         gdb::unique_xmalloc_ptr<char>.
6442         * macroexp.c (macro_stringify): Likewise.
6443         * macrotab.c (fixup_definition): Update.
6445 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6447         * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6448         (lex_one_token): Update.
6449         * macroexp.c (struct macro_buffer) <release>: Return
6450         gdb::unique_xmalloc_ptr<char>.
6451         (macro_stringify): Update.
6452         (macro_expand): Update.
6453         (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6454         * macroexp.h (macro_expand_next): Likewise.
6456 2020-07-02  Simon Marchi  <simon.marchi@efficios.com>
6458         * macroexp.h (macro_lookup_ftype): Remove.
6459         (macro_expand, macro_expand_once, macro_expand_next): Remove
6460         lookup function parameters, add scope parameter.
6461         * macroexp.c (scan, substitute_args, expand, maybe_expand,
6462         macro_expand, macro_expand_once, macro_expand_next): Likewise.
6463         * macroscope.h (standard_macro_lookup): Change parameter type
6464         to macro_scope.
6465         * macroscope.c (standard_macro_lookup): Likewise.
6466         * c-exp.y (lex_one_token): Update.
6467         * macrocmd.c (macro_expand_command): Likewise.
6468         (macro_expand_once_command): Likewise.
6470 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
6472         * inf-loop.c (inferior_event_handler): Remove client_data param.
6473         * inf-loop.h (inferior_event_handler): Likewise.
6474         * infcmd.c (step_1): Adjust.
6475         * infrun.c (proceed): Adjust.
6476         (fetch_inferior_event): Remove client_data param.
6477         (infrun_async_inferior_event_handler): Adjust.
6478         * infrun.h (fetch_inferior_event): Remove `void *` param.
6479         * linux-nat.c (handle_target_event): Adjust.
6480         * record-btrace.c (record_btrace_handle_async_inferior_event):
6481         Adjust.
6482         * record-full.c (record_full_async_inferior_event_handler):
6483         Adjust.
6484         * remote.c (remote_async_inferior_event_handler): Adjust.
6486 2020-07-01  Tom Tromey  <tom@tromey.com>
6488         * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6489         * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6491 2020-07-01  Tom Tromey  <tom@tromey.com>
6493         * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6494         tui_gen_win_info.
6495         (tui_win_info::make_window): Merge with
6496         tui_gen_win_info::make_window.
6497         (tui_win_info::make_visible): Move from tui_gen_win_info.
6498         * tui/tui-win.c (tui_win_info::max_width): Move from
6499         tui_gen_win_info.
6500         * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6501         type.
6502         <window_factory>: Likewise.
6503         * tui/tui-layout.c (tui_win_info::resize): Move from
6504         tui_gen_win_info.
6505         (make_standard_window): Change return type.
6506         (get_locator_window, tui_get_window_by_name): Likewise.
6507         (tui_layout_window::apply): Remove a cast.
6508         * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6509         (struct tui_win_info): Merge with tui_gen_win_info.
6510         (struct tui_gen_win_info): Remove.
6512 2020-07-01  Tom Tromey  <tom@tromey.com>
6514         * tui/tui-stack.h (struct tui_locator_window): Derive from
6515         tui_win_info.
6516         <do_scroll_horizontal, do_scroll_vertical>: New methods.
6517         <can_box>: New method.
6519 2020-07-01  Tom Tromey  <tom@tromey.com>
6521         * tui/tui-stack.h (struct tui_locator_window): Remove body.
6523 2020-07-01  Tom Tromey  <tom@tromey.com>
6525         * tui/tui-regs.c (tui_data_window::display_registers_from)
6526         (tui_data_window::display_registers_from)
6527         (tui_data_window::first_data_item_displayed)
6528         (tui_data_window::delete_data_content_windows): Update.
6529         (tui_data_window::refresh_window, tui_data_window::no_refresh):
6530         Remove.
6531         (tui_data_window::check_register_values): Update.
6532         (tui_data_item_window::rerender): Add parameters.  Update.
6533         (tui_data_item_window::refresh_window): Remove.
6534         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6535         virtual.
6536         * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6537         tui_gen_win_info.
6538         <refresh_window, max_height, min_height>: Remove.
6539         <rerender>: Add parameters.
6540         <x, y, visible>: New members.
6541         (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6542         <m_item_width>: New member.
6544 2020-07-01  Tom Tromey  <tom@tromey.com>
6546         * tui/tui-regs.c (tui_data_window::show_register_group)
6547         (tui_data_window::check_register_values): Update.
6548         * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6549         from item_no.
6551 2020-07-01  Tom Tromey  <tom@tromey.com>
6553         * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6554         useless "if".
6556 2020-07-01  Tom Tromey  <tom@tromey.com>
6558         * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6559         * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6561 2020-07-01  Tom Tromey  <tom@tromey.com>
6563         * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6564         * tui/tui-winsource.h (enum tui_line_or_address_kind)
6565         (struct tui_line_or_address): Move from tui-data.h.
6566         * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6567         * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6568         (tui_cmd_window, tui_source_window_base, tui_source_window)
6569         (tui_disasm_window): Don't declare.
6570         (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6571         to tui-winsource.h.
6572         (SINGLE_KEY): Move to tui-stack.c.
6574 2020-07-01  Tom Tromey  <tom@tromey.com>
6576         * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6577         std::string.
6578         * tui/tui-regs.c (class tab_expansion_file): New.
6579         (tab_expansion_file::write): New method.
6580         (tui_register_format): Change return type.  Use
6581         tab_expansion_file.
6582         (tui_get_register, tui_data_window::display_registers_from)
6583         (tui_data_item_window::rerender): Update.
6584         * tui/tui-io.h (tui_expand_tabs): Don't declare.
6585         * tui/tui-io.c (tui_expand_tabs): Remove.
6587 2020-07-01  Tom Tromey  <tom@tromey.com>
6589         * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6591 2020-07-01  Fangrui Song  <maskray@google.com>
6593         * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6595 2020-07-01  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
6597         * dwarf2/read.c (set_die_type): Removed conditions to restrict
6598         forms for DW_AT_associated and DW_AT_allocated attributes,
6599         which is already checked in function attr_to_dynamic_prop.
6601 2020-06-30  Tom Tromey  <tromey@adacore.com>
6603         * dwarf2/read.c (quirk_rust_enum): Correctly call
6604         alloc_rust_variant for default-less enum.
6606 2020-06-30  Tom Tromey  <tromey@adacore.com>
6608         PR build/26183:
6609         * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6610         gdb::to_string.
6612 2020-06-29  Simon Marchi  <simon.marchi@efficios.com>
6614         * gdbarch.sh (displaced_step_copy_insn): Update doc.
6615         * gdbarch.h: Re-generate.
6617 2020-06-28  Tom Tromey  <tom@tromey.com>
6619         * command.h (cmd_types): Remove.
6620         (cmd_type): Don't declare.
6621         * cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
6622         typedef.
6623         * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6624         * cli/cli-decode.c (cmd_type): Remove.
6626 2020-06-27  Pedro Alves  <palves@redhat.com>
6628         * fork-child.c (prefork_hook): Adjust.
6629         * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6630         Delete.
6631         (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6632         * inferior.c (inferior::set_tty, inferior::tty): New methods.
6633         * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6634         Remove declarations.
6635         (struct inferior) <set_tty, tty>: New methods.
6636         (struct inferior) <terminal>: Rename to ...
6637         (struct inferior) <m_terminal>: ... this and make private.
6638         * main.c (captured_main_1): Adjust.
6639         * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6640         (mi_cmd_inferior_tty_show): Adjust.
6641         * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6642         * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6644 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
6646         * configure.ac: Add --enable-libctf: handle --disable-static
6647         properly.
6648         * acinclude.m4: sinclude ../config/enable.m4.
6649         * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6650         (LIBCTF): Substitute in.
6651         (CTF_DEPS): New, likewise.
6652         (CLIBS): libctf needs symbols from libbfd: move earlier.
6653         (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6654         flags.
6655         * ctfread.c: Surround in ENABLE_LIBCTF.
6656         (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6657         * configure: Regenerate.
6658         * config.in: Likewise.
6660 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
6662         * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6664 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
6666         * inferior.h (struct inferior) <terminal>: Change type to
6667         gdb::unique_xmalloc_ptr<char>.
6668         * inferior.c (inferior::~inferior): Don't free inf->terminal.
6669         * infcmd.c (set_inferior_io_terminal): Don't free terminal
6670         field, adjust to unique pointer.
6671         (get_inferior_io_terminal): Adjust to unique pointer.
6673 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6675         * riscv-tdep.c (riscv_print_registers_info): Loop over all
6676         registers, not just the known core set of registers.
6678 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6680         * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6681         fflags, frm, and fcsr registers.
6682         (riscv_register_reggroup_p): Remove unknown CSRs from save and
6683         restore groups.
6684         (riscv_tdesc_unknown_reg): New function.
6685         (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6686         tdesc_use_registers.
6687         * riscv-tdep.h (struct gdbarch_tdep): Add
6688         unknown_csrs_first_regnum, unknown_csrs_count,
6689         duplicate_fflags_regnum, duplicate_frm_regnum, and
6690         duplicate_fcsr_regnum fields.
6692 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6694         * target-descriptions.c (tdesc_use_registers): Add new parameter a
6695         callback, use the callback (when not null) to help number unknown
6696         registers.
6697         * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6698         (tdesc_use_registers): Add extra parameter to declaration.
6700 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6702         * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6703         in the file.
6704         (class riscv_pending_register_alias): Likewise.
6705         (riscv_register_feature::register_info): Change 'required_p' field
6706         to 'required', and change its type.  Add 'check' member function.
6707         (riscv_register_feature::register_info::check): Define new member
6708         function.
6709         (riscv_xreg_feature): Change initialisation of 'required' field.
6710         (riscv_freg_feature): Likewise.
6711         (riscv_virtual_feature): Likewise.
6712         (riscv_csr_feature): Likewise.
6713         (riscv_check_tdesc_feature): Take extra parameter, the csr
6714         tdesc_feature, rewrite the function to use the new
6715         riscv_register_feature::register_info::check function.
6716         (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6718 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6720         * features/Makefile: Remove all references to the deleted files
6721         below.
6722         * features/riscv/32bit-csr.c: Deleted.
6723         * features/riscv/32bit-csr.xml: Deleted.
6724         * features/riscv/64bit-csr.c: Deleted.
6725         * features/riscv/64bit-csr.xml: Deleted.
6726         * features/riscv/rebuild-csr-xml.sh: Deleted.
6728 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6730         * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6731         whitespace error for declaration of names member variable.
6732         (struct riscv_register_feature): Add new prefer_first_name member
6733         variable, and fix whitespace error in declaration of registers.
6734         (riscv_xreg_feature): Initialize prefer_first_name field.
6735         (riscv_freg_feature): Likewise.
6736         (riscv_virtual_feature): Likewise.
6737         (riscv_csr_feature): Likewise.
6738         (riscv_register_name): Expand on comments.  Remove register name
6739         modifications for CSR and virtual registers.
6741 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6743         * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6744         errors.
6746 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
6748         * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6749         riscv-opc.h.
6750         (class riscv_pending_register_alias): New class.
6751         (riscv_check_tdesc_feature): Take vector of pending aliases and
6752         populate it as appropriate.
6753         (riscv_setup_register_aliases): Delete.
6754         (riscv_gdbarch_init): Create vector of pending aliases and pass it
6755         to riscv_check_tdesc_feature in all cases.  Use the vector to
6756         create the register aliases.
6758 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6760         * sol2-tdep.c (sol2_static_transform_name): Remove.
6761         (sol2_init_abi): Don't register it.
6762         * gdbarch.sh (static_transform_name): Remove.
6763         * gdbarch.c, gdbarch.h: Regenerate.
6765         * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6766         gdbarch_static_transform_name.
6767         * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6768         * stabsread.c (define_symbol) <'X'>: Remove.
6769         (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6770         handling.
6771         <'V'>: Likewise.
6772         * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6773         <'S'>: Remove call to gdbarch_static_transform_name.
6775 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6777         * procfs.c (procfs_pre_trace): New function.
6778         (procfs_target::create_inferior): Pass it to fork_inferior.
6780 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6782         * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6783         sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6784         <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6785         sol2-tdep.o, sparc-sol2-tdep.o.
6786         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6787         * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6788         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6789         * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6791 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6793         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6794         (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6795         Call sol2_init_abi.
6796         Remove calls to set_gdbarch_skip_solib_resolver,
6797         set_gdbarch_core_pid_to_str.
6798         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6799         (i386_sol2_static_transform_name): Remove.
6800         (i386_sol2_init_abi): Call sol2_init_abi.
6801         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6802         set_gdbarch_static_transform_name,
6803         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6804         Use sol2_sigtramp_p.
6805         * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6806         (sol2_sigtramp_p): New function.
6807         (sol2_static_transform_name): New function.
6808         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6809         (sol2_init_abi): New function.
6810         * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6811         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6812         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6813         (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6814         (sparc_sol2_static_transform_name): Remove.
6815         (sparc32_sol2_init_abi): Call sol2_init_abi.
6816         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6817         set_gdbarch_static_transform_name,
6818         set_gdbarch_skip_solib_resolver,
6819         set_gdbarch_core_pid_to_str.
6820         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6821         (sparc_sol2_static_transform_name): Remove
6822         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6823         call sol2_sigtramp_p.
6824         (sparc64_sol2_init_abi): Call sol2_init_abi.
6825         Remove calls to set_gdbarch_sofun_address_maybe_missing,
6826         set_gdbarch_static_transform_name,
6827         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6829 2020-06-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6831         * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6832         * exec.c (validate_exec_file): If from_tty, set both
6833         SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6834         * symfile.c (symbol_file_add_with_addrs): if always_confirm
6835         and from_tty, unconditionally ask a confirmation.
6837 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6839         * target-descriptions.c (tdesc_architecture_name): Protect against
6840         NULL pointer dereference.
6841         (maint_print_xml_tdesc_cmd): New function.
6842         (_initialize_target_descriptions): Register new 'maint print
6843         xml-tdesc' command and give it the filename completer.
6844         * NEWS: Mention new 'maint print xml-tdesc' command.
6846 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6848         * target-descriptions.c (class tdesc_compatible_info): New class.
6849         (struct target_desc): Change type of compatible vector.
6850         (tdesc_compatible_p): Update for change in type of
6851         target_desc::compatible.
6852         (tdesc_compatible_info_list): New function.
6853         (tdesc_compatible_info_arch_name): New function.
6854         (tdesc_add_compatible): Update for change in type of
6855         target_desc::compatible.
6856         (print_c_tdesc::visit_pre): Likewise.
6858 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6860         * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6861         whitespace to underscore.
6862         (maint_print_c_tdesc_cmd): Use fake filename for target
6863         descriptions that came from the target.
6864         (_initialize_target_descriptions): Add filename command completion
6865         for 'maint print c-tdesc'.
6867 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
6869         * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6870         lines.
6872 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
6874         * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6875         lines.
6876         (dwarf2_find_location_expression): Likewise.
6877         (call_site_parameter_matches): Likewise.
6878         (dwarf2_compile_expr_to_ax): Likewise.
6879         (disassemble_dwarf_expression): Likewise.
6880         (loclist_describe_location): Likewise.
6882 2020-06-23  Pedro Alves  <palves@redhat.com>
6884         * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6885         progspace-and-thread.h.  Include scoped-mock-context.h instead.
6886         (register_to_value_test): Use scoped_mock_context.
6887         * regcache.c: Include "scoped-mock-context.h".
6888         (cooked_read_test): Don't error out if a target is already pushed.
6889         Use scoped_mock_context.  Adjust.
6890         * scoped-mock-context.h: New file.
6892 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6894         * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6895         initializer.
6896         (ada_language::is_string_type_p): New member function.
6897         * c-lang.c (c_language_data): Delete la_is_string_type_p
6898         initializer.
6899         (cplus_language_data): Likewise.
6900         (asm_language_data): Likewise.
6901         (minimal_language_data): Likewise.
6902         * d-lang.c (d_language_data): Likewise.
6903         * f-lang.c (f_is_string_type_p): Delete function, implementation
6904         moved to f_language::is_string_type_p.
6905         (f_language_data): Delete la_is_string_type_p initializer.
6906         (f_language::is_string_type_p): New member function,
6907         implementation from f_is_string_type_p.
6908         * go-lang.c (go_is_string_type_p): Delete function, implementation
6909         moved to go_language::is_string_type_p.
6910         (go_language_data): Delete la_is_string_type_p initializer.
6911         (go_language::is_string_type_p): New member function,
6912         implementation from go_is_string_type_p.
6913         * language.c (language_defn::is_string_type_p): Define new member
6914         function.
6915         (default_is_string_type_p): Make static, add comment copied from
6916         header file.
6917         (unknown_language_data): Delete la_is_string_type_p initializer.
6918         (unknown_language::is_string_type_p): New member function.
6919         (auto_language_data): Delete la_is_string_type_p initializer.
6920         (auto_language::is_string_type_p): New member function.
6921         * language.h (language_data): Delete la_is_string_type_p field.
6922         (language_defn::is_string_type_p): Declare new function.
6923         (default_is_string_type_p): Delete desclaration, move comment to
6924         definition.
6925         * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6926         moved to m2_language::is_string_type_p.
6927         (m2_language_data): Delete la_is_string_type_p initializer.
6928         (m2_language::is_string_type_p): New member function,
6929         implementation from m2_is_string_type_p.
6930         * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6931         initializer.
6932         * opencl-lang.c (opencl_language_data): Likewise.
6933         * p-lang.c (pascal_is_string_type_p): Delete function,
6934         implementation moved to pascal_language::is_string_type_p.
6935         (pascal_language_data): Delete la_is_string_type_p initializer.
6936         (pascal_language::is_string_type_p): New member function,
6937         implementation from pascal_is_string_type_p.
6938         * rust-lang.c (rust_is_string_type_p): Delete function,
6939         implementation moved to rust_language::is_string_type_p.
6940         (rust_language_data): Delete la_is_string_type_p initializer.
6941         (rust_language::is_string_type_p): New member function,
6942         implementation from rust_is_string_type_p.
6943         * valprint.c (val_print_scalar_or_string_type_p): Update call to
6944         is_string_type_p.
6946 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6948         * ada-lang.c (ada_language_data): Delete la_print_typedef
6949         initializer.
6950         (ada_language::print_typedef): New member function.
6951         * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6952         (cplus_language_data): Likewise.
6953         (asm_language_data): Likewise.
6954         (minimal_language_data): Likewise.
6955         * d-lang.c (d_language_data): Likewise.
6956         * f-lang.c (f_language_data): Likewise.
6957         (f_language::print_typedef): New member function.
6958         * go-lang.c (go_language_data): Delete la_print_typedef
6959         initializer.
6960         * language.c (language_defn::print_typedef): Define member
6961         function.
6962         (unknown_language_data): Delete la_print_typedef initializer.
6963         (unknown_language::print_typedef): New member function.
6964         (auto_language_data): Delete la_print_typedef initializer.
6965         (auto_language::print_typedef): New member function.
6966         * language.h (language_data): Delete la_print_typedef field.
6967         (language_defn::print_typedef): Declare new member function.
6968         (LA_PRINT_TYPEDEF): Update call to print_typedef.
6969         (default_print_typedef): Delete declaration.
6970         * m2-lang.c (m2_language_data): Delete la_print_typedef
6971         initializer.
6972         (m2_language::print_typedef): New member function.
6973         * objc-lang.c (objc_language_data): Delete la_print_typedef
6974         initializer.
6975         * opencl-lang.c (opencl_language_data): Likewise.
6976         * p-lang.c (pascal_language_data): Likewise.
6977         (pascal_language::print_typedef): New member function.
6978         * rust-lang.c (rust_print_typedef): Delete function,
6979         implementation moved to rust_language::print_typedef.
6980         (rust_language): Delete la_print_typedef initializer.
6981         (rust_language::print_typedef): New member function,
6982         implementation from rust_print_typedef.
6983         * typeprint.c (default_print_typedef): Delete.
6985 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
6987         * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6988         (ada_language::printstr): New member function.
6989         * c-lang.c (c_language_data): Delete la_printstr initializer.
6990         (cplus_language_data): Likewise.
6991         (asm_language_data): Likewise.
6992         (minimal_language_data): Likewise.
6993         * d-lang.c (d_language_data): Likewise.
6994         * f-lang.c (f_printstr): Rename to f_language::printstr.
6995         (f_language_data): Delete la_printstr initializer.
6996         (f_language::printstr): New member function, implementation from
6997         f_printstr.
6998         * go-lang.c (go_language_data): Delete la_printstr initializer.
6999         * language.c (language_defn::printstr): Define new member
7000         function.
7001         (unk_lang_printstr): Delete.
7002         (unknown_language_data): Delete la_printstr initializer.
7003         (unknown_language::printstr): New member function.
7004         (auto_language_data): Delete la_printstr initializer.
7005         (auto_language::printstr): New member function.
7006         * language.h (language_data): Delete la_printstr field.
7007         (language_defn::printstr): Declare new member function.
7008         (LA_PRINT_STRING): Update call to printstr.
7009         * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7010         (m2_language_data): Delete la_printstr initializer.
7011         (m2_language::printstr): New member function, implementation from
7012         m2_printstr.
7013         * objc-lang.c (objc_language_data): Delete la_printstr
7014         initializer.
7015         * opencl-lang.c (opencl_language_data): Likewise.
7016         * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7017         (pascal_language_data): Delete la_printstr initializer.
7018         (pascal_language::printstr): New member function, implementation
7019         from pascal_printstr.
7020         * p-lang.h (pascal_printstr): Delete declaration.
7021         * rust-lang.c (rust_printstr): Update header comment.
7022         (rust_language_data): Delete la_printstr initializer.
7023         (rust_language::printstr): New member function.
7025 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7027         * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7028         (ada_language::printchar): New member function.
7029         * c-lang.c (c_language_data): Delete la_printchar initializer.
7030         (cplus_language_data): Likewise.
7031         (asm_language_data): Likewise.
7032         (minimal_language_data): Likewise.
7033         * d-lang.c (d_language_data): Likewise.
7034         * f-lang.c (f_printchar): Rename to f_language::printchar.
7035         (f_language_data): Delete la_printchar initializer.
7036         (f_language::printchar): New member function, implementation from
7037         f_printchar.
7038         * go-lang.c (go_language_data): Delete la_printchar initializer.
7039         * language.c (unk_lang_printchar): Delete.
7040         (language_defn::printchar): Define new member function.
7041         (unknown_language_data): Delete la_printchar initializer.
7042         (unknown_language::printchar): New member function.
7043         (auto_language_data): Delete la_printchar initializer.
7044         (auto_language::printchar): New member function.
7045         * language.h (language_data): Delete la_printchar field.
7046         (language_defn::printchar): Declare new member function.
7047         (LA_PRINT_CHAR): Update call to printchar.
7048         * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7049         (m2_language::printchar): New member function.
7050         * objc-lang.c (objc_language_data): Delete la_printchar
7051         initializer.
7052         * opencl-lang.c (opencl_language_data): Likewise.
7053         * p-lang.c (pascal_language_data): Delete la_printchar
7054         initializer.
7055         (pascal_language::printchar): New member function.
7056         * rust-lang.c (rust_printchar): Rename to
7057         rust_language::printchar.
7058         (rust_language_data): Delete la_printchar initializer.
7059         (rust_language::printchar): New member function, implementation
7060         from rust_printchar.
7062 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7064         * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7065         (ada_language_data): Delete la_emitchar initializer.
7066         (ada_language::emitchar): New member function, implementation from
7067         emit_char.
7068         * c-lang.c (c_language_data): Delete la_emitchar initializer.
7069         (cplus_language_data): Likewise.
7070         (asm_language_data): Likewise.
7071         (minimal_language_data): Likewise.
7072         * d-lang.c (d_language_data): Likewise.
7073         * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7074         (f_language_data): Delete la_emitchar initializer.
7075         (f_language::emitchar): New member function, implementation from
7076         f_emit_char.
7077         * go-lang.c (go_language_data): Delete la_emitchar initializer.
7078         * language.c (unk_lang_emit_char): Delete.
7079         (language_defn::emitchar): New member function definition.
7080         (unknown_language_data): Delete la_emitchar initializer.
7081         (unknown_language::emitchar): New member function.
7082         (auto_language_data): Delete la_emitchar initializer.
7083         (auto_language::emitchar): New member function.
7084         * language.h (language_data): Delete la_emitchar field.
7085         (language_defn::emitchar): New member field declaration.
7086         (LA_EMIT_CHAR): Update call to emitchar.
7087         * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7088         (m2_language_data): Delete la_emitchar initializer.
7089         (m2_language::emitchar): New member function, implementation from
7090         m2_emit_char.
7091         * objc-lang.c (objc_language_data): Delete la_emitchar
7092         initializer.
7093         * opencl-lang.c (opencl_language_data): Likewise.
7094         * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7095         (pascal_language_data): Delete la_emitchar initializer.
7096         (pascal_language::emitchar): New member function, implementation
7097         from pascal_emit_char.
7098         * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7099         (rust_language_data): Delete la_emitchar initializer.
7100         (rust_language::emitchar): New member function, implementation
7101         from rust_emitchar.
7103 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7105         * ada-lang.c (resolve): Rename to ada_language::post_parser.
7106         (ada_language_data): Delete la_post_parser initializer.
7107         (ada_language::post_parser): New member function.
7108         * c-lang.c (c_language_data): Delete la_post_parser initializer.
7109         (cplus_language_data): Likewise.
7110         (asm_language_data): Likewise.
7111         (minimal_language_data): Likewise.
7112         * d-lang.c (d_language_data): Likewise.
7113         * f-lang.c (f_language_data): Likewise.
7114         * go-lang.c (go_language_data): Likewise.
7115         * language.c (unknown_language_data): Likewise.
7116         (auto_language_data): Likewise.
7117         * language.h (language_data): Delete la_post_parser field.
7118         (language_defn::post_parser): New member function.
7119         * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7120         * objc-lang.c (objc_language_data): Likewise.
7121         * opencl-lang.c (opencl_language_data): Likewise.
7122         * p-lang.c (pascal_language_data): Likewise.
7123         * parse.c (parse_exp_in_context): Update call to post_parser.
7124         (null_post_parser): Delete definition.
7125         * parser-defs.h (null_post_parser): Delete declaration.
7126         * rust-lang.c (rust_language_data): Delete la_post_parser
7127         initializer.
7129 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7131         * ada-lang.c (parse): Rename to ada_language::parser.
7132         (ada_language_data): Delete la_parser initializer.
7133         (ada_language::parser): New member function, implementation from
7134         parse.
7135         * c-lang.c (c_language_data): Delete la_parser initializer.
7136         (cplus_language_data): Likewise.
7137         (asm_language_data): Likewise.
7138         (minimal_language_data): Likewise.
7139         * d-lang.c (d_language_data): Likewise.
7140         (d_language::parser): New member function.
7141         * f-lang.c (f_language_data): Delete la_parser initializer.
7142         (f_language::parser): New member function.
7143         * go-lang.c (go_language_data): Delete la_parser initializer.
7144         (go_language::parser): New member function.
7145         * language.c (unk_lang_parser): Delete.
7146         (language_defn::parser): Define new member function.
7147         (unknown_language_data): Delete la_parser initializer.
7148         (unknown_language::parser): New member function.
7149         (auto_language_data): Delete la_parser initializer.
7150         (auto_language::parser): New member function.
7151         * language.h (language_data): Delete la_parser field.
7152         (language_defn::parser): Declare new member function.
7153         * m2-lang.c (m2_language_data): Delete la_parser initializer.
7154         (m2_language::parser): New member function.
7155         * objc-lang.c (objc_language_data): Delete la_parser initializer.
7156         * opencl-lang.c (opencl_language_data): Likewise.
7157         * p-lang.c (pascal_language_data): Likewise.
7158         (pascal_language::parser): New member function.
7159         * parse.c (parse_exp_in_context): Update call to parser.
7160         * rust-lang.c (rust_language_data): Delete la_parser initializer.
7161         (rust_language::parser): New member function.
7163 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
7165         * top.c (print_gdb_configuration): Print --with-python-libdir
7166         configuration value.
7168 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7170         * NEWS: Mention change to the alias command.
7172 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7174         * cli/cli-cmds.c (lookup_cmd_for_default_args)
7175         (alias_command_completer)
7176         (make_alias_options_def_group): New functions.
7177         (alias_opts, alias_option_defs): New struct and array.
7178         (alias_usage_error): Update usage.
7179         (alias_command): Handles optional DEFAULT-ARGS... arguments.
7180         Use option framework.
7181         (_initialize_cli_cmds): Update alias command help.
7182         Update aliases command help.
7183         (show_user):
7184         Add NULL for new default_args lookup_cmd argument.
7185         (valid_command_p): Rename to validate_aliased_command.
7186         Add NULL for new default_args lookup_cmd argument.  Verify that the
7187         aliased_command has no default args.
7188         * cli/cli-decode.c (help_cmd): Show aliases definitions.
7189         (lookup_cmd_1, lookup_cmd): New argument default_args.
7190         (add_alias_cmd):
7191         Add NULL for new default_args lookup_cmd argument.
7192         (print_help_for_command): Show default args under the layout
7193          alias some_alias = some_aliased_cmd some_alias_default_arg.
7194         * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7195         xfree default_args in destructor.
7196         * cli/cli-script.c (process_next_line, do_define_command):
7197         Add NULL for new default_args lookup_cmd argument.
7198         * command.h: Declare new default_args argument in lookup_cmd
7199         and lookup_cmd_1.
7200         * completer.c (complete_line_internal_1):
7201         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7202         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7203         * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7204         Likewise.
7205         * infcmd.c (_initialize_infcmd): Likewise.
7206         * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7207         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7208         * python/py-param.c (add_setshow_generic): Likewise.
7209         * remote.c (_initialize_remote): Likewise.
7210         * top.c (execute_command): Prepend default_args if command has some.
7211         (set_verbose):
7212         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7213         * tracepoint.c (validate_actionline, encode_actions_1):
7214         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7216 2020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7218         * jit.c (jit_read_descriptor): Use bool as the return type.
7219         (jit_breakpoint_re_set_internal): Use bool as the return type.
7220         Invert the return value logic; return true if the jit breakpoint
7221         has been successfully initialized.
7222         (jit_inferior_init): Update the call to
7223         jit_breakpoint_re_set_internal.
7225 2020-06-22  Pedro Alves  <palves@redhat.com>
7227         PR gdb/25939
7228         * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7229         Use the current inferior instead.  Don't return
7230         TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7231         wait again.
7232         * sol-thread.c (sol_thread_target::wait): Don't reference
7233         inferior_ptid.
7234         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7235         (sol_update_thread_list_callback): Use the current inferior's pid
7236         instead of inferior_ptid.
7238 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7240         * procfs.c: Cleanup many comments.
7242         (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7243         (AFTER_WATCHFLAG): Replace by value.
7245         (MAIN_PROC_NAME_FORMAT): Inline ...
7246         (create_procinfo): ... here.
7248         (procfs_debug_inferior): Remove SYS_exec handling.
7249         (syscall_is_exec): Likewise.
7250         (procfs_set_exec_trap): Likewise.
7252         (syscall_is_lwp_exit): Inline in callers.
7253         (syscall_is_exit): Likewise.
7254         (syscall_is_exec): Likewise.
7255         (syscall_is_lwp_create): Likewise.
7257         (invalidate_cache): Remove #if 0 code.
7259         (make_signal_thread_runnable):  Remove.
7260         (procfs_target::resume): Remove #if 0 code.
7262 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7264         PR gdb/25939
7265         * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7266         call ...
7267         (procfs_target::create_inferior): ... here.
7269 2020-06-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7271         * exec.c (validate_exec_file): Ensure the build-id is up to
7272         date by calling reopen_exec_file (that checks file timestamp
7273         to decide to re-read the file).
7275 2020-06-18  Pedro Alves  <palves@redhat.com>
7277         PR gdb/25412
7278         * gdbthread.h (delete_thread, delete_thread_silent)
7279         (find_thread_ptid): Update comments.
7280         * thread.c (current_thread_): New global.
7281         (is_current_thread): Move higher, and reimplement.
7282         (inferior_thread): Reimplement.
7283         (set_thread_exited): Use bool.  Add assertions.
7284         (add_thread_silent): Simplify thread-reuse handling by always
7285         calling delete_thread.
7286         (delete_thread): Remove intro comment.
7287         (find_thread_ptid): Skip exited threads.
7288         (switch_to_thread_no_regs): Write to current_thread_.
7289         (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7290         INFERIOR_PTID.  Clear current_thread_.
7292 2020-06-18  Pedro Alves  <palves@redhat.com>
7294         * aix-thread.c (pd_update): Use switch_to_thread.
7296 2020-06-18  Pedro Alves  <palves@redhat.com>
7298         * ravenscar-thread.c (ravenscar_thread_target): Update.
7299         (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7300         (ravenscar_thread_target::add_active_thread): ... this.  Don't
7301         set m_base_ptid here.  Update to avoid referencing inferior_ptid.
7302         (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7304 2020-06-18  Pedro Alves  <palves@redhat.com>
7306         * nat/windows-nat.c (current_windows_thread): Remove.
7307         * nat/windows-nat.h (current_windows_thread): Remove.
7308         * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7309         Adjust.
7310         (display_selectors): Adjust to fetch the current
7311         windows_thread_info based on inferior_ptid.
7312         (fake_create_process): No longer write to current_windows_thread.
7313         (windows_nat_target::get_windows_debug_event):
7314         Don't set inferior_ptid or current_windows_thread.
7315         (windows_nat_target::wait): Adjust to not rely on
7316         current_windows_thread.
7317         (do_initial_windows_stuff): Now a method of windows_nat_target.
7318         Switch to the last_ptid thread.
7319         (windows_nat_target::attach): Adjust.
7320         (windows_nat_target::detach): Use switch_to_no_thread instead of
7321         writing to inferior_ptid directly.
7322         (windows_nat_target::create_inferior): Adjust.
7324 2020-06-18  Pedro Alves  <palves@redhat.com>
7326         * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7328 2020-06-18  Pedro Alves  <palves@redhat.com>
7330         * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7331         after creating it, instead of writing to inferior_ptid.  Don't
7332         write to inferior_ptid.
7334 2020-06-18  Pedro Alves  <palves@redhat.com>
7336         * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7338 2020-06-18  Pedro Alves  <palves@redhat.com>
7340         * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7341         it, instead of writing to inferior_ptid.
7343 2020-06-18  Pedro Alves  <palves@redhat.com>
7345         * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7346         to inferior_ptid.
7348 2020-06-18  Pedro Alves  <palves@redhat.com>
7350         * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7351         instead of writing to inferior_ptid directly.
7353 2020-06-18  Pedro Alves  <palves@redhat.com>
7355         * corelow.c (core_target::close): Use switch_to_no_thread instead
7356         of writing to inferior_ptid directly.
7357         (add_to_thread_list, core_target_open): Use switch_to_thread
7358         instead of writing to inferior_ptid directly.
7360 2020-06-18  Pedro Alves  <palves@redhat.com>
7362         * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7363         inferior_ptid.
7364         (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7365         inferior_ptid.
7366         (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7367         inferior_ptid directly.
7368         (darwin_nat_target::init_thread_list): Switch to thread, instead
7369         of writing to inferior_ptid.
7370         (darwin_nat_target::attach): Don't write to inferior_ptid.
7371         (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7373 2020-06-18  Pedro Alves  <palves@redhat.com>
7375         * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7376         thread.
7377         (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7378         Instead use switch_to_thread.
7379         (gnu_nat_target::detach): Use switch_to_no_thread
7380         instead of writing to inferior_ptid directly.  Used passed-in
7381         inferior instead of looking up the inferior by pid.
7383 2020-06-18  Pedro Alves  <palves@redhat.com>
7385         * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7386         inferior_ptid.
7388 2020-06-18  Pedro Alves  <palves@redhat.com>
7390         * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7391         inferior_ptid.
7392         (nto_procfs_target::attach): Avoid inferior_ptid.  Switch to
7393         thread.
7394         (nto_procfs_target::detach): Avoid referencing
7395         inferior_ptid.  Use switch_to_no_thread instead of writing to
7396         inferior_ptid directly.
7397         (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7398         instead of writing to inferior_ptid directly.
7399         (nto_procfs_target::create_inferior): Avoid inferior_ptid.  Switch
7400         to thread.
7402 2020-06-18  Pedro Alves  <palves@redhat.com>
7404         * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7405         after creating it, instead of writing to inferior_ptid.
7406         (gdbsim_target_open): Use switch_to_no_thread instead of writing
7407         to inferior_ptid directly.
7408         (gdbsim_target::wait): Don't write to inferior_ptid.
7410 2020-06-18  Pedro Alves  <palves@redhat.com>
7412         * remote.c (remote_target::remote_notice_new_inferior): Use
7413         switch_to_thread instead of writing to inferior_ptid directly.
7414         (remote_target::add_current_inferior_and_thread): Use
7415         switch_to_no_thread instead of writing to inferior_ptid directly.
7416         (extended_remote_target::attach): Use switch_to_inferior_no_thread
7417         and switch_to_thread instead of using set_current_inferior or
7418         writing to inferior_ptid directly.
7420 2020-06-18  Pedro Alves  <palves@redhat.com>
7422         * tracectf.c (ctf_target_open): Switch to added thread instead of
7423         writing to inferior_ptid directly.
7424         (ctf_target::close): Use switch_to_no_thread instead of writing to
7425         inferior_ptid directly.
7427 2020-06-18  Pedro Alves  <palves@redhat.com>
7429         * tracefile-tfile.c (tfile_target_open): Don't write to
7430         inferior_ptid directly, instead switch to added thread.
7431         (tfile_target::close): Use switch_to_no_thread instead of writing
7432         to inferior_ptid directly.
7434 2020-06-18  Pedro Alves  <palves@redhat.com>
7436         * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7437         (procfs_target::detach): Use switch_to_no_thread
7438         instead of writing to inferior_ptid directly.
7439         (do_attach): Change return type to void.  Switch to the added
7440         thread.
7441         (procfs_target::create_inferior): Switch to the added thread.
7442         (procfs_do_thread_registers): Don't write to inferior_ptid.
7444 2020-06-18  Pedro Alves  <palves@redhat.com>
7446         * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7447         of writing to inferior_ptid.
7448         (scoped_restore_exited_inferior): Delete.
7449         (handle_vfork_child_exec_or_exit): Simplify using
7450         scoped_restore_current_pspace_and_thread.  Use switch_to_thread
7451         instead of writing to inferior_ptid.
7452         (THREAD_STOPPED_BY): Delete.
7453         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7454         (thread_stopped_by_hw_breakpoint): Delete.
7455         (save_waitstatus): Use
7456         scoped_restore_current_thread+switch_to_thread, and call
7457         target_stopped_by_watchpoint instead of
7458         thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7459         instead of thread_stopped_by_sw_breakpoint, and
7460         target_stopped_by_hw_breakpoint instead of
7461         thread_stopped_by_hw_breakpoint.
7462         (handle_inferior_event)
7463         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7464         inferior_ptid directly, nor
7465         set_current_inferior/set_current_program_space.  Use
7466         switch_to_thread / switch_to_inferior_no_thread instead.
7468 2020-06-18  Pedro Alves  <palves@redhat.com>
7470         * target.c (generic_mourn_inferior): Use switch_to_no_thread
7471         instead of writing to inferior_ptid.
7473 2020-06-18  Pedro Alves  <palves@redhat.com>
7475         * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7476         added thread.
7477         (inf_ptrace_target::attach): Don't write to inferior_ptid.  Switch
7478         to the added thread.
7479         (inf_ptrace_target::detach_success): Use switch_to_no_thread
7480         instead of writing to inferior_ptid.
7482 2020-06-18  Pedro Alves  <palves@redhat.com>
7484         * gdbarch-selftests.c: Include "progspace-and-thread.h".
7485         (register_to_value_test): Mock a program_space too.  Heap-allocate
7486         the address space.  Don't write to inferior_ptid.  Use
7487         switch_to_thread instead.
7489 2020-06-18  Pedro Alves  <palves@redhat.com>
7491         * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7492         Delete.
7493         (find_signalled_thread()): New, factored out from
7494         linux_make_corefile_notes and adjusted to handle exited threads.
7495         (linux_make_corefile_notes): Adjust to use the new
7496         find_signalled_thread.
7498 2020-06-18  Pedro Alves  <palves@redhat.com>
7500         * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7501         of saving/restoring inferior_ptid.
7503 2020-06-17  Tom Tromey  <tom@tromey.com>
7505         * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7506         (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7507         declare.
7508         * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7510 2020-06-15  Simon Marchi  <simon.marchi@efficios.com>
7512         * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7513         of partial symtabs.
7515 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7517         * regformats/reg-arm.dat: Remove.
7518         * regformats/reg-bfin.dat: Remove.
7519         * regformats/reg-cris.dat: Remove.
7520         * regformats/reg-crisv32.dat: Remove.
7521         * regformats/reg-m32r.dat: Remove.
7522         * regformats/reg-tilegx.dat: Remove.
7523         * regformats/reg-tilegx32.dat: Remove.
7525 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7527         * features/Makefile (WHICH): Remove arm files.
7528         * regformats/arm/arm-with-iwmmxt.dat: Remove.
7529         * regformats/arm/arm-with-neon.dat: Remove.
7530         * regformats/arm/arm-with-vfpv2.dat: Remove.
7531         * regformats/arm/arm-with-vfpv3.dat: Remove.
7533 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
7535         * features/Makefile (XMLTOC): Remove rx.xml.
7537 2020-06-17  Pedro Alves  <palves@redhat.com>
7539         * gdbthread.h (thread_control_state) <trap_expected> Update
7540         comments.
7542 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7544         * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7545         ada_language::lookup_symbol_nonlocal.
7546         (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7547         (ada_language::lookup_symbol_nonlocal): New member function,
7548         implementation from ada_lookup_symbol_nonlocal.
7549         * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7550         initializer.
7551         (cplus_language_data): Delete la_lookup_symbol_nonlocal
7552         initializer.
7553         (cplus_language::lookup_symbol_nonlocal): New member function.
7554         (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7555         (minimal_language_data) Likewise.
7556         * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7557         * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7558         initializer.
7559         (d_language::lookup_symbol_nonlocal): New member function.
7560         * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7561         initializer.
7562         (f_language::lookup_symbol_nonlocal): New member function.
7563         * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7564         initializer.
7565         * language.c (unknown_language_data): Likewise.
7566         (auto_language_data): Likewise.
7567         * language.h (language_data): Delete la_lookup_symbol_nonlocal
7568         field.
7569         (language_defn::lookup_symbol_nonlocal): New member function.
7570         * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7571         initializer.
7572         * objc-lang.c (objc_language_data): Likewise.
7573         * opencl-lang.c (opencl_language_data): Likewise.
7574         * p-lang.c (pascal_language_data): Likewise.
7575         * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7576         rust_language::lookup_symbol_nonlocal.
7577         (rust_language_data): Delete la_lookup_symbol_nonlocal
7578         initializer.
7579         (rust_language::lookup_symbol_nonlocal): New member function,
7580         implementation from rust_lookup_symbol_nonlocal.
7581         * symtab.c (lookup_symbol_aux): Update call to
7582         lookup_symbol_nonlocal.
7583         (basic_lookup_symbol_nonlocal): Rename to...
7584         (language_defn::lookup_symbol_nonlocal): ...this, and update
7585         header comment.  Remove language_defn parameter, and replace with
7586         uses of `this'.
7587         * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7589 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7591         * ada-lang.c (ada_language_data): Delete la_value_print_inner
7592         initializer.
7593         (ada_language::value_print_inner): New member function.
7594         * c-lang.c (c_language_data): Delete la_value_print_inner
7595         initializer.
7596         (cplus_language_data): Likewise.
7597         (asm_language_data): Likewise.
7598         (minimal_language_data): Likewise.
7599         * d-lang.c (d_language_data): Likewise.
7600         (d_language::value_print_inner): New member function.
7601         * f-lang.c (f_language_data): Delete la_value_print_inner
7602         initializer.
7603         (f_language::value_print_inner): New member function.
7604         * f-lang.h (f_value_print_innner): Rename to...
7605         (f_value_print_inner): ...this (note spelling of 'inner').
7606         * f-valprint.c (f_value_print_innner): Rename to...
7607         (f_value_print_inner): ...this (note spelling of 'inner').
7608         * go-lang.c (go_language_data): Delete la_value_print_inner
7609         initializer.
7610         (go_language::value_print_inner): New member function.
7611         * language.c (language_defn::value_print_inner): Define new member
7612         function.
7613         (unk_lang_value_print_inner): Delete.
7614         (unknown_language_data): Delete la_value_print_inner initializer.
7615         (unknown_language::value_print_inner): New member function.
7616         (auto_language_data): Delete la_value_print_inner initializer.
7617         (auto_language::value_print_inner): New member function.
7618         * language.h (language_data): Delete la_value_print_inner field.
7619         (language_defn::value_print_inner): Delcare new member function.
7620         * m2-lang.c (m2_language_data): Delete la_value_print_inner
7621         initializer.
7622         (m2_language::value_print_inner): New member function.
7623         * objc-lang.c (objc_language_data): Delete la_value_print_inner
7624         initializer.
7625         * opencl-lang.c (opencl_language_data): Likewise.
7626         * p-lang.c (pascal_language_data): Likewise.
7627         (pascal_language::value_print_inner): New member function.
7628         * rust-lang.c (rust_language_data): Delete la_value_print_inner
7629         initializer.
7630         (rust_language::value_print_inner): New member function.
7631         * valprint.c (do_val_print): Update call to value_print_inner.
7633 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7635         * ada-lang.c (ada_language_data): Delete la_value_print
7636         initializer.
7637         (ada_language::value_print): New member function.
7638         * c-lang.c (c_language_data): Delete la_value_print initializer.
7639         (cplus_language_data): Likewise.
7640         (asm_language_data): Likewise.
7641         (minimal_language_data): Likewise.
7642         * d-lang.c (d_language_data): Likewise.
7643         * f-lang.c (f_language_data): Likewise.
7644         * go-lang.c (go_language_data): Likewise.
7645         * language.c (unk_lang_value_print): Delete.
7646         (language_defn::value_print): Define new member function.
7647         (unknown_language_data): Delete la_value_print initializer.
7648         (unknown_language::value_print): New member function.
7649         (auto_language_data): Delete la_value_print initializer.
7650         (auto_language::value_print): New member function.
7651         * language.h (language_data): Delete la_value_print field.
7652         (language_defn::value_print): Declare new member function.
7653         (LA_VALUE_PRINT): Update call to value_print.
7654         * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7655         * objc-lang.c (objc_language_data): Likewise.
7656         * opencl-lang.c (opencl_language_data): Likewise.
7657         * p-lang.c (pascal_language_data): Likewise.
7658         (pascal_language::value_print): New member function.
7659         * rust-lang.c (rust_language_data): Delete la_value_print
7660         initializer.
7662 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7664         * ada-lang.c (ada_watch_location_expression): Rename to
7665         ada_language::watch_location_expression.
7666         (ada_language_data): Delete la_watch_location_expression
7667         initializer.
7668         (ada_language::watch_location_expression): New member function,
7669         implementation from ada_watch_location_expression.
7670         * breakpoint.c (watch_command_1): Update call to
7671         watch_location_expression.
7672         * c-lang.c (c_watch_location_expression): Rename to
7673         language_defn::watch_location_expression.
7674         (c_language_data): Delete la_watch_location_expression
7675         initializer.
7676         (cplus_language_data): Likewise.
7677         (asm_language_data): Likewise.
7678         (minimal_language_data): Likewise.
7679         * c-lang.h (c_watch_location_expression): Delete declaration.
7680         * d-lang.c (d_language_data): Delete la_watch_location_expression
7681         initializer.
7682         * f-lang.c (f_language_data): Likewise.
7683         * go-lang.c (go_language_data): Likewise.
7684         * language.c (language_defn::watch_location_expression): Member
7685         function implementation from c_watch_location_expression.
7686         (unknown_language_data): Delete la_watch_location_expression
7687         initializer.
7688         (auto_language_data): Likewise.
7689         * language.h (language_data): Delete la_watch_location_expression
7690         field.
7691         (language_defn::watch_location_expression): Declare new member
7692         function.
7693         * m2-lang.c (m2_language_data): Delete
7694         la_watch_location_expression initializer.
7695         * objc-lang.c (objc_language_data): Likewise.
7696         * opencl-lang.c (opencl_language_data): Likewise.
7697         * p-lang.c (pascal_language_data): Likewise.
7698         * rust-lang.c (rust_watch_location_expression): Rename to
7699         rust_language::watch_location_expression.
7700         (rust_language_data): Delete la_watch_location_expression
7701         initializer.
7702         (rust_language::watch_location_expression): New member function,
7703         implementation from rust_watch_location_expression.
7705 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7707         * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7708         ada_language::collect_symbol_completion_matches.
7709         (ada_language_data): Delete la_collect_symbol_completion_matches
7710         initializer.
7711         (ada_language::collect_symbol_completion_matches): New member
7712         function, implementation from
7713         ada_collect_symbol_completion_matches.
7714         * c-lang.c (c_language_data): Delete
7715         la_collect_symbol_completion_matches initializer.
7716         (cplus_language_data): Likewise.
7717         (asm_language_data): Likewise.
7718         (minimal_language_data): Likewise.
7719         * d-lang.c (d_language_data): Likewise.
7720         * f-lang.c (f_collect_symbol_completion_matches): Rename to
7721         f_language::collect_symbol_completion_matches.
7722         (f_language_data): Delete la_collect_symbol_completion_matches
7723         initializer.
7724         (f_language::collect_symbol_completion_matches) New member
7725         function, implementation from f_collect_symbol_completion_matches.
7726         * go-lang.c (go_language_data): Delete
7727         la_collect_symbol_completion_matches initializer.
7728         * language.c (unknown_language_data): Likewise.
7729         (auto_language_data): Likewise.
7730         * language.h (language_data): Delete
7731         la_collect_symbol_completion_matches field.
7732         (language_defn::collect_symbol_completion_matches): New member
7733         function.
7734         * m2-lang.c (m2_language_data): Delete
7735         la_collect_symbol_completion_matches initializer.
7736         * objc-lang.c (objc_language_data): Likewise.
7737         * opencl-lang.c (opencl_language_data): Likewise.
7738         * p-lang.c (pascal_language_data): Likewise.
7739         * rust-lang.c (rust_language_data): Likewise.
7740         * symtab.c (default_collect_symbol_completion_matches): Delete.
7741         (collect_symbol_completion_matches): Update call to
7742         collect_symbol_completion_matches.
7743         (collect_symbol_completion_matches_type): Likewise.
7744         * symtab.h (default_collect_symbol_completion_matches): Delete
7745         declaration.
7747 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7749         * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7750         (ada_language_data): Delete la_word_break_characters initializer.
7751         (ada_language::word_break_characters): New member function.
7752         * c-lang.c (c_language_data): Delete la_word_break_characters
7753         initializer.
7754         (cplus_language_data): Likewise.
7755         (asm_language_data): Likewise.
7756         (minimal_language_data): Likewise.
7757         * completer.c: Update global comment.
7758         (advance_to_expression_complete_word_point): Update call to
7759         word_break_characters.
7760         (complete_files_symbols): Likewise.
7761         (complete_line_internal_1): Likewise.
7762         (default_completer_handle_brkchars): Likewise.
7763         (skip_quoted_chars): Likewise.
7764         * d-lang.c (d_language_data): Delete la_word_break_characters
7765         initializer.
7766         * f-lang.c (f_word_break_characters): Delete.
7767         (f_language_data): Delete la_word_break_characters initializer.
7768         (f_language::word_break_characters): New member function.
7769         * go-lang.c (go_language_data): Delete la_word_break_characters
7770         initializer.
7771         * language.c (unknown_language_data): Likewise.
7772         (auto_language_data): Likewise.
7773         * language.h (default_word_break_characters): Move declaration to
7774         earlier in the file.
7775         (language_data): Delete la_word_break_characters field.
7776         (language_defn::word_break_characters): New member function.
7777         * m2-lang.c (m2_language_data): Delete la_word_break_characters
7778         initializer.
7779         * objc-lang.c (objc_language_data): Likewise.
7780         * opencl-lang.c (opencl_language_data): Likewise.
7781         * p-lang.c (pascal_language_data): Likewise.
7782         * rust-lang.c (rust_language_data): Likewise.
7784 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7786         * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7787         (ada_language_data): Delete la_get_symbol_name_matcher
7788         initializer.
7789         (language_defn::get_symbol_name_matcher_inner): New member
7790         function.
7791         * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7792         initializer.
7793         (cplus_language_data): Likewise.
7794         (cplus_language::get_symbol_name_matcher_inner): New member
7795         function.
7796         (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7797         (minimal_language_data): Likewise.
7798         * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7799         * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7800         initializer.
7801         * dictionary.c (iter_match_first_hashed): Update call to
7802         get_symbol_name_matcher.
7803         (iter_match_next_hashed): Likewise.
7804         (iter_match_next_linear): Likewise.
7805         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7806         * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7807         initializer.
7808         (f_language::get_symbol_name_matcher_inner): New member function.
7809         * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7810         initializer.
7811         * language.c (default_symbol_name_matcher): Update header comment,
7812         make static.
7813         (language_defn::get_symbol_name_matcher): New definition.
7814         (language_defn::get_symbol_name_matcher_inner): Likewise.
7815         (get_symbol_name_matcher): Delete.
7816         (unknown_language_data): Delete la_get_symbol_name_matcher
7817         initializer.
7818         (auto_language_data): Likewise.
7819         * language.h (language_data): Delete la_get_symbol_name_matcher
7820         field.
7821         (language_defn::get_symbol_name_matcher): New member function.
7822         (language_defn::get_symbol_name_matcher_inner): Likewise.
7823         (default_symbol_name_matcher): Delete declaration.
7824         * linespec.c (find_methods): Update call to
7825         get_symbol_name_matcher.
7826         * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7827         initializer.
7828         * minsyms.c (lookup_minimal_symbol): Update call to
7829         get_symbol_name_matcher.
7830         (iterate_over_minimal_symbols): Likewise.
7831         * objc-lang.c (objc_language_data): Delete
7832         la_get_symbol_name_matcher initializer.
7833         * opencl-lang.c (opencl_language_data): Likewise.
7834         * p-lang.c (pascal_language_data): Likewise.
7835         * psymtab.c (psymbol_name_matches): Update call to
7836         get_symbol_name_matcher.
7837         * rust-lang.c (rust_language_data): Delete
7838         la_get_symbol_name_matcher initializer.
7839         * symtab.c (symbol_matches_search_name): Update call to
7840         get_symbol_name_matcher.
7841         (compare_symbol_name): Likewise.
7843 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7845         * ada-lang.c (ada_language_data): Delete la_compute_program
7846         initializer.
7847         * c-lang.c (c_language_data): Likewise.
7848         (c_language::compute_program): New member function.
7849         (cplus_language_data): Delete la_compute_program initializer.
7850         (cplus_language::compute_program): New member function.
7851         (asm_language_data): Delete la_compute_program initializer.
7852         (minimal_language_data): Likewise.
7853         * c-lang.h (c_compute_program): Update comment.
7854         (cplus_compute_program): Likewise.
7855         * compile/compile-c-support.c (c_compute_program): Likewise.
7856         (cplus_compute_program): Likewise.
7857         * compile/compile.c (compile_to_object): Update call to
7858         la_compute_program.
7859         * d-lang.c (d_language_data): Delete la_compute_program
7860         initializer.
7861         * f-lang.c (f_language_data): Likewise.
7862         * go-lang.c (go_language_data): Likewise.
7863         * language.c (unknown_language_data): Likewise.
7864         (auto_language_data): Likewise.
7865         * language.h (language_data): Delete la_compute_program field.
7866         (language_defn::compute_program): New member function.
7867         * m2-lang.c (m2_language_data): Delete la_compute_program
7868         initializer.
7869         * objc-lang.c (objc_language_data): Likewise.
7870         * opencl-lang.c (opencl_language_data): Likewise.
7871         * p-lang.c (pascal_language_data): Likewise.
7872         * rust-lang.c (rust_language_data): Likewise.
7874 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
7876         * ada-lang.c (ada_language_data) Delete
7877         la_class_name_from_physname initializer.
7878         * c-lang.c (c_language_data): Likewise.
7879         (cplus_language_data): Likewise.
7880         (cplus_language::class_name_from_physname): New member function.
7881         (asm_language_data): Delete la_class_name_from_physname
7882         initializer.
7883         (minimal_language_data): Likewise.
7884         * d-lang.c (d_language_data): Likewise.
7885         * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7886         method on language_defn class.
7887         (guess_full_die_structure_name): Likewise.
7888         * f-lang.c (f_language_data): Delete la_class_name_from_physname
7889         initializer.
7890         * go-lang.c (go_language_data): Likewise.
7891         * language.c (language_class_name_from_physname): Delete.
7892         (unk_lang_class_name): Delete.
7893         (unknown_language_data): Delete la_class_name_from_physname
7894         initializer.
7895         (auto_language_data): Likewise.
7896         * language.h (language_data): Delete la_class_name_from_physname
7897         field.
7898         (language_defn::class_name_from_physname): New function.
7899         (language_class_name_from_physname): Delete declaration.
7900         * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7901         initializer.
7902         * objc-lang.c (objc_language_data): Likewise.
7903         * opencl-lang.c (opencl_language_data): Likewise.
7904         * p-lang.c (pascal_language_data): Likewise.
7905         * rust-lang.c (rust_language_data): Likewise.
7907 2020-06-16  Tom Tromey  <tom@tromey.com>
7909         * tui/tui-data.h (STATUS_NAME): New macro.
7910         * tui/tui-layout.c (tui_remove_some_windows)
7911         (initialize_known_windows, tui_register_window)
7912         (tui_layout_split::remove_windows, initialize_layouts)
7913         (tui_new_layout_command): Don't use hard-coded window names.
7915 2020-06-16  Tom Tromey  <tom@tromey.com>
7917         PR tui/25348:
7918         * tui/tui.c (tui_ensure_readline_initialized): Rename from
7919         tui_initialize_readline.  Only run once.  Call rl_initialize.
7920         * tui/tui.h (tui_ensure_readline_initialized): Rename from
7921         tui_initialize_readline.
7922         * tui/tui-io.c (tui_setup_io): Call
7923         tui_ensure_readline_initialized.
7924         * tui/tui-interp.c (tui_interp::init): Update.
7926 2020-06-16  Tom Tromey  <tom@tromey.com>
7928         * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7929         Also preserve the status window.
7931 2020-06-16  Tom Tromey  <tom@tromey.com>
7933         * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7934         where m_window==nullptr.
7936 2020-06-15  Tom Tromey  <tromey@adacore.com>
7938         * windows-nat.c (windows_nat::handle_output_debug_string):
7939         Update.
7940         (windows_nat::handle_ms_vc_exception): Update.
7941         * target.h (target_read_string): Change API.
7942         * target.c (target_read_string): Change API.
7943         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7944         Update.
7945         * solib-frv.c (frv_current_sos): Update.
7946         * solib-dsbt.c (dsbt_current_sos): Update.
7947         * solib-darwin.c (darwin_current_sos): Update.
7948         * linux-thread-db.c (inferior_has_bug): Update.
7949         * expprint.c (print_subexp_standard): Update.
7950         * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7951         (ada_exception_message_1): Update.
7953 2020-06-15  Tom Tromey  <tromey@adacore.com>
7955         * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7957 2020-06-15  Tom Tromey  <tromey@adacore.com>
7959         * valprint.c (read_string): Update comment.
7960         * target.c (MIN): Remove.
7961         (target_read_string): Rewrite.
7963 2020-06-15  Tom Tromey  <tromey@adacore.com>
7965         * corefile.c (read_memory_string): Remove.
7966         * ada-valprint.c (ada_value_print_ptr): Update.
7967         * ada-lang.h (ada_tag_name): Change return type.
7968         * ada-lang.c (type_from_tag): Update.
7969         (ada_tag_name_from_tsd): Change return type.  Use
7970         target_read_string.
7971         (ada_tag_name): Likewise.
7972         * gdbcore.h (read_memory_string): Don't declare.
7974 2020-06-14  Hannes Domani  <ssbssa@yahoo.de>
7976         * symtab.c (rbreak_command): Ignore Windows drive colon.
7978 2020-06-12  Simon Marchi  <simon.marchi@efficios.com>
7980         * NEWS: Mention removed GDBserver host support.
7982 2020-06-12  Nelson Chu  <nelson.chu@sifive.com>
7984         * features/riscv/rebuild-csr-xml.sh: Updated.
7986 2020-06-11  Tom Tromey  <tom@tromey.com>
7988         PR gdb/18318:
7989         * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7991 2020-06-09  Jonny Grant  <jg@jguk.org>
7992 2020-06-09  Simon Marchi  <simon.marchi@polymtl.ca>
7994         * main.c (captured_main_1): Don't print new line after help.
7995         (print_gdb_help): add mailing list and IRC channel information
7996         to --help.  Add new lines between items in the footer.  Remove
7997         quotes around bug url.
7999 2020-06-11  Keith Seitz  <keiths@redhat.com>
8001         PR gdb/21356
8002         * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8003         Resolve typedefs for type length calculations.
8005 2020-06-10  Tom de Vries  <tdevries@suse.de>
8007         PR ada/24713
8008         * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8009         (write_psymbols): Enable .gdb_index for ada.
8010         * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8011         ada.
8013 2020-06-10  Tom de Vries  <tdevries@suse.de>
8015         * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8016         (dw2_symtab_iter_init): ... here.  Add variant with "offset_type
8017         namei" instead of "const char *name" argument.
8018         (dw2_map_matching_symbols): Use "offset_type namei" variant of
8019         dw2_symtab_iter_init.
8021 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8023         * gdbtypes.h (TYPE_FIELD_TYPE): Remove.  Change all call sites
8024         to use type::field and field::type instead.
8026 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8028         * gdbtypes.h (FIELD_TYPE): Remove.  Change all call sites
8029         to use field::type instead.
8031 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8033         * gdbtypes.h (struct field) <type, set_type>: New methods.
8034         Rename `type` field to...
8035         <m_type>: ... this.  Change references throughout to use type or
8036         set_type methods.
8037         (FIELD_TYPE): Use field::type.  Change call sites that modify
8038         the field's type to use field::set_type instead.
8040 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8042         * gdbtypes.h (TYPE_INDEX_TYPE): Remove.  Change all call sites
8043         to use type::index_type instead.
8045 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
8047         * gdbtypes.h (struct type) <index_type, set_index_type>: New
8048         methods.
8049         (TYPE_INDEX_TYPE): Use type::index_type.
8050         * gdbtypes.c (create_array_type_with_stride): Likewise.
8052 2020-06-07  Tom Tromey  <tom@tromey.com>
8054         * valprint.c (generic_val_print_float): Remove "embedded_offset"
8055         parameter.
8056         (generic_value_print): Update.
8058 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8060         Revert commit 982a38f60b0.
8061         * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8063 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
8065         * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8066         avoid use after free.
8068 2020-06-05  Tom de Vries  <tdevries@suse.de>
8070         * NEWS: Fix typos.
8072 2020-06-04  Simon Marchi  <simon.marchi@efficios.com>
8074         * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8075         the per_bfd object.
8076         (dwarf2_read_debug_names): Likewise.
8077         (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8078         object when re-using a per_bfd object with an index.
8080 2020-06-03  Tom de Vries  <tdevries@suse.de>
8082         PR symtab/26046
8083         * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8084         children for C++.
8085         (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8086         DW_TAG_subprogram.
8088 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8090         * ada-lang.c (ada_language_data): Delete skip_trampoline
8091         initializer.
8092         * c-lang.c (c_language_data): Likewise.
8093         (cplus_language_data): Likewise.
8094         (cplus_language::skip_trampoline): New member function.
8095         (asm_language_data): Delete skip_trampoline initializer.
8096         (minimal_language_data): Likewise.
8097         * d-lang.c (d_language_data): Likewise.
8098         * f-lang.c (f_language_data): Likewise.
8099         * go-lang.c (go_language_data): Likewise.
8100         * language.c (unk_lang_trampoline): Delete function.
8101         (skip_language_trampoline): Update.
8102         (unknown_language_data): Delete skip_trampoline initializer.
8103         (auto_language_data): Likewise.
8104         * language.h (language_data): Delete skip_trampoline field.
8105         (language_defn::skip_trampoline): New function.
8106         * m2-lang.c (m2_language_data): Delete skip_trampoline
8107         initializer.
8108         * objc-lang.c (objc_skip_trampoline): Delete function, move
8109         implementation to objc_language::skip_trampoline.
8110         (objc_language_data): Delete skip_trampoline initializer.
8111         (objc_language::skip_trampoline): New member function with
8112         implementation from objc_skip_trampoline.
8113         * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8114         initializer.
8115         * p-lang.c (pascal_language_data): Likewise.
8116         * rust-lang.c (rust_language_data): Likewise.
8118 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8120         * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8121         (ada_language::demangle): New member function.
8122         * c-lang.c (c_language_data): Delete la_demangle initializer.
8123         (cplus_language_data): Delete la_demangle initializer.
8124         (cplus_language::demangle): New member function.
8125         (asm_language_data): Delete la_demangle initializer.
8126         (minimal_language_data): Delete la_demangle initializer.
8127         * d-lang.c (d_language_data): Delete la_demangle initializer.
8128         (d_language::demangle): New member function.
8129         * f-lang.c (f_language_data): Delete la_demangle initializer.
8130         (f_language::demangle): New member function.
8131         * go-lang.c (go_language_data): Delete la_demangle initializer.
8132         (go_language::demangle): New member function.
8133         * language.c (language_demangle): Update.
8134         (unk_lang_demangle): Delete.
8135         (unknown_language_data): Delete la_demangle initializer.
8136         (unknown_language::demangle): New member function.
8137         (auto_language_data): Delete la_demangle initializer.
8138         (auto_language::demangle): New member function.
8139         * language.h (language_data): Delete la_demangle field.
8140         (language_defn::demangle): New function.
8141         * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8142         * objc-lang.c (objc_language_data): Delete la_demangle
8143         initializer.
8144         (objc_language::demangle): New member function.
8145         * opencl-lang.c (opencl_language_data): Delete la_demangle
8146         initializer.
8147         * p-lang.c (pascal_language_data): Likewise.
8148         * rust-lang.c (rust_language_data): Likewise.
8149         (rust_language::demangle): New member function.
8151 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8153         * ada-lang.c (ada_language_data): Delete la_print_type
8154         initializer.
8155         (ada_language::print_type): New member function.
8156         * c-lang.c (c_language_data): Delete la_print_type initializer.
8157         (c_language::print_type): New member function.
8158         (cplus_language_data): Delete la_print_type initializer.
8159         (cplus_language::print_type): New member function.
8160         (asm_language_data): Delete la_print_type initializer.
8161         (asm_language::print_type): New member function.
8162         (minimal_language_data): Delete la_print_type initializer.
8163         (minimal_language::print_type): New member function.
8164         * d-lang.c (d_language_data): Delete la_print_type initializer.
8165         (d_language::print_type): New member function.
8166         * f-lang.c (f_language_data): Delete la_print_type initializer.
8167         (f_language::print_type): New member function.
8168         * go-lang.c (go_language_data): Delete la_print_type initializer.
8169         (go_language::print_type): New member function.
8170         * language.c (unk_lang_print_type): Delete.
8171         (unknown_language_data): Delete la_print_type initializer.
8172         (unknown_language::print_type): New member function.
8173         (auto_language_data): Delete la_print_type initializer.
8174         (auto_language::print_type): New member function.
8175         * language.h (language_data): Delete la_print_type field.
8176         (language_defn::print_type): New function.
8177         (LA_PRINT_TYPE): Update.
8178         * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8179         (m2_language::print_type): New member function.
8180         * objc-lang.c (objc_language_data): Delete la_print_type
8181         initializer.
8182         (objc_language::print_type): New member function.
8183         * opencl-lang.c (opencl_print_type): Delete, implementation moved
8184         to opencl_language::print_type.
8185         (opencl_language_data): Delete la_print_type initializer.
8186         (opencl_language::print_type): New member function, implementation
8187         from opencl_print_type.
8188         * p-lang.c (pascal_language_data): Delete la_print_type
8189         initializer.
8190         (pascal_language::print_type): New member function.
8191         * rust-lang.c (rust_print_type): Delete, implementation moved to
8192         rust_language::print_type.
8193         (rust_language_data): Delete la_print_type initializer.
8194         (rust_language::print_type): New member function, implementation
8195         from rust_print_type.
8197 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8199         * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8200         implementation moves to...
8201         (ada_language::sniff_from_mangled_name): ...here.  Update return
8202         type.
8203         (ada_language_data): Delete la_sniff_from_mangled_name
8204         initializer.
8205         * c-lang.c (c_language_data): Likewise.
8206         (cplus_language_data): Likewise.
8207         (cplus_language::sniff_from_mangled_name): New member function,
8208         implementation taken from gdb_sniff_from_mangled_name.
8209         (asm_language_data): Delete la_sniff_from_mangled_name
8210         initializer.
8211         (minimal_language_data): Likewise.
8212         * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8213         implementation moves to cplus_language::sniff_from_mangled_name.
8214         * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8215         * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8216         moves to...
8217         (d_language::sniff_from_mangled_name): ...here.
8218         (d_language_data): Delete la_sniff_from_mangled_name initializer.
8219         * f-lang.c (f_language_data): Likewise.
8220         * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8221         moves to...
8222         (go_language::sniff_from_mangled_name): ...here.
8223         (go_language_data): Delete la_sniff_from_mangled_name initializer.
8224         * language.c (language_sniff_from_mangled_name): Delete.
8225         (unknown_language_data): Delete la_sniff_from_mangled_name
8226         initializer.
8227         (auto_language_data): Likewise.
8228         * language.h (language_data): Delete la_sniff_from_mangled_name
8229         field.
8230         (language_defn::sniff_from_mangled_name): New function.
8231         (language_sniff_from_mangled_name): Delete declaration.
8232         * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8233         field.
8234         * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8235         implementation moves to...
8236         (objc_language::sniff_from_mangled_name): ...here.
8237         (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8238         * opencl-lang.c (opencl_language_data): Likewise.
8239         * p-lang.c (pascal_language_data): Likewise.
8240         * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8241         implementation moves to...
8242         (rust_language::sniff_from_mangled_name): ...here.
8243         (rust_language_data): Delete la_sniff_from_mangled_name
8244         initializer.
8245         * symtab.c (symbol_find_demangled_name): Call
8246         sniff_from_mangled_name member function.
8248 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8250         * ada-lang.c (ada_language_data): Delete la_search_name_hash
8251         initializer.
8252         * c-lang.c (c_language_data): Likewise.
8253         (cplus_language_data): Likewise.
8254         (cplus_language::search_name_hash): New member function.
8255         (asm_language_data): Delete la_search_name_hash initializer.
8256         (minimal_language_data): Likewise.
8257         * d-lang.c (d_language_data): Likewise.
8258         * dictionary.c (default_search_name_hash): Rename to...
8259         (language_defn::search_name_hash): ...this.
8260         * f-lang.c (f_language_data): Likewise.
8261         (f_language::search_name_hash): New member function.
8262         * go-lang.c (go_language_data): Delete la_search_name_hash
8263         initializer.
8264         * language.c (unknown_language_data): Likewise.
8265         (auto_language_data): Likewise.
8266         * language.h (struct language_data): Delete la_search_name_hash
8267         field.
8268         (language_defn::search_name_hash): Declare new member function.
8269         (default_search_name_hash): Delete declaration.
8270         * m2-lang.c (m2_language_data): Delete la_search_name_hash
8271         initializer.
8272         * objc-lang.c (objc_language_data): Likewise.
8273         * opencl-lang.c (opencl_language_data): Likewise.
8274         * p-lang.c (pascal_language_data): Likewise.
8275         * rust-lang.c (rust_language_data): Likewise.
8276         * symtab.c (search_name_hash): Update call.
8278 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8280         * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8281         initializer.
8282         * c-lang.c (class compile_instance): Declare.
8283         (c_language_data): Delete la_get_compile_instance initializer.
8284         (c_language::get_compile_instance): New member function.
8285         (cplus_language_data): Delete la_get_compile_instance initializer.
8286         (cplus_language::get_compile_instance): New member function.
8287         (asm_language_data): Delete la_get_compile_instance initializer.
8288         (minimal_language_data): Likewise.
8289         * c-lang.h (c_get_compile_context): Update comment.
8290         (cplus_get_compile_context): Update comment.
8291         * compile/compile.c (compile_to_object): Update calls, don't rely
8292         on function pointer being NULL.
8293         * d-lang.c (d_language_data): Delete la_get_compile_instance
8294         initializer.
8295         * f-lang.c (f_language_data): Likewise.
8296         * go-lang.c (go_language_data): Likewise.
8297         * language.c (unknown_language_data): Likewise.
8298         (auto_language_data): Likewise.
8299         * language.h (language_data): Delete la_get_compile_instance field.
8300         (language_defn::get_compile_instance): New member function.
8301         * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8302         initializer.
8303         * objc-lang.c (objc_language_data): Likewise.
8304         * opencl-lang.c (opencl_language_data): Likewise.
8305         * p-lang.c (pascal_language_data): Likewise.
8306         * rust-lang.c (rust_language_data): Likewise.
8308 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8310         * ada-lang.c (ada_add_all_symbols): Update comment.
8311         (ada_iterate_over_symbols): Delete, move implementation to...
8312         (ada_language::iterate_over_symbols): ...here, a new member
8313         function, rewrite to use range based for loop.
8314         (ada_language_data): Delete la_iterate_over_symbols initializer.
8315         * c-lang.c (c_language_data): Likewise.
8316         (cplus_language_data): Likewise.
8317         (asm_language_data): Likewise.
8318         (minimal_language_data): Likewise.
8319         * d-lang.c (d_language_data): Likewise.
8320         * f-lang.c (f_language_data): Likewise.
8321         * go-lang.c (go_language_data): Likewise.
8322         * language.c (unknown_language_data): Likewise.
8323         (auto_language_data): Likewise.
8324         * language.h (language_data): Delete la_iterate_over_symbols field.
8325         (language_defn::iterate_over_symbols): New member function.
8326         (LA_ITERATE_OVER_SYMBOLS): Update.
8327         * linespec.c (iterate_over_all_matching_symtabs): Update.
8328         * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8329         initializer.
8330         * objc-lang.c (objc_language_data): Likewise.
8331         * opencl-lang.c (opencl_language_data): Likewise.
8332         * p-lang.c (pascal_language_data): Likewise.
8333         * rust-lang.c (rust_language_data): Likewise.
8335 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8337         * ada-lang.c (ada_language_data): Delete
8338         la_lookup_transparent_type initializer.
8339         * c-lang.c (c_language_data): Likewise.
8340         (cplus_language_data): Likewise.
8341         (cplus_language::lookup_transparent_type): New member function.
8342         (asm_language_data): Delete la_lookup_transparent_type
8343         initializer.
8344         (minimal_language_data): Likewise.
8345         * d-lang.c (d_language_data): Likewise.
8346         * f-lang.c (f_language_data): Likewise.
8347         * go-lang.c (go_language_data): Likewise.
8348         * language.c (unknown_language_data): Likewise.
8349         (auto_language_data): Likewise.
8350         * language.h (struct language_data): Delete
8351         la_lookup_transparent_type field.
8352         (language_defn::lookup_transparent_type): New member function.
8353         * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8354         initializer.
8355         * objc-lang.c (objc_language_data): Likewise.
8356         * opencl-lang.c (opencl_language_data): Likewise.
8357         * p-lang.c (pascal_language_data): Likewise.
8358         * rust-lang.c (rust_language_data): Likewise.
8359         * symtab.c (symbol_matches_domain): Update call.
8361 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8363         * ada-lang.c (ada_language_arch_info): Delete function, move
8364         implementation to...
8365         (ada_language::language_arch_info): ...here, a new member
8366         function.
8367         (ada_language_data): Delete la_language_arch_info.
8368         * c-lang.c (c_language_data): Likewise.
8369         (c_language::language_arch_info): New member function.
8370         (cplus_language_arch_info): Delete function, move
8371         implementation to...
8372         (cplus_language::language_arch_info): ...here, a new member
8373         function.
8374         (cplus_language_data): Delete la_language_arch_info.
8375         (asm_language_data): Likewise.
8376         (asm_language::language_arch_info): New member function.
8377         (minimal_language_data): Delete la_language_arch_info.
8378         (minimal_language::language_arch_info): New member function.
8379         * d-lang.c (d_language_arch_info): Delete function, move
8380         implementation to...
8381         (d_language::language_arch_info): ...here, a new member
8382         function.
8383         (d_language_data): Delete la_language_arch_info.
8384         * f-lang.c (f_language_arch_info): Delete function, move
8385         implementation to...
8386         (f_language::language_arch_info): ...here, a new member
8387         function.
8388         (f_language_data): Delete la_language_arch_info.
8389         * go-lang.c (go_language_arch_info): Delete function, move
8390         implementation to...
8391         (go_language::language_arch_info): ...here, a new member
8392         function.
8393         (go_language_data): Delete la_language_arch_info.
8394         * language.c (unknown_language_data): Likewise.
8395         (unknown_language::language_arch_info): New member function.
8396         (auto_language_data): Delete la_language_arch_info.
8397         (auto_language::language_arch_info): New member function.
8398         (language_gdbarch_post_init): Update call to
8399         la_language_arch_info.
8400         * language.h (language_data): Delete la_language_arch_info
8401         function pointer.
8402         (language_defn::language_arch_info): New function.
8403         * m2-lang.c (m2_language_arch_info): Delete function, move
8404         implementation to...
8405         (m2_language::language_arch_info): ...here, a new member
8406         function.
8407         (m2_language_data): Delete la_language_arch_info.
8408         * objc-lang.c (objc_language_arch_info): Delete function, move
8409         implementation to...
8410         (objc_language::language_arch_info): ...here, a new member
8411         function.
8412         (objc_language_data): Delete la_language_arch_info.
8413         * opencl-lang.c (opencl_language_arch_info): Delete function, move
8414         implementation to...
8415         (opencl_language::language_arch_info): ...here, a new member
8416         function.
8417         (opencl_language_data): Delete la_language_arch_info.
8418         * p-lang.c (pascal_language_arch_info): Delete function, move
8419         implementation to...
8420         (pascal_language::language_arch_info): ...here, a new member
8421         function.
8422         (pascal_language_data): Delete la_language_arch_info.
8423         * rust-lang.c (rust_language_arch_info): Delete function, move
8424         implementation to...
8425         (rust_language::language_arch_info): ...here, a new member
8426         function.
8427         (rust_language_data): Delete la_language_arch_info.
8429 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8431         * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8432         initializer.
8433         * c-lang.c (c_language_data): Likewise.
8434         (cplus_language_data): Likewise.
8435         (cplus_language::pass_by_reference_info): New method.
8436         (asm_language_data): Delete la_pass_by_reference initializer.
8437         (minimal_language_data): Likewise.
8438         * cp-abi.c (cp_pass_by_reference): Remove use of
8439         default_pass_by_reference.
8440         * d-lang.c (d_language_data): Likewise.
8441         * f-lang.c (f_language_data): Likewise.
8442         * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8443         default_pass_by_reference.
8444         * go-lang.c (go_language_data): Likewise.
8445         * language.c (language_pass_by_reference): Update.
8446         (default_pass_by_reference): Delete.
8447         (unknown_language_data): Delete la_pass_by_reference
8448         initializer.
8449         (auto_language_data): Likewise.
8450         * language.h (struct language_data): Delete la_pass_by_reference
8451         field.
8452         (language_defn::pass_by_reference_info): New member function.
8453         (default_pass_by_reference): Delete declaration.
8454         * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8455         initializer.
8456         * objc-lang.c (objc_language_data): Likewise.
8457         * opencl-lang.c (opencl_language_data): Likewise.
8458         * p-lang.c (pascal_language_data): Likewise.
8459         * rust-lang.c (rust_language_data): Likewise.
8461 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8463         * ada-lang.c (ada_read_var_value): Delete function, move
8464         implementation to...
8465         (ada_language::read_var_value): ...here.
8466         (ada_language_data): Delete la_read_var_value initializer.
8467         * c-lang.c (c_language_data): Likewise.
8468         (cplus_language_data): Likewise.
8469         (minimal_language_data): Likewise.
8470         * d-lang.c (d_language_data): Likewise.
8471         * f-lang.c (f_language_data): Likewise.
8472         * findvar.c (default_read_var_value): Rename to...
8473         (language_defn::read_var_value): ...this.
8474         * findvar.c (read_var_value): Update header comment, and change to
8475         call member function instead of function pointer.
8476         * go-lang.c (go_language_data): Likewise.
8477         * language.c (unknown_language_data): Delete la_read_var_value
8478         initializer.
8479         (auto_language_data): Likewise.
8480         * language.h (struct language_data): Delete la_read_var_value
8481         field.
8482         (language_defn::read_var_value): New member function.
8483         (default_read_var_value): Delete declaration.
8484         * m2-lang.c (m2_language_data): Delete la_read_var_value
8485         initializer.
8486         * objc-lang.c (objc_language_data): Likewise.
8487         * opencl-lang.c (opencl_language_data): Likewise.
8488         * p-lang.c (pascal_language_data): Likewise.
8489         * rust-lang.c (rust_language_data): Likewise.
8490         * value.h (default_read_var_value): Delete declaration.
8492 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8494         * ada-lang.c (ada_print_array_index): Delete function, move
8495         implementation to...
8496         (ada_language::print_array_index): ...here.
8497         (ada_language_data): Delete la_print_array_index initializer.
8498         * c-lang.c (c_language_data): Likewise.
8499         (cplus_language_data): Likewise.
8500         (minimal_language_data): Likewise.
8501         * d-lang.c (d_language_data): Likewise.
8502         * f-lang.c (f_language_data): Likewise.
8503         * go-lang.c (go_language_data): Likewise.
8504         * language.c (default_print_array_index): Delete function, move
8505         implementation to...
8506         (language_defn::print_array_index): ...here.
8507         (unknown_language_data): Delete la_print_array_index initializer.
8508         (auto_language_data): Likewise.
8509         * language.h (struct language_data): Delete la_print_array_index
8510         field.
8511         (language_defn::print_array_index): New member function.
8512         (LA_PRINT_ARRAY_INDEX): Update.
8513         (default_print_array_index): Delete declaration.
8514         * m2-lang.c (m2_language_data): Delete la_print_array_index
8515         initializer.
8516         * objc-lang.c (objc_language_data): Likewise.
8517         * opencl-lang.c (opencl_language_data): Likewise.
8518         * p-lang.c (pascal_language_data): Likewise.
8519         * rust-lang.c (rust_language_data): Likewise.
8521 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
8523         * gdb/ada-lang.c (ada_language_defn): Convert to...
8524         (ada_language_data): ...this.
8525         (class ada_language): New class.
8526         (ada_language_defn): New static global.
8527         * gdb/c-lang.c (c_language_defn): Convert to...
8528         (c_language_data): ...this.
8529         (class c_language): New class.
8530         (c_language_defn): New static global.
8531         (cplus_language_defn): Convert to...
8532         (cplus_language_data): ...this.
8533         (class cplus_language): New class.
8534         (cplus_language_defn): New static global.
8535         (asm_language_defn): Convert to...
8536         (asm_language_data): ...this.
8537         (class asm_language): New class.
8538         (asm_language_defn): New static global.
8539         (minimal_language_defn): Convert to...
8540         (minimal_language_data): ...this.
8541         (class minimal_language): New class.
8542         (minimal_language_defn): New static global.
8543         * gdb/d-lang.c (d_language_defn): Convert to...
8544         (d_language_data): ...this.
8545         (class d_language): New class.
8546         (d_language_defn): New static global.
8547         * gdb/f-lang.c (f_language_defn): Convert to...
8548         (f_language_data): ...this.
8549         (class f_language): New class.
8550         (f_language_defn): New static global.
8551         * gdb/go-lang.c (go_language_defn): Convert to...
8552         (go_language_data): ...this.
8553         (class go_language): New class.
8554         (go_language_defn): New static global.
8555         * gdb/language.c (unknown_language_defn): Remove declaration.
8556         (current_language): Initialize to nullptr, real initialization is
8557         moved to _initialize_language.
8558         (languages): Delete global.
8559         (language_defn::languages): Define.
8560         (set_language_command): Use language_defn::languages.
8561         (set_language): Likewise.
8562         (range_error): Likewise.
8563         (language_enum): Likewise.
8564         (language_def): Likewise.
8565         (add_set_language_command): Use language_def::languages for the
8566         language list, and language_def to lookup language pointers.
8567         (skip_language_trampoline): Use language_defn::languages.
8568         (unknown_language_defn): Convert to...
8569         (unknown_language_data): ...this.
8570         (class unknown_language): New class.
8571         (unknown_language_defn): New static global.
8572         (auto_language_defn): Convert to...
8573         (auto_language_data): ...this.
8574         (class auto_language): New class.
8575         (auto_language_defn): New static global.
8576         (language_gdbarch_post_init): Use language_defn::languages.
8577         (_initialize_language): Initialize current_language.
8578         * gdb/language.h (struct language_defn): Rename to...
8579         (struct language_data): ...this.
8580         (struct language_defn): New.
8581         (auto_language_defn): Delete.
8582         (unknown_language_defn): Delete.
8583         (minimal_language_defn): Delete.
8584         (ada_language_defn): Delete.
8585         (asm_language_defn): Delete.
8586         (c_language_defn): Delete.
8587         (cplus_language_defn): Delete.
8588         (d_language_defn): Delete.
8589         (f_language_defn): Delete.
8590         (go_language_defn): Delete.
8591         (m2_language_defn): Delete.
8592         (objc_language_defn): Delete.
8593         (opencl_language_defn): Delete.
8594         (pascal_language_defn): Delete.
8595         (rust_language_defn): Delete.
8596         * gdb/m2-lang.c (m2_language_defn): Convert to...
8597         (m2_language_data): ...this.
8598         (class m2_language): New class.
8599         (m2_language_defn): New static global.
8600         * gdb/objc-lang.c (objc_language_defn): Convert to...
8601         (objc_language_data): ...this.
8602         (class objc_language): New class.
8603         (objc_language_defn): New static global.
8604         * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8605         (opencl_language_data): ...this.
8606         (class opencl_language): New class.
8607         (opencl_language_defn): New static global.
8608         * gdb/p-lang.c (pascal_language_defn): Convert to...
8609         (pascal_language_data): ...this.
8610         (class pascal_language): New class.
8611         (pascal_language_defn): New static global.
8612         * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8613         language pointer, update comment format.
8614         * gdb/rust-lang.c (rust_language_defn): Convert to...
8615         (rust_language_data): ...this.
8616         (class rust_language): New class.
8617         (rust_language_defn): New static global.
8619 2020-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
8621         * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8622         member variable.
8623         <m_stmt_at_address>: New member variable.
8624         (lnp_state_machine::record_line): Don't record some lines, update
8625         tracking of is_stmt at the same address.
8626         (lnp_state_machine::lnp_state_machine): Initialise new member
8627         variables.
8629 2020-06-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8631         * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8632         "-include gnu-nat-mig.h".
8633         * gnu-nat-mig.h: New file.
8634         * gnu-nat.c: Include "gnu-nat-mig.h".
8635         (exc_server, msg_reply_server, notify_server,
8636         process_reply_server): Remove declarations.
8638 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8640         * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8641         steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8642         inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8643         inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8644         inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8645         inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8646         inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8647         proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8648         proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8649         to gnu_nat_target class.
8650         * gnu-nat.c: Likewise.
8651         (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8652         set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8653         set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8654         object.
8655         (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8656         instead of `gnu_target'.
8658 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8660         * i386-gnu-tdep.c: Include "gdbcore.h"
8661         (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8662         (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8663         I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8664         (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8665         i386_gnu_sigcontext_addr): New functions
8666         (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8667         i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8668         tdep.
8670 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8672         * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8673         before fork_inferior call. Avoid calling it if target_is_pushed returns
8674         true.
8676 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8678         * gnu-nat.h (gnu_target): New variable declaration.
8679         * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8680         gnu_target.
8681         * gnu-nat.c (gnu_target): New variable.
8682         (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8683         add_thread_silent, and add_thread calls.
8684         (gnu_nat_target::create_inferior): Pass gnu_target to
8685         add_thread_silent, thread_change_ptid call.
8686         (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8687         call.
8689 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8691         * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8692         (gnu_nat_target::find_memory_regions): Remove unused
8693         `old_address' variable.
8695 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8697         * gnu-nat.c: Include "gdbarch.h".
8699 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8701         * reply_mig_hack.awk (Error return): Cast function through
8702         void *, to bypass compiler function call check.
8704 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8706         * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8707         $(srcdir)/reply_mig_hack.awk.
8709 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8711         * gnu-nat.h (gnu_debug_flag): Set type to bool.
8713 2020-05-30  Jonny Grant  <jg@jguk.org>
8715         * configure.ac (ACX_BUGURL): change bug URL to https.
8717 2020-05-30  Pedro Alves  <palves@redhat.com>
8719         * cp-support.c (replace_typedefs_template): New.
8720         (replace_typedefs_qualified_name): Handle
8721         DEMANGLE_COMPONENT_TEMPLATE.
8723 2020-05-29  Simon Marchi  <simon.marchi@efficios.com>
8725         * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8726         dwarf2/index-cache.h, dwarf2/index-write.c,
8727         dwarf2/index-write.h, dwarf2/line-header.c,
8728         dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8729         dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8730         variables and fields from `dwarf2_per_objfile` to just
8731         `per_objfile` throughout.
8733 2020-05-28  Simon Marchi  <simon.marchi@polymtl.ca>
8735         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8736         <push_dwarf_reg_entry_value>: Add comment.
8738 2020-05-28  Kevin Buettner  <kevinb@redhat.com>
8739             Keith Seitz  <keiths@redhat.com>
8741         * python/python.c (do_start_initialization): Call PyEval_SaveThread
8742         instead of PyEval_ReleaseLock.
8743         (class gdbpy_gil): Move to earlier in file.
8744         (finalize_python): Set gdb_python_initialized.
8745         (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil.  Return early
8746         when not initialized.
8748 2020-05-28  Simon Marchi  <simon.marchi@efficios.com>
8750         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8751         <push_dwarf_reg_entry_value>: Remove assert.  Override
8752         per_objfile with caller_per_objfile.
8754 2020-05-28  Tom de Vries  <tdevries@suse.de>
8756         * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8757         PR gold/15646 workaround to symbol kind "type".
8759 2020-05-27  Tom Tromey  <tromey@adacore.com>
8761         * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8763 2020-05-27  Tom Tromey  <tromey@adacore.com>
8765         * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8766         Use htab_find_with_hash.
8767         <add_abbrev>: Remove "abbrev_number" parameter.
8768         * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8769         "abbrev_number" parameter.  Use htab_find_slot_with_hash.
8770         (hash_abbrev): Add comment.
8771         (abbrev_table::lookup_abbrev): Move to header file.
8772         (abbrev_table::read): Update.
8774 2020-05-27  Tom Tromey  <tromey@adacore.com>
8776         * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8777         method.
8778         <canonical_name>: New member.
8779         <raw_name>: Rename from "name".
8780         (partial_die_info): Initialize canonical_name.
8781         (scan_partial_symbols): Check raw_name.
8782         (partial_die_parent_scope, partial_die_full_name)
8783         (add_partial_symbol, add_partial_subprogram)
8784         (add_partial_enumeration, load_partial_dies): Use "name" method.
8785         (partial_die_info::name): New method.
8786         (partial_die_info::read, guess_partial_die_structure_name)
8787         (partial_die_info::fixup): Update.
8789 2020-05-27  Tom Tromey  <tromey@adacore.com>
8791         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8792         <get_ref_die_offset>: Inline.
8793         <get_ref_die_offset_complaint>: New method.
8794         * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8795         (attribute::get_ref_die_offset_complaint): Rename from
8796         get_ref_die_offset.  Just issue complaint.
8798 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8800         * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8802 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8804         * exec.c (exec_file_attach): Use errno value of first openp failure.
8806 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
8808         * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8809         Don't close thread handle.
8811 2020-05-27  Tom Tromey  <tom@tromey.com>
8812             Simon Marchi  <simon.marchi@efficios.com>
8814         * objfiles.h (struct objfile) <partial_symtabs>: Now a
8815         shared_ptr.
8816         * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8817         member.
8818         * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8819         dwarf2_per_bfd_objfile_data_key>: New globals.
8820         (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8821         (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8822         (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8823         shared.
8824         (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8825         short-circuit when sharing.
8826         (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8827         (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8829 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8831         * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8832         to...
8833         (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8834         * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8836 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8838         * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8839         build_name_components, find_name_components_bounds>:
8840         Add per_objfile parameter.
8841         (struct mapped_index) <symbol_name_at>: Likewise.
8842         (struct mapped_debug_names): Remove constructor.
8843         <dwarf2_per_objfile>: Remove field.
8844         <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8845         (mapped_index_base::find_name_components_bounds,
8846         mapped_index_base::build_name_components,
8847         dw2_expand_symtabs_matching_symbol): Likewise.
8848         (class mock_mapped_index) <symbol_name_at>: Likewise.
8849         (check_match): Likewise.
8850         (check_find_bounds_finds): Likewise.
8851         (test_mapped_index_find_name_component_bounds): Update.
8852         (CHECK_MATCH): Update.
8853         (dw2_expand_symtabs_matching): Update.
8854         (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8855         per_objfile parameter.
8856         <find_vec_in_debug_names>: Likewise.
8857         <m_per_objfile>: New field.
8858         (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8859         parameter.
8860         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8861         (dw2_debug_names_iterator::next): Update.
8862         (dw2_debug_names_lookup_symbol): Update.
8863         (dw2_debug_names_expand_symtabs_for_function): Update.
8864         (dw2_debug_names_map_matching_symbols): Update.
8865         (dw2_debug_names_expand_symtabs_matching): Update.
8866         (dwarf2_read_debug_names): Update.
8868 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8870         * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8871         (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8872         move to dwarf2_per_objfile.
8873         <read_in_chain>: Remove.
8874         (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8875         remove_all_cus, age_comp_units>: New methods.
8876         <m_dwarf2_cus>: New member.
8877         (struct dwarf2_per_cu_data) <cu>: Remove.
8878         * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8879         (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8880         moved to methods of dwarf2_per_objfile.
8881         (dwarf2_clear_marks): Remove.
8882         (dwarf2_queue_item::~dwarf2_queue_item): Update.
8883         (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8884         (dwarf2_per_bfd::free_cached_comp_units): Remove.
8885         (dwarf2_per_objfile::remove_all_cus): New.
8886         (class free_cached_comp_units) <~free_cached_comp_units>:
8887         Update.
8888         (load_cu): Update.
8889         (dw2_do_instantiate_symtab): Adjust.
8890         (fill_in_sig_entry_from_dwo_entry): Adjust.
8891         (cutu_reader::init_tu_and_read_dwo_dies): Update.
8892         (cutu_reader::cutu_reader): Likewise.
8893         (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8894         (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8895         (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8896         and dwarf2_per_objfile::age_comp_units.
8897         (load_partial_comp_unit): Update.
8898         (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8899         (process_queue): Likewise.
8900         (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8901         backlink.
8902         (dwarf2_read_addr_index): Likewise.
8903         (follow_die_offset): Likewise.
8904         (dwarf2_fetch_die_loc_sect_off): Likewise.
8905         (dwarf2_fetch_constant_bytes): Likewise.
8906         (dwarf2_fetch_die_type_sect_off): Likewise.
8907         (follow_die_sig_1): Likewise.
8908         (load_full_type_unit): Likewise.
8909         (read_signatured_type): Likewise.
8910         (dwarf2_cu::dwarf2_cu): Don't set cu field.
8911         (dwarf2_cu::~dwarf2_cu): Remove.
8912         (dwarf2_per_objfile::get_cu): New.
8913         (dwarf2_per_objfile::set_cu): New.
8914         (age_cached_comp_units): Rename to...
8915         (dwarf2_per_objfile::age_comp_units): ... this.  Adjust
8916         to std::unordered_map.
8917         (free_one_cached_comp_unit): Rename to...
8918         (dwarf2_per_objfile::remove_cu): ... this.  Adjust
8919         to std::unordered_map.
8920         (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8921         (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8922         a dwarf2_per_objfile in data.
8923         (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8924         (dwarf2_clear_marks): Remove.
8926 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
8928         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8929         `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8930         (init_tu_and_read_dwo_dies): Likewise.
8931         (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8932         (cutu_reader::cutu_reader): Likewise.
8933         (load_partial_comp_unit): Likewise.
8934         (process_psymtab_comp_unit): Update.
8935         (build_type_psymtabs_1): Update.
8936         (process_skeletonless_type_unit): Update.
8937         (load_full_comp_unit): Update.
8938         (find_partial_die): Update.
8939         (dwarf2_read_addr_index): Update.
8940         (read_signatured_type): Update.
8942 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8944         * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8945         m_header_read_in>: New fields.
8946         <get_header>: New method.
8947         * dwarf2/read.c (per_cu_header_read_in): Remove.
8948         (dwarf2_per_cu_data::get_header): New.
8949         (dwarf2_per_cu_data::addr_size): Update.
8950         (dwarf2_per_cu_data::offset_size): Update.
8951         (dwarf2_per_cu_data::ref_addr_size): Update.
8953 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8955         * dwarf2/read.c (load_cu): Return dwarf2_cu.
8956         (dw2_do_instantiate_symtab): Update.
8957         (queue_and_load_all_dwo_tus): Change parameter from
8958         dwarf2_per_cu_data to dwarf2_cu.
8959         (dwarf2_fetch_die_loc_sect_off): Update.
8960         (dwarf2_fetch_constant_bytes): Update.
8961         (dwarf2_fetch_die_type_sect_off): Update.
8963 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8965         * dwarf2/read.c (process_full_comp_unit,
8966         process_full_type_unit): Remove per_cu, per_objfile paramters.
8967         Add dwarf2_cu parameter.
8968         (process_queue): Update.
8970 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
8972         * dwarf2/read.c (create_cu_from_index_list): Replace
8973         dwarf2_per_objfile parameter with dwarf2_per_bfd.
8974         (create_cus_from_index_list): Likewise.
8975         (create_cus_from_index): Likewise.
8976         (create_signatured_type_table_from_index): Likewise.
8977         (create_cus_from_debug_names_list): Likewise.
8978         (create_cus_from_debug_names): Likewise.
8979         (dwarf2_read_gdb_index): Update.
8980         (dwarf2_read_debug_names): Update.
8982 2020-05-27  Tom Tromey  <tom@tromey.com>
8983             Simon Marchi  <simon.marchi@efficios.com>
8985         * dwarf2/read.h (struct dwarf2_per_objfile)
8986         <get_type_for_signatured_type, set_type_for_signatured_type>:
8987         New methods.
8988         <m_type_map>: New member.
8989         (struct signatured_type) <type>: Remove.
8990         * dwarf2/read.c
8991         (dwarf2_per_objfile::get_type_for_signatured_type,
8992         dwarf2_per_objfile::set_type_for_signatured_type): New.
8993         (get_signatured_type): Use new methods.
8995 2020-05-27  Tom Tromey  <tom@tromey.com>
8996             Simon Marchi  <simon.marchi@efficios.com>
8998         * dwarf2/read.h (struct type_unit_group_unshareable): New.
8999         (struct dwarf2_per_objfile) <type_units>: New member.
9000         <get_type_unit_group_unshareable>: New method.
9001         * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9002         num_symtabs, symtabs>: Remove; move to
9003         type_unit_group_unshareable.
9004         (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9005         (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9006         (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9008 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9010         * dwarf2/read.h (struct dwarf2_per_cu_data):
9011         <dwarf2_per_objfile>: Remove.
9012         * dwarf2/read.c (create_cu_from_index_list): Don't assign
9013         dwarf2_per_objfile.
9014         (create_signatured_type_table_from_index): Likewise.
9015         (create_signatured_type_table_from_debug_names): Likewise.
9016         (create_debug_type_hash_table): Likewise.
9017         (fill_in_sig_entry_from_dwo_entry): Likewise.
9018         (create_type_unit_group): Likewise.
9019         (read_comp_units_from_section): Likewise.
9020         (create_cus_hash_table): Likewise.
9022 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9024         * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9025         dwarf2_per_cu_data::dwarf2_per_objfile.
9026         (compute_compunit_symtab_includes): Likewise.
9027         (dwarf2_cu::start_symtab): Likewise.
9029 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9031         * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9032         parameter.
9033         * dwarf2/read.c (get_die_type_at_offset): Likewise.
9034         (read_namespace_alias): Update.
9035         (lookup_die_type): Update.
9036         (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9037         * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9038         Update.
9039         (disassemble_dwarf_expression): Update.
9041 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9043         * dwarf2/read.h (struct dwarf2_queue_item): Add
9044         dwarf2_per_objfile parameter, assign new parameter.
9045         <per_objfile>: New field.
9046         * dwarf2/read.c (free_one_cached_comp_unit): Add
9047         dwarf2_per_objfile parameter.
9048         (queue_comp_unit): Likewise.
9049         (dw2_do_instantiate_symtab): Update.
9050         (process_psymtab_comp_unit): Update.
9051         (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9052         (process_imported_unit_die): Update.
9053         (queue_and_load_dwo_tu): Update.
9054         (follow_die_offset): Update.
9055         (follow_die_sig_1): Update.
9057 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9059         * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9060         * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9061         (read_call_site_scope): Assign per_objfile.
9062         (dwarf2_per_cu_data::objfile): Remove.
9063         * gdbtypes.h (struct call_site) <per_objfile>: New member.
9064         * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9065         dwarf2_per_objfile parameter.
9066         * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9067         dwarf2_per_objfile parameter.
9068         (dwarf_expr_reg_to_entry_parameter): Add output
9069         dwarf2_per_objfile parameter.
9070         (locexpr_get_frame_base): Update.
9071         (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9072         <push_dwarf_reg_entry_value>: Update.
9073         <call_site_to_target_addr>: Update.
9074         (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9075         parameter.
9076         (value_of_dwarf_reg_entry): Update.
9077         (rw_pieced_value): Update.
9078         (indirect_synthetic_pointer): Update.
9079         (dwarf2_evaluate_property): Update.
9080         (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9081         parameter.
9082         (locexpr_read_variable): Update.
9083         (locexpr_get_symbol_read_needs): Update.
9084         (loclist_read_variable): Update.
9086 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9088         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9089         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9090         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9091         parameter.
9092         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9093         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9094         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9095         parameter.
9096         * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9097         sect_variable_value): Add dwarf2_per_objfile parameter.
9098         (class dwarf_evaluate_loc_desc) <dwarf_call,
9099         dwarf_variable_value>: Update.
9100         (fetch_const_value_from_synthetic_pointer): Add
9101         dwarf2_per_objfile parameter.
9102         (fetch_const_value_from_synthetic_pointer): Update.
9103         (coerced_pieced_ref): Update.
9104         (class symbol_needs_eval_context) <dwarf_call,
9105         dwarf_variable_value>: Update.
9106         (dwarf2_compile_expr_to_ax): Update.
9108 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9110         * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9111         parameter.
9112         (dwarf2_evaluate_loc_desc_full): Update.
9114 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9116         * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9117         parameter.
9118         * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9119         * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9120         dwarf2_per_objfile parameter.
9121         (decode_debug_loc_dwo_addresses): Likewise.
9122         (dwarf2_find_location_expression): Update.
9123         (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9124         (locexpr_describe_location_piece): Add dwarf2_per_objfile
9125         parameter.
9126         (disassemble_dwarf_expression): Add dwarf2_per_objfile
9127         parameter.
9128         (locexpr_describe_location_1): Likewise.
9129         (locexpr_describe_location): Update.
9131 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9133         * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9134         Remove.
9135         * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9136         * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9137         (dwarf2_compile_property_to_c): Update.
9138         (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9139         use text offset from objfile.
9140         (locexpr_tracepoint_var_ref): Update.
9141         (locexpr_generate_c_location): Update.
9142         (loclist_describe_location): Update.
9143         (loclist_tracepoint_var_ref): Update.
9144         * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9145         dwarf2_per_objfile parameter.
9146         * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9147         use text offset from objfile.
9148         (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9150 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9152         * dwarf2/expr.h (struct dwarf_expr_context)
9153         <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9154         <offset>: Remove.
9155         <per_objfile>: New member.
9156         * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9157         dwarf2_per_objfile parameter.  Don't set offset, set
9158         per_objfile.
9159         (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9160         * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9161         a dwarf2_per_objfile object instead of an offset.
9162         (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9163         constructor.
9164         (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9165         to dwarf2_expr_executor constructor.  Don't set offset.
9166         (dwarf2_fetch_cfa_info): Update.
9167         (struct dwarf2_frame_cache) <text_offset>: Remove.
9168         <per_objfile>: New field.
9169         (dwarf2_frame_cache): Update.
9170         (dwarf2_frame_prev_register): Update.
9171         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9172         <dwarf_evaluate_loc_desc>: Add constructor.
9173         (dwarf2_evaluate_loc_desc_full): Update.
9174         (dwarf2_locexpr_baton_eval): Update.
9175         (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9176         Add constructor.
9177         (dwarf2_loc_desc_get_symbol_read_needs): Update.
9179 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9181         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9182         addr_sized_int_type>: Move to dwarf2_cu.
9183         <int_type>: Move to dwarf2_per_objfile.
9184         (struct dwarf2_per_objfile) <int_type>: Move here.
9185         * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9186         addr_sized_int_type>: Move here.
9187         (read_func_scope): Update.
9188         (read_array_type): Update.
9189         (read_tag_string_type): Update.
9190         (attr_to_dynamic_prop): Update.
9191         (dwarf2_per_cu_data::int_type): Rename to...
9192         (dwarf2_per_objfile::int_type): ... this.
9193         (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9194         (dwarf2_cu::addr_sized_int_type): ... this.
9195         (read_subrange_type): Update.
9196         (dwarf2_per_cu_data::addr_type): Rename to...
9197         (dwarf2_cu::addr_type): ... this.
9198         (set_die_type): Update.
9200 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9202         * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9203         data through per_cu->cu.
9205 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9207         * dwarf2/read.c (lookup_dwo_comp_unit): Change
9208         dwarf2_per_cu_data parameter fo dwarf2_cu.
9209         (lookup_dwo_type_unit): Likewise.
9210         (read_cutu_die_from_dwo): Likewise.
9211         (lookup_dwo_unit): Likewise.
9212         (open_and_init_dwo_file): Likewise.
9213         (lookup_dwo_cutu): Likewise.
9214         (lookup_dwo_comp_unit): Likewise.
9215         (lookup_dwo_type_unit): Likewise.
9216         (cutu_reader::init_tu_and_read_dwo_dies): Update.
9217         (cutu_reader::cutu_reader): Update.
9219 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9221         * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9222         parameter.
9223         (process_full_type_unit): Likewise.
9224         (process_queue): Update.
9226 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9228         * dwarf2/read.c (recursively_compute_inclusions): Add
9229         dwarf2_per_objfile parameter.
9230         (compute_compunit_symtab_includes): Likewise.
9231         (process_cu_includes): Update.
9233 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9235         * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9236         parameter.
9237         (create_type_unit_group): Update.
9238         (process_psymtab_comp_unit_reader): Update.
9239         (build_type_psymtabs_reader): Update.
9241 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9243         * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9244         object through m_this_cu->cu.
9246 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9248         * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9249         the info parameter.
9250         (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9252 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9254         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9255         per_objfile parameter.
9256         (load_full_type_unit): Add per_objfile parameter.
9257         (read_signatured_type): Likewise.
9258         (load_full_comp_unit): Likewise.
9259         (load_cu): Likewise.
9260         (dw2_do_instantiate_symtab): Likewise.
9261         (dw2_get_file_names): Likewise.
9262         (dw2_map_symtabs_matching_filename): Update.
9263         (dw_expand_symtabs_matching_file_matcher): Update.
9264         (dw2_map_symbol_filenames): Update.
9265         (process_psymtab_comp_unit): Add per_objfile parameter.
9266         (build_type_psymtabs_1): Update.
9267         (process_skeletonless_type_unit): Update.
9268         (dwarf2_build_psymtabs_hard): Update.
9269         (load_partial_comp_unit): Add per_objfile parameter.
9270         (scan_partial_symbols): Update.
9271         (load_full_comp_unit): Add per_objfile parameter.
9272         (process_imported_unit_die): Update.
9273         (create_cus_hash_table): Update.
9274         (find_partial_die): Update.
9275         (dwarf2_read_addr_index): Update.
9276         (follow_die_offset): Update.
9277         (dwarf2_fetch_die_loc_sect_off): Update.
9278         (dwarf2_fetch_constant_bytes): Update.
9279         (dwarf2_fetch_die_type_sect_off): Update.
9280         (follow_die_sig_1): Update.
9281         (load_full_type_unit): Add per_objfile parameter.
9282         (read_signatured_type): Likewise.
9284 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9286         * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9287         of objfile_name.
9289 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9291         * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9292         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9293         * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9294         field.
9295         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9296         (create_cus_from_index): Update.
9297         (dwarf2_read_gdb_index): Update.
9298         (create_cus_from_debug_names): Update.
9299         (dwarf2_read_debug_names): Update.
9300         (get_abbrev_section_for_cu): Update.
9301         (create_all_comp_units): Update.
9302         (read_attribute_value): Update.
9303         (get_debug_line_section): Update.
9304         * dwarf2/index-cache.c (index_cache::store): Update.
9305         * dwarf2/index-write.c (save_gdb_index_command): Update.
9306         * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9308 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9310         * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9311         member.
9312         * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9313         dwarf2_per_cu_data::per_bfd.
9314         (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9315         (create_type_unit_group): Likewise.
9316         (queue_comp_unit): Remove reference to
9317         per_cu->dwarf2_per_objfile.
9318         (maybe_queue_comp_unit): Likewise.
9319         (fill_in_sig_entry_from_dwo_entry): Assign new field.
9320         (create_cus_hash_table): Assign new field.
9322 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9324         * dwarf2/read.c: Replace
9325         dwarf2_cu->per_cu->dwarf2_per_objfile references with
9326         dwarf2_cu->per_objfile throughout.
9328 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9330         * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9331         parameter, don't use per_cu->dwarf2_per_objfile.
9332         (dw2_instantiate_symtab): Likewise.
9333         (dw2_find_last_source_symtab): Update.
9334         (dw2_map_expand_apply): Update.
9335         (dw2_lookup_symbol): Update.
9336         (dw2_expand_symtabs_for_function): Update.
9337         (dw2_expand_all_symtabs): Update.
9338         (dw2_expand_symtabs_with_fullname): Update.
9339         (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9340         don't use per_cu->dwarf2_per_objfile.
9341         (dw2_expand_marked_cus): Update.
9342         (dw2_find_pc_sect_compunit_symtab): Update.
9343         (dw2_debug_names_lookup_symbol): Update.
9344         (dw2_debug_names_expand_symtabs_for_function): Update.
9345         (dw2_debug_names_map_matching_symbols): Update.
9346         (dwarf2_psymtab::expand_psymtab): Update.
9348 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9350         * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9351         <per_objfile>: New member.
9352         (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9353         (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9354         call to dwarf2_cu.
9355         (cutu_reader::cutu_reader): Update.
9356         (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9358 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
9360         * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9361         struct dwarf2_per_objfile.
9362         (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9363         dwarf2_per_bfd.
9364         * dwarf2/read.c (set_die_type): Update.
9365         (get_die_type_at_offset): Update.
9367 2020-05-27  Tom Tromey  <tom@tromey.com>
9368             Simon Marchi  <simon.marchi@efficios.com>
9370         * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9371         method.
9372         (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9373         get_symtab, set_symtab>: New methods.
9374         <m_symtabs>: New field.
9375         (struct dwarf2_psymtab): Derive from partial_symtab.
9376         <readin_p, get_compunit_symtab>: Declare methods.
9377         * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9378         dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9379         New methods.
9380         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9381         (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9382         (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9383         (dw2_symtab_iter_next, dw2_print_stats)
9384         (dw2_expand_symtabs_with_fullname)
9385         (dw2_expand_symtabs_matching_one)
9386         (dw_expand_symtabs_matching_file_matcher)
9387         (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9388         (dw2_debug_names_iterator::next)
9389         (dw2_debug_names_map_matching_symbols)
9390         (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9391         (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9392         (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9393         New methods.
9394         (get_compunit_symtab, process_full_comp_unit)
9395         (process_full_type_unit): Update.
9396         (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9398 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
9400         * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9401         then introduce a new dwarf2_per_objfile type.
9402         <read_line_string>: Move to the new dwarf2_per_objfile type.
9403         <objfile>: Likewise.
9404         (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9405         * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9406         dwarf2_per_objfile->per_bfd.
9407         (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9408         (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9409         (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9410         (dwarf2_per_bfd::free_cached_comp_units): ... this.
9411         (dwarf2_has_info): Allocate dwarf2_per_bfd.
9412         (dwarf2_per_objfile::locate_sections): Rename to...
9413         (dwarf2_per_bfd::locate_sections): ... this.
9414         (dwarf2_per_objfile::get_cutu): Rename to...
9415         (dwarf2_per_bfd::get_cutu): ... this.
9416         (dwarf2_per_objfile::get_cu): Rename to...
9417         (dwarf2_per_bfd::get_cu): ... this.
9418         (dwarf2_per_objfile::get_tu): Rename to...
9419         (dwarf2_per_bfd::get_tu): ... this.
9420         (dwarf2_per_objfile::allocate_per_cu): Rename to...
9421         (dwarf2_per_bfd::allocate_per_cu): ... this.
9422         (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9423         (dwarf2_per_bfd::allocate_signatured_type): ... this.
9424         (get_gdb_index_contents_ftype): Change parameter from
9425         dwarf2_per_objfile to dwarf2_per_bfd.
9426         * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9427         dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9429 2020-05-27  Tom Tromey  <tom@tromey.com>
9430             Simon Marchi  <simon.marchi@efficios.com>
9432         * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9433         (allocate_piece_closure): Set "per_objfile" member.
9434         (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9435         (locexpr_describe_location, loclist_describe_location): Use new
9436         member.
9437         * dwarf2/read.c (read_call_site_scope)
9438         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9439         (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9440         (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9441         handle_data_member_location): Set per_objfile member.
9442         * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9443         member.
9444         (struct dwarf2_loclist_baton) <per_objfile>: New member.
9446 2020-05-27  Tom Tromey  <tom@tromey.com>
9448         * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9449         allocate_signatured_type>: Declare new methods.
9450         <m_num_psymtabs>: New member.
9451         (struct dwarf2_per_cu_data) <index>: New member.
9452         * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9453         (dwarf2_per_objfile::allocate_signatured_type): New methods.
9454         (create_cu_from_index_list): Use allocate_per_cu.
9455         (create_signatured_type_table_from_index)
9456         (create_signatured_type_table_from_debug_names)
9457         (create_debug_type_hash_table, add_type_unit)
9458         (read_comp_units_from_section): Use allocate_signatured_type.
9460 2020-05-27  Tom Tromey  <tom@tromey.com>
9462         * psymtab.c (partial_map_expand_apply)
9463         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9464         (psym_lookup_global_symbol_language)
9465         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9466         (psym_print_stats, psym_expand_symtabs_for_function)
9467         (psym_map_symbol_filenames, psym_map_matching_symbols)
9468         (psym_expand_symtabs_matching)
9469         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9470         (maintenance_check_psymtabs): Update.
9471         * psympriv.h (struct partial_symtab) <readin_p,
9472         get_compunit_symtab>: Add objfile parameter.
9473         (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9474         Likewise.
9475         * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9476         get_compunit_symtab>: Likewise.
9477         (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9479 2020-05-27  Tom Tromey  <tom@tromey.com>
9481         * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9482         member.
9483         * dwarf2/read.c (delete_file_name_entry): Fix comment.
9484         (create_cu_from_index_list)
9485         (create_signatured_type_table_from_index)
9486         (create_signatured_type_table_from_debug_names)
9487         (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9488         (dwarf2_create_include_psymtab)
9489         (create_debug_type_hash_table, add_type_unit)
9490         (create_type_unit_group, read_comp_units_from_section)
9491         (dwarf2_compute_name, create_cus_hash_table)
9492         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9493         (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9494         obstack.
9495         (dw2_get_real_path): Likewise.  Change argument to
9496         dwarf2_per_objfile.
9498 2020-05-27  Luis Machado  <luis.machado@linaro.org>
9500         PR tdep/26000
9501         * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9502         for ldrd (immediate).
9504 2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9506         * command.h: Add comment giving the name of class_tui.
9507         * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9508         create the fake command for the help for class_tui.
9510 2020-05-26  Tom Tromey  <tromey@adacore.com>
9512         * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
9513         (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9514         (val_atr): New function.
9515         (value_val_atr): Use it.
9516         * ada-valprint.c (print_optional_low_bound): Change low bound
9517         handling for enums.
9518         (val_print_packed_array_elements): Don't call discrete_position.
9519         * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9520         discrete_position for enum types.
9521         * language.c (default_print_array_index): Change type.
9522         * language.h (struct language_defn) <la_print_array_index>: Add
9523         index_type parameter, change type of index_value.
9524         (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9525         (default_print_array_index): Update.
9526         * valprint.c (maybe_print_array_index): Don't call
9527         value_from_longest.  Update.
9528         (value_print_array_elements): Don't call discrete_position.
9530 2020-05-26  Tom Tromey  <tromey@adacore.com>
9532         * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9533         * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9535 2020-05-25  Cristiano De Alti  <cristiano_dealti@hotmail.com>
9537         PR gdb/13519
9538         * avr-tdep.c (avr_integer_to_address): Return data or code
9539         address accordingly to the second 'type' argument of the
9540         function.
9542 2020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
9544         * infcmd.c, inferior.h: (construct_inferior_arguments):
9545         Moved function from here to gdbsupport/common-inferior.{h,cc}
9547 2020-05-23  Tom Tromey  <tom@tromey.com>
9549         Revert commit eca1f90c:
9550         * NEWS: Remove entry for completion styling.
9551         * completer.c (_rl_completion_prefix_display_length): Move
9552         declaration later.
9553         (gdb_fnprint): Revert.
9554         (gdb_display_match_list_1): Likewise.
9555         * cli/cli-style.c (completion_prefix_style)
9556         (completion_difference_style, completion_suffix_style): Remove.
9557         (_initialize_cli_style): Revert.
9558         * cli/cli-style.h (completion_prefix_style)
9559         (completion_difference_style, completion_suffix_style): Don't
9560         declare.
9562 2020-05-24  Pedro Alves  <palves@redhat.com>
9564         * symtab.c (completion_list_add_name): Return boolean indication
9565         of whether the symbol matched.
9566         (completion_list_add_symbol): Don't try to remove C++ aliases if
9567         the symbol didn't match in the first place.
9568         * symtab.h (completion_list_add_name): Return bool.
9570 2020-05-23  Simon Marchi  <simon.marchi@polymtl.ca>
9572         * gdbtypes.h (TYPE_FIELD): Remove.  Replace all uses with
9573         type::field.
9575 2020-05-23  Joel Brobecker  <brobecker@adacore.com>
9577         GDB 9.2 released.
9579 2020-05-23  Tom Tromey  <tom@tromey.com>
9581         * NEWS: Add entry for completion styling.
9582         * completer.c (_rl_completion_prefix_display_length): Move
9583         declaration earlier.
9584         (gdb_fnprint): Use completion_style.
9585         (gdb_display_match_list_1): Likewise.
9586         * cli/cli-style.c (completion_prefix_style)
9587         (completion_difference_style, completion_suffix_style): New
9588         globals.
9589         (_initialize_cli_style): Register new globals.
9590         * cli/cli-style.h (completion_prefix_style)
9591         (completion_difference_style, completion_suffix_style): Declare.
9593 2020-05-23  Pedro Alves  <palves@redhat.com>
9595         * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9596         (parse_escape): Use ISDIGIT instead of isdigit.
9597         (puts_debug): Use gdb_isprint instead of isprint.
9598         (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9599         (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9600         ISSPACE instead of isspace.
9601         (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9602         instead of isspace.
9603         (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9604         (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9605         instead of isxdigit and ISDIGIT instead of isdigit.
9607 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9609         * gdbtypes.h (struct type) <field>: New method.
9610         (TYPE_FIELDS): Remove, replace all uses with either type::fields
9611         or type::field.
9613 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9615         * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9616         (TYPE_FIELDS): Use type::fields.  Change all call sites that
9617         modify the propery to use type::set_fields instead.
9619 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9621         * gdbtypes.h (TYPE_NFIELDS): Remove.  Change all cal sites to use
9622         type::num_fields instead.
9624 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
9626         * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9627         methods.
9628         (TYPE_NFIELDS): Use type::num_fields.  Change all call sites
9629         that modify the number of fields to use type::set_num_fields
9630         instead.
9632 2020-05-22  Tom Tromey  <tromey@adacore.com>
9634         * compile/compile-object-load.h (munmap_list_free): Don't
9635         declare.
9637 2020-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
9639         * annotate.c (annotate_source_line): Update return type, add call
9640         to update current symtab and line.
9641         * annotate.h (annotate_source_line): Update return type, and
9642         extend header comment.
9643         * source.c (info_line_command): Check annotation_level before
9644         calling annotate_source_line.
9645         * stack.c (print_frame_info): If calling annotate_source_line
9646         returns true, then don't print any other source line information.
9648 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
9650         * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9652 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
9654         * coffread.c (patch_type): Remove NULL check before xfree.
9655         * corefile.c (set_gnutarget): Likewise.
9656         * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9657         * exec.c (build_section_table): Likewise.
9658         * remote.c (remote_target::pass_signals): Likewise.
9659         * utils.c (n_spaces): Likewise.
9660         * cli/cli-script.c (document_command): Likewise.
9661         * i386-windows-tdep.c (core_process_module_section): Likewise.
9662         * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9664 2020-05-20  Simon Marchi  <simon.marchi@efficios.com>
9666         * symfile.c (reread_symbols): Clear objfile's section_offsets
9667         vector and section indices, re-compute them by calling
9668         sym_offsets.
9670 2020-05-20  Tom Tromey  <tromey@adacore.com>
9672         * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9673         (desc_one_bound, desc_index_type): Compute field name.
9675 2020-05-20  Tom de Vries  <tdevries@suse.de>
9677         PR symtab/25833
9678         * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9680 2020-05-20  Alan Modra  <amodra@gmail.com>
9682         PR 25993
9683         * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9684         bfd_set_filename.
9685         * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9686         passed to bfd_set_filename.
9687         * symfile-mem.c (add_vsyscall_page): Likewise for string
9688         passed to symbol_file_add_from_memory.
9689         (symbol_file_add_from_memory): Make name param a const char* and
9690         don't strdup.
9692 2020-05-20  Alan Modra  <amodra@gmail.com>
9694         * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9695         rather than accessing bfd->filename directly.
9696         * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9697         and use bfd_section_name.
9698         * dwarf2/frame.c (decode_frame_entry): Likewise.
9699         * exec.c (exec_set_section_address): Likewise.
9700         * solib-aix.c (solib_aix_bfd_open): Likewise.
9701         * stap-probe.c (get_stap_base_address): Likewise.
9702         * symfile.c (reread_symbols): Likewise.
9704 2020-05-19  Tom Tromey  <tromey@adacore.com>
9706         * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9708 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9710         * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9712 2020-05-19  Pedro Alves  <palves@redhat.com>
9714         * NEWS (set exec-file-mismatch): Adjust entry.
9715         * exec.c: Include "build-id.h".
9716         (validate_exec_file): Try to match build IDs instead of filenames.
9717         * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9718         (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9719         and pass down 'warn_if_slow'.
9720         (gdb_bfd_open): Add 'warn_if_slow' parameter.  Use
9721         gdb_bfd_open_closure to pass it down.
9722         * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9724 2020-05-19  Pedro Alves  <palves@redhat.com>
9726         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9727         * target.c (target_fileio_open_1): Rename to target_fileio_open
9728         and make extern.  Use bool.
9729         (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9730         (target_fileio_read_alloc_1): Adjust.
9731         * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9732         (target_fileio_open_warn_if_slow): Delete declaration.
9734 2020-05-19  Pedro Alves  <palves@redhat.com>
9736         * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9737         Adjust all callers.
9739 2020-05-19  Yoshinori Sato  <ysato@users.sourceforge.jp>
9741         * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9742         whether disp is negative.
9744 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9746         * symfile.h (struct symfile_segment_data)
9747         <~symfile_segment_data>: Remove.
9748         <segment_info>: Change to std::vector.
9749         * symfile.c (default_symfile_segments): Update.
9750         * elfread.c (elf_symfile_segments): Update.
9752 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9754         * symfile.h (struct symfile_segment_data) <struct segment>: New.
9755         <segments>: New.
9756         <segment_bases, segment_sizes>: Remove.
9757         * symfile.c (default_symfile_segments): Update.
9758         * elfread.c (elf_symfile_segments): Update.
9759         * remote.c (remote_target::get_offsets): Update.
9760         * solib-target.c (solib_target_relocate_section_addresses):
9761         Update.
9763 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
9765         * symfile.h (struct symfile_segment_data): Initialize fields.
9766         <~symfile_segment_data>: Add.
9767         (symfile_segment_data_up): New.
9768         (struct sym_fns) <sym_segments>: Return a
9769         symfile_segment_data_up.
9770         (default_symfile_segments): Return a symfile_segment_data_up.
9771         (free_symfile_segment_data): Remove.
9772         (get_symfile_segment_data): Return a symfile_segment_data_up.
9773         * symfile.c (default_symfile_segments): Likewise.
9774         (get_symfile_segment_data): Likewise.
9775         (free_symfile_segment_data): Remove.
9776         (symfile_find_segment_sections): Update.
9777         * elfread.c (elf_symfile_segments): Return a
9778         symfile_segment_data_up.
9779         * remote.c (remote_target::get_offsets): Update.
9780         * solib-target.c (solib_target_relocate_section_addresses):
9781         Update.
9782         * symfile-debug.c (debug_sym_segments): Return a
9783         symfile_segment_data_up.
9785 2020-05-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9787         PR build/25981
9788         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9789         Hardcode register numbers.
9791         PR build/25981
9792         * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9793         procfs_find_LDT_entry): Remove.
9794         * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9795         procfs_find_LDT_entry): Remove.
9796         * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9797         Remove.
9799 2020-05-17  Pedro Alves  <palves@redhat.com>
9800             Andrew Burgess  <andrew.burgess@embecosm.com>
9801             Keno Fischer  <keno@juliacomputing.com>
9803         PR gdb/25741
9804         * breakpoint.c (build_target_condition_list): Update comments.
9805         (build_target_command_list): Update comments and skip matching
9806         locations.
9807         (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9808         a separate function.  Simplify "set breakpoint auto-hw off"
9809         handling.
9810         (insert_breakpoints): Update comment.
9811         (tracepoint_locations_match): New parameter.  For breakpoints,
9812         compare location types too, if the caller wants to.
9813         (handle_automatic_hardware_breakpoints): New functions.
9814         (bp_location_is_less_than): Also sort by location type and
9815         hardware breakpoint length.
9816         (update_global_location_list): Handle "set breakpoint auto-hw on"
9817         here.
9818         (update_breakpoint_locations): Ask breakpoint_locations_match to
9819         ignore location types.
9821 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9823         * gdbtypes.h (TYPE_NAME): Remove.  Change all cal sites to use
9824         type::name instead.
9826 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9828         * gdbtypes.h (struct type) <name, set_name>: New methods.
9829         (TYPE_CODE): Use type::name.  Change all call sites used to set
9830         the name to use type::set_name instead.
9832 2020-05-16  Tom Tromey  <tom@tromey.com>
9834         * top.c (quit_force): Update.
9835         * infrun.c (handle_no_resumed): Update.
9836         * top.h (all_uis): New function.
9837         (ALL_UIS): Remove.
9839 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
9841         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9843 2020-05-16  Pedro Alves  <palves@redhat.com>
9845         * ia64-linux-nat.c
9846         (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9847         Declare method.
9848         (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9850 2020-05-15  Simon Marchi  <simon.marchi@efficios.com>
9852         * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9853         (sparc64_adi_info): Likewise.
9855 2020-05-15  Tom Tromey  <tom@tromey.com>
9857         * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9858         block_objfile.
9859         (lookup_objfile_from_block): Remove.
9860         (lookup_symbol_in_block, lookup_symbol_in_static_block)
9861         (lookup_global_symbol): Use block_objfile.
9862         * symtab.h (lookup_objfile_from_block): Don't declare.
9863         * printcmd.c (clear_dangling_display_expressions): Use
9864         block_objfile.
9865         * parse.c (operator_check_standard): Use block_objfile.
9867 2020-05-15  Tom Tromey  <tom@tromey.com>
9869         * language.c (language_alloc_type_symbol): Set
9870         SYMBOL_SECTION.
9871         * symtab.c (initialize_objfile_symbol): Remove.
9872         (allocate_symbol): Remove.
9873         (allocate_template_symbol): Remove.
9874         * dwarf2/read.c (fixup_go_packaging): Use "new".
9875         (new_symbol): Use "new".
9876         (read_variable): Don't call initialize_objfile_symbol.  Use
9877         "new".
9878         (read_func_scope): Use "new".
9879         * xcoffread.c (process_xcoff_symbol): Don't call
9880         initialize_objfile_symbol.
9881         (SYMBOL_DUP): Remove.
9882         * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9883         "new".
9884         * symtab.h (allocate_symbol, initialize_objfile_symbol)
9885         (allocate_template_symbol): Don't declare.
9886         (struct symbol): Add copy constructor.  Change defaults.
9887         * jit.c (finalize_symtab): Use "new".
9888         * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9889         Use "new".
9890         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9891         (common_block_end): Use "new".
9892         * mdebugread.c (parse_symbol): Use "new".
9893         (new_symbol): Likewise.
9895 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9897         * NEWS: Mention changes to help and apropos.
9899 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9901         * command.h (enum command_class): Improve comments, document
9902         that class_alias is for user-defined aliases, give the class
9903         name for each class, remove unused class_xdb.
9904         * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9905         * breakpoint.c (_initialize_breakpoint): Replace class_alias
9906         by a precise class.
9907         * infcmd.c (_initialize_infcmd): Likewise.
9908         * reverse.c (_initialize_reverse): Likewise.
9909         * stack.c (_initialize_stack): Likewise.
9910         * symfile.c (_initialize_symfile): Likewise.
9911         * tracepoint.c (_initialize_tracepoint): Likewise.
9913 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9915         * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9916         when their aliased command is traversed.
9917         (help_cmd): Add fput_command_names_styled call to
9918         output command name and aliases when command has an alias.
9920 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9922         * cli/cli-decode.h (help_cmd_list): Remove declaration.
9923         * cli/cli-decode.c (help_cmd_list): Declare as static,
9924         remove prefix argument, use bool for recurse arg, rework to show the aliases of
9925         a command together with the command.
9926         (fput_command_name_styled, fput_command_names_styled): New functions.
9927         (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9928         fput_command_name_styled.
9929         (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9930         * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9932 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9934         * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9935         * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9936         * command.h (cmd_show_list): Likewise.
9937         * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9938         * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output.  Skip aliases.
9940 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9942         * unittests/command-def-selftests.c (traverse_command_structure):
9943         Verify all commands of a list have the same prefix command and
9944         that only the top cmdlist commands have a null prefix.
9946 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9948         * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9949         as prefix, not one of its aliases.
9950         (set_cmd_prefix): Remove.
9951         (do_add_cmd): Centralize the setting of the prefix of a command, when
9952         command is defined after its full chain of prefix commands.
9953         (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9954         (add_setshow_cmd_full): Likewise.
9955         (update_prefix_field_of_prefixed_commands): New function.
9956         (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9957         update_prefix_field_of_prefixed_commands.
9958         * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9959         addresses of remote_set_cmdlist and remote_show_cmdlist given
9960         as argument, not the address of an argument.
9961         * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9962         * gdb/remote.c (_initialize_remote): Likewise.
9964 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9966         * cli/cli-cmds.c (alias_command): Check for an existing alias
9967         using lookup_cmd_composition, as valid_command_p is too strict
9968         and forbids aliases that are the prefix of an existing alias
9969         or command.
9970         * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9971         command is properly recognised as a valid command.
9973 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9975         * unittests/help-doc-selftests.c: Rename to
9976         unittests/command-def-selftests.c
9977         * unittests/command-def-selftests.c (help_doc_tests): Update some
9978         comments.
9979         (command_structure_tests, traverse_command_structure): New namespace
9980         and function.
9981         (command_structure_invariants_tests): New function.
9982         (_initialize_command_def_selftests) Renamed from
9983         _initialize_help_doc_selftests, register command_structure_invariants
9984         selftest.
9986 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9988         * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9989         an alias of 'show'.
9991 2020-05-15  Joel Brobecker  <brobecker@adacore.com>
9993         * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9994         ada_is_fixed_point_type.  Update all callers.
9995         (gnat_encoded_fixed_point_delta): Renames ada_delta.  Update
9996         all callers.
9997         * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9998         Update all callers.
9999         * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10000         print_fixed_point_type.  Update all callers.
10001         * ada-valprint.c (ada_value_print_num): Replace call to
10002         ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10004 2020-05-14  Kevin Buettner  <kevinb@redhat.com>
10006         * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10007         processors.
10008         (cpu_supports_bts): Add CV_AMD case.
10010 2020-05-14  Laurent Morichetti  <Laurent.Morichetti@amd.com>
10011             Simon Marchi  <simon.marchi@efficios.com>
10013         * infrun.c (stop_all_threads): Collect multiple wait events at
10014         each pass.
10016 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10018         * gdbtypes.h (TYPE_CODE): Remove.  Change all call sites to use
10019         type::code instead.
10021 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
10023         * gdbtypes.h (struct type) <code, set_code>: New methods.
10024         (TYPE_CODE): Use type::code.  Change all call sites used to set
10025         the code to use type::set_code instead.
10027 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10028             Tom de Vries  <tdevries@suse.de>
10029             Pedro Alves  <palves@redhat.com>
10031         PR threads/25478
10032         * infrun.c (stop_all_threads): Do NOT ignore
10033         TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10034         TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10035         received.
10036         (handle_no_resumed): Remove code handling a live inferior with no
10037         threads.
10038         * remote.c (has_single_non_exited_thread): New.
10039         (remote_target::update_thread_list): Do not delete a thread if is
10040         the last thread of the process.
10041         * thread.c (thread_select): Call delete_exited_threads instead of
10042         prune_threads.
10044 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10046         * infrun.c (stop_all_threads): Enable/disable thread events of all
10047         targets.  Move a debug message denoting the end of the function
10048         into the SCOPED_EXIT block.
10050 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10052         * process-stratum-target.h: Include <set>.
10053         (all_non_exited_process_targets, switch_to_target_no_thread): New
10054         function declarations.
10055         * process-stratum-target.c (all_non_exited_process_targets)
10056         (switch_to_target_no_thread): New function implementations.
10058 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10060         * infrun.c (handle_inferior_event): Extract out a piece of code
10061         into...
10062         (mark_non_executing_threads): ...this new function.
10064 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10066         * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10067         use.
10069 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10071         * regcache.c (regcache_read_pc_protected): New function
10072         implementation that returns 0 if the PC cannot read via
10073         'regcache_read_pc'.
10074         * infrun.c (proceed): Call 'regcache_read_pc_protected'
10075         instead of 'regcache_read_pc'.
10076         (keep_going_pass_signal): Ditto.
10078 2020-05-13  Tom Tromey  <tromey@adacore.com>
10080         * ada-lang.c (align_value): Remove.
10081         (ada_template_to_fixed_record_type_1): Use align_up.
10083 2020-05-13  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10085         * async-event.c: Update the copyright year.
10086         * async-event.h: Update the copyright year.
10088 2020-05-12  Simon Marchi  <simon.marchi@efficios.com>
10090         * objfiles.h (is_addr_in_objfile,
10091         shared_objfile_contains_address_p): Return bool.
10092         * objfile.c (is_addr_in_objfile,
10093         shared_objfile_contains_address_p): Return bool.
10095 2020-05-11  Tom Tromey  <tromey@adacore.com>
10097         * cli/cli-cmds.c (info_command): Restore.
10098         (_initialize_cli_cmds): Use add_prefix_command for "info".
10099         * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10101 2020-05-11  Tom Tromey  <tromey@adacore.com>
10103         * ada-lang.c (ada_value_primitive_field): Now public.
10104         * ada-lang.h (ada_value_primitive_field): Declare.
10105         * ada-valprint.c (print_field_values): Use
10106         ada_value_primitive_field for wrapper fields.
10108 2020-05-11  Tom de Vries  <tdevries@suse.de>
10110         * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10111         MODULE_DOMAIN.
10113 2020-05-11  Tom de Vries  <tdevries@suse.de>
10115         PR symtab/25941
10116         * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10117         with length 0, if not gdb-produced.
10118         (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10120 2020-05-09  Tom de Vries  <tdevries@suse.de>
10122         PR gdb/25955
10123         * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10124         calculation.
10126 2020-05-09  Tom Tromey  <tom@tromey.com>
10128         * top.c (server_command): Now bool.
10129         * top.h (server_command): Now bool.
10131 2020-05-08  Tom Tromey  <tromey@adacore.com>
10133         * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10134         already being processed.
10136 2020-05-08  Tom Tromey  <tom@tromey.com>
10138         * printcmd.c (struct display) <next>: Remove.
10139         <display>: New constructor.
10140         <exp_string>: Now a std::string.
10141         <enabled_p>: Now a bool.
10142         (display_number): Move definition earlier.
10143         (displays): Rename from display_chain.  Now a std::vector.
10144         (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10145         (display_command): Update.
10146         (do_one_display, disable_display)
10147         (enable_disable_display_command, do_enable_disable_display):
10148         Update.
10149         (free_display): Remove.
10150         (clear_displays): Rewrite.
10151         (delete_display): Update.
10152         (map_display_numbers): Use function_view.  Remove "data"
10153         parameter.  Update.
10154         (do_delete_display): Remove.
10155         (undisplay_command): Update.
10156         (do_one_display, do_displays, disable_display)
10157         (info_display_command): Update.
10158         (do_enable_disable_display): Remove.
10159         (enable_disable_display_command)
10160         (clear_dangling_display_expressions): Update.
10162 2020-05-08  Tom Tromey  <tom@tromey.com>
10164         * symtab.c (set_symbol_cache_size)
10165         (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10166         (maintenance_print_symbol_cache_statistics): Update.
10167         * symmisc.c (print_symbol_bcache_statistics)
10168         (print_objfile_statistics, maintenance_print_objfiles)
10169         (maintenance_info_symtabs, maintenance_check_symtabs)
10170         (maintenance_expand_symtabs, maintenance_info_line_tables):
10171         Update.
10172         * symfile-debug.c (set_debug_symfile): Update.
10173         * source.c (forget_cached_source_info): Update.
10174         * python/python.c (gdbpy_progspaces): Update.
10175         * psymtab.c (maintenance_info_psymtabs): Update.
10176         * probe.c (parse_probes): Update.
10177         * linespec.c (iterate_over_all_matching_symtabs)
10178         (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10179         * guile/scm-progspace.c (gdbscm_progspaces): Update.
10180         * exec.c (exec_target::close): Update.
10181         * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10182         * breakpoint.c (print_one_breakpoint_location)
10183         (create_longjmp_master_breakpoint)
10184         (create_std_terminate_master_breakpoint): Update.
10185         * progspace.c (program_spaces): Now a std::vector.
10186         (maybe_new_address_space): Update.
10187         (add_program_space): Remove.
10188         (program_space::program_space): Update.
10189         (remove_program_space): Update.
10190         (number_of_program_spaces): Remove.
10191         (print_program_space, update_address_spaces): Update.
10192         * progspace.h (program_spaces): Change type.
10193         (ALL_PSPACES): Remove.
10194         (number_of_program_spaces): Don't declare.
10195         (struct program_space) <next>: Remove.
10197 2020-05-08  Tom Tromey  <tom@tromey.com>
10199         * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10200         * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10201         (enable_break): Update.
10202         * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10203         (frv_fdpic_find_canonical_descriptor): Update.
10204         (frv_fetch_objfile_link_map): Update.
10205         * progspace.c (program_space::free_all_objfiles): Update.
10206         (program_space::solibs): New method.
10207         * progspace.h (struct program_space) <solibs>: New method.
10208         * solist.h (master_so_list): Don't declare.
10209         (ALL_SO_LIBS): Remove.
10210         * solib.h (so_list_head): Remove.
10211         (update_solib_list): Update comment.
10212         * solib.c (master_so_list): Remove.
10213         (solib_used, update_solib_list, solib_add)
10214         (info_sharedlibrary_command, clear_solib)
10215         (reload_shared_libraries_1, remove_user_added_objfile): Update.
10217 2020-05-08  Tom Tromey  <tom@tromey.com>
10219         * extension.c (extension_languages): Now a std::array.
10220         (ALL_EXTENSION_LANGUAGES): Remove.
10221         (get_ext_lang_defn, get_ext_lang_of_file)
10222         (eval_ext_lang_from_control_command): Update.
10223         (finish_ext_lang_initialization)
10224         (auto_load_ext_lang_scripts_for_objfile)
10225         (ext_lang_type_printers::ext_lang_type_printers)
10226         (apply_ext_lang_type_printers)
10227         (ext_lang_type_printers::~ext_lang_type_printers)
10228         (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10229         (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10230         (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10231         (get_matching_xmethod_workers, ext_lang_colorize)
10232         (ext_lang_before_prompt): Update.
10233         (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10235 2020-05-08  Tom Tromey  <tom@tromey.com>
10237         * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10238         overload.
10239         <swap_string, m_string>: Remove.
10240         * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10241         Update.
10242         * stabsread.c (define_symbol, read_type): Update.
10243         * linespec.c (find_linespec_symbols): Update.
10244         * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10245         * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10246         * dbxread.c (read_dbx_symtab): Update.
10247         * cp-support.h (cp_canonicalize_string_full)
10248         (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10249         Return unique_xmalloc_ptr.
10250         * cp-support.c (inspect_type): Update.
10251         (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10252         (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10253         Likewise.
10254         * c-typeprint.c (print_name_maybe_canonical): Update.
10255         * break-catch-throw.c (check_status_exception_catchpoint):
10256         Update.
10258 2020-05-08  Tom de Vries  <tdevries@suse.de>
10260         * infrun.c (follow_fork): Copy current_line and current_symtab to
10261         child thread.
10263 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10265         * async-event.c (struct async_signal_handler, struct
10266         async_event_handler): Reformat, remove typedef.
10268 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10270         * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove.  Update all users
10271         access thistype->main_type->dyn_prop_list directly.
10273 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10275         * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10276         (remove_dyn_prop): Remove.  Update all users to use
10277         type::remove_dyn_prop.
10278         * gdbtypes.c (remove_dyn_prop): Rename to...
10279         (type::remove_dyn_prop): ... this.
10281 2020-05-07  Simon Marchi via Gdb-patches  <gdb-patches@sourceware.org>
10283         * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10284         (add_dyn_prop): Remove.  Update all users to use
10285         type::add_dyn_prop.
10286         * gdbtypes.c (add_dyn_prop): Rename to...
10287         (type::add_dyn_prop): ... this.
10289 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
10291         * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10292         (get_dyn_prop): Remove.  Update all users to use
10293         type::dyn_prop.
10294         * gdbtypes.c (get_dyn_prop): Rename to...
10295         (type::dyn_prop): ... this.
10297 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10299         * gdbtypes.h (struct main_type) <flag_static>: Remove.
10301 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
10303         * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10304         instruction, skip it if it's there.
10306 2020-05-05  Simon Marchi  <simon.marchi@efficios.com>
10308         * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10310 2020-05-04  Simon Marchi  <simon.marchi@efficios.com>
10312         * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10313         * gdbtypes.c (recursive_dump_type): Remove use of
10314         TYPE_INCOMPLETE.
10316 2020-05-03  Tom Tromey  <tom@tromey.com>
10318         * breakpoint.c (catch_command, tcatch_command): Remove.
10319         (_initialize_breakpoint): Use add_basic_prefix_cmd,
10320         add_show_prefix_cmd.
10321         (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10322         * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10323         Remove.
10324         (add_internal_problem_command): Use add_basic_prefix_cmd,
10325         add_show_prefix_cmd.
10326         * mips-tdep.c (set_mipsfpu_command): Remove.
10327         (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10328         * dwarf2/index-cache.c (set_index_cache_command): Remove.
10329         (_initialize_index_cache): Use add_basic_prefix_cmd.
10330         * memattr.c (dummy_cmd): Remove.
10331         (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10332         * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10333         (_initialize_tui_win): Use add_basic_prefix_cmd,
10334         add_show_prefix_cmd.
10335         * cli/cli-logging.c (set_logging_command): Remove.
10336         (_initialize_cli_logging): Use add_basic_prefix_cmd,
10337         add_show_prefix_cmd.
10338         (show_logging_command): Remove.
10339         * target.c (target_command): Remove.
10340         (add_target): Use add_basic_prefix_cmd.
10342 2020-05-02  Hannes Domani  <ssbssa@yahoo.de>
10344         * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10346 2020-05-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10348         * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10349         info_command.
10351 2020-04-30  Kamil Rytarowski  <n54@gmx.com>
10353         * nbsd-nat.c (nbsd_enable_proc_events)
10354         (nbsd_nat_target::post_startup_inferior): Add.
10355         (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10356         (nbsd_nat_target::update_thread_list): Rewrite.
10357         (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10358         "PTRACE_LWP_CREATE".
10359         * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10361 2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10363         * stack.c (_initialize_stack): Remove duplicated creation
10364         of "frame" command and "f" alias.
10366 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
10368         PR gdb/18706
10369         * gdbtypes.c (check_typedef): Calculate size of array of
10370         stubbed type.
10372 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
10374         PR gdb/15559
10375         * i386-tdep.c (i386_push_dummy_call): Call
10376         i386_thiscall_push_dummy_call.
10377         (i386_thiscall_push_dummy_call): New function.
10378         * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10379         * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10380         (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10382 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10384         * gdbarch.sh (do_read): Add shellcheck disable directive for
10385         warning SC2162.
10387 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10389         * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10390         "referenced but not assigned" warning.
10392 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10394         * gdbarch.sh: Remove code that sets fallbackdefault.
10396 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10398         * gdbarch.sh: Use shell operators && and || instead of
10399         -a and -o.
10401 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10403         * gdbarch.sh: Use $(...) instead of `...`.
10405 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10407         * gdbarch.sh: Use double quotes around variables.
10409 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
10411         * gdbarch.sh: Use %s with printf, instead of variables in the
10412         format string.
10414 2020-04-29  Tom Tromey  <tromey@adacore.com>
10416         PR ada/25875:
10417         * dwarf2/read.c (update_enumeration_type_from_children): Compute
10418         type fields here.
10419         (read_enumeration_type): Call
10420         update_enumeration_type_from_children later.  Update comments.
10421         (process_enumeration_scope): Don't create type fields.
10423 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
10425         * nbsd-tdep.c: Include "xml-syscall.h".
10426         (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10428 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
10430         * nbsd-nat.c: Include "sys/wait.h".
10431         (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10432         (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10433         (nbsd_nat_target::remove_exec_catchpoint)
10434         (nbsd_nat_target::set_syscall_catchpoint): Add.
10435         * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10436         (nbsd_nat_target::insert_exec_catchpoint)
10437         (nbsd_nat_target::remove_exec_catchpoint)
10438         (nbsd_nat_target::set_syscall_catchpoint): Add.
10439         * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10440         (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10441         `nbsd_get_syscall_number'.
10443 2020-04-29  Tom Tromey  <tom@tromey.com>
10445         * stack.c (print_block_frame_labels): Remove.
10447 2020-04-29  Hannes Domani  <ssbssa@yahoo.de>
10449         PR gdb/17320
10450         * ada-valprint.c (val_print_packed_array_elements): Move array
10451         end bracket to new line.
10452         (ada_val_print_string): Remove extra spaces before first array
10453         element.
10454         * c-valprint.c (c_value_print_array): Likewise.
10455         * m2-valprint.c (m2_print_array_contents): Likewise.
10456         (m2_value_print_inner): Likewise.
10457         * p-valprint.c (pascal_value_print_inner): Likewise.
10458         * valprint.c (generic_val_print_array): Likewise.
10459         (value_print_array_elements): Move first array element and array
10460         end bracket to new line.
10462 2020-04-29  Tom de Vries  <tdevries@suse.de>
10464         PR symtab/25889
10465         * linespec.c (find_method): Fix ix calculation.
10467 2020-04-28  Kamil Rytarowski  <n54@gmx.com>
10469         * syscalls/update-netbsd.sh: New file.
10470         * syscalls/netbsd.xml: Regenerate.
10471         * data-directory/Makefile.in: Register `netbsd.xml' in
10472         `SYSCALLS_FILES'.
10474 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
10476         * syscalls/update-freebsd.sh: Add double quotes.
10478 2020-04-28  Tom Tromey  <tom@tromey.com>
10480         * NEWS: Update.
10481         * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10482         (cmdpy_init): Allow class_tui.
10484 2020-04-28 Mark Williams <mark@myosotissp.com>
10486         PR gdb/24480
10487         * dwarf2read.c: Add missing assingments to list_in_scope when
10488         start_symtab was already called.
10490 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
10492         PR gdb/25881
10493         * dwarf2/read.c (offset_map_type): Use
10494         gdb:hash_enum<sect_offset> as hash function.
10496 2020-04-28  Tom de Vries  <tdevries@suse.de>
10498         * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10499         with DW_AT_signature.
10501 2020-04-27  Simon Marchi  <simon.marchi@efficios.com>
10503         * configure.ac: Remove check for fs_base/gs_base in
10504         user_regs_struct.
10505         * configure: Re-generate.
10506         * config.in: Re-generate.
10507         * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10508         * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10509         amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10511 2020-04-27  Luis Machado  <luis.machado@linaro.org>
10513         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10514         problematic inline frame unwinding situation.
10515         * frame.c (frame_id_computed_p): New function.
10516         * frame.h (frame_id_computed_p): New prototype.
10518 2020-04-26  Tom Tromey  <tom@tromey.com>
10520         * command.h (enum command_class) <class_pseudo>: Remove.
10522 2020-04-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10524         * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10525         and whitespace.
10527 2020-04-25  Kamil Rytarowski  <n54@gmx.com>
10529         * inf-ptrace.c (inf_ptrace_target::wait): Remove
10530         `PT_GET_PROCESS_STATE' block.
10532 2020-04-24  Tom Tromey  <tom@tromey.com>
10534         * symtab.h (symbol_get_demangled_name): Don't declare.
10535         * symtab.c (symbol_get_demangled_name): Remove.
10536         (general_symbol_info::natural_name)
10537         (general_symbol_info::demangled_name): Update.
10539 2020-04-24  Tom Tromey  <tom@tromey.com>
10541         PR rust/25025:
10542         * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10544 2020-04-24  Tom Tromey  <tom@tromey.com>
10546         PR symtab/12707:
10547         * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10548         exists.
10549         (new_symbol): Likewise.
10550         * compile/compile-object-load.c (get_out_value_type): Use
10551         symbol_matches_search_name.
10553 2020-04-24  Tom Tromey  <tom@tromey.com>
10555         * dwarf2/read.c (add_partial_symbol): Do not call
10556         compute_and_set_names.
10558 2020-04-24  Tom Tromey  <tom@tromey.com>
10560         * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10561         overload.
10563 2020-04-24  Tom Tromey  <tom@tromey.com>
10565         * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10566         (add_psymbol_to_list): New overload.  Make old overload call new
10567         one.
10568         * psympriv.h (add_psymbol_to_list): New overload.
10570 2020-04-24  Tom Tromey  <tom@tromey.com>
10572         * dwarf2/read.c (partial_die_info::read) <case
10573         DW_AT_linkage_name>: Use value_as_string.
10574         (dwarf2_string_attr): Use value_as_string.
10575         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10576         method.
10577         * dwarf2/attribute.c (attribute::value_as_string): New method.
10579 2020-04-24  Tom Tromey  <tom@tromey.com>
10581         * symtab.c (general_symbol_info::natural_name)
10582         (general_symbol_info::demangled_name): Check for language_rust.
10584 2020-04-24  Tom Tromey  <tom@tromey.com>
10586         * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10587         (dwarf2_physname): ... from here.
10588         (partial_die_info::read): Add Rust "{" hack.
10590 2020-04-24  Tom Tromey  <tom@tromey.com>
10592         * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10593         method.
10594         (symbol_set_demangled_name): Don't declare.
10595         * symtab.c (general_symbol_info::set_demangled_name): Rename from
10596         symbol_set_demangled_name.
10597         (general_symbol_info::set_language)
10598         (general_symbol_info::compute_and_set_names): Update.
10599         * minsyms.c (minimal_symbol_reader::install): Update.
10600         * dwarf2/read.c (new_symbol): Update.
10602 2020-04-24  Tom Tromey  <tromey@adacore.com>
10604         PR python/23662:
10605         * python/py-type.c (convert_field): Handle
10606         FIELD_LOC_KIND_DWARF_BLOCK.
10607         (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10608         (typy_get_dynamic): Nw function.
10609         (type_object_getset): Add "dynamic".
10610         * NEWS: Add entry.
10612 2020-04-24  Tom Tromey  <tromey@adacore.com>
10614         * ada-typeprint.c (print_choices, print_variant_part)
10615         (print_record_field_types_dynamic): New functions.
10616         (print_record_field_types): Use print_record_field_types_dynamic.
10618 2020-04-24  Tom Tromey  <tromey@adacore.com>
10620         * dwarf2/read.c (handle_data_member_location): New overload.
10621         (dwarf2_add_field): Use it.
10622         (decode_locdesc): Add "computed" parameter.  Update comment.
10623         * gdbtypes.c (is_dynamic_type_internal): Also look for
10624         FIELD_LOC_KIND_DWARF_BLOCK.
10625         (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10626         * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10627         virtual base classes.
10628         * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10629         FIELD_LOC_KIND_DWARF_BLOCK.
10631 2020-04-24  Tom Tromey  <tromey@adacore.com>
10633         * dwarf2/read.c (read_structure_type): Handle dynamic length.
10634         * gdbtypes.c (is_dynamic_type_internal): Check
10635         TYPE_HAS_DYNAMIC_LENGTH.
10636         (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10637         * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10638         New macros.
10639         (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10640         constant.
10642 2020-04-24  Tom Tromey  <tromey@adacore.com>
10644         * dwarf2/read.c (struct variant_field): Rewrite.
10645         (struct variant_part_builder): New.
10646         (struct nextfield): Remove "variant" field.  Add "offset".
10647         (struct field_info): Add "current_variant_part" and
10648         "variant_parts".
10649         (alloc_discriminant_info): Remove.
10650         (alloc_rust_variant): New function.
10651         (quirk_rust_enum): Update.
10652         (dwarf2_add_field): Set "offset" member.  Don't handle
10653         DW_TAG_variant_part.
10654         (offset_map_type): New typedef.
10655         (convert_variant_range, create_one_variant)
10656         (create_one_variant_part, create_variant_parts)
10657         (add_variant_property): New functions.
10658         (dwarf2_attach_fields_to_type): Call add_variant_property.
10659         (read_structure_type): Don't handle DW_TAG_variant_part.
10660         (handle_variant_part, handle_variant): New functions.
10661         (handle_struct_member_die): Use them.
10662         (process_structure_scope): Don't handle variant parts.
10663         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10664         (struct discriminant_info): Remove.
10665         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10666         (struct main_type) <flag_discriminated_union>: Remove.
10667         * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10668         (rust_enum_variant): Return int.  Remove "contents".  Rewrite.
10669         (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10670         Update.
10671         * valops.c (value_union_variant): Remove.
10672         * value.h (value_union_variant): Don't declare.
10674 2020-04-24  Tom Tromey  <tromey@adacore.com>
10676         * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10677         (ada_value_primitive_packed_val): Update.
10678         * ada-valprint.c (ada_value_print_1): Update.
10679         * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10680         (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10681         just an address.  Use evaluate_for_locexpr_baton.
10682         (dwarf2_evaluate_property): Update.
10683         * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10684         array_view.
10685         * findvar.c (default_read_var_value): Update.
10686         * gdbtypes.c (compute_variant_fields_inner)
10687         (resolve_dynamic_type_internal): Update.
10688         (resolve_dynamic_type): Change type of valaddr parameter.
10689         * gdbtypes.h (resolve_dynamic_type): Update.
10690         * valarith.c (value_subscripted_rvalue): Update.
10691         * value.c (value_from_contents_and_address): Update.
10693 2020-04-24  Tom Tromey  <tromey@adacore.com>
10695         * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10696         "push_initial_value" parameter.
10697         (dwarf2_evaluate_property): Likewise.
10698         * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10700 2020-04-24  Tom Tromey  <tromey@adacore.com>
10702         * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10703         (variant::matches, compute_variant_fields_recurse)
10704         (compute_variant_fields_inner, compute_variant_fields): New
10705         functions.
10706         (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10707         Use resolved_type after type is made.
10708         (operator==): Add new cases.
10709         * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10710         (struct discriminant_range, struct variant, struct variant_part):
10711         New.
10712         (union dynamic_prop_data) <variant_parts, original_type>: New
10713         members.
10714         (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10715         (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10716         constants.
10717         * value.c (unpack_bits_as_long): Now public.
10718         * value.h (unpack_bits_as_long): Declare.
10720 2020-04-24  Tom Tromey  <tromey@adacore.com>
10722         * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10723         (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10725 2020-04-24  Hannes Domani  <ssbssa@yahoo.de>
10727         * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10729 2020-04-24  Kamil Rytarowski  <n54@gmx.com>
10731         * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10732         (remove_fork_catchpoint, post_startup_inferior)
10733         (post_attach): Move...
10734         * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10735         (remove_fork_catchpoint, post_startup_inferior)
10736         (post_attach): ...here.
10737         * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10738         (remove_fork_catchpoint, post_startup_inferior)
10739         (post_attach): Move...
10740         * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10741         (remove_fork_catchpoint, post_startup_inferior)
10742         (post_attach): ...here.
10744 2020-04-24  Tom Tromey  <tromey@adacore.com>
10746         * nat/windows-nat.h (struct windows_thread_info)
10747         <pc_adjusted>: New member.
10748         * windows-nat.c (windows_fetch_one_register): Check
10749         pc_adjusted.
10750         (windows_nat_target::get_windows_debug_event)
10751         (windows_nat_target::wait): Set pc_adjusted.
10753 2020-04-24  Tom de Vries  <tdevries@suse.de>
10755         * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10756         Run gdb-add-index inside temp dir.
10758 2020-04-23  Tom Tromey  <tromey@adacore.com>
10760         * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10761         in loop.
10763 2020-04-23  Luis Machado  <luis.machado@linaro.org>
10765         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10766         get_frame_register instead of gdbarch_unwind_pc.
10768 2020-04-23  Tom de Vries  <tdevries@suse.de>
10770         * symtab.c (lookup_global_symbol): Prefer def over decl.
10772 2020-04-23  Tom de Vries  <tdevries@suse.de>
10774         PR symtab/25807
10775         * block.c (best_symbol, better_symbol): Promote to external.
10776         * block.h (best_symbol, better_symbol): Declare.
10777         * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10778         decl.
10780 2020-04-23  Tom Tromey  <tromey@adacore.com>
10782         PR ada/25837:
10783         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10784         "const char *", not a "const std::string &".
10785         <name_and_matcher::operator==>: Update.
10786         * unittests/lookup_name_info-selftests.c: Change type of
10787         "result".
10789 2020-04-23  Tom Tromey  <tom@tromey.com>
10791         * inferior.h (iterate_over_inferiors): Don't declare.
10792         * inferior.c (iterate_over_inferiors): Remove.
10793         * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10794         Remove.
10795         (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10796         use iterate_over_inferiors.
10797         (darwin_resume_inferior_it)
10798         (struct resume_inferior_threads_param)
10799         (darwin_resume_inferior_threads_it): Remove.
10800         (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10802 2020-04-23  Tom de Vries  <tdevries@suse.de>
10804         * blockframe.c (find_pc_partial_function): Use
10805         find_pc_sect_compunit_symtab rather than
10806         objfile->sf->qf->find_pc_sect_compunit_symtab.
10808 2020-04-22  Tom de Vries  <tdevries@suse.de>
10810         PR symtab/25764
10811         * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10812         in psymtabs.
10814 2020-04-22  Tom de Vries  <tdevries@suse.de>
10816         PR symtab/25801
10817         * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10818         symtabs.
10820 2020-04-22  Tom de Vries  <tdevries@suse.de>
10822         PR symtab/25700
10823         * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10824         CU if already created.
10826 2020-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
10828         * infrun.c (displaced_step_fixup): Switch to the event_thread
10829         before calling displaced_step_restore, not after.
10831 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10833         * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10834         its inferior is not recorded by us.
10835         (record_btrace_target_open): Replace call to
10836         all_non_exited_threads () with call to current_inferior
10837         ()->non_exited_threads ().
10838         (record_btrace_target::stop_recording): Likewise.
10839         (record_btrace_target::close): Likewise.
10840         (record_btrace_target::wait): Likewise.
10841         (record_btrace_target::record_stop_replaying): Likewise.
10843 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10845         * btrace.c (btrace_enable): Throw an error on double enables and
10846         when enabling recording fails.
10847         (btrace_disable): Throw an error if the thread is not recorded.
10849 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
10851         * record-btrace.c (record_btrace_target::fetch_registers): Forward
10852         request if we do not have a thread_info.
10854 2020-04-21  Tom de Vries  <tdevries@suse.de>
10856         PR gdb/25471
10857         * thread.c
10858         (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10859         exception in get_frame_id.
10861 2020-04-20  Tom Tromey  <tromey@adacore.com>
10863         * python/python.c (struct gdbpy_event): Mark move constructor as
10864         noexcept.
10865         * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10866         constructor as noexcept.
10867         * completer.h (struct completion_result): Mark move constructor as
10868         noexcept.
10869         * completer.c (completion_result::completion_result): Use
10870         initialization style.  Don't call reset_match_list.
10872 2020-04-20  Mihails Strasuns  <mihails.strasuns@intel.com>
10874         * MAINTAINERS (Write After Approval): Add myself.
10876 2020-04-18  Tom Tromey  <tom@tromey.com>
10878         * windows-tdep.c (init_w32_command_list)
10879         (w32_prefix_command_valid): Restore.
10880         (_initialize_windows_tdep): Call init_w32_command_list.
10882 2020-04-18  Tom Tromey  <tom@tromey.com>
10884         * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10885         * value.c (value_fn_field): Update.
10886         * valops.c (find_function_in_inferior)
10887         (value_allocate_space_in_inferior): Update.
10888         * tui/tui-winsource.c (tui_update_source_windows_with_line):
10889         Update.
10890         * tui/tui-source.c (tui_source_window::set_contents): Update.
10891         * symtab.c (lookup_global_or_static_symbol)
10892         (find_function_start_sal_1, skip_prologue_sal)
10893         (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10894         * symmisc.c (dump_msymbols, dump_symtab_1)
10895         (maintenance_print_one_line_table): Update.
10896         * symfile.c (init_entry_point_info, section_is_mapped)
10897         (list_overlays_command, simple_read_overlay_table)
10898         (simple_overlay_update_1): Update.
10899         * stap-probe.c (handle_stap_probe): Update.
10900         * stabsread.c (dbx_init_float_type, define_symbol)
10901         (read_one_struct_field, read_enum_type, read_range_type): Update.
10902         * source.c (info_line_command): Update.
10903         * python/python.c (gdbpy_source_objfile_script)
10904         (gdbpy_execute_objfile_script): Update.
10905         * python/py-type.c (save_objfile_types): Update.
10906         * python/py-objfile.c (py_free_objfile): Update.
10907         * python/py-inferior.c (python_new_objfile): Update.
10908         * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10909         (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10910         (maintenance_check_psymtabs): Update.
10911         * printcmd.c (info_address_command): Update.
10912         * objfiles.h (struct objfile) <arch>: New method, from
10913         get_objfile_arch.
10914         (get_objfile_arch): Don't declare.
10915         * objfiles.c (get_objfile_arch): Remove.
10916         (filter_overlapping_sections): Update.
10917         * minsyms.c (msymbol_is_function): Update.
10918         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10919         (output_nondebug_symbol): Update.
10920         * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10921         (mdebug_expand_psymtab): Update.
10922         * machoread.c (macho_add_oso_symfile): Update.
10923         * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10924         Update.
10925         * linux-fork.c (checkpoint_command): Update.
10926         * linespec.c (convert_linespec_to_sals): Update.
10927         * jit.c (finalize_symtab): Update.
10928         * infrun.c (insert_exception_resume_from_probe): Update.
10929         * ia64-tdep.c (ia64_find_unwind_table): Update.
10930         * hppa-tdep.c (internalize_unwinds): Update.
10931         * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10932         Update.
10933         * gcore.c (call_target_sbrk): Update.
10934         * elfread.c (record_minimal_symbol, elf_symtab_read)
10935         (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10936         (elf_gnu_ifunc_resolve_by_got): Update.
10937         * dwarf2/read.c (create_addrmap_from_index)
10938         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10939         (read_debug_names_from_section)
10940         (process_psymtab_comp_unit_reader, add_partial_symbol)
10941         (add_partial_subprogram, process_full_comp_unit)
10942         (read_file_scope, read_func_scope, read_lexical_block_scope)
10943         (read_call_site_scope, dwarf2_ranges_read)
10944         (dwarf2_record_block_ranges, dwarf2_add_field)
10945         (mark_common_block_symbol_computed, read_tag_pointer_type)
10946         (read_tag_string_type, dwarf2_init_float_type)
10947         (dwarf2_init_complex_target_type, read_base_type)
10948         (partial_die_info::read, partial_die_info::read)
10949         (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10950         (dwarf2_fetch_die_loc_sect_off): Update.
10951         * dwarf2/loc.c (dwarf2_find_location_expression)
10952         (class dwarf_evaluate_loc_desc, rw_pieced_value)
10953         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10954         (dwarf2_loc_desc_get_symbol_read_needs)
10955         (locexpr_describe_location_piece, locexpr_describe_location_1)
10956         (loclist_describe_location): Update.
10957         * dwarf2/index-write.c (write_debug_names): Update.
10958         * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10959         * dtrace-probe.c (dtrace_process_dof): Update.
10960         * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10961         (process_one_symbol): Update.
10962         * ctfread.c (ctf_init_float_type, read_base_type): Update.
10963         * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10964         (coff_read_enum_type): Update.
10965         * cli/cli-cmds.c (edit_command, list_command): Update.
10966         * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10967         * breakpoint.c (create_overlay_event_breakpoint)
10968         (create_longjmp_master_breakpoint)
10969         (create_std_terminate_master_breakpoint)
10970         (create_exception_master_breakpoint, get_sal_arch): Update.
10971         * block.c (block_gdbarch): Update.
10972         * annotate.c (annotate_source_line): Update.
10974 2020-04-17  Tom Tromey  <tromey@adacore.com>
10976         * auto-load.c (show_auto_load_cmd): Remove.
10977         (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10978         * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10979         (maintenance_print_arc_command): Remove.
10980         * tui/tui-win.c (tui_command): Remove.
10981         (tui_get_cmd_list): Use add_basic_prefix_cmd.
10982         * tui/tui-layout.c (tui_layout_command): Remove.
10983         (_initialize_tui_layout): Use add_basic_prefix_cmd.
10984         * python/python.c (user_set_python, user_show_python): Remove.
10985         (_initialize_python): Use add_basic_prefix_cmd,
10986         add_show_prefix_cmd.
10987         * guile/guile.c (set_guile_command, show_guile_command): Remove.
10988         (install_gdb_commands): Use add_basic_prefix_cmd,
10989         add_show_prefix_cmd.
10990         (info_guile_command): Remove.
10991         * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10992         (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10993         add_show_prefix_cmd.
10994         * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10995         Remove do_set and do_show parameters.
10996         * cli/cli-style.c (set_style, show_style): Remove.
10997         (_initialize_cli_style): Use add_basic_prefix_cmd,
10998         add_show_prefix_cmd.
10999         (cli_style_option::add_setshow_commands): Remove do_set and
11000         do_show parameters.
11001         (cli_style_option::add_setshow_commands): Use
11002         add_basic_prefix_cmd, add_show_prefix_cmd.
11003         (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11004         (set_style_name): Remove.
11005         * cli/cli-dump.c (dump_command, append_command): Remove.
11006         (srec_dump_command, ihex_dump_command, verilog_dump_command)
11007         (tekhex_dump_command, binary_dump_command)
11008         (binary_append_command): Remove.
11009         (_initialize_cli_dump): Use add_basic_prefix_cmd.
11010         * windows-tdep.c (w32_prefix_command_valid): Remove global.
11011         (init_w32_command_list): Remove; move into ...
11012         (_initialize_windows_tdep): ... here.  Use add_basic_prefix_cmd.
11013         * valprint.c (set_print, show_print, set_print_raw)
11014         (show_print_raw): Remove.
11015         (_initialize_valprint): Use add_basic_prefix_cmd,
11016         add_show_prefix_cmd.
11017         * typeprint.c (set_print_type, show_print_type): Remove.
11018         (_initialize_typeprint): Use add_basic_prefix_cmd,
11019         add_show_prefix_cmd.
11020         * record.c (set_record_command, show_record_command): Remove.
11021         (_initialize_record): Use add_basic_prefix_cmd,
11022         add_show_prefix_cmd.
11023         * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11024         add_show_prefix_cmd.
11025         (info_command, show_command, set_debug, show_debug): Remove.
11026         * top.h (set_history, show_history): Don't declare.
11027         * top.c (set_history, show_history): Remove.
11028         * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11029         (unset_tdesc_cmd): Remove.
11030         (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11031         add_show_prefix_cmd.
11032         * symtab.c (info_module_command): Remove.
11033         (_initialize_symtab): Use add_basic_prefix_cmd.
11034         * symfile.c (overlay_command): Remove.
11035         (_initialize_symfile): Use add_basic_prefix_cmd.
11036         * sparc64-tdep.c (info_adi_command): Remove.
11037         (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11038         * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11039         (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11040         add_show_prefix_cmd.
11041         * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11042         (_initialize_serial): Use add_basic_prefix_cmd,
11043         add_show_prefix_cmd.
11044         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11045         (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11046         add_show_prefix_cmd.
11047         * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11048         (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11049         add_show_prefix_cmd.
11050         * riscv-tdep.c (show_riscv_command, set_riscv_command)
11051         (show_debug_riscv_command, set_debug_riscv_command): Remove.
11052         (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11053         add_show_prefix_cmd.
11054         * remote.c (remote_command, set_remote_cmd): Remove.
11055         (_initialize_remote): Use add_basic_prefix_cmd.
11056         * record-full.c (set_record_full_command)
11057         (show_record_full_command): Remove.
11058         (_initialize_record_full): Use add_basic_prefix_cmd,
11059         add_show_prefix_cmd.
11060         * record-btrace.c (cmd_set_record_btrace)
11061         (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11062         (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11063         (cmd_show_record_btrace_pt): Remove.
11064         (_initialize_record_btrace): Use add_basic_prefix_cmd,
11065         add_show_prefix_cmd.
11066         * ravenscar-thread.c (set_ravenscar_command)
11067         (show_ravenscar_command): Remove.
11068         (_initialize_ravenscar): Use add_basic_prefix_cmd,
11069         add_show_prefix_cmd.
11070         * mips-tdep.c (show_mips_command, set_mips_command)
11071         (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11072         add_show_prefix_cmd.
11073         * maint.c (maintenance_command, maintenance_info_command)
11074         (maintenance_check_command, maintenance_print_command)
11075         (maintenance_set_cmd, maintenance_show_cmd): Remove.
11076         (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11077         add_show_prefix_cmd.
11078         (show_per_command_cmd): Remove.
11079         * maint-test-settings.c (maintenance_set_test_settings_cmd):
11080         Remove.
11081         (maintenance_show_test_settings_cmd): Remove.
11082         (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11083         add_show_prefix_cmd.
11084         * maint-test-options.c (maintenance_test_options_command):
11085         Remove.
11086         (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11087         * macrocmd.c (macro_command): Remove
11088         (_initialize_macrocmd): Use add_basic_prefix_cmd.
11089         * language.c (set_check, show_check): Remove.
11090         (_initialize_language): Use add_basic_prefix_cmd,
11091         add_show_prefix_cmd.
11092         * infcmd.c (unset_command): Remove.
11093         (_initialize_infcmd): Use add_basic_prefix_cmd.
11094         * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11095         (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11096         add_show_prefix_cmd.
11097         * go32-nat.c (go32_info_dos_command): Remove.
11098         (_initialize_go32_nat): Use add_basic_prefix_cmd.
11099         * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11100         (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11101         * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11102         (_initialize_frame): Use add_basic_prefix_cmd,
11103         add_show_prefix_cmd.
11104         * dcache.c (set_dcache_command, show_dcache_command): Remove.
11105         (_initialize_dcache): Use add_basic_prefix_cmd,
11106         add_show_prefix_cmd.
11107         * cp-support.c (maint_cplus_command): Remove.
11108         (_initialize_cp_support): Use add_basic_prefix_cmd.
11109         * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11110         (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11111         (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11112         add_basic_prefix_cmd, add_show_prefix_cmd.
11113         * breakpoint.c (save_command): Remove.
11114         (_initialize_breakpoint): Use add_basic_prefix_cmd.
11115         * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11116         (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11117         add_show_prefix_cmd.
11118         * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11119         (set_ada_command, show_ada_command): Remove.
11120         (_initialize_ada_language): Use add_basic_prefix_cmd,
11121         add_show_prefix_cmd.
11122         * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11124 2020-04-16  Kamil Rytarowski  <n54@gmx.com>
11126         * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11127         * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11129 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11131         * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11132         warning messages.
11134 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
11136         * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11137         import table is not at beginning of .idata section.
11139 2020-04-16  Pedro Alves  <palves@redhat.com>
11141         * inferior.c (delete_inferior): Use delete operator directly
11142         instead of delete_program_space.
11143         * progspace.c (add_program_space): New, factored out from
11144         program_space::program_space.
11145         (remove_program_space): New, factored out from
11146         delete_program_space.
11147         (program_space::program_space): Remove intro comment.  Rewrite.
11148         (program_space::~program_space): Remove intro comment.  Call
11149         remove_program_space.
11150         (delete_program_space): Delete.
11151         * progspace.h (program_space::program_space): Make explicit.  Move
11152         intro comment here, adjusted.
11153         (program_space::~program_space): Move intro comment here,
11154         adjusted.
11155         (delete_program_space): Remove.
11157 2020-04-16  Tom Tromey  <tromey@adacore.com>
11159         * windows-nat.c (windows_nat::handle_access_violation): New
11160         function.
11161         * nat/windows-nat.h (handle_access_violation): Declare.
11162         * nat/windows-nat.c (handle_exception): Move Cygwin code to
11163         windows-nat.c.  Call handle_access_violation.
11165 2020-04-16  Tom de Vries  <tdevries@suse.de>
11167         PR symtab/25791
11168         * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11169         CUs without psymtab.
11171 2020-04-16  Kevin Buettner  <kevinb@redhat.com>
11173         * python/python.c (do_start_initialization): Don't call
11174         PyEval_InitThreads for Python 3.9 and beyond.
11176 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
11178         * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11179         thread functions.
11180         (obsd_nat_target::wait): Likewise.
11182 2020-04-15  Tom Tromey  <tromey@adacore.com>
11184         * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11185         (DEBUG_EXCEPT): Use debug_printf.
11187 2020-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
11189         * completer.c (class completion_tracker::completion_hash_entry)
11190         <hash_name>: New member function.
11191         (completion_tracker::discard_completions): New callback to hash a
11192         completion_hash_entry, pass this to htab_create_alloc.
11194 2016-01-20  Jon Turney  <jon.turney@dronecode.org.uk>
11196         * windows-nat.c (windows_make_so): Warn rather than stopping with
11197         an error if realpath() fails.
11199 2020-04-14  Kamil Rytarowski  <n54@gmx.com>
11201         * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11202         (nbsd_nat_target::info_proc): Add do_status.
11204 2020-04-14  Simon Marchi  <simon.marchi@polymtl.ca>
11205             Tom de Vries  <tdevries@suse.de>
11207         PR symtab/25718
11208         * psympriv.h (struct partial_symtab::read_symtab)
11209         (struct partial_symtab::expand_psymtab)
11210         (struct partial_symtab::read_dependencies): Update comments.
11211         * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11212         read_symtab for includer.
11213         (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11214         (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11215         (struct dwarf2_include_psymtab::m_readin): Remove.
11216         (struct dwarf2_include_psymtab::includer): New member function.
11217         (dwarf2_psymtab::expand_psymtab): Assert !readin.
11219 2020-04-14  Tom de Vries  <tdevries@suse.de>
11221         PR symtab/25720
11222         * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11223         with NULL symbol_matcher and lookup_name.
11224         * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11225         and lookup_name.
11226         * dwarf2/read.c (dw2_expand_symtabs_matching)
11227         (dw2_debug_names_expand_symtabs_matching): Same.
11228         * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11229         Make lookup_name a pointer.  Update comment.
11230         * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11231         lookup_name being a pointer.
11232         * symfile.c (expand_symtabs_matching): Same.
11233         * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11234         * linespec.c (iterate_over_all_matching_symtabs): Same.
11236 2020-04-13  Tom Tromey  <tom@tromey.com>
11238         * run-on-main-thread.c: Update include.
11239         * unittests/main-thread-selftests.c: Update include.
11240         * tui/tui-win.c: Update include.
11241         * tui/tui-io.c: Update include.
11242         * tui/tui-interp.c: Update include.
11243         * tui/tui-hooks.c: Update include.
11244         * top.h: Update include.
11245         * top.c: Update include.
11246         * ser-base.c: Update include.
11247         * remote.c: Update include.
11248         * remote-notif.c: Update include.
11249         * remote-fileio.c: Update include.
11250         * record-full.c: Update include.
11251         * record-btrace.c: Update include.
11252         * python/python.c: Update include.
11253         * posix-hdep.c: Update include.
11254         * mingw-hdep.c: Update include.
11255         * mi/mi-main.c: Update include.
11256         * mi/mi-interp.c: Update include.
11257         * main.c: Update include.
11258         * linux-nat.c: Update include.
11259         * interps.c: Update include.
11260         * infrun.c: Update include.
11261         * inf-loop.c: Update include.
11262         * event-top.c: Update include.
11263         * event-loop.c: Move to ../gdbsupport/.
11264         * event-loop.h: Move to ../gdbsupport/.
11265         * async-event.h: Update include.
11266         * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11268 2020-04-13  Tom Tromey  <tom@tromey.com>
11270         * tui/tui-win.c: Include async-event.h.
11271         * remote.c: Include async-event.h.
11272         * remote-notif.c: Include async-event.h.
11273         * record-full.c: Include async-event.h.
11274         * record-btrace.c: Include async-event.h.
11275         * infrun.c: Include async-event.h.
11276         * event-top.c: Include async-event.h.
11277         * event-loop.h: Move some declarations to async-event.h.
11278         * event-loop.c: Don't include ser-event.h or top.h.  Move some
11279         code to async-event.c.
11280         * async-event.h: New file.
11281         * async-event.c: New file.
11282         * Makefile.in (COMMON_SFILES): Add async-event.c.
11283         (HFILES_NO_SRCDIR): Add async-event.h.
11285 2020-04-13  Tom Tromey  <tom@tromey.com>
11287         * utils.c (flush_streams): New function.
11288         * event-loop.c (gdb_wait_for_event): Call flush_streams.
11290 2020-04-13  Tom Tromey  <tom@tromey.com>
11292         * event-loop.c (handle_file_event): Use warning, not
11293         printf_unfiltered.
11295 2020-04-13  Tom Tromey  <tom@tromey.com>
11297         * event-loop.c: Include <chrono>.
11299 2020-04-13  Tom Tromey  <tom@tromey.com>
11301         * gdb_select.h: Move to ../gdbsupport/.
11302         * event-loop.c: Update include path.
11303         * top.c: Update include path.
11304         * ser-base.c: Update include path.
11305         * ui-file.c: Update include path.
11306         * ser-tcp.c: Update include path.
11307         * guile/scm-ports.c: Update include path.
11308         * posix-hdep.c: Update include path.
11309         * ser-unix.c: Update include path.
11310         * gdb_usleep.c: Update include path.
11311         * mingw-hdep.c: Update include path.
11312         * inflow.c: Update include path.
11313         * infrun.c: Update include path.
11314         * event-top.c: Update include path.
11316 2020-04-13  Tom Tromey  <tom@tromey.com>
11318         * configure: Rebuild.
11319         * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11321 2020-04-13  Tom Tromey  <tom@tromey.com>
11323         * event-loop.h (start_event_loop): Don't declare.
11324         * event-loop.c (start_event_loop): Move...
11325         * main.c (start_event_loop): ...here.  Now static.
11327 2020-04-13  Sergio Durigan Junior  <sergiodj@sergiodj.net>
11329         * MAINTAINERS: Update my email address.
11331 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11333         * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11334         IP_ALL.
11336 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11338         * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11339         (nbsd_nat_target::info_proc): Add do_cmdline.
11341 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11343         * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11344         (nbsd_nat_target::info_proc): Add do_cwd.
11346 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
11348         * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11350 2020-04-11  Kamil Rytarowski  <n54@gmx.com>
11352         * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11353         * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11354         (nbsd_nat_target::info_proc): New functions.
11355         * nbsd-nat.c (kinfo_get_vmmap): New function.
11356         * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11357         nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11358         * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11359         (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11360         functions.
11361         * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11362         (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11363         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11364         (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11365         (KINFO_VME_FLAG_GROWS_DOWN): New.
11367 2020-04-10  Artur Shepilko  <nomadbyte@gmail.com>
11369         * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11370         bit shift.
11372 2020-04-10  Tom Tromey  <tromey@adacore.com>
11374         * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11376 2020-04-10  Tom Tromey  <tromey@adacore.com>
11378         * symtab.c (get_symbol_address, get_msymbol_address): Skip
11379         separate debug files.
11381 2020-04-10  Hannes Domani  <ssbssa@yahoo.de>
11383         * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11384         Move to...
11385         * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11386         ... here.
11387         * windows-nat.c (windows_nat_target::get_windows_debug_event):
11388         Check for STATUS_WX86_BREAKPOINT.
11389         (windows_nat_target::wait): Same.
11391 2020-04-10  Tom de Vries  <tdevries@suse.de>
11393         PR cli/25808
11394         * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11396 2020-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
11398         * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11399         (Write After Approval): Remove Tom de Vries.
11401 2020-04-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11403         revert partially:
11404         2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11406         * buildsym.c (record_line): Fix undefined behavior and preserve
11407         lines at eof.
11409 2020-04-09  Kamil Rytarowski  <n54@gmx.com>
11411         * auxv.h (svr4_auxv_parse): New.
11412         * auxv.c (default_auxv_parse): Split into default_auxv_parse
11413         and generic_auxv_parse.
11414         (svr4_auxv_parse): Add.
11415         * obsd-tdep.c: Include "auxv.h".
11416         (obsd_auxv_parse): Remove.
11417         (obsd_init_abi): Remove comment.
11418         (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11419         from `obsd_auxv_parse' to `svr4_auxv_parse'.
11420         * nbsd-tdep.c: Include "auxv.h".
11421         (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11423 2020-04-08  Tom Tromey  <tromey@adacore.com>
11425         * nat/windows-nat.h (last_wait_event): Don't declare.
11426         (wait_for_debug_event): Update comment.
11427         * nat/windows-nat.c (last_wait_event): Now static.
11429 2020-04-08  Tom Tromey  <tromey@adacore.com>
11431         * windows-nat.c (wait_for_debug_event): Move to
11432         nat/windows-nat.c.
11433         * nat/windows-nat.h (wait_for_debug_event): Declare.
11434         * nat/windows-nat.c (wait_for_debug_event): Move from
11435         windows-nat.c.  No longer static.
11437 2020-04-08  Tom Tromey  <tromey@adacore.com>
11439         * windows-nat.c (get_windows_debug_event): Use
11440         fetch_pending_stop.
11441         * nat/windows-nat.h (fetch_pending_stop): Declare.
11442         * nat/windows-nat.c (fetch_pending_stop): New function.
11444 2020-04-08  Tom Tromey  <tromey@adacore.com>
11446         * windows-nat.c (windows_continue): Use matching_pending_stop and
11447         continue_last_debug_event.
11448         * nat/windows-nat.h (matching_pending_stop)
11449         (continue_last_debug_event): Declare.
11450         * nat/windows-nat.c (DEBUG_EVENTS): New define.
11451         (matching_pending_stop, continue_last_debug_event): New
11452         functions.
11454 2020-04-08  Tom Tromey  <tromey@adacore.com>
11456         * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11457         (handle_exception_result): Move to nat/windows-nat.h.
11458         (DEBUG_EXCEPTION_SIMPLE): Remove.
11459         (windows_nat::handle_ms_vc_exception): New function.
11460         (handle_exception): Move to nat/windows-nat.c.
11461         (get_windows_debug_event): Update.
11462         (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11463         nat/windows-nat.c.
11464         * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11465         (handle_exception_result): Move from windows-nat.c.
11466         (handle_exception): Declare.
11467         * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11468         (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11469         windows-nat.c.
11471 2020-04-08  Tom Tromey  <tromey@adacore.com>
11473         * windows-nat.c (exception_count, event_count): Remove.
11474         (handle_exception, get_windows_debug_event)
11475         (do_initial_windows_stuff): Update.
11477 2020-04-08  Tom Tromey  <tromey@adacore.com>
11479         * windows-nat.c (windows_nat::handle_load_dll)
11480         (windows_nat::handle_unload_dll): Rename.  No longer static.
11481         * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11482         Declare.
11484 2020-04-08  Tom Tromey  <tromey@adacore.com>
11486         * complaints.h (stop_whining): Declare at top-level.
11487         (complaint): Don't declare stop_whining.
11489 2020-04-08  Tom Tromey  <tromey@adacore.com>
11491         * windows-nat.c (windows_nat::handle_output_debug_string):
11492         Rename.  No longer static.
11493         * nat/windows-nat.h (handle_output_debug_string): Declare.
11495 2020-04-08  Tom Tromey  <tromey@adacore.com>
11497         * windows-nat.c (current_process_handle, current_process_id)
11498         (main_thread_id, last_sig, current_event, last_wait_event)
11499         (current_windows_thread, desired_stop_thread_id, pending_stops)
11500         (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11501         (display_selectors, fake_create_process)
11502         (get_windows_debug_event): Update.
11503         * nat/windows-nat.h (current_process_handle, current_process_id)
11504         (main_thread_id, last_sig, current_event, last_wait_event)
11505         (current_windows_thread, desired_stop_thread_id, pending_stops)
11506         (struct pending_stop, siginfo_er): Move from windows-nat.c.
11507         * nat/windows-nat.c (current_process_handle, current_process_id)
11508         (main_thread_id, last_sig, current_event, last_wait_event)
11509         (current_windows_thread, desired_stop_thread_id, pending_stops)
11510         (siginfo_er): New globals.  Move from windows-nat.c.
11512 2020-04-08  Tom Tromey  <tromey@adacore.com>
11514         * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11515         (handle_load_dll): Update.
11516         * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11518 2020-04-08  Tom Tromey  <tromey@adacore.com>
11520         * windows-nat.c (enum thread_disposition_type): Move to
11521         nat/windows-nat.h.
11522         (windows_nat::thread_rec): Rename from thread_rec.  No longer
11523         static.
11524         (windows_add_thread, windows_nat_target::fetch_registers)
11525         (windows_nat_target::store_registers, handle_exception)
11526         (windows_nat_target::resume, get_windows_debug_event)
11527         (windows_nat_target::get_tib_address)
11528         (windows_nat_target::thread_name)
11529         (windows_nat_target::thread_alive): Update.
11530         * nat/windows-nat.h (enum thread_disposition_type): Move from
11531         windows-nat.c.
11532         (thread_rec): Declare.
11534 2020-04-08  Tom Tromey  <tromey@adacore.com>
11536         * windows-nat.c: Add "using namespace".
11537         * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11538         * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11540 2020-04-08  Tom Tromey  <tromey@adacore.com>
11542         * nat/windows-nat.h (struct windows_thread_info): Declare
11543         destructor.
11544         * nat/windows-nat.c (~windows_thread_info): New.
11546 2020-04-08  Tom Tromey  <tromey@adacore.com>
11548         PR gdb/22992
11549         * windows-nat.c (current_event): Update comment.
11550         (last_wait_event, desired_stop_thread_id): New globals.
11551         (struct pending_stop): New.
11552         (pending_stops): New global.
11553         (windows_nat_target) <stopped_by_sw_breakpoint>
11554         <supports_stopped_by_sw_breakpoint>: New methods.
11555         (windows_fetch_one_register): Add assertions.  Adjust PC.
11556         (windows_continue): Handle pending stops.  Suspend other threads
11557         when stepping.  Use last_wait_event
11558         (wait_for_debug_event): New function.
11559         (get_windows_debug_event): Use wait_for_debug_event.  Handle
11560         pending stops.  Queue spurious stops.
11561         (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11562         (windows_nat_target::kill): Use wait_for_debug_event.
11563         * nat/windows-nat.h (struct windows_thread_info)
11564         <stopped_at_software_breakpoint>: New field.
11565         * nat/windows-nat.c (windows_thread_info::resume): Clear
11566         stopped_at_software_breakpoint.
11568 2020-04-08  Tom Tromey  <tromey@adacore.com>
11570         * windows-nat.c (enum thread_disposition_type): New.
11571         (thread_rec): Replace "get_context" parameter with "disposition";
11572         change type.
11573         (windows_add_thread, windows_nat_target::fetch_registers)
11574         (windows_nat_target::store_registers, handle_exception)
11575         (windows_nat_target::resume, get_windows_debug_event)
11576         (windows_nat_target::get_tib_address)
11577         (windows_nat_target::thread_name)
11578         (windows_nat_target::thread_alive): Update.
11580 2020-04-08  Tom Tromey  <tromey@adacore.com>
11582         * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11583         (windows_continue): Use windows_continue::resume.
11584         * nat/windows-nat.h (struct windows_thread_info) <suspend,
11585         resume>: Declare new methods.
11586         * nat/windows-nat.c: New file.
11587         * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11589 2020-04-08  Tom Tromey  <tromey@adacore.com>
11591         * windows-nat.c (windows_add_thread, windows_delete_thread)
11592         (windows_nat_target::fetch_registers)
11593         (windows_nat_target::store_registers, fake_create_process)
11594         (windows_nat_target::resume, windows_nat_target::resume)
11595         (get_windows_debug_event, windows_nat_target::wait)
11596         (windows_nat_target::pid_to_str)
11597         (windows_nat_target::get_tib_address)
11598         (windows_nat_target::get_ada_task_ptid)
11599         (windows_nat_target::thread_name)
11600         (windows_nat_target::thread_alive): Use lwp, not tid.
11602 2020-04-08  Tom Tromey  <tromey@adacore.com>
11604         * windows-nat.c (handle_exception)
11605         (windows_nat_target::thread_name): Update.
11606         * nat/windows-nat.h (windows_thread_info): Remove destructor.
11607         <name>: Now unique_xmalloc_ptr.
11609 2020-04-08  Tom Tromey  <tromey@adacore.com>
11611         * windows-nat.c (thread_rec)
11612         (windows_nat_target::fetch_registers): Update.
11613         * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11614         Update comment.
11615         <debug_registers_changed, reload_context>: Now bool.
11617 2020-04-08  Tom Tromey  <tromey@adacore.com>
11619         * windows-nat.c (windows_add_thread): Use new.
11620         (windows_init_thread_list, windows_delete_thread): Use delete.
11621         (get_windows_debug_event): Update.
11622         * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11623         destructor, and initializers.
11625 2020-04-08  Tom Tromey  <tromey@adacore.com>
11627         * windows-nat.c (struct windows_thread_info): Remove.
11628         * nat/windows-nat.h: New file.
11630 2020-04-08  Tom Tromey  <tromey@adacore.com>
11632         * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11633         (thread_rec, windows_add_thread, windows_delete_thread)
11634         (windows_continue): Update.
11636 2020-04-08  Tom Tromey  <tromey@adacore.com>
11638         * windows-nat.c (struct windows_thread_info): Remove typedef.
11639         (thread_head): Remove.
11640         (thread_list): New global.
11641         (thread_rec, windows_add_thread, windows_init_thread_list)
11642         (windows_delete_thread, windows_continue): Update.
11644 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
11646         * windows-tdep.h (windows_init_abi): Add comment.
11647         (cygwin_init_abi): New declaration.
11648         * windows-tdep.c: Split signal enumeration in two, one for
11649         Windows and one for Cygwin.
11650         (windows_gdb_signal_to_target): Only deal with signal of the
11651         Windows OS ABI.
11652         (cygwin_gdb_signal_to_target): New function.
11653         (windows_init_abi): Rename to windows_init_abi_common, don't set
11654         gdb_signal_to_target gdbarch method.  Add new new function with
11655         this name.
11656         (cygwin_init_abi): New function.
11657         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11658         comment.  Don't call windows_init_abi.
11659         (amd64_windows_init_abi): Add comment, call windows_init_abi.
11660         (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11661         * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11662         i386_windows_init_abi_common, don't call windows_init_abi.  Add
11663         a new function of this name.
11664         (i386_cygwin_init_abi): New function.
11665         (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11666         OS ABI Cygwin.
11668 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
11670         * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11671         parameter.c.
11672         (dwarf2_read_gdb_index): Update.
11674 2020-04-07  Kamil Rytarowski  <n54@gmx.com>
11676         * nbsd-tdep.c: Include "objfiles.h".
11677         (nbsd_skip_solib_resolver): New.
11678         (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11680 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11682         * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11683         addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11684         with DW_LLE_base_addressx are being emitted in DWARFv5.
11685         Add the newly added kind DW_LOC_OFFSET_PAIR also.
11686         The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11687         unsigned integer.
11689 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11691         * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11692         (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11693         addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11694         with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11695         Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11696         (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11697         DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11700 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
11702         * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11703         (read_loclist_index): New function definition.
11704         (lookup_loclist_base): New function definition.
11705         (read_loclist_header): New function definition.
11706         (dwarf2_cu): Add loclist_base and loclist_header field.
11707         (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11708         (read_full_die_1): Read the value of DW_AT_loclists_base.
11709         (read_attribute_reprocess): Handle DW_FORM_loclistx.
11710         (read_attribute_value): Handle DW_FORM_loclistx.
11711         (skip_one_die): Handle DW_FORM_loclistx.
11712         (loclist_header): New structure declaration.
11713         * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11715 2020-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
11717         * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11718         constructor.  Remove `addr` parameter from other constructor and
11719         add `per_cu` parameter.
11720         * dwarf2/read.c (create_partial_symtab): Update.
11722 2020-04-07  Tom de Vries  <tdevries@suse.de>
11724         PR symtab/25796
11725         * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11726         (partial_die_info::fixup): Inherit has_const_value.
11728 2020-04-07  Tom de Vries  <tdevries@suse.de>
11730         * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11731         symbols without address.
11733 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
11735         * nbsd-nat.h (struct thread_info): Add forward declaration.
11736         (nbsd_nat_target::thread_alive): Add.
11737         (nbsd_nat_target::thread_name): Likewise.
11738         (nbsd_nat_target::update_thread_list): Likewise.
11739         (update_thread_list::post_attach): Likewise.
11740         (post_attach::pid_to_str): Likewise.
11741         * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11742         (nbsd_thread_lister): Add.
11743         (nbsd_nat_target::thread_alive): Likewise.
11744         (nbsd_nat_target::thread_name): Likewise.
11745         (nbsd_add_threads): Likewise.
11746         (update_thread_list::post_attach): Likewise.
11747         (nbsd_nat_target::update_thread_list): Likewise.
11748         (post_attach::pid_to_str): Likewise.
11750 2020-04-06  Tom Tromey  <tromey@adacore.com>
11752         * ada-valprint.c (print_variant_part): Extract the variant field.
11753         (print_field_values): Use the field as the outer value when
11754         recursing.
11756 2020-04-06  Tom Tromey  <tromey@adacore.com>
11758         * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11759         * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11760         * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11761         * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11762         * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11764 2020-04-06  Tom Tromey  <tromey@adacore.com>
11766         * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11767         TYPE_CODE_ERROR.
11769 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
11771         * nbsd-tdep.c: Include "gdbarch.h".
11772         Define enum with NetBSD signal numbers.
11773         (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11774         * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11775         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11776         * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11777         * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11778         * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11779         * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11780         * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11781         * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11782         * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11783         * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11784         * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11786 2020-04-03  Hannes Domani  <ssbssa@yahoo.de>
11788         PR gdb/25325
11789         * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11791 2020-04-03  Tom Tromey  <tromey@adacore.com>
11793         * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11794         Read constant block.
11796 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
11798         * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11799         (gdb_bfd_get_full_section_contents): New declaration.
11800         * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11801         * windows-tdep.c (is_linked_with_cygwin_dll): Use
11802         gdb_bfd_get_full_section_contents.
11804 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
11806         * exec.c (build_section_table): Replace internal_error with
11807         gdb_assert.
11808         (section_table_xfer_memory_partial): Likewise.
11809         * mdebugread.c (parse_partial_symbols): Likewise.
11810         * psymtab.c (lookup_partial_symbol): Likewise.
11811         * utils.c (wrap_here): Likewise.
11813 2020-04-02  Tom Tromey  <tromey@adacore.com>
11815         * f-lang.c (build_fortran_types): Use arch_type to initialize
11816         builtin_complex_s32 in the TYPE_CODE_ERROR case.
11818 2020-04-02  Tom Tromey  <tromey@adacore.com>
11820         * dwarf2/read.c (partial_die_info::read): Do not create a vector
11821         of attributes.
11823 2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
11824             Bernd Edlinger <bernd.edlinger@hotmail.de>
11825             Tom Tromey  <tromey@adacore.com>
11827         * buildsym.c (buildsym_compunit::record_line): Remove
11828         deduplication code.
11830 2020-04-02  Tom de Vries  <tdevries@suse.de>
11832         PR ada/24671
11833         * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11835 2020-04-02  Tom de Vries  <tdevries@suse.de>
11837         * dwarf2/read.c (dwarf2_gdb_index_functions,
11838         dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11839         NULL.
11840         * psymtab.c (psym_lookup_global_symbol_language): New function.
11841         (psym_functions): Init psym_lookup_global_symbol_language with
11842         psym_lookup_global_symbol_language.
11843         * symfile-debug.c (debug_sym_quick_functions): Init
11844         lookup_global_symbol_language with NULL.
11845         * symfile.c (set_initial_language): Remove fixme comment.
11846         * symfile.h (struct quick_symbol_functions): Add
11847         lookup_global_symbol_language.
11848         * symtab.c (find_quick_global_symbol_language): New function.
11849         (find_main_name): Use find_quick_global_symbol_language.
11851 2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
11853         * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11855 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11857         * buildsym.c (record_line): Fix undefined behavior and preserve
11858         lines at eof.
11860 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11862         * buildsym.c (record_line): Fix the resizing condition.
11864 2020-04-01  Tom Tromey  <tom@tromey.com>
11866         * value.h (value_literal_complex): Add comment.
11867         * valops.c (value_literal_complex): Refer to value.h.
11869 2020-04-01  Tom Tromey  <tom@tromey.com>
11871         * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11872         (scalar_type): New rule, from typebase.
11873         (typebase): Use scalar_type.  Recognize complex types.
11874         (field_name): Handle FLOAT_KEYWORD.
11875         (ident_tokens): Add _Complex and __complex__.
11877 2020-04-01  Tom Tromey  <tom@tromey.com>
11879         PR exp/25299:
11880         * valarith.c (promotion_type, complex_binop): New functions.
11881         (scalar_binop): Handle complex numbers.  Use promotion_type.
11882         (value_pos, value_neg, value_complement): Handle complex numbers.
11884 2020-04-01  Tom Tromey  <tom@tromey.com>
11886         * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11887         (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11888         (parse_number): Handle complex numbers.
11890 2020-04-01  Tom Tromey  <tom@tromey.com>
11892         * c-valprint.c (c_decorations): Change complex suffix to "i".
11894 2020-04-01  Tom Tromey  <tom@tromey.com>
11896         * valprint.c (generic_value_print_complex): Use accessors.
11897         * value.h (value_real_part, value_imaginary_part): Declare.
11898         * valops.c (value_real_part, value_imaginary_part): New
11899         functions.
11900         * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11902 2020-04-01  Tom Tromey  <tom@tromey.com>
11904         * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11905         (read_range_type): Update.
11906         * mdebugread.c (basic_type): Update.
11907         * go-lang.c (build_go_types): Use init_complex_type.
11908         * gdbtypes.h (struct main_type) <complex_type>: New member.
11909         (init_complex_type): Update.
11910         (arch_complex_type): Don't declare.
11911         * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11912         Make name if none given.  Use alloc_type_copy.  Look for cached
11913         complex type.
11914         (arch_complex_type): Remove.
11915         (gdbtypes_post_init): Use init_complex_type.
11916         * f-lang.c (build_fortran_types): Use init_complex_type.
11917         * dwarf2/read.c (read_base_type): Update.
11918         * d-lang.c (build_d_types): Use init_complex_type.
11919         * ctfread.c (read_base_type): Update.
11921 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11923         * infrun.c (stop_all_threads): Update assertion, plus when
11924         stopping threads, take into account that we might be trying
11925         to stop an all-stop target.
11926         (stop_waiting): Call 'stop_all_threads' if there exists a
11927         non-stop target.
11929 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11931         * target.h (exists_non_stop_target): New function declaration.
11932         * target.c (exists_non_stop_target): New function.
11934 2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
11936         PR gdb/24789
11937         * eval.c (is_integral_or_integral_reference): New function.
11938         (evaluate_subexp_standard): Allow integer references in
11939         pointer arithmetic.
11941 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
11943         * remote.c (remote_target::remote_parse_stop_reply): Remove the
11944         check for no ptid in the stop reply when the target is non-stop.
11946 2020-04-01  Tom Tromey  <tromey@adacore.com>
11948         * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11949         "name" parameter to rvalue reference.  Initialize m_name_holder.
11950         <lookup_name_info>: New overloads.
11951         <name>: Return gdb::string_view.
11952         <c_str>: New method.
11953         <make_ignore_params>: Update.
11954         <search_name_hash>: Update.
11955         <language_lookup_name>: Return const char *.
11956         <m_name>: Change type.
11957         * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11958         (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11959         (lookup_name_info::match_any): Update.
11960         * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11961         Update.
11962         * minsyms.c (linkage_name_str): Update.
11963         * language.c (default_symbol_name_matcher): Update.
11964         * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11965         Update.
11966         * ada-lang.c (ada_fold_name): Change parameter to string_view.
11967         (ada_lookup_name_info::ada_lookup_name_info): Update.
11968         (literal_symbol_name_matcher): Update.
11970 2020-04-01  Tom Tromey  <tromey@adacore.com>
11972         * psymtab.c (psymtab_search_name): Remove function.
11973         (psym_lookup_symbol): Create search name and lookup name here.
11974         (lookup_partial_symbol): Remove "name" parameter; add
11975         lookup_name.
11976         (psym_expand_symtabs_for_function): Update.
11978 2020-03-31  Joel Jones  <joelkevinjones@gmail.com>
11980         PR tui/25597:
11981         * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11983 2020-03-31  Tom Tromey  <tromey@adacore.com>
11985         * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11986         memcpy.
11988 2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
11990         * features/riscv/32bit-csr.xml: Regenerated.
11991         * features/riscv/64bit-csr.xml: Regenerated.
11993 2020-03-30  Tom Tromey  <tromey@adacore.com>
11995         * ada-valprint.c (print_variant_part): Update.
11996         * ada-lang.h (ada_which_variant_applies): Update.
11997         * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11998         outer_valaddr parameters; replace with "outer" value parameter.
11999         (to_fixed_variant_branch_type): Update.
12001 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12003         * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12004         <list>.  Remove inclusion of observable.h.
12005         (PPC_DEBUG_CURRENT_VERSION): Move up define.
12006         (struct arch_lwp_info): New struct.
12007         (class ppc_linux_dreg_interface): New class.
12008         (struct ppc_linux_process_info): New struct.
12009         (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12010         <low_new_clone, low_forget_process, low_prepare_to_resume>
12011         <copy_thread_dreg_state, mark_thread_stale>
12012         <mark_debug_registers_changed, register_hw_breakpoint>
12013         <clear_hw_breakpoint, register_wp, clear_wp>
12014         <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12015         <num_memory_accesses, get_trigger_type>
12016         <create_watchpoint_request, hwdebug_point_cmp>
12017         <init_arch_lwp_info, get_arch_lwp_info>
12018         <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12019         methods.
12020         <struct ptid_hash>: New inner struct.
12021         <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12022         members.
12023         (saved_dabr_value, hwdebug_info, max_slots_number)
12024         (struct hw_break_tuple, struct thread_points, ppc_threads)
12025         (have_ptrace_hwdebug_interface)
12026         (hwdebug_find_thread_points_by_tid)
12027         (hwdebug_insert_point, hwdebug_remove_point): Remove.
12028         (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12029         m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12030         (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12031         use m_dreg_interface.
12032         (hwdebug_point_cmp): Change to...
12033         (ppc_linux_nat_target::hwdebug_point_cmp): ...this method.  Use
12034         reference arguments instead of pointers.
12035         (ppc_linux_nat_target::ranged_break_num_registers): Use
12036         m_dreg_interface.
12037         (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12038         m_dreg_interface.  Call register_hw_breakpoint.
12039         (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12040         m_dreg_interface.  Call clear_hw_breakpoint.
12041         (get_trigger_type): Change to...
12042         (ppc_linux_nat_target::get_trigger_type): ...this method.  Add
12043         comment.
12044         (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12045         use m_dreg_interface.  Call register_hw_breakpoint.
12046         (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12047         use m_dreg_interface.  Call clear_hw_breakpoint.
12048         (can_use_watchpoint_cond_accel): Change to...
12049         (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12050         method.  Update comment, use m_dreg_interface and
12051         m_process_info.
12052         (calculate_dvc): Change to...
12053         (ppc_linux_nat_target::calculate_dvc): ...this method.  Use
12054         m_dreg_interface.
12055         (num_memory_accesses): Change to...
12056         (ppc_linux_nat_target::num_memory_accesses): ...this method.
12057         (check_condition): Change to...
12058         (ppc_linux_nat_target::check_condition): ...this method.
12059         (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12060         comment, use m_dreg_interface.
12061         (create_watchpoint_request): Change to...
12062         (ppc_linux_nat_target::create_watchpoint_request): ...this
12063         method.  Use m_dreg_interface.
12064         (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12065         m_dreg_interface.  Call register_hw_breakpoint or register_wp.
12066         (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12067         m_dreg_interface.  Call clear_hw_breakpoint or clear_wp.
12068         (ppc_linux_nat_target::low_forget_process)
12069         (ppc_linux_nat_target::low_new_fork)
12070         (ppc_linux_nat_target::low_new_clone)
12071         (ppc_linux_nat_target::low_delete_thread)
12072         (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12073         (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12074         only call mark_thread_stale.
12075         (ppc_linux_thread_exit): Remove.
12076         (ppc_linux_nat_target::stopped_data_address): Change to...
12077         (ppc_linux_nat_target::low_stopped_data_address): This. Add
12078         comment, use m_dreg_interface and m_thread_hw_breakpoints.
12079         (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12080         (ppc_linux_nat_target::stopped_by_watchpoint): This.  Add
12081         comment.  Call low_stopped_data_address.
12082         (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12083         m_dreg_interface.
12084         (ppc_linux_nat_target::masked_watch_num_registers): Use
12085         m_dreg_interface.
12086         (ppc_linux_nat_target::copy_thread_dreg_state)
12087         (ppc_linux_nat_target::mark_thread_stale)
12088         (ppc_linux_nat_target::mark_debug_registers_changed)
12089         (ppc_linux_nat_target::register_hw_breakpoint)
12090         (ppc_linux_nat_target::clear_hw_breakpoint)
12091         (ppc_linux_nat_target::register_wp)
12092         (ppc_linux_nat_target::clear_wp)
12093         (ppc_linux_nat_target::init_arch_lwp_info)
12094         (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12095         (_initialize_ppc_linux_nat): Remove observer callback.
12097 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12099         * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12100         (ppc_linux_nat_target::auxv_parse)
12101         (ppc_linux_nat_target::read_description)
12102         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12103         Move up.
12105 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
12107         * linux-nat.h (low_new_clone): New method.
12108         * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12110 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12112         * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12113         (dbx_expand_psymtab): ... this.
12114         (start_psymtab): Update.
12115         * mdebugread.c (psymtab_to_symtab_1): Rename to...
12116         (mdebug_expand_psymtab): ... this.
12117         (parse_partial_symbols): Update.
12118         (new_psymtab): Update.
12119         * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12120         (xcoff_expand_psymtab): ... this.
12121         (xcoff_start_psymtab): Update.
12123 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12125         * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12126         <expand_dependencies>: ... this.
12127         * psymtab.c (partial_symtab::read_dependencies): Rename to...
12128         (partial_symtab::expand_dependencies): ... this.
12129         * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12130         Update.
12131         (dwarf2_psymtab::expand_psymtab): Update.
12132         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12133         * mdebugread.c (psymtab_to_symtab_1): Update.
12134         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12136 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
12138         * psympriv.h (discard_psymtab): Remove.
12139         * dbxread.c (dbx_end_psymtab): Update.
12140         * xcoffread.c (xcoff_end_psymtab): Update.
12142 2020-03-28  Tom Tromey  <tom@tromey.com>
12144         * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12145         comment.
12147 2020-03-28  Tom Tromey  <tom@tromey.com>
12149         * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12151 2020-03-27  Hannes Domani  <ssbssa@yahoo.de>
12153         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12155 2020-03-26  John Baldwin  <jhb@FreeBSD.org>
12157         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12159 2020-03-26  Tom Tromey  <tom@tromey.com>
12161         * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12162         (mark_common_block_symbol_computed, read_tag_string_type)
12163         (attr_to_dynamic_prop, read_subrange_type): Update.
12164         (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12165         to be methods on struct attribute.
12166         (skip_one_die, process_imported_unit_die, read_namespace_alias)
12167         (read_call_site_scope, partial_die_info::read)
12168         (partial_die_info::read, lookup_die_type, follow_die_ref):
12169         Update.
12170         * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12171         from dwarf2_get_ref_die_offset.
12172         (attribute::constant_value): New method, from
12173         dwarf2_get_attr_constant_value.
12174         * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12175         Declare method.
12176         <constant_value>: New method.
12178 2020-03-26  Tom Tromey  <tom@tromey.com>
12180         * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12181         (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12182         (dwarf_type_encoding_name): Move to stringify.c.
12183         * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12184         * dwarf2/stringify.c: New file.
12185         * dwarf2/stringify.h: New file.
12187 2020-03-26  Tom Tromey  <tom@tromey.com>
12189         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12190         Rewrite.
12192 2020-03-26  Tom Tromey  <tom@tromey.com>
12194         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12195         methods.
12196         * dwarf2/read.c (lookup_addr_base): Move to die.h.
12197         (lookup_ranges_base): Likewise.
12198         (read_cutu_die_from_dwo, read_full_die_1): Update.
12200 2020-03-26  Tom Tromey  <tom@tromey.com>
12202         * dwarf2/read.c (read_import_statement, read_file_scope)
12203         (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12204         (read_lexical_block_scope, read_call_site_scope)
12205         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12206         (handle_struct_member_die, process_structure_scope)
12207         (update_enumeration_type_from_children)
12208         (process_enumeration_scope, read_array_type, read_common_block)
12209         (read_namespace, read_module, read_subroutine_type): Update.
12210         (sibling_die): Remove.
12212 2020-03-26  Tom Tromey  <tom@tromey.com>
12214         * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12215         (build_type_psymtabs_reader, read_structure_type)
12216         (read_enumeration_type, read_full_die_1): Update.
12217         (dwarf2_attr_no_follow): Move to die.h.
12218         * dwarf2/die.h (struct die_info) <attr>: New method.
12220 2020-03-26  Tom Tromey  <tom@tromey.com>
12222         * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12223         <base_address>: Now an optional.
12224         (dwarf2_find_base_address, dwarf2_rnglists_process)
12225         (dwarf2_ranges_process, fill_in_loclist_baton)
12226         (dwarf2_symbol_mark_computed): Update.
12228 2020-03-26  Tom Tromey  <tom@tromey.com>
12230         * dwarf2/read.c (struct die_info): Move to die.h.
12231         * dwarf2/die.h: New file.
12233 2020-03-26  Tom Tromey  <tom@tromey.com>
12235         * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12236         * dwarf2/read.c
12237         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12238         Move to line-header.c.
12239         (read_checked_initial_length_and_offset, read_formatted_entries):
12240         Likewise.
12241         (dwarf_decode_line_header): Split into two.
12242         * dwarf2/line-header.c
12243         (dwarf2_statement_list_fits_in_line_number_section_complaint):
12244         Move from read.c.
12245         (read_checked_initial_length_and_offset, read_formatted_entries):
12246         Likewise.
12247         (dwarf_decode_line_header): New function, split from read.c.
12249 2020-03-26  Tom Tromey  <tom@tromey.com>
12251         * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12252         Declare method.
12253         * dwarf2/read.c (read_attribute_value): Update.
12254         (dwarf2_per_objfile::read_line_string): Rename from
12255         read_indirect_line_string.
12256         (read_formatted_entries): Update.
12258 2020-03-26  Tom Tromey  <tom@tromey.com>
12260         * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12261         variable.
12263 2020-03-26  Tom Tromey  <tom@tromey.com>
12265         * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12266         const.
12267         * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12268         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12269         parameter const.
12271 2020-03-26  Tom Tromey  <tom@tromey.com>
12273         * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12274         * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12275         * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12276         (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12278 2020-03-26  Tom Tromey  <tom@tromey.com>
12280         * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12281         file_names_size, file_full_name, file_file_name>: Use const.
12282         <file_name_at, file_names>: Add const overload.
12283         * dwarf2/line-header.c (line_header::file_file_name)
12284         (line_header::file_full_name): Update.
12286 2020-03-26  Tom Tromey  <tom@tromey.com>
12288         * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12289         (macro_start_file, consume_improper_spaces)
12290         (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12291         (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12292         (dwarf_decode_macros): Move to macro.c.
12293         * dwarf2/macro.c: New file.
12294         * dwarf2/macro.h: New file.
12295         * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12297 2020-03-26  Tom Tromey  <tom@tromey.com>
12299         * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12300         method.
12301         * dwarf2/section.c: New method.  From
12302         read_indirect_string_at_offset_from.
12303         * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12304         (read_indirect_string_at_offset_from): Move to section.c.
12305         (read_indirect_string_at_offset): Rewrite.
12306         (read_indirect_line_string_at_offset): Remove.
12307         (read_indirect_string, read_indirect_line_string)
12308         (dwarf_decode_macro_bytes): Update.
12310 2020-03-26  Tom Tromey  <tom@tromey.com>
12312         * dwarf2/section.h (struct dwarf2_section_info)
12313         <overload_complaint>: Declare.
12314         (dwarf2_section_buffer_overflow_complaint): Don't declare.
12315         * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12316         Rename from dwarf2_section_buffer_overflow_complaint.
12317         * dwarf2/read.c (skip_one_die, partial_die_info::read)
12318         (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12320 2020-03-26  Tom Tromey  <tom@tromey.com>
12322         * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12323         Declare.
12324         * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12325         Move from read.c.
12326         * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12327         to section.c.
12329 2020-03-26  Tom Tromey  <tom@tromey.com>
12331         * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12333 2020-03-26  Tom Tromey  <tom@tromey.com>
12335         * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12336         "builder".
12337         (dwarf_decode_macro_bytes): Likewise.  Add dwarf2_per_objfile
12338         parameter.
12339         (dwarf_decode_macros): Update.
12341 2020-03-26  Tom Tromey  <tom@tromey.com>
12343         * dwarf2/read.c (read_attribute_value): Update.
12344         (read_indirect_string_from_dwz): Move to dwz.c; change into
12345         method.
12346         (dwarf_decode_macro_bytes): Update.
12347         * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12348         * dwarf2/dwz.c: New file.
12349         * Makefile.in (COMMON_SFILES): Add dwz.c.
12351 2020-03-26  Tom Tromey  <tom@tromey.com>
12353         * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12354         * dwarf2/read.c: Add include.
12355         * dwarf2/index-write.c: Add include.
12356         * dwarf2/index-cache.c: Add include.
12357         * dwarf2/dwz.h: New file.
12359 2020-03-25  Tom Tromey  <tom@tromey.com>
12361         * compile/compile-object-load.c (get_out_value_type): Mention
12362         correct symbol name in error message.
12364 2020-03-25  Hannes Domani  <ssbssa@yahoo.de>
12366         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12368 2020-03-25  Tom de Vries  <tdevries@suse.de>
12370         * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12371         * symmisc.c (dump_symtab_1): Print user and includes fields.
12372         (maintenance_info_symtabs): Same.
12374 2020-03-25  Andrew Burgess  <andrew.burgess@embecosm.com>
12376         PR gdb/25534
12377         * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12378         (riscv_regcache_cooked_write): New function.
12379         (riscv_push_dummy_call): Use new function.
12380         (riscv_return_value): Likewise.
12382 2020-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
12384         * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12385         * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12386         * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12387         * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12388         * infrun.c (follow_fork): Likewise.
12389         (follow_fork_inferior): Likewise.
12390         * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12391         * linux-nat.h (class linux_nat_target): Likewise.
12392         * remote.c (class remote_target) <follow_fork>: Likewise.
12393         (remote_target::follow_fork): Likewise.
12394         * target-delegates.c: Re-generate.
12395         * target.c (default_follow_fork): Likewise.
12396         (target_follow_fork): Likewise.
12397         * target.h (struct target_ops) <follow_fork>: Likewise.
12398         (target_follow_fork): Likewise.
12400 2020-03-24  Tom de Vries  <tdevries@suse.de>
12402         * psymtab.c (maintenance_info_psymtabs): Print user field.
12404 2020-03-20  Tom Tromey  <tromey@adacore.com>
12406         * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12407         const.
12408         * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12409         const.
12411 2020-03-20  Simon Marchi  <simon.marchi@efficios.com>
12413         * ptrace.m4: Don't check for ptrace declaration.
12414         * config.in: Re-generate.
12415         * configure: Re-generate.
12416         * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12417         not defined.
12419 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12421         * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12422         `PTRACE_TYPE_RET'.
12423         * i386-bsd-nat.c (gdb_ptrace): Likewise.
12424         * sparc-nat.c (gdb_ptrace): Likewise.
12425         * x86-bsd-nat.c (gdb_ptrace): Likewise.
12427 2020-03-20  Tom Tromey  <tromey@adacore.com>
12429         * c-exp.y (lex_one_token): Fix assert.
12431 2020-03-20  Tom Tromey  <tromey@adacore.com>
12433         * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12434         * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12435         strncpy call.
12437 2020-03-20  Tom Tromey  <tromey@adacore.com>
12439         * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12441 2020-03-20  Tom Tromey  <tromey@adacore.com>
12443         * ada-valprint.c (print_variant_part): Remove parameters; switch
12444         to value-based API.
12445         (print_field_values): Likewise.
12446         (ada_val_print_struct_union): Likewise.
12447         (ada_value_print_1): Update.
12449 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12451         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12452         nbsd_nat_target instead of inf_ptrace_target.
12453         * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12454         nbsd_nat_target.
12456 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12458         * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12459         it to the ptrace call.
12460         * (store_registers): Likewise.
12462 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
12464         * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12465         it to the ptrace call.
12466         * (store_registers): Likewise.
12468 2020-03-19  Luis Machado  <luis.machado@linaro.org>
12470         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12471         valid, fetch vg value from ptrace.
12473 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
12474         * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12475         * inf-ptrace.c: Likewise.
12476         * (gdb_ptrace): Add.
12477         * (inf_ptrace_target::resume): Update.
12478         * (inf_ptrace_target::xfer_partial): Likewise.
12479         * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12480         * (inf_ptrace_peek_poke): Update.
12482 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
12484         * x86-bsd-nat.c (gdb_ptrace): New.
12485         * (x86bsd_dr_set): Add new argument `ptid'.
12486         * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12487         x86bsd_dr_set_addr): Update.
12489 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12491         * remote.c (remote_target::process_stop_reply): Handle events for
12492         all threads differently.
12494 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12496         * completer.c (completion_tracker::remove_completion): Define new
12497         function.
12498         * completer.h (completion_tracker::remove_completion): Declare new
12499         function.
12500         * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12501         when adding a C++ function symbol.
12503 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
12505         * completer.c (completion_tracker::completion_hash_entry): Define
12506         new class.
12507         (advance_to_filename_complete_word_point): Call
12508         recompute_lowest_common_denominator.
12509         (completion_tracker::completion_tracker): Call discard_completions
12510         to setup the hash table.
12511         (completion_tracker::discard_completions): Allow for being called
12512         from the constructor, pass new equal function, and element deleter
12513         when constructing the hash table.  Initialise new class member
12514         variables.
12515         (completion_tracker::maybe_add_completion): Remove use of
12516         m_entries_vec, and store more information into m_entries_hash.
12517         (completion_tracker::recompute_lcd_visitor): New function, most
12518         content taken from...
12519         (completion_tracker::recompute_lowest_common_denominator):
12520         ...here, this now just visits each item in the hash calling the
12521         above visitor.
12522         (completion_tracker::build_completion_result): Remove use of
12523         m_entries_vec, call recompute_lowest_common_denominator.
12524         * completer.h (completion_tracker::have_completions): Remove use
12525         of m_entries_vec.
12526         (completion_tracker::completion_hash_entry): Declare new class.
12527         (completion_tracker::recompute_lowest_common_denominator): Change
12528         function signature.
12529         (completion_tracker::recompute_lcd_visitor): Declare new function.
12530         (completion_tracker::m_entries_vec): Delete.
12531         (completion_tracker::m_entries_hash): Initialize to NULL.
12532         (completion_tracker::m_lowest_common_denominator_valid): New
12533         member variable.
12534         (completion_tracker::m_lowest_common_denominator_max_length): New
12535         member variable.
12537 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12539         * regformats/regdef.h: Put reg in gdb namespace.
12541 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12543         * i386-bsd-nat.c (gdb_ptrace): New.
12544         * (i386bsd_fetch_inferior_registers,
12545         i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12546         * (i386bsd_fetch_inferior_registers,
12547         i386bsd_store_inferior_registers) Use gdb_ptrace.
12549 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12551         * amd64-bsd-nat.c (gdb_ptrace): New.
12552         * (amd64bsd_fetch_inferior_registers,
12553         amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12554         * (amd64bsd_fetch_inferior_registers,
12555         amd64bsd_store_inferior_registers) Use gdb_ptrace.
12557 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12559         * user-regs.c (user_reg::read): Rename to...
12560         (user_reg::xread): ...this.
12561         * (append_user_reg): Rename argument `read' to `xread'.
12562         * (user_reg_add_builtin): Likewise.
12563         * (user_reg_add): Likewise.
12564         * (value_of_user_reg): Likewise.
12566 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12568         * sparc-nat.c (gdb_ptrace): New.
12569         * sparc-nat.c (sparc_fetch_inferior_registers)
12570         (sparc_store_inferior_registers) Remove obsolete comment.
12571         * sparc-nat.c (sparc_fetch_inferior_registers)
12572         (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12573         * sparc-nat.c (sparc_fetch_inferior_registers)
12574         (sparc_store_inferior_registers) Use gdb_ptrace.
12576 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12578         * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12579         it to the ptrace call.
12580         * sh-nbsd-nat.c (store_registers): Likewise.
12582 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12584         * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12585         nbsd_nat_target instead of inf_ptrace_target.
12586         * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12587         nbsd_nat_target.
12589 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12591         * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12593 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
12595         * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12596         <sys/sysctl.h>.
12597         * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12599 2020-03-17  Tom de Vries  <tdevries@suse.de>
12601         PR gdb/23710
12602         * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12603         fields.
12604         * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12605         fields.
12606         (process_imported_unit_die): Skip import of c++ CUs.
12608 2020-03-16  Tom Tromey  <tom@tromey.com>
12610         * p-valprint.c (pascal_object_print_value): Initialize
12611         base_value.
12613 2020-03-16  Anton Kolesov  <anton.kolesov@synopsys.com>
12614             Shahab Vahedi  <shahab@synopsys.com>
12616         * Makefile.in: Add arch/arc.o
12617         * configure.tgt: Likewise.
12618         * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12619         (_initialize_arc_tdep): Don't initialize old target descriptions.
12620         (arc_read_description): New function to cache target descriptions.
12621         * arc-tdep.h (arc_read_description): Add proto type.
12622         * arch/arc.c: New file.
12623         * arch/arc.h: Likewise.
12624         * features/Makefile: Replace old target descriptions with new.
12625         * features/arc-arcompact.c: Remove.
12626         * features/arc-arcompact.xml: Likewise.
12627         * features/arc-v2.c: Likewise
12628         * features/arc-v2.xml: Likewise
12629         * features/arc/aux-arcompact.xml: New file.
12630         * features/arc/aux-v2.xml: Likewise.
12631         * features/arc/core-arcompact.xml: Likewise.
12632         * features/arc/core-v2.xml: Likewise.
12633         * features/arc/aux-arcompact.c: Generate.
12634         * features/arc/aux-v2.c: Likewise.
12635         * features/arc/core-arcompact.c: Likewise.
12636         * features/arc/core-v2.c: Likewise.
12637         * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12639 2020-03-16  Tom Tromey  <tromey@adacore.com>
12641         PR gdb/25663:
12642         * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12643         putting value into bcache.
12645 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12647         PR gdb/21500
12648         * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12649         to...
12650         (amd64_windows_init_abi_common): ... this.  Don't set size of
12651         long type.
12652         (amd64_windows_init_abi): New function.
12653         (amd64_cygwin_init_abi): New function.
12654         (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12655         the Cygwin OS ABI.
12656         * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12657         comment.
12659 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12661         * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12662         * windows-tdep.c (CYGWIN_DLL_NAME): New.
12663         (pe_import_directory_entry): New struct type.
12664         (is_linked_with_cygwin_dll): New function.
12665         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12666         GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12667         * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12669 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12671         * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12672         i386_cygwin_core_osabi_sniffer.
12674 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12676         * i386-cygwin-tdep.c: Rename to...
12677         * i386-windows-tdep.c: ... this.
12678         * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12679         i386-windows-tdep.c.
12680         * configure.tgt: Likewise.
12682 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12684         * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12685         * osabi.c (gdb_osabi_names): Add "Windows".
12686         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12687         GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12688         (i386_cygwin_core_osabi_sniffer): New function, extracted from
12689         i386_cygwin_osabi_sniffer.
12690         (_initialize_i386_cygwin_tdep): Register OS ABI
12691         GDB_OSABI_WINDOWS for i386.
12692         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12693         GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12694         (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12695         for x86-64.
12696         * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12697         when the target matches '*-*-mingw*'.
12699 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12701         * defs.h (enum gdb_osabi): Move to...
12702         * osabi.h (enum gdb_osabi): ... here.
12703         * gdbarch.sh: Include osabi.h in gdbarch.h.
12704         * gdbarch.h: Re-generate.
12706 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
12708         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12709         function.
12710         (_initialize_amd64_windows_tdep): Register osabi sniffer.
12712 2020-03-14  Tom Tromey  <tom@tromey.com>
12714         * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12715         for C++.
12716         (c_type_print_modifier): Likewise.  Add "language" parameter.
12717         (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12718         (c_type_print_base_1): Update.
12719         * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12720         constants.
12721         * type-stack.c (type_stack::insert): Handle tp_atomic and
12722         tp_restrict.
12723         (type_stack::follow_type_instance_flags): Likewise.
12724         (type_stack::follow_types): Likewise.  Merge type-following code.
12725         * c-exp.y (RESTRICT, ATOMIC): New tokens.
12726         (space_identifier, cv_with_space_id)
12727         (const_or_volatile_or_space_identifier_noopt)
12728         (const_or_volatile_or_space_identifier): Remove.
12729         (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12730         rules.
12731         (ptr_operator, typebase): Update.
12732         (enum token_flag) <FLAG_C>: New constant.
12733         (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12734         "_Atomic".
12735         (lex_one_token): Handle FLAG_C.
12737 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12739         * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12740         it to the ptrace call.
12741         * m68k-bsd-nat.c (store_registers): Likewise.
12743 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12745         * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12746         gdb_byte *.
12747         * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12748         * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12749         * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12751 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12753         * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12754         nbsd_nat_target instead of inf_ptrace_target.
12755         * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12756         nbsd_nat_target.
12758 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12760         * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12761         register_t.
12763 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12765         * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12766         it to the ptrace call.
12767         * alpha-bsd-nat.c (store_registers): Likewise.
12769 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12771         * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12772         includes.
12773         * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12774         * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12775         fill_fpregset): Likewise.
12777 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12779         * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12780         nbsd_nat_target instead of inf_ptrace_target.
12781         * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12782         nbsd_nat_target.
12784 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12786         * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12787         register_t.
12789 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12791         * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12792         it to the ptrace call.
12793         * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12794         * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12795         * arm-nbsd-nat.c (store_register): Likewise.
12796         * arm-nbsd-nat.c (store_regs): Likewise.
12797         * arm-nbsd-nat.c (store_fp_register): Likewise.
12798         * arm-nbsd-nat.c (store_fp_regs): Likewise.
12800 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12802         * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12803         nbsd_nat_target instead of inf_ptrace_target.
12804         * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12805         nbsd_nat_target.
12807 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12809         * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12810         it to the ptrace call.
12811         * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12813 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12815         * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12816         it to the ptrace call.
12817         * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12819 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12821         * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12822         gdb_byte *.
12823         * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12825 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12827         * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12828         instead of inf_ptrace_target.
12829         * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12830         nbsd_nat_target.
12832 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12834         * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12835         register_t.
12837 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12839         * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12840         register_t.
12842 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
12844         * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12845         register_t.
12847 2020-03-13  Tom Tromey  <tom@tromey.com>
12849         * value.h (val_print): Don't declare.
12850         * valprint.h (val_print_array_elements)
12851         (val_print_scalar_formatted, generic_val_print): Don't declare.
12852         * valprint.c (generic_val_print_array): Take a struct value.
12853         (generic_val_print_ptr, generic_val_print_memberptr)
12854         (generic_val_print_bool, generic_val_print_int)
12855         (generic_val_print_char, generic_val_print_complex)
12856         (generic_val_print): Remove.
12857         (generic_value_print): Update.
12858         (do_val_print): Remove unused parameters.  Don't call
12859         la_val_print.
12860         (val_print): Remove.
12861         (common_val_print): Update.  Don't call value_check_printable.
12862         (val_print_scalar_formatted, val_print_array_elements): Remove.
12863         * rust-lang.c (rust_val_print): Remove.
12864         (rust_language_defn): Update.
12865         * p-valprint.c (pascal_val_print): Remove.
12866         (pascal_value_print_inner): Update.
12867         (pascal_object_print_val_fields, pascal_object_print_val):
12868         Remove.
12869         (pascal_object_print_static_field): Update.
12870         * p-lang.h (pascal_val_print): Don't declare.
12871         * p-lang.c (pascal_language_defn): Update.
12872         * opencl-lang.c (opencl_language_defn): Update.
12873         * objc-lang.c (objc_language_defn): Update.
12874         * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12875         * m2-lang.h (m2_val_print): Don't declare.
12876         * m2-lang.c (m2_language_defn): Update.
12877         * language.h (struct language_defn) <la_val_print>: Remove.
12878         * language.c (unk_lang_value_print_inner): Rename.  Change
12879         argument types.
12880         (unknown_language_defn, auto_language_defn): Update.
12881         * go-valprint.c (go_val_print): Remove.
12882         * go-lang.h (go_val_print): Don't declare.
12883         * go-lang.c (go_language_defn): Update.
12884         * f-valprint.c (f_val_print): Remove.
12885         * f-lang.h (f_value_print): Don't declare.
12886         * f-lang.c (f_language_defn): Update.
12887         * d-valprint.c (d_val_print): Remove.
12888         * d-lang.h (d_value_print): Don't declare.
12889         * d-lang.c (d_language_defn): Update.
12890         * cp-valprint.c (cp_print_value_fields)
12891         (cp_print_value_fields_rtti, cp_print_value): Remove.
12892         (cp_print_static_field): Update.
12893         * c-valprint.c (c_val_print_array, c_val_print_ptr)
12894         (c_val_print_struct, c_val_print_union, c_val_print_int)
12895         (c_val_print_memberptr, c_val_print): Remove.
12896         * c-lang.h (c_val_print_array, cp_print_value_fields)
12897         (cp_print_value_fields_rtti): Don't declare.
12898         * c-lang.c (c_language_defn, cplus_language_defn)
12899         (asm_language_defn, minimal_language_defn): Update.
12900         * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12901         (ada_val_print_enum): Take a struct value.
12902         (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12903         (ada_val_print): Remove.
12904         (ada_value_print_1): Update.
12905         (printable_val_type): Remove.
12906         * ada-lang.h (ada_val_print): Don't declare.
12907         * ada-lang.c (ada_language_defn): Update.
12909 2020-03-13  Tom Tromey  <tom@tromey.com>
12911         * valprint.c (do_val_print): Update.
12912         * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12913         a struct value.
12914         (value_to_value_object_no_release): Declare.
12915         * python/py-value.c (value_to_value_object_no_release): New
12916         function.
12917         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12918         struct value.
12919         * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12920         function.
12921         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12922         a struct value.
12923         * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12924         Declare.
12925         (gdbscm_apply_val_pretty_printer): Take a struct value.
12926         * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12927         value.
12928         * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12929         value.
12930         * extension-priv.h (struct extension_language_ops)
12931         <apply_val_pretty_printer>: Take a struct value.
12932         * cp-valprint.c (cp_print_value): Create a struct value.
12933         (cp_print_value): Update.
12935 2020-03-13  Tom Tromey  <tom@tromey.com>
12937         * ada-valprint.c (print_field_values): Call common_val_print.
12939 2020-03-13  Tom Tromey  <tom@tromey.com>
12941         * ada-valprint.c (val_print_packed_array_elements): Remove
12942         bitoffset and val parameters.  Call common_val_print.
12943         (ada_val_print_string): Remove offset, address, and original_value
12944         parameters.
12945         (ada_val_print_array): Update.
12946         (ada_value_print_array): New function.
12947         (ada_value_print_1): Call it.
12949 2020-03-13  Tom Tromey  <tom@tromey.com>
12951         * ada-valprint.c (ada_value_print): Use common_val_print.
12953 2020-03-13  Tom Tromey  <tom@tromey.com>
12955         * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12957 2020-03-13  Tom Tromey  <tom@tromey.com>
12959         * ada-valprint.c (ada_value_print_num): New function.
12960         (ada_value_print_1): Use it.
12962 2020-03-13  Tom Tromey  <tom@tromey.com>
12964         * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12966 2020-03-13  Tom Tromey  <tom@tromey.com>
12968         * ada-valprint.c (ada_value_print_ptr): New function.
12969         (ada_value_print_1): Use it.
12971 2020-03-13  Tom Tromey  <tom@tromey.com>
12973         * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12974         call common_val_print.
12975         (ada_val_print_1): Update.
12976         (ada_value_print_1): New function.
12977         (ada_value_print_inner): Rewrite.
12979 2020-03-13  Tom Tromey  <tom@tromey.com>
12981         * cp-valprint.c (cp_print_value_fields): Update.
12982         (cp_print_value): New function.
12984 2020-03-13  Tom Tromey  <tom@tromey.com>
12986         * m2-valprint.c (m2_value_print_inner): Use
12987         cp_print_value_fields.
12988         * cp-valprint.c (cp_print_value_fields): New function.
12989         * c-valprint.c (c_value_print_struct): New function.
12990         (c_value_print_inner): Use c_value_print_struct.
12991         * c-lang.h (cp_print_value_fields): Declare.
12993 2020-03-13  Tom Tromey  <tom@tromey.com>
12995         * c-valprint.c (c_value_print_array): New function.
12996         (c_value_print_inner): Use it.
12998 2020-03-13  Tom Tromey  <tom@tromey.com>
13000         * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
13017 2020-03-13  Tom Tromey  <tom@tromey.com>
13019         * valprint.c (generic_value_print_complex): New function.
13020         (generic_value_print): Use it.
13022 2020-03-13  Tom Tromey  <tom@tromey.com>
13024         * valprint.c (generic_val_print_float): Don't call
13025         val_print_scalar_formatted.
13026         (generic_val_print, generic_value_print): Update.
13028 2020-03-13  Tom Tromey  <tom@tromey.com>
13030         * valprint.c (generic_value_print_char): New function
13031         (generic_value_print): Use it.
13033 2020-03-13  Tom Tromey  <tom@tromey.com>
13035         * valprint.c (generic_value_print_int): New function.
13036         (generic_value_print): Use it.
13038 2020-03-13  Tom Tromey  <tom@tromey.com>
13040         * valprint.c (generic_value_print_bool): New function.
13041         (generic_value_print): Use it.
13043 2020-03-13  Tom Tromey  <tom@tromey.com>
13045         * valprint.c (generic_val_print_func): Simplify.
13046         (generic_val_print, generic_value_print): Update.
13048 2020-03-13  Tom Tromey  <tom@tromey.com>
13050         * valprint.c (generic_val_print_flags): Remove.
13051         (generic_val_print, generic_value_print): Update.
13052         (val_print_type_code_flags): Add original_value parameter.
13054 2020-03-13  Tom Tromey  <tom@tromey.com>
13056         * valprint.c (generic_val_print): Update.
13057         (generic_value_print): Update.
13058         * valprint.c (generic_val_print_enum): Don't call
13059         val_print_scalar_formatted.
13061 2020-03-13  Tom Tromey  <tom@tromey.com>
13063         * valprint.c (generic_value_print): Call generic_value_print_ptr.
13064         * valprint.c (generic_value_print_ptr): New function.
13066 2020-03-13  Tom Tromey  <tom@tromey.com>
13068         * valprint.c (generic_value_print): Rewrite.
13070 2020-03-13  Tom Tromey  <tom@tromey.com>
13072         * p-valprint.c (pascal_object_print_value_fields)
13073         (pascal_object_print_value): New functions.
13075 2020-03-13  Tom Tromey  <tom@tromey.com>
13077         * p-valprint.c (pascal_value_print_inner): Rewrite.
13079 2020-03-13  Tom Tromey  <tom@tromey.com>
13081         * f-valprint.c (f_value_print_innner): Rewrite.
13083 2020-03-13  Tom Tromey  <tom@tromey.com>
13085         * m2-valprint.c (m2_print_unbounded_array): New overload.
13086         (m2_print_unbounded_array): Update.
13087         (m2_print_array_contents): Take a struct value.
13088         (m2_value_print_inner): Rewrite.
13090 2020-03-13  Tom Tromey  <tom@tromey.com>
13092         * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13093         (d_value_print_inner): New function.
13094         * d-lang.h (d_value_print_inner): Declare.
13095         * d-lang.c (d_language_defn): Use d_value_print_inner.
13097 2020-03-13  Tom Tromey  <tom@tromey.com>
13099         * go-valprint.c (go_value_print_inner): New function.
13100         * go-lang.h (go_value_print_inner): Declare.
13101         * go-lang.c (go_language_defn): Use go_value_print_inner.
13103 2020-03-13  Tom Tromey  <tom@tromey.com>
13105         * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13106         API.
13107         (rust_val_print): Rewrite.
13108         (rust_value_print_inner): New function, from rust_val_print.
13109         (rust_language_defn): Use rust_value_print_inner.
13111 2020-03-13  Tom Tromey  <tom@tromey.com>
13113         * ada-valprint.c (ada_value_print_inner): New function.
13114         * ada-lang.h (ada_value_print_inner): Declare.
13115         * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13117 2020-03-13  Tom Tromey  <tom@tromey.com>
13119         * f-valprint.c (f_value_print_innner): New function.
13120         * f-lang.h (f_value_print_innner): Declare.
13121         * f-lang.c (f_language_defn): Use f_value_print_innner.
13123 2020-03-13  Tom Tromey  <tom@tromey.com>
13125         * p-valprint.c (pascal_value_print_inner): New function.
13126         * p-lang.h (pascal_value_print_inner): Declare.
13127         * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13129 2020-03-13  Tom Tromey  <tom@tromey.com>
13131         * m2-valprint.c (m2_value_print_inner): New function.
13132         * m2-lang.h (m2_value_print_inner): Declare.
13133         * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13135 2020-03-13  Tom Tromey  <tom@tromey.com>
13137         * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13138         * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13139         * c-valprint.c (c_value_print_inner): New function.
13140         * c-lang.h (c_value_print_inner): Declare.
13141         * c-lang.c (c_language_defn, cplus_language_defn)
13142         (asm_language_defn, minimal_language_defn): Use
13143         c_value_print_inner.
13145 2020-03-13  Tom Tromey  <tom@tromey.com>
13147         * p-valprint.c (pascal_object_print_value_fields): Now static.
13148         * p-lang.h (pascal_object_print_value_fields): Don't declare.
13150 2020-03-13  Tom Tromey  <tom@tromey.com>
13152         * c-valprint.c (c_val_print_array): Simplify.
13154 2020-03-13  Tom Tromey  <tom@tromey.com>
13156         * valprint.c (value_print_array_elements): New function.
13157         * valprint.h (value_print_array_elements): Declare.
13159 2020-03-13  Tom Tromey  <tom@tromey.com>
13161         * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13162         * mips-tdep.c (mips_print_register): Use
13163         value_print_scalar_formatted.
13165 2020-03-13  Tom Tromey  <tom@tromey.com>
13167         * valprint.h (value_print_scalar_formatted): Declare.
13168         * valprint.c (value_print_scalar_formatted): New function.
13170 2020-03-13  Tom Tromey  <tom@tromey.com>
13172         * valprint.h (generic_value_print): Declare.
13173         * valprint.c (generic_value_print): New function.
13175 2020-03-13  Tom Tromey  <tom@tromey.com>
13177         * valprint.c (do_val_print): Call la_value_print_inner, if
13178         available.
13179         * rust-lang.c (rust_language_defn): Update.
13180         * p-lang.c (pascal_language_defn): Update.
13181         * opencl-lang.c (opencl_language_defn): Update.
13182         * objc-lang.c (objc_language_defn): Update.
13183         * m2-lang.c (m2_language_defn): Update.
13184         * language.h (struct language_defn) <la_value_print_inner>: New
13185         member.
13186         * language.c (unknown_language_defn, auto_language_defn): Update.
13187         * go-lang.c (go_language_defn): Update.
13188         * f-lang.c (f_language_defn): Update.
13189         * d-lang.c (d_language_defn): Update.
13190         * c-lang.c (c_language_defn, cplus_language_defn)
13191         (asm_language_defn, minimal_language_defn): Update.
13192         * ada-lang.c (ada_language_defn): Update.
13194 2020-03-13  Tom Tromey  <tom@tromey.com>
13196         * c-valprint.c (c_value_print): Use common_val_print.
13198 2020-03-13  Tom Tromey  <tom@tromey.com>
13200         * cp-valprint.c (cp_print_static_field): Use common_val_print.
13202 2020-03-13  Tom Tromey  <tom@tromey.com>
13204         * f-valprint.c (f77_print_array_1, f_val_print): Use
13205         common_val_print.
13207 2020-03-13  Tom Tromey  <tom@tromey.com>
13209         * riscv-tdep.c (riscv_print_one_register_info): Use
13210         common_val_print.
13212 2020-03-13  Tom Tromey  <tom@tromey.com>
13214         * mi/mi-main.c (output_register): Use common_val_print.
13216 2020-03-13  Tom Tromey  <tom@tromey.com>
13218         * infcmd.c (default_print_one_register_info): Use
13219         common_val_print.
13221 2020-03-13  Tom Tromey  <tom@tromey.com>
13223         * valprint.h (common_val_print_checked): Declare.
13224         * valprint.c (common_val_print_checked): New function.
13225         * stack.c (print_frame_arg): Use common_val_print_checked.
13227 2020-03-13  Tom Tromey  <tom@tromey.com>
13229         * valprint.c (do_val_print): New function, from val_print.
13230         (val_print): Use do_val_print.
13231         (common_val_print): Use do_val_print.
13233 2020-03-13  Tom Tromey  <tom@tromey.com>
13235         * valprint.c (value_print): Use scoped_value_mark.
13237 2020-03-13  Tom de Vries  <tdevries@suse.de>
13239         PR symtab/25646
13240         * psymtab.c (partial_symtab::partial_symtab): Don't set
13241         globals_offset and statics_offset.  Push element onto
13242         current_global_psymbols and current_static_psymbols stacks.
13243         (concat): New function.
13244         (end_psymtab_common): Set globals_offset and statics_offset.  Pop
13245         element from current_global_psymbols and current_static_psymbols
13246         stacks.  Concat popped elements to global_psymbols and
13247         static_symbols.
13248         (add_psymbol_to_list): Use current_global_psymbols and
13249         current_static_psymbols stacks.
13250         * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13251         current_static_psymbols fields.
13253 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13255         * corelow.c (sniff_core_bfd): Remove.
13256         (class core_target) <m_core_vec>: Remove.
13257         (core_target::core_target): Update.
13258         (core_file_fns): Remove.
13259         (deprecated_add_core_fns): Remove.
13260         (default_core_sniffer): Remove.
13261         (sniff_core_bfd): Remove.
13262         (default_check_format): Remove.
13263         (gdb_check_format): Remove.
13264         (core_target_open): Update.
13265         (core_target::get_core_register_section): Update.
13266         (get_core_registers_cb): Update.
13267         (core_target::fetch_registers): Update.
13268         * gdbcore.h (struct core_fns): Remove.
13269         (deprecated_add_core_fns): Remove.
13270         (default_core_sniffer): Remove.
13271         (default_check_format): Remove.
13273 2020-03-12  Tom Tromey  <tom@tromey.com>
13275         * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13276         CORE_ADDR.
13277         (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13279 2020-03-12  Tom Tromey  <tom@tromey.com>
13281         * remote.c (remote_target::download_tracepoint)
13282         (remote_target::enable_tracepoint)
13283         (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13284         * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13285         sprintf_vma.
13287 2020-03-12  Tom Tromey  <tom@tromey.com>
13289         * symfile-mem.c: Update CORE_ADDR size assert.
13291 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13293         * selftest.m4: Move to gdbsupport/.
13294         * acinclude.m4: Update path to selftest.m4.
13296 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13298         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13299         (SELFTESTS_SRCS): ... this.  Add disasm-selftests.c,
13300         gdbarch-selfselftests.c and selftest-arch.c.
13301         (SUBDIR_UNITTESTS_OBS): Rename to...
13302         (SELFTESTS_OBS): ... this.
13303         (COMMON_SFILES): Remove disasm-selftests.c and
13304         gdbarch-selftests.c.
13305         * configure.ac: Don't add selftest-arch.{c,o} to
13306         CONFIG_{SRCS,OBS}.
13307         * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13308         preprocessor conditions.
13310 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13312         * configure.ac: Don't source bfd/development.sh.
13313         * selftest.m4: Modify comment.
13314         * configure: Re-generate.
13316 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
13318         * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13319         not "true" or "false".
13320         * configure: Re-generate.
13322 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
13324         * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13325         * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13326         renamed to arm_nbsd_supply_gregset.
13327         (fetch_register): Update to call arm_nbsd_supply_gregset.
13328         (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13329         (arm_netbsd_nat_target::fetch_registers): Update.
13330         (fetch_elfcore_registers): Removed.
13331         (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13332         * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13333         (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13334         not require NetBSD system headers.
13335         (arm_nbsd_regset): New struct.
13336         (arm_nbsd_iterate_over_regset_sections): New function.
13337         (arm_netbsd_init_abi_common): Updated to call
13338         set_gdbarch_iterate_over_regset_sections.
13339         * arm-nbsd-tdep.h: New file.
13341 2020-03-11  Kevin Buettner  <kevinb@redhat.com>
13343         * symtab.c (find_pc_sect_line): Add check which prevents infinite
13344         recursion.
13345         
13346 2020-03-11  Simon Marchi  <simon.marchi@efficios.com>
13348         * configure: Re-generate.
13350 2020-03-11  Tom Tromey  <tromey@adacore.com>
13352         * ada-typeprint.c (print_choices): Fix comment.
13354 2020-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
13356         * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13357         previous item in the list, when the list has no items.
13359 2020-03-11  Tom de Vries  <tdevries@suse.de>
13361         * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13362         PROP_LOCLIST handling code.
13364 2020-03-10  Andrew Burgess  <andrew.burgess@embecosm.com>
13366         * buildsym-legacy.c (record_line): Pass extra parameter to
13367         record_line.
13368         * buildsym.c (buildsym_compunit::record_line): Take an extra
13369         parameter, reduce duplication in the line table, and record the
13370         is_stmt flag in the line table.
13371         * buildsym.h (buildsym_compunit::record_line): Add extra
13372         parameter.
13373         * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13374         non-statement lines.
13375         * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13376         this to the symtab builder.
13377         (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13378         (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13379         through to dwarf_record_line_1.
13380         * infrun.c (process_event_stop_test): When stepping, don't stop at
13381         a non-statement instruction, and only refresh the step info when
13382         we land in the middle of a line's range.  Also add an extra
13383         comment.
13384         * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13385         field.
13386         * record-btrace.c (btrace_find_line_range): Only record lines
13387         marked as is-statement.
13388         * stack.c (frame_show_address): Show the frame address if we are
13389         in a non-statement sal.
13390         * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13391         (maintenance_print_one_line_table): Print a header for the is_stmt
13392         column, and include is_stmt information in the output.
13393         * symtab.c (find_pc_sect_line): Find lines marked as statements in
13394         preference to non-statements.
13395         (find_pcs_for_symtab_line): Prefer is-statement entries.
13396         (find_line_common): Likewise.
13397         * symtab.h (struct linetable_entry): Add is_stmt field.
13398         (struct symtab_and_line): Likewise.
13399         * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13400         arranging the line table.
13402 2020-03-07  Tom de Vries  <tdevries@suse.de>
13404         * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13405         DIE.
13407 2020-03-07  Tom Tromey  <tom@tromey.com>
13409         * valops.c (value_literal_complex): Remove obsolete comment.
13410         * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13411         comment.
13413 2020-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13415         * infrun.h: Forward-declare thread_info.
13416         (set_step_info): Add thread_info parameter, add doc.
13417         * infrun.c (set_step_info): Add thread_info parameter, move doc
13418         to header.
13419         * infrun.c (process_event_stop_test): Pass thread to
13420         set_step_info call.
13421         * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13422         set_step_info.
13423         (prepare_one_step): Add thread_info parameter, pass it to
13424         set_step_frame and prepare_one_step (recursive) call.
13425         (step_1): Pass thread to prepare_one_step call.
13426         (step_command_fsm::should_stop): Pass thread to
13427         prepare_one_step.
13428         (until_next_fsm): Pass thread to set_step_frame call.
13429         (finish_command): Pass thread to set_step_info call.
13431 2020-03-06  Hannes Domani  <ssbssa@yahoo.de>
13433         * windows-tdep.c (windows_solib_create_inferior_hook):
13434         Check if inferior is running.
13436 2020-03-06  Tom de Vries  <tdevries@suse.de>
13438         * NEWS: Fix "the the".
13439         * ctfread.c: Same.
13441 2020-03-06  Tom de Vries  <tdevries@suse.de>
13443         * psymtab.c (psymtab_to_symtab): Don't print "done.".
13445 2020-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13447         * .dir-locals.el: Add a comment referencing the other copies of
13448         this file.
13450 2020-03-05  John Baldwin  <jhb@FreeBSD.org>
13452         * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13453         psargs.
13455 2020-03-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
13457         * .gitattributes: New file.
13459 2020-03-04  Tom Tromey  <tom@tromey.com>
13461         * symmisc.c (print_symbol_bcache_statistics)
13462         (print_objfile_statistics): Update.
13463         * symfile.c (allocate_symtab): Use intern.
13464         * psymtab.c (partial_symtab::partial_symtab): Use intern.
13465         * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13466         macro_cache>: Remove.
13467         <string_cache>: New member.
13468         (struct objfile) <intern>: New methods.
13469         * elfread.c (elf_symtab_read): Use intern.
13470         * dwarf2/read.c (fixup_go_packaging): Intern package name.
13471         (dwarf2_compute_name, dwarf2_physname)
13472         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13473         names.
13474         (guess_partial_die_structure_name): Update.
13475         (partial_die_info::fixup): Intern name.
13476         (dwarf2_canonicalize_name): Change parameter to objfile.  Intern
13477         name.
13478         (dwarf2_name): Intern name.  Update.
13479         * buildsym.c (buildsym_compunit::get_macro_table): Use
13480         string_cache.
13482 2020-03-04  Tom Tromey  <tom@tromey.com>
13484         * jit.c (bfd_open_from_target_memory): Make "target" const.
13485         * corefile.c (gnutarget): Now const.
13486         * gdbcore.h (gnutarget): Now const.
13488 2020-03-04  Hannes Domani  <ssbssa@yahoo.de>
13490         * NEWS: Mention support for WOW64 processes.
13491         * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13492         (amd64_windows_segment_register_p): Remove static.
13493         (_initialize_amd64_windows_nat): Update.
13494         * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13495         * i386-windows-nat.c (context_offset): Update.
13496         (i386_mappings): Rename and remove static.
13497         (i386_windows_segment_register_p): Remove static.
13498         (_initialize_i386_windows_nat): Update.
13499         * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13500         (STATUS_WX86_SINGLE_STEP): New macro.
13501         (EnumProcessModulesEx): New macro.
13502         (Wow64SuspendThread): New macro.
13503         (Wow64GetThreadContext): New macro.
13504         (Wow64SetThreadContext): New macro.
13505         (Wow64GetThreadSelectorEntry): New macro.
13506         (windows_set_context_register_offsets): Add static.
13507         (windows_set_segment_register_p): Likewise.
13508         (windows_add_thread): Adapt for WOW64 processes.
13509         (windows_fetch_one_register): Likewise.
13510         (windows_nat_target::fetch_registers): Likewise.
13511         (windows_store_one_register): Likewise.
13512         (display_selector): Likewise.
13513         (display_selectors): Likewise.
13514         (handle_exception): Likewise.
13515         (windows_continue): Likewise.
13516         (windows_nat_target::resume): Likewise.
13517         (windows_add_all_dlls): Likewise.
13518         (do_initial_windows_stuff): Likewise.
13519         (windows_nat_target::attach): Likewise.
13520         (windows_get_exec_module_filename): Likewise.
13521         (windows_nat_target::create_inferior): Likewise.
13522         (windows_xfer_siginfo): Likewise.
13523         (_initialize_loadable): Initialize Wow64SuspendThread,
13524         Wow64GetThreadContext, Wow64SetThreadContext,
13525         Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13526         * windows-nat.h (windows_set_context_register_offsets):
13527         Remove declaration.
13528         (windows_set_segment_register_p): Likewise.
13529         (i386_windows_segment_register_p): Add declaration.
13530         (amd64_windows_segment_register_p): Likewise.
13532 2020-03-04  Luis Machado  <luis.machado@linaro.org>
13534         Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13535         in "info registers" for AArch64/ARM.
13537         The change caused "info registers" to not print GPR's.
13539         gdb/ChangeLog:
13541         2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
13543         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13544         when reg->group is empty and reggroup is not.
13546 2020-03-03  Tom Tromey  <tromey@adacore.com>
13548         * dwarf2/frame.c (struct dwarf2_frame_cache)
13549         <checked_tailcall_bottom, entry_cfa_sp_offset,
13550         entry_cfa_sp_offset_p>: Remove members.
13551         (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13552         (dwarf2_frame_prev_register): Don't call
13553         dwarf2_tailcall_sniffer_first.
13554         (dwarf2_append_unwinders): Don't append tailcall unwinder.
13555         * frame-unwind.c (add_unwinder): New fuction.
13556         (frame_unwind_init): Use it.  Add tailcall unwinder.
13558 2020-03-03  Andrew Burgess  <andrew.burgess@embecosm.com>
13559             Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
13561         * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13562         value should be printed as true.
13564 2020-03-03  Hannes Domani  <ssbssa@yahoo.de>
13566         * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13567         (windows_init_abi): Set and use windows_so_ops.
13569 2020-03-03  Sergio Durigan Junior  <sergiodj@redhat.com>
13571         * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13572         when verifying if dealing with a convenience variable.
13574 2020-03-03  Luis Machado  <luis.machado@linaro.org>
13576         * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13578 2020-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13580         * infrun.c (gdbarch_supports_displaced_stepping): New.
13581         (use_displaced_stepping): Break up conditions in smaller pieces.
13582         Use gdbarch_supports_displaced_stepping.
13583         (displaced_step_prepare_throw): Use
13584         gdbarch_supports_displaced_stepping.
13586 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
13588         * NEWS: Mention new behaviour of the history filename.
13589         * top.c (write_history_p): Add comment.
13590         (show_write_history_p): Add header comment, give a different
13591         message when history writing is on, but the history filename is
13592         empty.
13593         (history_filename): Add comment.
13594         (history_filename_empty): New function.
13595         (show_history_filename): Add header comment, give a different
13596         message when the filename is empty.
13597         (init_history): Compare history_filename against nullptr, and only
13598         read history if the filename is not empty.
13599         (set_history_filename): Add header comment, and only make
13600         non-empty filenames absolute.
13601         (init_main): Make the filename argument to 'set history filename'
13602         optional.
13604 2020-03-02  Christian Biesinger  <cbiesinger@google.com>
13606         * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13607         (arm_supply_vfpregset): ...this, and update to use VFP registers.
13608         (fetch_fp_register): Update.
13609         (fetch_fp_regs): Update.
13610         (store_fp_register): Update.
13611         (store_fp_regs): Update.
13612         (arm_netbsd_nat_target::read_description): New function.
13613         (fetch_elfcore_registers): Update.
13615 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
13617         * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13618         general_thread if the stop reply is missing a thread-id.
13619         (remote_target::process_stop_reply): Use the first non-exited
13620         thread if the target didn't pass a thread-id.
13621         * infrun.c (do_target_wait): Move call to
13622         switch_to_inferior_no_thread to ....
13623         (do_target_wait_1): ... here.
13625 2020-02-29  Jon Turney  <jon.turney@dronecode.org.uk>
13627         * debuginfod-support.c: Include defs.h first.
13629 2020-02-28  Tom de Vries  <tdevries@suse.de>
13631         * symfile.c (set_initial_language): Use default language for lookup.
13633 2020-02-28  Simon Marchi  <simon.marchi@efficios.com>
13635         * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13636         reader variable, pass `this` to read_cutu_die_from_dwo.
13638 2020-02-27  Aaron Merey  <amerey@redhat.com>
13640         * source.c (open_source_file): Check for nullptr when computing
13641         srcpath.
13643 2020-02-27  Tom Tromey  <tromey@adacore.com>
13645         * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13646         member.
13647         (dwarf2_add_field): Don't update nfields.
13648         (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13650 2020-02-27  Andrew Burgess  <andrew.burgess@embecosm.com>
13652         * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13653         abs.
13655 2020-02-26  Tom Tromey  <tom@tromey.com>
13657         * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13658         (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13659         (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13660         (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13661         per_cu_data.
13663 2020-02-26  Tom Tromey  <tom@tromey.com>
13665         * dwarf2/index-write.c (psym_index_map): Change type.
13666         (add_address_entry_worker, write_one_signatured_type)
13667         (recursively_count_psymbols, recursively_write_psymbols)
13668         (class debug_names, psyms_seen_size, write_gdbindex)
13669         (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13671 2020-02-26  Aaron Merey  <amerey@redhat.com>
13673         * Makefile.in: Handle optional debuginfod support.
13674         * NEWS: Update.
13675         * README: Add --with-debuginfod summary.
13676         * config.in: Regenerate.
13677         * configure: Regenerate.
13678         * configure.ac: Handle optional debuginfod support.
13679         * debuginfod-support.c: debuginfod helper functions.
13680         * debuginfod-support.h: Ditto.
13681         * doc/gdb.texinfo: Add --with-debuginfod to configure options
13682         summary.
13683         * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13684         when a dwz file cannot be found.
13685         * elfread.c (elf_symfile_read): Query debuginfod servers when a
13686         debuginfo file cannot be found.
13687         * source.c (open_source_file): Query debuginfod servers when a
13688         source file cannot be found.
13689         * top.c (print_gdb_configuration): Include
13690         --{with,without}-debuginfod in the output.
13692 2020-02-26  Jérémie Galarneau  <jeremie.galarneau@efficios.com>
13694         * thread.c (thr_try_catch_cmd): Print thread name.
13696 2020-02-26  Simon Marchi  <simon.marchi@efficios.com>
13698         * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13699         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13700         dwarf2_fetch_die_type_sect_off): Move to...
13701         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13702         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13703         dwarf2_fetch_die_type_sect_off): ... here.
13704         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13705         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13706         dwarf2_fetch_die_type_sect_off): Move doc to header file.
13708 2020-02-26  Tom de Vries  <tdevries@suse.de>
13710         PR gdb/25603
13711         * symfile.c (set_initial_language): Exit-early if
13712         language_mode == language_mode_manual.
13714 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
13716         * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13717         * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13718         * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13720 2020-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
13722         * gdbtypes.c (create_array_type_with_stride): Handle negative
13723         array strides.
13724         * valarith.c (value_subscripted_rvalue): Likewise.
13726 2020-02-25  Luis Machado  <luis.machado@linaro.org>
13728         * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13730 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
13732         * loc.h (dwarf2_get_die_type): Move to...
13733         * read.h (dwarf2_get_die_type): ... here.
13734         * read.c (dwarf2_get_die_type): Move doc to header.
13736 2020-02-25  Joel Brobecker  <brobecker@adacore.com>
13738         * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13739         'gnulib/Makefile.in' to the list.
13741 2020-02-24  Tom Tromey  <tom@tromey.com>
13743         * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13744         Remove.
13745         * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13746         XOBNEWVEC.
13748 2020-02-24  Tom Tromey  <tom@tromey.com>
13750         * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13751         New method.
13752         * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13753         (dw2_do_instantiate_symtab, dw2_get_file_names)
13754         (build_type_psymtab_dependencies, load_full_type_unit): Update.
13756 2020-02-24  Tom Tromey  <tom@tromey.com>
13758         * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13759         make_scoped_restore.
13760         (dwarf2_psymtab::read_symtab): Don't clear
13761         reading_partial_symbols.
13763 2020-02-24  Tom de Vries  <tdevries@suse.de>
13765         PR gdb/25592
13766         * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13768 2020-02-24  Tom de Vries  <tdevries@suse.de>
13770         * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13771         commands layout next/prev/regs.
13773 2020-02-22  Tom Tromey  <tom@tromey.com>
13775         * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13776         * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13778 2020-02-22  Tom Tromey  <tom@tromey.com>
13780         * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13782 2020-02-22  Tom Tromey  <tom@tromey.com>
13784         * tui/tui-win.c (_initialize_tui_win): Add usage text.
13785         * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13786         * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13787         * tui/tui.c (_initialize_tui): Add usage text.
13789 2020-02-22  Tom Tromey  <tom@tromey.com>
13791         * tui/tui-win.c (tui_set_focus_command)
13792         (tui_set_win_height_command): Use error_no_arg.
13793         (_initialize_tui_win): Update help text.
13794         (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13796 2020-02-22  Tom Tromey  <tom@tromey.com>
13798         * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13799         * tui/tui-disasm.h (struct tui_disasm_window)
13800         <display_start_addr>: Declare.
13801         * tui/tui-source.h (struct tui_source_window)
13802         <display_start_addr>: Declare.
13803         * tui/tui-winsource.h (struct tui_source_window_base)
13804         <show_source_line, display_start_addr>: New methods.
13805         <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13806         Rename and move to protected section.
13807         * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13808         (tui_source_window_base::do_erase_source_content): Update.
13809         (tui_source_window_base::show_source_line): Now a method.
13810         (tui_source_window_base::show_source_content)
13811         (tui_source_window_base::tui_source_window_base)
13812         (tui_source_window_base::rerender)
13813         (tui_source_window_base::refill)
13814         (tui_source_window_base::do_scroll_horizontal)
13815         (tui_source_window_base::set_is_exec_point_at)
13816         (tui_source_window_base::update_breakpoint_info)
13817         (tui_source_window_base::update_exec_info): Update.
13818         * tui/tui-source.c (tui_source_window::set_contents)
13819         (tui_source_window::showing_source_p)
13820         (tui_source_window::do_scroll_vertical)
13821         (tui_source_window::location_matches_p)
13822         (tui_source_window::line_is_displayed): Update.
13823         (tui_source_window::display_start_addr): New method.
13824         * tui/tui-disasm.c (tui_disasm_window::set_contents)
13825         (tui_disasm_window::do_scroll_vertical)
13826         (tui_disasm_window::location_matches_p): Update.
13827         (tui_disasm_window::display_start_addr): New method.
13829 2020-02-22  Tom Tromey  <tom@tromey.com>
13831         * NEWS: Add entry for gdb.register_window_type.
13832         * tui/tui-layout.h (window_factory): New typedef.
13833         (tui_register_window): Declare.
13834         * tui/tui-layout.c (saved_tui_windows): New global.
13835         (tui_apply_current_layout): Use it.
13836         (tui_register_window): New function.
13837         * python/python.c (do_start_initialization): Call
13838         gdbpy_initialize_tui.
13839         (python_GdbMethods): Add "register_window_type" function.
13840         * python/python-internal.h (gdbpy_register_tui_window)
13841         (gdbpy_initialize_tui): Declare.
13842         * python/py-tui.c: New file.
13843         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13845 2020-02-22  Tom Tromey  <tom@tromey.com>
13847         * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13849 2020-02-22  Tom Tromey  <tom@tromey.com>
13851         * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13852         * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13853         * tui/tui-data.c (tui_set_win_with_focus): Remove.
13854         (tui_set_win_focus_to): Move from tui-win.c.
13856 2020-02-22  Tom Tromey  <tom@tromey.com>
13858         * tui/tui-layout.c (make_standard_window, get_locator_window): New
13859         functions.
13860         (known_window_types): New global.
13861         (tui_get_window_by_name): Reimplement.
13862         (initialize_known_windows): New function.
13863         (validate_window_name): Rewrite.
13864         (_initialize_tui_layout): Call initialize_known_windows.
13866 2020-02-22  Tom Tromey  <tom@tromey.com>
13868         * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13869         Remove constants.
13870         * tui/tui-winsource.h (struct tui_source_window_base)
13871         <tui_source_window_base>: Remove parameter.
13872         * tui/tui-winsource.c
13873         (tui_source_window_base::tui_source_window_base): Remove
13874         parameter.
13875         (tui_source_window_base::refill): Update.
13876         * tui/tui-stack.h (struct tui_locator_window)
13877         <tui_locator_window>: Update.
13878         * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13879         Default the constructor.
13880         * tui/tui-regs.h (struct tui_data_item_window)
13881         <tui_data_item_window>: Default the constructor.
13882         (struct tui_data_window) <tui_data_window>: Likewise.
13883         * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13884         Default the constructor.
13885         * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13886         Default the constructor.
13887         <type>: Remove.
13888         (struct tui_win_info) <tui_win_info>: Default the constructor.
13889         * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13890         * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13891         Default the constructor.
13893 2020-02-22  Tom Tromey  <tom@tromey.com>
13895         * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13896         * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13897         * tui/tui-win.c (tui_resize_all): Don't call
13898         tui_delete_invisible_windows.
13899         * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13900         done.
13901         (tui_set_layout): Update.
13902         (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13903         * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13904         * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13906 2020-02-22  Tom Tromey  <tom@tromey.com>
13908         * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13909         correctly.
13911 2020-02-22  Tom Tromey  <tom@tromey.com>
13913         * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13915 2020-02-22  Tom Tromey  <tom@tromey.com>
13917         * tui/tui-winsource.h (struct tui_source_window_iterator)
13918         <inner_iterator>: New etytypedef.
13919         <tui_source_window_iterator>: Take "end" parameter.
13920         <tui_source_window_iterator>: Take iterator.
13921         <operator*, advance>: Update.
13922         <m_iter>: Change type.
13923         <m_end>: New field.
13924         (struct tui_source_windows) <begin, end>: Update.
13925         * tui/tui-layout.c (tui_windows): New global.
13926         (tui_apply_current_layout): Clear tui_windows.
13927         (tui_layout_window::apply): Update tui_windows.
13928         * tui/tui-data.h (tui_windows): Declare.
13929         (all_tui_windows): Now inline function.
13930         (class tui_window_iterator, struct all_tui_windows): Remove.
13932 2020-02-22  Tom Tromey  <tom@tromey.com>
13934         PR tui/17850:
13935         * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13936         * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13937         "height" argument.
13938         (class tui_layout_window) <get_sizes>: Likewise.
13939         (class tui_layout_split) <tui_layout_split>: Add "vertical"
13940         argument.
13941         <get_sizes>: Add "height" argument.
13942         <m_vertical>: New field.
13943         * tui/tui-layout.c (tui_layout_split::clone): Update.
13944         (tui_layout_split::get_sizes): Add "height" argument.
13945         (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13946         (tui_new_layout_command): Parse "-horizontal".
13947         (_initialize_tui_layout): Update help string.
13948         (tui_layout_split::specification): Add "-horizontal" when needed.
13949         * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13950         argument.
13951         * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13952         New methods.
13954 2020-02-22  Tom Tromey  <tom@tromey.com>
13956         * tui/tui-layout.h (enum tui_adjust_result): New.
13957         (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13958         (class tui_layout_window) <adjust_size>: Return
13959         tui_adjust_result.  Rewrite.
13960         (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13961         * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13963 2020-02-22  Tom Tromey  <tom@tromey.com>
13965         * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13966         parameter and return types.
13967         (class tui_layout_base) <specification>: Add "depth".
13968         (class tui_layout_window) <specification>: Add "depth".
13969         (class tui_layout_split) <specification>: Add "depth".
13970         * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13971         and return types.
13972         (tui_new_layout_command): Parse sub-layouts.
13973         (_initialize_tui_layout): Update help string.
13974         (tui_layout_window::specification): Add "depth".
13975         (add_layout_command): Update.
13977 2020-02-22  Tom Tromey  <tom@tromey.com>
13979         * NEWS: Add "tui new-layout" item.
13980         * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13981         Add new-layout command to help text.
13982         (validate_window_name): New function.
13983         (tui_new_layout_command): New function.
13984         (_initialize_tui_layout): Register "new-layout".
13985         (tui_layout_window::specification): New method.
13986         (tui_layout_window::specification): New method.
13987         * tui/tui-layout.h (class tui_layout_base) <specification>: New
13988         method.
13989         (class tui_layout_window) <specification>: New method.
13990         (class tui_layout_split) <specification>: New method.
13992 2020-02-22  Tom Tromey  <tom@tromey.com>
13994         * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13995         * tui/tui-win.c (window_name_completer): Update comment.
13996         * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13997         Declare method.
13998         (class tui_layout_window) <replace_window>: Likewise.
13999         (class tui_layout_split) <replace_window>: Likewise.
14000         (tui_set_layout): Don't declare.
14001         (tui_set_initial_layout): Declare function.
14002         * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14003         (asm_regs_layout): New globals.
14004         (tui_current_layout, show_layout): Remove.
14005         (tui_set_layout, tui_add_win_to_layout): Rewrite.
14006         (find_layout, tui_apply_layout): New function.
14007         (layout_completer): Remove.
14008         (tui_next_layout): Reimplement.
14009         (tui_next_layout_command): New function.
14010         (tui_set_initial_layout, tui_prev_layout_command): New functions.
14011         (tui_regs_layout): Reimplement.
14012         (tui_regs_layout_command): New function.
14013         (extract_display_start_addr): Rewrite.
14014         (next_layout, prev_layout): Remove.
14015         (tui_layout_window::replace_window): New method.
14016         (tui_layout_split::replace_window): New method.
14017         (destroy_layout): New function.
14018         (layout_list): New global.
14019         (add_layout_command): New function.
14020         (initialize_layouts): Update.
14021         (tui_layout_command): New function.
14022         (_initialize_tui_layout): Install "layout" commands.
14023         * tui/tui-data.h (enum tui_layout_type): Remove.
14024         (tui_current_layout): Don't declare.
14026 2020-02-22  Tom Tromey  <tom@tromey.com>
14028         * tui/tui-regs.c (tui_reg_layout): Remove.
14029         (tui_reg_command): Use tui_regs_layout.
14030         * tui/tui-layout.h (tui_reg_command): Declare.
14031         * tui/tui-layout.c (tui_reg_command): New function.
14033 2020-02-22  Tom Tromey  <tom@tromey.com>
14035         * tui/tui.c (tui_rl_delete_other_windows): Call
14036         tui_remove_some_windows.
14037         * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14038         Declare method.
14039         (class tui_layout_window) <remove_windows>: New method.
14040         (class tui_layout_split) <remove_windows>: Declare.
14041         (tui_remove_some_windows): Declare.
14042         * tui/tui-layout.c (tui_remove_some_windows): New function.
14043         (tui_layout_split::remove_windows): New method.
14045 2020-02-22  Tom Tromey  <tom@tromey.com>
14047         * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14048         * tui/tui-layout.h (tui_next_layout): Declare.
14049         * tui/tui-layout.c (tui_next_layout): New function.
14051 2020-02-22  Tom Tromey  <tom@tromey.com>
14053         * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14054         correct coordinates.
14056 2020-02-22  Tom Tromey  <tom@tromey.com>
14058         * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14059         * tui/tui-layout.c (tui_add_win_to_layout): Add assert.  Remove
14060         DATA_WIN case.
14062 2020-02-22  Tom Tromey  <tom@tromey.com>
14064         * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14065         TUI_DISASM_WIN, not tui_win_list.
14067 2020-02-22  Tom Tromey  <tom@tromey.com>
14069         * valprint.c (generic_val_print_enum_1)
14070         (val_print_type_code_flags): Style member names.
14071         * rust-lang.c (val_print_struct, rust_print_enum)
14072         (rust_print_struct_def, rust_internal_print_type): Style member
14073         names.
14074         * p-valprint.c (pascal_object_print_value_fields): Style member
14075         names.  Only call fprintf_symbol_filtered for static members.
14076         * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14077         * f-valprint.c (f_val_print): Style member names.
14078         * f-typeprint.c (f_type_print_base): Style member names.
14079         * cp-valprint.c (cp_print_value_fields): Style member names.  Only
14080         call fprintf_symbol_filtered for static members.
14081         (cp_print_class_member): Style member names.
14082         * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14083         member names.
14084         * ada-valprint.c (ada_print_scalar): Style enum names.
14085         (ada_val_print_enum): Likewise.
14086         * ada-typeprint.c (print_enum_type): Style enum names.
14088 2020-02-21  Tom Tromey  <tom@tromey.com>
14090         * psympriv.h (struct partial_symtab): Update comment.
14092 2020-02-21  Tom Tromey  <tromey@adacore.com>
14094         * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14095         type is CORE_ADDR.
14097 2020-02-21  Tom de Vries  <tdevries@suse.de>
14099         PR gdb/25534
14100         * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14101         if dependencies[i]->user != NULL.
14103 2020-02-21  Ali Tamur  <tamur@google.com>
14105         * dwarf2/read.c (dwarf2_name): Add null check.
14107 2020-02-20  Tom Tromey  <tom@tromey.com>
14109         * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14110         ">=", in binary search.
14111         (dwarf2_find_containing_comp_unit): New overload.
14112         (run_test): New self-test.
14113         (_initialize_dwarf2_read): Register new test.
14115 2020-02-20  Nelson Chu  <nelson.chu@sifive.com>
14117         * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14118         * riscv-tdep.h: Likewise.
14119         * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14120         rv32-only CSR.
14121         * features/riscv/64bit-csr.xml: Regenerated.
14123 2020-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
14124             Tom Tromey  <tom@tromey.com>
14126         * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14127         of 'fputc_unfiltered'.
14128         (putchar_unfiltered): Call 'fputc_unfiltered'.
14129         (fputc_unfiltered): Call 'fputs_unfiltered'.
14131 2020-02-20  Andrew Burgess  <andrew.burgess@embecosm.com>
14133         * config.in: Regenerate.
14134         * configure: Regenerate.
14135         * configure.ac: Add --with-python-libdir option.
14136         * main.c: Use WITH_PYTHON_LIBDIR.
14138 2020-02-19  Tom Tromey  <tom@tromey.com>
14140         * symtab.c (general_symbol_info::compute_and_set_names): Use
14141         obstack_strndup.  Simplify call to symbol_set_demangled_name.
14143 2020-02-19  Simon Marchi  <simon.marchi@efficios.com>
14145         * dwarf2/read.c (allocate_signatured_type_table,
14146         allocate_dwo_unit_table, allocate_type_unit_groups_table,
14147         allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14148         Remove objfile parameter, update all callers.
14150 2020-02-19  Doug Evans  <dje@google.com>
14152         PR rust/25535
14153         * rust-lang.c (rust_print_enum): Apply embedded_offset to
14154         rust_enum_variant calculation.
14156 2020-02-19  Tom Tromey  <tromey@adacore.com>
14158         * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14160 2020-02-19  Tom Tromey  <tromey@adacore.com>
14162         * ada-lang.c (cache_symbol): Use obstack_strdup.
14164 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14166         * configure: Regenerate.
14168 2020-02-19  Tom Tromey  <tromey@adacore.com>
14170         * python/python.c (do_start_initialization): Use XNEWVEC.  Remove
14171         NULL check.
14173 2020-02-19  Maciej W. Rozycki  <macro@wdc.com>
14175         * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14177 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
14179         * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14180         if GDBSERVER is not defined.
14181         (riscv_tdesc_cache): Likewise, also store const target_desc.
14182         (STATIC_IN_GDB): Define.
14183         (riscv_create_target_description): Update declaration with
14184         STATIC_IN_GDB.
14185         (riscv_lookup_target_description): New function, only define if
14186         GDBSERVER is not defined.
14187         * arch/riscv.h (riscv_create_target_description): Declare only
14188         when GDBSERVER is defined.
14189         (riscv_lookup_target_description): New declaration when GDBSERVER
14190         is not defined.
14191         * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14192         (riscv_linux_read_features): ...this, and return
14193         riscv_gdbarch_features instead of target_desc.
14194         * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14195         (riscv_linux_read_description): Rename to...
14196         (riscv_linux_read_features): ...this.
14197         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14198         Update to use riscv_gdbarch_features and
14199         riscv_lookup_target_description.
14200         * riscv-tdep.c (riscv_find_default_target_description): Use
14201         riscv_lookup_target_description instead of
14202         riscv_create_target_description.
14204 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14206         * valprint.c (generic_val_print_enum_1): When printing a flag
14207         enum with value 0 and there is no enumerator with value 0, print
14208         just "0" instead of "(unknown: 0x0)".
14210 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14212         * valprint.c (generic_val_print_enum_1): Print unknown part of
14213         flag enum in hex.
14215 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14217         * dwarf2/read.c (update_enumeration_type_from_children): Allow
14218         flag enums to contain duplicate enumerators.
14219         * valprint.c (generic_val_print_enum_1): Update comment.
14221 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14223         * dwarf2/read.c: Include "count-one-bits.h".
14224         (update_enumeration_type_from_children): If an enumerator has
14225         multiple bits set, don't treat the enumeration as a "flag enum".
14226         * valprint.c (generic_val_print_enum_1): Assert that enumerators
14227         of flag enums have 0 or 1 bit set.
14229 2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14231         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14232         conversion.
14233         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14234         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14235         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14236         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14237         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14239 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
14241         * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14243 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14245         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14246         displaced_step_closure_up.
14247         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14248         (struct displaced_step_closure_up):
14249         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14250         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14251         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14252         Likewise.
14253         * gdbarch.sh (displaced_step_copy_insn): Likewise.
14254         * gdbarch.c, gdbarch.h: Re-generate.
14255         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14256         displaced_step_closure_up.
14257         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14258         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14259         * infrun.h (displaced_step_closure_up): New type alias.
14260         (struct displaced_step_inferior_state) <step_closure>: Change
14261         type to displaced_step_closure_up.
14262         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14263         displaced_step_closure_up.
14264         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14266 2020-02-14  Tom Tromey  <tom@tromey.com>
14268         * minidebug.c (gnu_debug_key): New global.
14269         (find_separate_debug_file_in_section): Use it.
14271 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14273         * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14274         std::unique_ptr.
14275         * gdbarch.c: Re-generate.
14276         * gdbarch.h: Re-generate.
14277         * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14278         change.
14279         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14280         type to std::unique_ptr.
14281         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14282         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14283         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14284         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14285         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14286         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14287         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14288         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14289         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14291 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14293         * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14294         std::unique_ptr.
14295         (displaced_step_clear): Rename to...
14296         (displaced_step_reset): ... this.  Just call displaced->reset ().
14297         (displaced_step_clear_cleanup): Rename to...
14298         (displaced_step_reset_cleanup): ... this.
14299         (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14300         (displaced_step_fixup): Likewise.
14301         (resume_1): Likewise.
14302         (handle_inferior_event): Restore child's memory before calling
14303         displaced_step_fixup on the parent.
14304         * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14305         to std::unique_ptr.
14306         <step_closure>: Change type to std::unique_ptr.
14308 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
14310         * arm-tdep.c: Include count-one-bits.h.
14311         (cleanup_block_store_pc): Use count_one_bits.
14312         (cleanup_block_load_pc): Use count_one_bits.
14313         (arm_copy_block_xfer): Use count_one_bits.
14314         (thumb2_copy_block_xfer): Use count_one_bits.
14315         (thumb_copy_pop_pc_16bit): Use count_one_bits.
14316         * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14317         (thumb_get_next_pcs_raw): Use count_one_bits.
14318         (arm_get_next_pcs_raw): Use count_one_bits_l.
14319         * arch/arm.c (bitcount): Remove.
14320         * arch/arm.h (bitcount): Remove.
14322 2020-02-14  Tom Tromey  <tromey@adacore.com>
14324         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14325         Update.
14326         * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14327         * dwarf2/loc.c (call_site_find_chain_1): Return
14328         unique_xmalloc_ptr.
14329         (call_site_find_chain): Likewise.
14331 2020-02-14  Richard Biener  <rguenther@suse.de>
14333         * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14334         on expression with division operators.
14336 2020-02-13  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
14338         * MAINTAINERS (Write After Approval): Adding myself.
14340 2020-02-12  Tom Tromey  <tom@tromey.com>
14342         * event-loop.c (event_data, gdb_event, event_handler_func):
14343         Remove.
14345 2020-02-12  Tom Tromey  <tom@tromey.com>
14347         * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14348         (dwarf2_frame_objfile_data): Add comment.
14349         (find_comp_unit, set_comp_unit): New functions.
14350         (dwarf2_frame_find_fde): Use find_comp_unit.
14351         (dwarf2_build_frame_info): Use set_comp_unit.
14353 2020-02-12  Tom Tromey  <tom@tromey.com>
14355         * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14356         (comp_unit): Don't initialize objfile.
14357         (execute_cfa_program): Add text_offset parameter.
14358         (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14359         (dwarf2_frame_cache): Update.
14360         (dwarf2_build_frame_info): Don't set "objfile" member.
14362 2020-02-12  Tom Tromey  <tom@tromey.com>
14364         * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14365         (decode_frame_entry): Likewise.
14366         (dwarf2_build_frame_info): Update.
14368 2020-02-12  Tom Tromey  <tom@tromey.com>
14370         * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14371         (decode_frame_entry_1): Use the comp_unit obstack.
14373 2020-02-12  Tom Tromey  <tom@tromey.com>
14375         * dwarf2/frame.c (struct comp_unit): Add initializers and
14376         constructor.
14377         (dwarf2_frame_objfile_data): Store a comp_unit.
14378         (dwarf2_frame_find_fde): Update.
14379         (dwarf2_build_frame_info): Use "new".
14381 2020-02-12  Tom Tromey  <tom@tromey.com>
14383         * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14384         (dwarf2_fde_table): Typedef for std::vector.
14385         (dwarf2_frame_objfile_data): Remove the deleter.  Now static.
14386         (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14387         (decode_frame_entry): Update.
14388         (dwarf2_build_frame_info): Use "new".
14390 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
14392         * arm-tdep.c (arm_gdbarch_init): Update.
14393         * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14394         have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14395         have_neon, is_m>: Change to bool.
14397 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
14399         * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14401 2020-02-12  Tom Tromey  <tom@tromey.com>
14403         * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14405 2020-02-12  Hannes Domani  <ssbssa@yahoo.de>
14407         * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14408         (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14410 2020-02-11  Tom Tromey  <tom@tromey.com>
14412         * psymtab.h: Update comment.
14414 2020-02-11  Tom Tromey  <tom@tromey.com>
14416         * gdb_obstack.h (struct auto_obstack): Use
14417         DISABLE_COPY_AND_ASSIGN.
14419 2020-02-11  Tom Tromey  <tom@tromey.com>
14421         * dwarf2/frame.h (struct objfile): Don't forward declare.
14423 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14425         * cris-tdep.c (cris_supply_gregset): Change signature to match
14426         what struct regset expects.
14427         (cris_regset): New struct.
14428         (fetch_core_registers): Remove.
14429         (cris_iterate_over_regset_sections): New function.
14430         (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14431         (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14433 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14435         * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14436         registers.
14438 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
14440         * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14442 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14444         * configure: Re-generate.
14446 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14448         * configure: Re-generate.
14450 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
14452         * acinclude: Update warning.m4 path.
14453         * warning.m4: Move to gdbsupport.
14455 2020-02-11  Tom Tromey  <tromey@adacore.com>
14457         * remote.c (remote_console_output): Update.
14458         * printcmd.c (printf_command): Update.
14459         * event-loop.c (gdb_wait_for_event): Update.
14460         * linux-nat.c (sigchld_handler): Update.
14461         * remote-sim.c (gdb_os_write_stdout): Update.
14462         (gdb_os_flush_stdout): Update.
14463         (gdb_os_flush_stderr): Update.
14464         (gdb_os_write_stderr): Update.
14465         * exceptions.c (print_exception): Update.
14466         * remote-fileio.c (remote_fileio_func_read): Update.
14467         (remote_fileio_func_write): Update.
14468         * tui/tui.c (tui_enable): Update.
14469         * tui/tui-interp.c (tui_interp::init): Update.
14470         * utils.c (init_page_info): Update.
14471         (putchar_unfiltered, fputc_unfiltered): Update.
14472         (gdb_flush): Update.
14473         (emit_style_escape): Update.
14474         (flush_wrap_buffer, fputs_maybe_filtered): Update.
14475         * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14476         (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14477         (stderr_file::write): Update.
14478         (stderr_file::puts): Update.
14479         * ui-file.h (ui_file_isatty, ui_file_write)
14480         (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14481         (ui_file_puts): Don't declare.
14483 2020-02-10  Tom de Vries  <tdevries@suse.de>
14485         * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14486         sentinel to char *.
14488 2020-02-09  Tom de Vries  <tdevries@suse.de>
14490         * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14491         filename if it matches "<artificial>".
14493 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
14495         * windows-tdep.c (struct enum_value_name): New struct.
14496         (create_enum): New function.
14497         (windows_get_siginfo_type): Create and use enum types.
14499 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
14501         * NEWS: Mention $_siginfo support for Windows.
14502         * windows-nat.c (handle_exception): Set siginfo_er.
14503         (windows_nat_target::mourn_inferior): Reset siginfo_er.
14504         (windows_xfer_siginfo): New function.
14505         (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14506         * windows-tdep.c (struct windows_gdbarch_data): New struct.
14507         (init_windows_gdbarch_data): New function.
14508         (get_windows_gdbarch_data): New function.
14509         (windows_get_siginfo_type): New function.
14510         (windows_init_abi): Register windows_get_siginfo_type.
14511         (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14513 2020-02-08  Tom Tromey  <tom@tromey.com>
14515         * dwarf2/read.c (class cutu_reader) <cutu_reader,
14516         init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14517         <keep>: Declare method.
14518         <m_keep>: Remove member.
14519         <~cutu_reader>: Remove.
14520         (cutu_reader::init_tu_and_read_dwo_dies): Update.
14521         (cutu_reader::cutu_reader): Update.
14522         (cutu_reader::keep): Rename from ~cutu_reader.
14523         (process_psymtab_comp_unit, build_type_psymtabs_1)
14524         (process_skeletonless_type_unit, load_partial_comp_unit)
14525         (load_full_comp_unit, dwarf2_read_addr_index)
14526         (read_signatured_type): Update.
14528 2020-02-08  Tom Tromey  <tom@tromey.com>
14530         * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14531         "want_partial_unit" parameter.
14532         (process_psymtab_comp_unit): Change want_partial_unit to bool.
14533         Inline check for DW_TAG_partial_unit.
14534         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14536 2020-02-08  Tom Tromey  <tom@tromey.com>
14538         * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14539         read.c.
14540         * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14541         read.c.
14543 2020-02-08  Tom Tromey  <tom@tromey.com>
14545         * dwarf2/read.c (read_address): Move to comp-unit.c.
14546         (dwarf2_rnglists_process, dwarf2_ranges_process)
14547         (read_attribute_value, dwarf_decode_lines_1)
14548         (var_decode_location, decode_locdesc): Update.
14549         * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14550         read.c.  Remove "cu" parameter.
14551         * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14552         method.
14554 2020-02-08  Tom Tromey  <tom@tromey.com>
14556         * dwarf2/read.c (read_attribute_value, read_indirect_string)
14557         (read_indirect_line_string): Update.
14558         * dwarf2/comp-unit.c (read_offset): Remove.
14559         (read_comp_unit_head): Update.
14560         * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14561         method.
14562         (read_offset): Don't declare.
14564 2020-02-08  Tom Tromey  <tom@tromey.com>
14566         * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14567         * dwarf2/read.c (struct comp_unit_head): Move to
14568         dwarf2/comp-unit.h.
14569         (enum class rcuh_kind): Move to comp-unit.h.
14570         (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14571         (read_comp_unit_head, error_check_comp_unit_head)
14572         (read_and_check_comp_unit_head): Move to comp-unit.c.
14573         (read_offset, dwarf_unit_type_name): Likewise.
14574         (create_debug_type_hash_table, read_cutu_die_from_dwo)
14575         (cutu_reader::cutu_reader, read_call_site_scope)
14576         (find_partial_die, follow_die_offset): Update.
14577         * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14579 2020-02-08  Tom Tromey  <tom@tromey.com>
14581         * dwarf2/read.c (read_offset_1): Move to leb.c.
14582         (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14583         (dwarf_decode_macro_bytes): Update.
14584         * dwarf2/leb.c (read_offset): Rename; move from read.c.
14585         * dwarf2/leb.h (read_offset): Declare.
14587 2020-02-08  Tom Tromey  <tom@tromey.com>
14589         * dwarf2/read.c (dwarf2_section_size): Remove.
14590         (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14591         Update.
14592         * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14594 2020-02-08  Tom Tromey  <tom@tromey.com>
14596         * dwarf2/read.c (read_initial_length): Move to leb.c.
14597         * dwarf2/leb.h (read_initial_length): Declare.
14598         * dwarf2/leb.c (read_initial_length): Move from read.c.  Add
14599         handle_nonstd parameter.
14600         * dwarf2/frame.c (read_initial_length): Remove.
14601         (decode_frame_entry_1): Update.
14603 2020-02-08  Tom Tromey  <tom@tromey.com>
14605         * dwarf2/loc.c (dwarf2_find_location_expression)
14606         (dwarf_evaluate_loc_desc::get_tls_address)
14607         (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14608         (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14609         (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14610         (dwarf2_compile_property_to_c)
14611         (dwarf2_loc_desc_get_symbol_read_needs)
14612         (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14613         (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14614         (loclist_describe_location, loclist_tracepoint_var_ref)
14615         (loclist_generate_c_location): Update.
14616         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14617         * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14618         (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14619         (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14620         * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14621         (dwarf2_per_cu_data::addr_size)
14622         (dwarf2_per_cu_data::ref_addr_size)
14623         (dwarf2_per_cu_data::text_offset)
14624         (dwarf2_per_cu_data::addr_type): Now methods.
14625         (per_cu_header_read_in): Make per_cu "const".
14626         (dwarf2_version): Remove.
14627         (dwarf2_per_cu_data::int_type): Now a method.
14628         (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14629         (set_die_type, read_array_type, read_subrange_index_type)
14630         (read_tag_string_type, read_subrange_type): Update.
14631         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14632         offset_size, ref_addr_size, text_offset, addr_type, version,
14633         objfile, int_type, addr_sized_int_type>: Declare methods.
14635 2020-02-08  Tom Tromey  <tom@tromey.com>
14637         * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14638         Move earlier.
14640 2020-02-08  Tom Tromey  <tom@tromey.com>
14642         * dwarf2/read.h (dwarf_line_debug): Declare.
14643         * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14644         * dwarf2/read.c: Move line_header code to new files.
14645         (dwarf_line_debug): No longer static.
14646         * dwarf2/line-header.c: New file.
14647         * dwarf2/line-header.h: New file.
14649 2020-02-08  Tom Tromey  <tom@tromey.com>
14651         * dwarf2/read.c (struct line_header) <file_full_name,
14652         file_file_name>: Return unique_xmalloc_ptr.
14653         (line_header::file_file_name): Update.
14654         (line_header::file_full_name): Update.
14655         (dw2_get_file_names_reader): Update.
14656         (macro_start_file): Update.
14658 2020-02-08  Tom Tromey  <tom@tromey.com>
14660         * dwarf2/read.c (struct line_header) <file_full_name,
14661         file_file_name>: Declare methods.
14662         (dw2_get_file_names_reader): Update.
14663         (file_file_name): Now a method.
14664         (file_full_name): Likewise.
14665         (macro_start_file): Update.
14667 2020-02-08  Tom Tromey  <tom@tromey.com>
14669         * dwarf2/read.c (dwarf_always_disassemble)
14670         (show_dwarf_always_disassemble): Move to loc.c.
14671         (_initialize_dwarf2_read): Move "always-disassemble" registration
14672         to loc.c.
14673         * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14674         * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c.  Now
14675         static.
14676         (show_dwarf_always_disassemble): Move from read.c.
14677         (_initialize_dwarf2loc): Move always-disassemble from read.c.
14679 2020-02-08  Tom Tromey  <tom@tromey.com>
14681         * dwarf2/read.c (~dwarf2_per_objfile): Update.
14682         (create_quick_file_names_table): Return htab_up.
14683         (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14684         Update.
14685         * dwarf2/read.h (struct dwarf2_per_objfile)
14686         <quick_file_names_table>: Now htab_up.
14688 2020-02-08  Tom Tromey  <tom@tromey.com>
14690         * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14692 2020-02-08  Tom Tromey  <tom@tromey.com>
14694         * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14695         Rewrite.
14696         (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14697         * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14698         (abbrev_table::abbrev_table): No longer inline.
14699         (ABBREV_HASH_SIZE): Remove.
14700         (abbrev_table::m_abbrevs): Now an htab_up.
14702 2020-02-08  Tom Tromey  <tom@tromey.com>
14704         * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14705         (cutu_reader): Update.
14706         (build_type_psymtabs_1): Update.
14707         * dwarf2/abbrev.c (abbrev_table::read): Rename.
14708         (abbrev_table::alloc_abbrev): Update.
14709         * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14710         (abbrev_table::read): New static method, renamed from
14711         abbrev_table_read_table.
14712         (abbrev_table::alloc_abbrev)
14713         (abbrev_table::add_abbrev): Now private.
14714         (abbrev_table::abbrev_table): Now private.
14715         (abbrev_table::m_abbrev_obstack): Now private.  Rename.
14717 2020-02-08  Tom Tromey  <tom@tromey.com>
14719         * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14720         * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14721         htab_up.
14723 2020-02-08  Tom Tromey  <tom@tromey.com>
14725         * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14726         htab_up.
14727         (lookup_dwo_unit_in_dwp): Update.
14728         (allocate_dwp_loaded_cutus_table): Return htab_up.  Don't allocate
14729         on obstack.
14731 2020-02-08  Tom Tromey  <tom@tromey.com>
14733         * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14734         obstack.
14736 2020-02-08  Tom Tromey  <tom@tromey.com>
14738         * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14739         line_header_hash.
14740         (handle_DW_AT_stmt_list): Update.  Don't allocate on obstack.
14741         * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14742         Change type to htab_up.
14744 2020-02-08  Tom Tromey  <tom@tromey.com>
14746         * dwarf2/read.c (allocate_type_unit_groups_table): Return
14747         htab_up.  Don't allocate on obstack.
14748         (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14749         * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14750         Change type to htab_up.
14752 2020-02-08  Tom Tromey  <tom@tromey.com>
14754         * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14755         Change type to htab_up.
14756         * dwarf2/read.c (create_signatured_type_table_from_index)
14757         (create_signatured_type_table_from_debug_names)
14758         (create_all_type_units, add_type_unit)
14759         (lookup_dwo_signatured_type, lookup_signatured_type)
14760         (process_skeletonless_type_unit): Update.
14761         (create_debug_type_hash_table, create_debug_types_hash_table):
14762         Change type of types_htab.
14763         (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14764         htab_up.  Don't allocate on obstack.
14765         (create_cus_hash_table): Change type of cus_htab parameter.
14766         (struct dwo_file) <cus, tus>: Now htab_up.
14767         (lookup_dwo_signatured_type, lookup_dwo_cutu)
14768         (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14769         (queue_and_load_all_dwo_tus): Update.
14770         * dwarf2/index-write.c (write_gdbindex): Update.
14771         (write_debug_names): Update.
14773 2020-02-08  Tom Tromey  <tom@tromey.com>
14775         * dwarf2/read.h (struct dwarf2_queue_item): Move from
14776         dwarf2/read.c.  Remove "next" member.  Add constructor ntad
14777         destructor.
14778         (struct dwarf2_per_objfile) <queue>: New member.
14779         * dwarf2/read.c (struct dwarf2_queue_item): Move to
14780         dwarf2/read.h.
14781         (dwarf2_queue, dwarf2_queue_tail): Remove.
14782         (class dwarf2_queue_guard): Add parameter to constructor.  Use
14783         DISABLE_COPY_AND_ASSIGN.
14784         <m_per_objfile>: New member.
14785         <~dwarf2_queue_guard>: Rewrite.
14786         (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14787         Update.
14788         (~dwarf2_queue_item): New.
14790 2020-02-08  Tom Tromey  <tom@tromey.com>
14792         * dwarf2/read.c (struct die_info) <has_children>: New member.
14793         (dw2_get_file_names_reader): Remove has_children.
14794         (dw2_get_file_names): Update.
14795         (read_cutu_die_from_dwo): Remove has_children.
14796         (cutu_reader::init_tu_and_read_dwo_dies)
14797         (cutu_reader::cutu_reader): Update.
14798         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14799         Remove has_children.
14800         (build_type_psymtabs_1, process_skeletonless_type_unit)
14801         (load_partial_comp_unit, load_full_comp_unit): Update.
14802         (create_dwo_cu_reader): Remove has_children.
14803         (create_cus_hash_table, read_die_and_children): Update.
14804         (read_full_die_1,read_full_die): Remove has_children.
14805         (read_signatured_type): Update.
14806         (class cutu_reader) <has_children>: Remove.
14808 2020-02-08  Tom Tromey  <tom@tromey.com>
14810         * dwarf2/expr.c: Rename from dwarf2expr.c.
14811         * dwarf2/expr.h: Rename from dwarf2expr.h.
14812         * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14813         * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14814         * dwarf2/frame.c: Rename from dwarf2-frame.c.
14815         * dwarf2/frame.h: Rename from dwarf2-frame.h.
14816         * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14817         * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14818         * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14819         * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14820         * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14821         * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14822         * dwarf2/loc.c: Rename from dwarf2loc.c.
14823         * dwarf2/loc.h: Rename from dwarf2loc.h.
14824         * dwarf2/read.c: Rename from dwarf2read.c.
14825         * dwarf2/read.h: Rename from dwarf2read.h.
14826         * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14827         amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14828         compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14829         compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14830         gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14831         hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14832         i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14833         m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14834         msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14835         riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14836         s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14837         sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14838         tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14839         Update.
14840         * Makefile.in (COMMON_SFILES): Update.
14841         (HFILES_NO_SRCDIR): Update.
14843 2020-02-08  Tom Tromey  <tom@tromey.com>
14845         * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14846         (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14848 2020-02-08  Tom Tromey  <tom@tromey.com>
14850         * dwarf2read.h (struct die_info): Don't declare.
14852 2020-02-08  Tom Tromey  <tom@tromey.com>
14854         * dwarf2read.h (die_info_ptr): Remove typedef.
14856 2020-02-08  Tom Tromey  <tom@tromey.com>
14858         * dwarf2read.c (read_call_site_scope)
14859         (handle_data_member_location, dwarf2_add_member_fn)
14860         (mark_common_block_symbol_computed, read_common_block)
14861         (attr_to_dynamic_prop, partial_die_info::read)
14862         (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14863         (dwarf2_symbol_mark_computed, set_die_type): Update.
14864         * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14865         method.
14866         (attr_form_is_block): Don't declare.
14867         * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14869 2020-02-08  Tom Tromey  <tom@tromey.com>
14871         * dwarf2read.c (dwarf2_find_base_address, )
14872         (read_call_site_scope, rust_containing_type)
14873         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14874         (handle_data_member_location, dwarf2_add_member_fn)
14875         (get_alignment, read_structure_type, process_structure_scope)
14876         (mark_common_block_symbol_computed, read_common_block)
14877         (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14878         (partial_die_info::read, read_attribute_value, new_symbol)
14879         (lookup_die_type, dwarf2_get_ref_die_offset)
14880         (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14881         (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14882         (dwarf2_symbol_mark_computed): Update.
14883         * dwarf2/attribute.h (struct attribute) <value_as_address,
14884         form_is_section_offset, form_is_constant, form_is_ref>: Declare
14885         methods.
14886         (value_as_address, attr_form_is_section_offset)
14887         (attr_form_is_constant, attr_form_is_ref): Don't declare.
14888         * dwarf2/attribute.c (attribute::value_as_address)
14889         (attribute::form_is_section_offset, attribute::form_is_constant)
14890         (attribute::form_is_ref): Now methods.
14892 2020-02-08  Tom Tromey  <tom@tromey.com>
14894         * dwarf2read.c (struct attribute, DW_STRING)
14895         (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14896         (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14897         (attr_form_is_block, attr_form_is_section_offset)
14898         (attr_form_is_constant, attr_form_is_ref): Move.
14899         * dwarf2/attribute.h: New file.
14900         * dwarf2/attribute.c: New file, from dwarf2read.c.
14901         * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14903 2020-02-08  Tom Tromey  <tom@tromey.com>
14905         * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14906         (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14907         Move.
14908         (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14909         (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14910         (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14911         abbrev.c.
14912         * dwarf2/abbrev.h: New file.
14913         * dwarf2/abbrev.c: New file, from dwarf2read.c.
14914         * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14916 2020-02-08  Tom Tromey  <tom@tromey.com>
14918         * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14919         (dwarf2_section_size, dwarf2_get_section_info)
14920         (create_signatured_type_table_from_debug_names)
14921         (create_addrmap_from_aranges, read_debug_names_from_section)
14922         (get_gdb_index_contents_from_section, read_comp_unit_head)
14923         (error_check_comp_unit_head, read_abbrev_offset)
14924         (create_debug_type_hash_table, init_cu_die_reader)
14925         (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14926         (read_comp_units_from_section, create_cus_hash_table)
14927         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14928         (create_dwp_v2_section, dwarf2_rnglists_process)
14929         (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14930         (abbrev_table_read_table, read_indirect_string_at_offset_from)
14931         (read_indirect_string_from_dwz, read_addr_index_1)
14932         (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14933         (dwarf_decode_macro_bytes, dwarf_decode_macros)
14934         (fill_in_loclist_baton): Update.
14935         * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14936         get_containing_section, get_bfd_owner, get_bfd_section,
14937         get_file_name, get_id, get_flags, empty, read>: Declare methods.
14938         (dwarf2_read_section, get_section_name, get_section_file_name)
14939         (get_containing_section, get_section_bfd_owner)
14940         (get_section_bfd_section, get_section_name, get_section_file_name)
14941         (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14942         declare.
14943         * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14944         (dwarf2_section_info::get_bfd_owner)
14945         (dwarf2_section_info::get_bfd_section)
14946         (dwarf2_section_info::get_name)
14947         (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14948         (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14949         (dwarf2_section_info::read): Now methods.
14950         * dwarf-index-write.c (class debug_names): Update.
14952 2020-02-08  Tom Tromey  <tom@tromey.com>
14954         * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14955         Move to dwarf2/section.h.
14956         * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14957         (get_section_bfd_section, get_section_name)
14958         (get_section_file_name, get_section_id, get_section_flags)
14959         (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14960         dwarf2/section.c.
14961         * dwarf2/section.h: New file.
14962         * dwarf2/section.c: New file, from dwarf2read.c.
14963         * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14965 2020-02-08  Tom Tromey  <tom@tromey.com>
14967         * dwarf2read.h (read_unsigned_leb128): Don't declare.
14968         * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14969         (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14970         (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14971         (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14972         * dwarf2/leb.h: New file, from dwarf2read.c.
14973         * dwarf2/leb.c: New file, from dwarf2read.c.
14974         * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14975         Remove.
14976         * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14977         (COMMON_SFILES): Add dwarf2/leb.c.
14979 2020-02-08  Joel Brobecker  <brobecker@adacore.com>
14981         GDB 9.1 released.
14983 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
14985         PR gdb/25190:
14986         * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14987         * gdb/remote.c (remote_console_output): Update.
14988         * gdb/ui-file.c (fputs_unfiltered): Rename to...
14989         (ui_file_puts): ...this.
14990         * gdb/ui-file.h (ui_file_puts): Add declaration.
14991         * gdb/utils.c (emit_style_escape): Update.
14992         (flush_wrap_buffer): Update.
14993         (fputs_maybe_filtered): Update.
14994         (fputs_unfiltered): Add function.
14996 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
14998         * gdb/event-loop.c (gdb_wait_for_event): Update.
14999         * gdb/printcmd.c (printf_command): Update.
15000         * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15001         * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15002         (gdb_os_flush_stderr): Update.
15003         * gdb/remote.c (remote_console_output): Update.
15004         * gdb/ui-file.c (gdb_flush): Rename to...
15005         (ui_file_flush): ...this.
15006         (stderr_file::write): Update.
15007         (stderr_file::puts): Update.
15008         * gdb/ui-file.h (gdb_flush): Rename to...
15009         (ui_file_flush): ...this.
15010         * gdb/utils.c (gdb_flush): Add function.
15011         * gdb/utils.h (gdb_flush): Add declaration.
15013 2020-02-07  Tom Tromey  <tromey@adacore.com>
15015         PR breakpoints/24915:
15016         * source.c (find_and_open_source): Do not check basenames_may_differ.
15018 2020-02-07  Tom Tromey  <tom@tromey.com>
15020         * README: Update gdbserver documentation.
15021         * gdbserver: Move to top level.
15022         * configure.tgt (build_gdbserver): Remove.
15023         * configure.ac: Remove --enable-gdbserver.
15024         * configure: Rebuild.
15025         * Makefile.in (distclean): Don't mention gdbserver.
15027 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15029         * source-cache.c (source_cache::ensure): Surround
15030         get_plain_source_lines with a try/catch.
15031         (source_cache::get_line_charpos): Get rid of try/catch
15032         and only check for the return value of "ensure".
15033         * tui/tui-source.c (tui_source_window::set_contents):
15034         Simplify "nlines" calculation.
15036 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
15038         * MAINTAINERS (Write After Approval): Add myself.
15040 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15042         * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15043         function call.
15045 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
15047         * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15049 2020-02-05  Maciej W. Rozycki  <macro@wdc.com>
15051         * nat/riscv-linux-tdesc.h: New file.
15052         * nat/riscv-linux-tdesc.c: New file, taking code from...
15053         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15054         ... here.
15055         * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15056         NATDEPFILES.
15058 2020-02-04  Andrew Burgess  <andrew.burgess@embecosm.com>
15060         * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15061         we don't set the fake simulator ptid to the null_ptid.
15063 2020-02-03  Simon Marchi  <simon.marchi@efficios.com>
15065         * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15066         * gdbthread.h (class thread_info) <resumed>: Likewise.
15067         * infrun.c (resume_1): Likewise.
15068         (proceed): Likewise.
15069         (infrun_thread_stop_requested): Likewise.
15070         (stop_all_threads): Likewise.
15071         (handle_inferior_event): Likewise.
15072         (restart_threads): Likewise.
15073         (finish_step_over): Likewise.
15074         (keep_going_stepped_thread): Likewise.
15075         * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15076         (linux_handle_extended_wait): Likewise.
15077         * record-btrace.c (get_thread_current_frame_id): Likewise.
15078         * record-full.c (record_full_wait_1): Likewise.
15079         * remote.c (remote_target::process_initial_stop_replies): Likewise.
15080         * target.c (target_resume): Likewise.
15081         * thread.c (set_running_thread): Likewise.
15083 2020-02-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
15085         * f-valprint.c (f77_print_array_1): Changed datatype of index
15086         variable to LONGEST from int to enable it to contain bound
15087         values correctly.
15089 2020-02-03  Maciej W. Rozycki  <macro@wdc.com>
15091         * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15092         (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15093         offsets according to FLEN determined.
15094         (riscv_linux_nat_target::read_description): Determine FLEN
15095         dynamically.
15096         (riscv_linux_nat_target::fetch_registers): Size regset buffer
15097         according to FLEN determined.
15098         (riscv_linux_nat_target::store_registers): Likewise.
15100 2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
15102         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15103         when reg->group is empty and reggroup is not.
15105 2020-01-31  Tom Tromey  <tromey@adacore.com>
15107         * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15108         Call beneath target's mourn_inferior after unpushing.
15110 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15112         PR tui/9765
15113         * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15114         have enough lines to fill the screen, still return the lowest
15115         address we found.
15117 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
15119         * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15120         '-', '<', and '>' commands.
15122 2020-01-29  Pedro Alves  <palves@redhat.com>
15123             Sergio Durigan Junior  <sergiodj@redhat.com>
15125         * infcmd.c (construct_inferior_arguments): Assert that
15126         'argc' is greater than 0.
15128 2020-01-29  Luis Machado  <luis.machado@linaro.org>
15130         * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15131         (BRK_INSN_MASK): Define to 0xd4200000.
15132         (aarch64_program_breakpoint_here_p): New function.
15133         (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15134         * arch-utils.c (default_program_breakpoint_here_p): Moved from
15135         breakpoint.c.
15136         * arch-utils.h (default_program_breakpoint_here_p): Moved from
15137         breakpoint.h
15138         * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15139         call gdbarch_program_breakpoint_here_p.
15140         (program_breakpoint_here): Moved to arch-utils.c, renamed to
15141         default_program_breakpoint_here_p, changed return type to bool and
15142         simplified.
15143         * breakpoint.h (program_breakpoint_here): Moved prototype to
15144         arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15145         return type to bool.
15146         * gdbarch.c: Regenerate.
15147         * gdbarch.h: Regenerate.
15148         * gdbarch.sh (program_breakpoint_here_p): New method.
15149         * infrun.c (handle_signal_stop): Call
15150         gdbarch_program_breakpoint_here_p.
15152 2020-01-26  Tom Tromey  <tom@tromey.com>
15154         * ctfread.c (struct ctf_fp_info): Reindent.
15155         (_initialize_ctfread): Remove.
15157 2020-01-26  Tom Tromey  <tom@tromey.com>
15159         * psymtab.c (partial_map_expand_apply)
15160         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15161         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15162         (psym_print_stats, psym_expand_symtabs_for_function)
15163         (psym_map_symbol_filenames, psym_map_matching_symbols)
15164         (psym_expand_symtabs_matching)
15165         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15166         (maintenance_check_psymtabs): Use new methods.
15167         * psympriv.h (struct partial_symtab) <readin_p,
15168         get_compunit_symtab>: New methods.
15169         <readin, compunit_symtab>: Remove members.
15170         (struct standard_psymtab): New.
15171         (struct legacy_psymtab): Derive from standard_psymtab.
15172         * dwarf2read.h (struct dwarf2_psymtab): Derive from
15173         standard_psymtab.
15174         * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15176 2020-01-26  Tom Tromey  <tom@tromey.com>
15178         * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15179         read_dependencies.  Add assert.
15180         * psymtab.c (partial_symtab::read_dependencies): New method.
15181         * psympriv.h (struct partial_symtab) <read_dependencies>: New
15182         method.
15183         * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15184         * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15185         read_dependencies.
15186         * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15187         Add assert.
15189 2020-01-26  Tom Tromey  <tom@tromey.com>
15191         * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15192         Call expand_psymtab.
15193         (xcoff_read_symtab): Call expand_psymtab.
15194         (xcoff_start_psymtab, xcoff_end_psymtab): Set
15195         legacy_expand_psymtab.
15196         * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15197         method.
15198         (struct legacy_psymtab) <expand_psymtab>: Implement.
15199         <legacy_expand_psymtab>: New member.
15200         * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15201         (parse_partial_symbols): Set legacy_expand_psymtab.
15202         (psymtab_to_symtab_1): Change argument order.  Call
15203         expand_psymtab.
15204         (new_psymtab): Set legacy_expand_psymtab.
15205         * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15206         * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15207         expand_psymtab.
15208         (dwarf2_psymtab::expand_psymtab): Rename from
15209         psymtab_to_symtab_1.  Call expand_psymtab.
15210         * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15211         (dbx_end_psymtab): Likewise.
15212         (dbx_psymtab_to_symtab_1): Change argument order. Call
15213         expand_psymtab.
15214         (dbx_read_symtab): Call expand_psymtab.
15215         * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15216         (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15217         (ctf_psymtab::read_symtab): Call expand_psymtab.
15219 2020-01-26  Tom Tromey  <tom@tromey.com>
15221         * xcoffread.c (xcoff_read_symtab): Remove prints.  Add assert.
15222         * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15223         messages.
15224         * mdebugread.c (mdebug_read_symtab): Remove prints.
15225         * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints.  Add
15226         assert.
15227         * dbxread.c (dbx_read_symtab): Remove prints.  Add assert.
15229 2020-01-26  Tom Tromey  <tom@tromey.com>
15231         * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15232         (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15233         (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15234         legacy_symtab.
15235         * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15236         * psymtab.c (psymtab_to_symtab): Call method.
15237         (dump_psymtab): Update.
15238         * psympriv.h (struct partial_symtab): Add virtual destructor.
15239         <read_symtab>: New method.
15240         (struct legacy_symtab): New.
15241         * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15242         (struct pst_map) <pst>: Now a legacy_psymtab.
15243         (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15244         (new_psymtab): Use legacy_psymtab.
15245         * dwarf2read.h (struct dwarf2_psymtab): New.
15246         (struct dwarf2_per_cu_data) <psymtab>: Use it.
15247         * dwarf2read.c (dwarf2_create_include_psymtab)
15248         (dwarf2_build_include_psymtabs, create_type_unit_group)
15249         (create_partial_symtab, process_psymtab_comp_unit_reader)
15250         (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15251         (set_partial_user): Use dwarf2_psymtab.
15252         (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15253         (psymtab_to_symtab_1, process_full_comp_unit)
15254         (process_full_type_unit, dwarf2_ranges_read)
15255         (dwarf2_get_pc_bounds, psymtab_include_file_name)
15256         (dwarf_decode_lines): Use dwarf2_psymtab.
15257         * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15258         (add_address_entry_worker, write_one_signatured_type)
15259         (recursively_count_psymbols, recursively_write_psymbols)
15260         (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15261         (write_debug_names): Likewise.
15262         * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15263         <pst>: Now a legacy_psymtab.
15264         (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15265         (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15266         (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15267         * ctfread.c (struct ctf_psymtab): New.
15268         (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15269         ctf_psymtab.
15270         (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15271         (create_partial_symtab): Return a ctf_psymtab.
15272         (scan_partial_symbols): Update.
15274 2020-01-26  Tom Tromey  <tom@tromey.com>
15276         * xcoffread.c (xcoff_start_psymtab): Use new.
15277         * psymtab.c (partial_symtab::partial_symtab): New constructor,
15278         renamed from start_psymtab_common.
15279         * psympriv.h (struct partial_symtab): Add new constructor.
15280         (start_psymtab_common): Don't declare.
15281         * mdebugread.c (parse_partial_symbols): Use new.
15282         * dwarf2read.c (create_partial_symtab): Use new.
15283         * dbxread.c (start_psymtab): Use new.
15284         * ctfread.c (create_partial_symtab): Use new.
15286 2020-01-26  Tom Tromey  <tom@tromey.com>
15288         * xcoffread.c (xcoff_end_psymtab): Use new.
15289         * psymtab.c (start_psymtab_common): Use new.
15290         (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15291         Update.
15292         * psympriv.h (struct partial_symtab): Add parameters to
15293         constructor.  Don't inline.
15294         (allocate_psymtab): Don't declare.
15295         * mdebugread.c (new_psymtab): Use new.
15296         * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15297         * dbxread.c (dbx_end_psymtab): Use new.
15299 2020-01-26  Tom Tromey  <tom@tromey.com>
15301         * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15302         allocate_psymtab.  Update documentation.
15303         * psymtab.c (psymtab_storage::install_psymtab): Rename from
15304         allocate_psymtab.  Do not use new.
15305         (allocate_psymtab): Use new.  Update.
15307 2020-01-26  Tom Tromey  <tom@tromey.com>
15309         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15310         * psymtab.c (psym_print_stats): Update.
15311         * psympriv.h (struct partial_symtab) <readin,
15312         psymtabs_addrmap_supported, anonymous>: Now bool.
15313         * mdebugread.c (psymtab_to_symtab_1): Update.
15314         * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15315         (build_type_psymtabs_reader, psymtab_to_symtab_1)
15316         (process_full_comp_unit, process_full_type_unit): Update.
15317         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15318         * ctfread.c (psymtab_to_symtab): Update.
15320 2020-01-26  Tom Tromey  <tom@tromey.com>
15322         * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15323         * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15324         * psymtab.c (psymtab_storage): Delete psymtabs.
15325         (psymtab_storage::allocate_psymtab): Use new.
15326         (psymtab_storage::discard_psymtab): Use delete.
15327         * psympriv.h (struct partial_symtab): Add constructor and
15328         initializers.
15330 2020-01-26  Tom Tromey  <tom@tromey.com>
15332         * machoread.c: Do not include psympriv.h.
15334 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15336         * NEWS: Mention the new option and the set/show commands.
15338 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
15340         * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15341         (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15342         (validate_exec_file): New variables, enums, functions.
15343         (exec_file_locate_attach, print_section_info): Style the filenames.
15344         (_initialize_exec): Install show_exec_file_mismatch_command and
15345          set_exec_file_mismatch_command.
15346         * gdbcore.h (validate_exec_file): Declare.
15347         * infcmd.c (attach_command): Call validate_exec_file.
15348         * remote.c ( remote_target::remote_add_inferior): Likewise.
15350 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15352         * frame.c (find_frame_sal): Move call to get_next_frame into more
15353         inner scope.
15354         * inline-frame.c (inilne_state) <inline_state>: Update argument
15355         types.
15356         (inilne_state) <skipped_symbol>: Rename to...
15357         (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15358         (skip_inline_frames): Build vector of skipped symbols and use this
15359         to reate the inline_state.
15360         (inline_skipped_symbol): Add a comment and some assertions, fetch
15361         skipped symbol from the list.
15363 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15365         * buildsym.c (lte_is_less_than): Delete.
15366         (buildsym_compunit::end_symtab_with_blockvector): Create local
15367         lambda function to sort line table entries, and use
15368         std::stable_sort instead of std::sort.
15369         * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15370         markers when looking for a previous line.
15372 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15374         * dwarf2read.c (lnp_state_machine::record_line): Include
15375         end_sequence parameter in debug print out.  Record the line if we
15376         are at an end_sequence marker even if it's not the start of a
15377         statement.
15378         * symmisc.c (maintenance_print_one_line_table): Print end of
15379         sequence markers with 'END' not '0'.
15381 2020-01-24  Pedro Alves  <palves@redhat.com>
15383         PR gdb/25410
15384         * thread.c (scoped_restore_current_thread::restore): Use
15385         switch_to_inferior_no_thread.
15386         * exec.c: Include "progspace-and-thread.h".
15387         (add_target_sections, remove_target_sections):
15388         scoped_restore_current_pspace_and_thread instead of
15389         scoped_restore_current_thread.
15390         * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15391         and aspace to the inferior before calling clone_program_space.
15392         Remove stale comment.
15394 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15396         * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15397         (arm_netbsd_nat_target::fetch_registers): ...this.
15398         (arm_nbsd_nat_target::store_registers): Rename to...
15399         (arm_netbsd_nat_target::store_registers): ...this.
15401 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15403         * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15404         register_t.
15406 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
15408         * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15409         Update comment.
15410         * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15411         Likewise.
15412         * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15413         * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15414         the correct replacement (iterate_over_regset_sections).
15415         * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15416         Update comment.
15418 2020-01-24  Graham Markall  <graham.markall@embecosm.com>
15420         PR gdb/23718
15421         * gdb/python/python.c (execute_gdb_command): Call
15422         async_enable_stdin in catch block.
15424 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15426         * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15427         SWITCH_THRU_ALL_UIS.
15429 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
15431         PR tui/9765
15432         * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15433         comment, add extra parameter, and update to store previous symbol
15434         when appropriate.
15435         * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15436         add extra parameter.
15437         * tui/tui-disasm.c (tui_disassemble): Update header comment,
15438         remove unneeded parameter, add try/catch around gdb_print_insn,
15439         rewrite to add items to asm_lines vector.
15440         (tui_find_backward_disassembly_start_address): New function.
15441         (tui_find_disassembly_address): Updated throughout.
15442         (tui_disasm_window::set_contents): Update for changes to
15443         tui_disassemble.
15444         (tui_disasm_window::do_scroll_vertical): No need to adjust the
15445         number of lines to scroll.
15447 2020-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
15449         * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15450         (SECT_OFF_DATA): Likewise.
15451         (SECT_OFF_RODATA): Likewise.
15452         (SECT_OFF_TEXT): Likewise.
15453         (SECT_OFF_BSS): Likewise.
15454         (struct objfile) <text_section_offset, data_section_offset>: New
15455         methods.
15456         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15457         objfile::text_section_offset.
15458         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15459         * coffread.c (coff_symtab_read): Likewise.
15460         (enter_linenos): Likewise.
15461         (process_coff_symbol): Likewise.
15462         * ctfread.c (get_objfile_text_range): Likewise.
15463         * dtrace-probe.c (dtrace_probe::get_relocated_address):
15464         Use objfile::data_section_offset.
15465         * dwarf2-frame.c (execute_cfa_program): Use
15466         objfile::text_section_offset.
15467         (dwarf2_frame_find_fde): Likewise.
15468         * dwarf2read.c (create_addrmap_from_index): Likewise.
15469         (create_addrmap_from_aranges): Likewise.
15470         (dw2_find_pc_sect_compunit_symtab): Likewise.
15471         (process_psymtab_comp_unit_reader): Likewise.
15472         (add_partial_symbol): Likewise.
15473         (add_partial_subprogram): Likewise.
15474         (process_full_comp_unit): Likewise.
15475         (read_file_scope): Likewise.
15476         (read_func_scope): Likewise.
15477         (read_lexical_block_scope): Likewise.
15478         (read_call_site_scope): Likewise.
15479         (dwarf2_rnglists_process): Likewise.
15480         (dwarf2_ranges_process): Likewise.
15481         (dwarf2_ranges_read): Likewise.
15482         (dwarf_decode_lines_1): Likewise.
15483         (new_symbol): Likewise.
15484         (dwarf2_fetch_die_loc_sect_off): Likewise.
15485         (dwarf2_per_cu_text_offset): Likewise.
15486         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15487         * hppa-tdep.c (read_unwind_info): Likewise.
15488         * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15489         * psympriv.h (struct partial_symtab): Likewise.
15490         * psymtab.c (find_pc_sect_psymtab): Likewise.
15491         * solib-svr4.c (enable_break): Likewise.
15492         * stap-probe.c (relocate_address): Use
15493         objfile::data_section_offset.
15494         * xcoffread.c (enter_line_range): Use
15495         objfile::text_section_offset.
15496         (read_xcoff_symtab): Likewise.
15498 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
15500         * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15501         declaration to narrower scopes.
15503 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
15505         * darwin-nat.h (struct darwin_exception_msg, enum
15506         darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15507         Move up.
15508         (class darwin_nat_target) <wait_1, check_new_threads,
15509         decode_exception_message, decode_message, stop_inferior,
15510         init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15511         * darwin-nat.c (darwin_check_new_threads): Rename to...
15512         (darwin_nat_target::check_new_threads): ... this.
15513         (darwin_suspend_inferior_it): Remove.
15514         (darwin_decode_exception_message): Rename to...
15515         (darwin_nat_target::decode_exception_message): ... this.
15516         (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15517         (darwin_decode_message): Rename to...
15518         (darwin_nat_target::decode_message): ... this.
15519         (cancel_breakpoint): Rename to...
15520         (darwin_nat_target::cancel_breakpoint): ... this.
15521         (darwin_wait): Rename to...
15522         (darwin_nat_target::wait_1): ... this.  Use range-based for loop
15523         instead of iterate_over_inferiors.
15524         (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15525         (darwin_stop_inferior): Rename to...
15526         (darwin_nat_target::stop_inferior): ... this.
15527         (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15528         (darwin_init_thread_list): Rename to...
15529         (darwin_nat_target::init_thread_list): ... this.
15530         (darwin_ptrace_him): Rename to...
15531         (darwin_nat_target::ptrace_him): ... this.
15532         (darwin_nat_target::create_inferior): Pass lambda function to
15533         fork_inferior.
15534         (darwin_nat_target::detach): Call stop_inferior instead of
15535         darwin_stop_inferior.
15536         * fork-inferior.h (fork_inferior): Change init_trace_fun
15537         parameter to gdb::function_view.
15538         * fork-inferior.c (fork_inferior): Likewise.
15540 2020-01-23  Hannes Domani  <ssbssa@yahoo.de>
15542         * i386-cygwin-tdep.c (core_process_module_section): Update.
15543         * windows-nat.c (struct lm_info_windows): Add text_offset.
15544         (windows_xfer_shared_libraries): Update.
15545         * windows-tdep.c (windows_xfer_shared_library):
15546         Add text_offset_cached argument.
15547         * windows-tdep.h (windows_xfer_shared_library): Update.
15549 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15551         * gdbarch.sh: Add declaration for _initialize_gdbarch.
15553 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15555         * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15556         (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15557         replace with range-based for.
15558         (gdbsim_interrupt_inferior): Remove.
15559         (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15560         with a range-based for.  Inline code from
15561         gdbsim_interrupt_inferior.
15563 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
15565         * infrun.c (proceed): Fix indentation.
15567 2020-01-21  Tom Tromey  <tromey@adacore.com>
15569         * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15570         * python/python.c (python_extension_ops): Update.
15571         (gdbpy_colorize): New function.
15572         * python/lib/gdb/__init__.py (colorize): New function.
15573         * extension.h (ext_lang_colorize): Declare.
15574         * extension.c (ext_lang_colorize): New function.
15575         * extension-priv.h (struct extension_language_ops) <colorize>: New
15576         member.
15577         * cli/cli-style.c (_initialize_cli_style): Update help text.
15579 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15581         * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15582         <cond>: Change type to bool.
15583         (aarch64_displaced_step_b_cond): Update cond to use bool type.
15584         (aarch64_displaced_step_cb): Likewise.
15585         (aarch64_displaced_step_tb): Likewise.
15587 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15589         * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15590         output.
15592 2020-01-21  Luis Machado  <luis.machado@linaro.org>
15594         * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15595         <pc_adjust>: Adjust the documentation.
15596         (aarch64_displaced_step_fixup): Check if PC really moved before
15597         adjusting it.
15599 2020-01-19  Tom Tromey  <tom@tromey.com>
15601         * disasm.c (~gdb_disassembler): New destructor.
15602         (gdb_buffered_insn_length): Call disassemble_free_target.
15603         * disasm.h (class gdb_disassembler): Declare destructor.  Use
15604         DISABLE_COPY_AND_ASSIGN.
15606 2020-01-19  Tom Tromey  <tom@tromey.com>
15608         * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15609         (die_reader_func_ftype): Remove.
15610         (cutu_reader): New class.
15611         (dw2_get_file_names_reader): Remove "data" parameter.
15612         (dw2_get_file_names): Use cutu_reader.
15613         (create_debug_type_hash_table): Update.
15614         (read_cutu_die_from_dwo): Update comment.
15615         (lookup_dwo_unit): Add dwo_name parameter.
15616         (cutu_reader::init_tu_and_read_dwo_dies): Now a method.  Remove
15617         die_reader_func_ftype and data parameters.
15618         (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15619         Remove die_reader_func_ftype and data parameters.
15620         (~cutu_reader): New; from init_cutu_and_read_dies.
15621         (cutu_reader::cutu_reader): Rename from
15622         init_cutu_and_read_dies_no_follow.  Remove die_reader_func_ftype
15623         and data parameters.
15624         (init_cutu_and_read_dies_simple): Remove.
15625         (struct process_psymtab_comp_unit_data): Remove.
15626         (process_psymtab_comp_unit_reader): Remove data parameter; add
15627         want_partial_unit and pretend_language parameters.
15628         (process_psymtab_comp_unit): Use cutu_reader.
15629         (build_type_psymtabs_reader): Remove data parameter.
15630         (build_type_psymtabs_1): Use cutu_reader.
15631         (process_skeletonless_type_unit): Likewise.
15632         (load_partial_comp_unit_reader): Remove.
15633         (load_partial_comp_unit): Use cutu_reader.
15634         (load_full_comp_unit_reader): Remove.
15635         (load_full_comp_unit): Use cutu_reader.
15636         (struct create_dwo_cu_data): Remove.
15637         (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15638         dwo_unit parameters.
15639         (create_cus_hash_table): Use cutu_reader.
15640         (struct dwarf2_read_addr_index_data): Remove.
15641         (dwarf2_read_addr_index_reader): Remove.
15642         (dwarf2_read_addr_index): Use cutu_reader.
15643         (read_signatured_type_reader): Remove.
15644         (read_signatured_type): Use cutu_reader.
15646 2020-01-19  Tom Tromey  <tom@tromey.com>
15648         * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15649         * tui/tui-wingeneral.h (class tui_suppress_output): New.
15650         (tui_wrefresh): Declare.
15651         * tui/tui-wingeneral.c (suppress_output): New global.
15652         (tui_suppress_output, ~tui_suppress_output): New constructor and
15653         destructor.
15654         (tui_wrefresh): New function.
15655         (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15656         (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15657         * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15658         method.
15659         * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15660         tui_wrefresh.
15661         (tui_data_window::no_refresh): New method.
15662         (tui_data_item_window::refresh_window): Call tui_wrefresh.
15663         (tui_reg_command): Use tui_suppress_output
15664         * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15665         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15666         method.
15667         * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15669 2020-01-19  Tom Tromey  <tom@tromey.com>
15671         * tui/tui-winsource.c (tui_update_source_windows_with_line):
15672         Handle case where symtab is null.
15674 2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
15676         * linux-fork.c (one_fork_p): Simplify.
15678 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15680         * top.c (struct qt_args): Remove.
15681         (kill_or_detach): Change return type to void, replace `void *`
15682         parameter with a proper one.
15683         (print_inferior_quit_action):  Likewise.
15684         (quit_confirm): Use range-based for loop to iterate over inferiors.
15685         (quit_force): Likewise.
15687 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15689         * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15690         `void *` parameter with proper parameters.
15691         (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15692         (print_one_inferior): Change return type to void, replace `void *`
15693         parameter with proper parameters.
15694         (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15695         inferiors.
15696         (get_other_inferior): Remove.
15697         (mi_cmd_remove_inferior): Use range-based loop to iterate over
15698         inferiors.
15700 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15702         * mi/mi-interp.c (report_initial_inferior): Remove.
15703         (mi_interp::init): Use range-based for to iterate over inferiors.
15705 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
15707         * python/py-inferior.c (build_inferior_list): Remove.
15708         (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15710 2020-01-16  Christian Biesinger  <cbiesinger@google.com>
15712         * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15713         (btrace_stitch_trace): Likewise.
15714         * charset.c (intermediate_encoding): Likewise (vaild).
15715         * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15716         * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15717         * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15719 2020-01-16  Hannes Domani  <ssbssa@yahoo.de>
15721         * windows-tdep.c (windows_get_tlb_type):
15722         Add rtl_user_process_parameters type.
15724 2020-01-16  Pedro Alves  <palves@redhat.com>
15725             Norbert Lange  <nolange79@gmail.com>
15727         PR build/24805
15728         * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15729         (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15730         (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15731         (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15732         (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15733         (ps_plog): Redeclare exported functions with default visibility.
15735 2020-01-16  Nitika Achra  <Nitika.Achra@amd.com>
15737         * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15738         DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15740 2020-01-15  Simon Marchi  <simon.marchi@efficios.com>
15742         * infcmd.c (post_create_inferior): Use get_thread_regcache
15743         instead of get_current_regcache.
15745 2020-01-14  Tom Tromey  <tom@tromey.com>
15747         PR symtab/12535:
15748         * python/python.c (gdbpy_decode_line): Treat empty string the same
15749         as no argument.
15751 2020-01-14  Tom Tromey  <tom@tromey.com>
15753         * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15755 2020-01-14  Tom Tromey  <tom@tromey.com>
15757         * nat/linux-btrace.c: Don't include <config.h>.
15758         * nat/linux-ptrace.c: Don't include <config.h>.
15759         * nat/x86-linux-dregs.c: Don't include <config.h>.
15761 2020-01-14  Tom Tromey  <tom@tromey.com>
15763         * configure: Rebuild.
15764         * configure.ac: Move many checks to ../gdbsupport/common.m4.
15766 2020-01-14  Tom Tromey  <tom@tromey.com>
15768         * nat/x86-linux-dregs.c: Include configh.h.
15769         * nat/linux-ptrace.c: Include configh.h.
15770         * nat/linux-btrace.c: Include configh.h.
15771         * defs.h: Include config.h, bfd.h.
15772         * configure.ac: Don't source common.host.
15773         (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15774         * configure: Rebuild.
15775         * acinclude.m4: Update path.
15776         * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15777         (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15778         (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15779         (CLIBS): Add LIBSUPPORT.
15780         (CDEPS): Likewise.
15781         (COMMON_SFILES): Remove gdbsupport files.
15782         (HFILES_NO_SRCDIR): Likewise.
15783         (stamp-version): Update path to create-version.sh.
15784         (ALLDEPFILES): Remove gdbsupport files.
15786 2020-01-14  Tom Tromey  <tom@tromey.com>
15788         * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15789         USE_WIN32API when needed.
15790         * configure.ac (USE_WIN32API): Don't define.
15791         (WIN32LIBS): Use WIN32APILIBS.
15792         * configure: Rebuild.
15794 2020-01-14  Tom Tromey  <tom@tromey.com>
15796         * configure: Rebuild.
15797         * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15799 2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15801         * skip.c (skip_function_command): Make skip w/o arguments use the
15802         name of the inlined function if pc is inside any inlined function.
15804 2020-01-14  Luis Machado  <luis.machado@linaro.org>
15806         * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15807         * infrun.c (resume_1): Likewise.
15808         (handle_inferior_event): Remove stale comment.
15809         * linux-nat.c (linux_nat_target::resume): Update comments.
15810         (save_stop_reason): Likewise.
15811         (linux_nat_filter_event): Likewise.
15812         * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15814 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
15816         * elfread.c (record_minimal_symbol): Set section index to 0 for
15817         non-allocatable sections.
15820 2020-01-13  Ali Tamur <tamur@google.com>
15822         * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15823         (dwarf2_cu): Add str_offsets_base field.  Change the type of addr_base
15824         to gdb::optional.  Update comments.
15825         (dwo_file): Update comments.
15826         (read_attribute): Update API to take an additional out parameter,
15827         need_reprocess.  This is used to mark attributes that need other
15828         attributes (e.g. str_offsets_base) for correct computation which may not
15829         have been read yet.
15830         (read_attribute_reprocess): New function declaration.
15831         (read_addr_index): Likewise.
15832         (read_dwo_str_index): Likewise.
15833         (read_stub_str_index): Likewise.
15834         (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15835         (lookup_addr_base): New function definition.
15836         (lookup_ranges_base): Likewise.
15837         (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15838         lookup_ranges_base.
15839         (init_cutu_and_read_dies): Update comments.
15840         (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15841         unit.  This is used to inherit parent's str_offsets_base and addr_base.
15842         Update comments.
15843         (init_cutu_and_read_dies_simple): Reflect API changes.
15844         (skip_one_die): Reflect API changes.  Handle DW_FORM_rnglistx.
15845         (create_cus_hash_table): Change API to take parent compile unit.  
15846         Reflect API changes.
15847         (open_and_init_dwo_file): Reflect API changes.
15848         (dwarf2_get_pc_bounds): Update comments.
15849         (dwarf2_record_block_ranges): Likewise.
15850         (read_full_die_1): Change implementation to reprocess attributes that
15851         need str_offsets_base and addr_base.
15852         (partial_die_info::read): Likewise.
15853         (read_attribute_reprocess): New function definition.
15854         (read_attribute_value): Change API to take an additional out parameter,
15855         need_reprocess.  Handle DW_FORM_rnglistx.  No longer trigger an error
15856         when a non-dwo compile unit has index based attributes.
15857         (read_attribute): Reflect API changes.
15858         (read_addr_index_1): Reflect API changes.  Update comments.
15859         (dwarf2_read_addr_index_data): Reflect API changes.
15860         (dwarf2_read_addr_index): Likewise.
15861         (read_str_index): Change API and implementation.  This becomes a helper
15862         to be used by the new string index related methods.  Update error
15863         message and comments.
15864         (read_dwo_str_index): New function definition.
15865         (read_stub_str_index): Likewise.
15866         * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15867         * symfile.h (dwarf2_debug_sections): Likewise.
15868         * xcoffread.c (dwarf2_debug_sections): Likewise.
15870 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15872         * gdbcore.h (struct core_fns) <core_read_registers>: Change
15873         core_reg_sect type to gdb_byte *.
15874         * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15875         * cris-tdep.c (fetch_core_registers): Likewise.
15876         * corelow.c (core_target::get_core_register_section): Change
15877         type of `contents` to gdb::byte_vector.
15879 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
15881         * tui/tui-wingeneral.c (box_win): Position the title in the center
15882         of the border.
15884 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
15886         * corelow.c (core_target::get_core_register_section): Use
15887           std::vector instead of alloca.
15889 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15891         * warning.m4: Add -Wmissing-declarations to build_warnings.
15892         * configure: Re-generate.
15894 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15896         * python/python.c (init__gdb_module): Add declaration.
15898 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
15900         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15901         * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15902         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15903         * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15904         * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15905         * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15906         * ada-exp.y (_initialize_ada_exp): Add declaration.
15907         * ada-lang.c (_initialize_ada_language): Add declaration.
15908         * ada-tasks.c (_initialize_tasks): Add declaration.
15909         * agent.c (_initialize_agent): Add declaration.
15910         * aix-thread.c (_initialize_aix_thread): Add declaration.
15911         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15912         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15913         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15914         * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15915         * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15916         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15917         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15918         * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15919         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15920         * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15921         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15922         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15923         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15924         * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15925         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15926         * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15927         * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15928         * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15929         * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15930         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15931         * annotate.c (_initialize_annotate): Add declaration.
15932         * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15933         * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15934         * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15935         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15936         * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15937         * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15938         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15939         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15940         * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15941         * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15942         * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15943         * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15944         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15945         * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15946         * auto-load.c (_initialize_auto_load): Add declaration.
15947         * auxv.c (_initialize_auxv): Add declaration.
15948         * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15949         * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15950         * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15951         * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15952         * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15953         * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15954         * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15955         * breakpoint.c (_initialize_breakpoint): Add declaration.
15956         * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15957         * btrace.c (_initialize_btrace): Add declaration.
15958         * charset.c (_initialize_charset): Add declaration.
15959         * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15960         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15961         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15962         * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15963         * cli/cli-script.c (_initialize_cli_script): Add declaration.
15964         * cli/cli-style.c (_initialize_cli_style): Add declaration.
15965         * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15966         * coffread.c (_initialize_coffread): Add declaration.
15967         * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15968         * compile/compile.c (_initialize_compile): Add declaration.
15969         * complaints.c (_initialize_complaints): Add declaration.
15970         * completer.c (_initialize_completer): Add declaration.
15971         * copying.c (_initialize_copying): Add declaration.
15972         * corefile.c (_initialize_core): Add declaration.
15973         * corelow.c (_initialize_corelow): Add declaration.
15974         * cp-abi.c (_initialize_cp_abi): Add declaration.
15975         * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15976         * cp-support.c (_initialize_cp_support): Add declaration.
15977         * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15978         * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15979         * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15980         * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15981         * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15982         * ctfread.c (_initialize_ctfread): Add declaration.
15983         * d-lang.c (_initialize_d_language): Add declaration.
15984         * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15985         * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15986         * dbxread.c (_initialize_dbxread): Add declaration.
15987         * dcache.c (_initialize_dcache): Add declaration.
15988         * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15989         * disasm.c (_initialize_disasm): Add declaration.
15990         * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15991         * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15992         * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15993         * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15994         * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15995         * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15996         * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15997         * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15998         * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15999         * elfread.c (_initialize_elfread): Add declaration.
16000         * exec.c (_initialize_exec): Add declaration.
16001         * extension.c (_initialize_extension): Add declaration.
16002         * f-lang.c (_initialize_f_language): Add declaration.
16003         * f-valprint.c (_initialize_f_valprint): Add declaration.
16004         * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16005         * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16006         * filesystem.c (_initialize_filesystem): Add declaration.
16007         * findcmd.c (_initialize_mem_search): Add declaration.
16008         * findvar.c (_initialize_findvar): Add declaration.
16009         * fork-child.c (_initialize_fork_child): Add declaration.
16010         * frame-base.c (_initialize_frame_base): Add declaration.
16011         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16012         * frame.c (_initialize_frame): Add declaration.
16013         * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16014         * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16015         * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16016         * gcore.c (_initialize_gcore): Add declaration.
16017         * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16018         * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16019         * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16020         * gdbarch.c (_initialize_gdbarch): Add declaration.
16021         * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16022         * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16023         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16024         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16025         * go-lang.c (_initialize_go_language): Add declaration.
16026         * go32-nat.c (_initialize_go32_nat): Add declaration.
16027         * guile/guile.c (_initialize_guile): Add declaration.
16028         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16029         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16030         * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16031         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16032         * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16033         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16034         * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16035         * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16036         * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16037         * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16038         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16039         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16040         * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16041         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16042         * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16043         * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16044         * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16045         * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16046         * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16047         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16048         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16049         * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16050         * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16051         * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16052         * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16053         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16054         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16055         * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16056         * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16057         * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16058         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16059         * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16060         * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16061         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16062         * infcall.c (_initialize_infcall): Add declaration.
16063         * infcmd.c (_initialize_infcmd): Add declaration.
16064         * inflow.c (_initialize_inflow): Add declaration.
16065         * infrun.c (_initialize_infrun): Add declaration.
16066         * interps.c (_initialize_interpreter): Add declaration.
16067         * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16068         * jit.c (_initialize_jit): Add declaration.
16069         * language.c (_initialize_language): Add declaration.
16070         * linux-fork.c (_initialize_linux_fork): Add declaration.
16071         * linux-nat.c (_initialize_linux_nat): Add declaration.
16072         * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16073         * linux-thread-db.c (_initialize_thread_db): Add declaration.
16074         * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16075         * m2-lang.c (_initialize_m2_language): Add declaration.
16076         * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16077         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16078         * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16079         * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16080         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16081         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16082         * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16083         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16084         * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16085         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16086         * machoread.c (_initialize_machoread): Add declaration.
16087         * macrocmd.c (_initialize_macrocmd): Add declaration.
16088         * macroscope.c (_initialize_macroscope): Add declaration.
16089         * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16090         * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16091         * maint.c (_initialize_maint_cmds): Add declaration.
16092         * mdebugread.c (_initialize_mdebugread): Add declaration.
16093         * memattr.c (_initialize_mem): Add declaration.
16094         * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16095         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16096         * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16097         * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16098         * mi/mi-main.c (_initialize_mi_main): Add declaration.
16099         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16100         * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16101         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16102         * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16103         * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16104         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16105         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16106         * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16107         * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16108         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16109         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16110         * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16111         * mipsread.c (_initialize_mipsread): Add declaration.
16112         * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16113         * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16114         * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16115         * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16116         * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16117         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16118         * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16119         * nto-procfs.c (_initialize_procfs): Add declaration.
16120         * objc-lang.c (_initialize_objc_language): Add declaration.
16121         * observable.c (_initialize_observer): Add declaration.
16122         * opencl-lang.c (_initialize_opencl_language): Add declaration.
16123         * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16124         * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16125         * osabi.c (_initialize_gdb_osabi): Add declaration.
16126         * osdata.c (_initialize_osdata): Add declaration.
16127         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16128         * parse.c (_initialize_parse): Add declaration.
16129         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16130         * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16131         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16132         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16133         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16134         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16135         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16136         * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16137         * printcmd.c (_initialize_printcmd): Add declaration.
16138         * probe.c (_initialize_probe): Add declaration.
16139         * proc-api.c (_initialize_proc_api): Add declaration.
16140         * proc-events.c (_initialize_proc_events): Add declaration.
16141         * proc-service.c (_initialize_proc_service): Add declaration.
16142         * procfs.c (_initialize_procfs): Add declaration.
16143         * producer.c (_initialize_producer): Add declaration.
16144         * psymtab.c (_initialize_psymtab): Add declaration.
16145         * python/python.c (_initialize_python): Add declaration.
16146         * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16147         * record-btrace.c (_initialize_record_btrace): Add declaration.
16148         * record-full.c (_initialize_record_full): Add declaration.
16149         * record.c (_initialize_record): Add declaration.
16150         * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16151         * regcache.c (_initialize_regcache): Add declaration.
16152         * reggroups.c (_initialize_reggroup): Add declaration.
16153         * remote-notif.c (_initialize_notif): Add declaration.
16154         * remote-sim.c (_initialize_remote_sim): Add declaration.
16155         * remote.c (_initialize_remote): Add declaration.
16156         * reverse.c (_initialize_reverse): Add declaration.
16157         * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16158         * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16159         * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16160         * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16161         * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16162         * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16163         * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16164         * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16165         Add declaration.
16166         * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16167         * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16168         * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16169         * rust-exp.y (_initialize_rust_exp): Add declaration.
16170         * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16171         * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16172         * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16173         * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16174         * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16175         * score-tdep.c (_initialize_score_tdep): Add declaration.
16176         * ser-go32.c (_initialize_ser_dos): Add declaration.
16177         * ser-mingw.c (_initialize_ser_windows): Add declaration.
16178         * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16179         * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16180         * ser-uds.c (_initialize_ser_socket): Add declaration.
16181         * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16182         * serial.c (_initialize_serial): Add declaration.
16183         * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16184         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16185         * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16186         * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16187         * skip.c (_initialize_step_skip): Add declaration.
16188         * sol-thread.c (_initialize_sol_thread): Add declaration.
16189         * solib-aix.c (_initialize_solib_aix): Add declaration.
16190         * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16191         * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16192         * solib-frv.c (_initialize_frv_solib): Add declaration.
16193         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16194         * solib-target.c (_initialize_solib_target): Add declaration.
16195         * solib.c (_initialize_solib): Add declaration.
16196         * source-cache.c (_initialize_source_cache): Add declaration.
16197         * source.c (_initialize_source): Add declaration.
16198         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16199         * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16200         * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16201         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16202         * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16203         * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16204         * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16205         * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16206         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16207         * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16208         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16209         * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16210         * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16211         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16212         * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16213         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16214         * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16215         * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16216         * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16217         * stabsread.c (_initialize_stabsread): Add declaration.
16218         * stack.c (_initialize_stack): Add declaration.
16219         * stap-probe.c (_initialize_stap_probe): Add declaration.
16220         * std-regs.c (_initialize_frame_reg): Add declaration.
16221         * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16222         * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16223         * symfile.c (_initialize_symfile): Add declaration.
16224         * symmisc.c (_initialize_symmisc): Add declaration.
16225         * symtab.c (_initialize_symtab): Add declaration.
16226         * target.c (_initialize_target): Add declaration.
16227         * target-connection.c (_initialize_target_connection): Add
16228         declaration.
16229         * target-dcache.c (_initialize_target_dcache): Add declaration.
16230         * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16231         * thread.c (_initialize_thread): Add declaration.
16232         * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16233         * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16234         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16235         * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16236         * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16237         * tracectf.c (_initialize_ctf): Add declaration.
16238         * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16239         * tracefile.c (_initialize_tracefile): Add declaration.
16240         * tracepoint.c (_initialize_tracepoint): Add declaration.
16241         * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16242         * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16243         * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16244         * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16245         * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16246         * tui/tui-win.c (_initialize_tui_win): Add declaration.
16247         * tui/tui.c (_initialize_tui): Add declaration.
16248         * typeprint.c (_initialize_typeprint): Add declaration.
16249         * ui-style.c (_initialize_ui_style): Add declaration.
16250         * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16251         * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16252         * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16253         * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16254         * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16255         * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16256         * unittests/filtered_iterator-selftests.c
16257         (_initialize_filtered_iterator_selftests): Add declaration.
16258         * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16259         * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16260         * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16261         * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16262         * unittests/main-thread-selftests.c
16263         (_initialize_main_thread_selftests): Add declaration.
16264         * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16265         * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16266         * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16267         * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16268         * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16269         * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16270         * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16271         * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16272         * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16273         * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16274         * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16275         * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16276         * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16277         * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16278         * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16279         declaration.
16280         * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16281         * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16282         * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16283         * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16284         * user-regs.c (_initialize_user_regs): Add declaration.
16285         * utils.c (_initialize_utils): Add declaration.
16286         * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16287         * valops.c (_initialize_valops): Add declaration.
16288         * valprint.c (_initialize_valprint): Add declaration.
16289         * value.c (_initialize_values): Add declaration.
16290         * varobj.c (_initialize_varobj): Add declaration.
16291         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16292         * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16293         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16294         * windows-nat.c (_initialize_windows_nat): Add declaration.
16295         (_initialize_check_for_gdb_ini): Add declaration.
16296         (_initialize_loadable): Add declaration.
16297         * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16298         * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16299         * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16300         * xcoffread.c (_initialize_xcoffread): Add declaration.
16301         * xml-support.c (_initialize_xml_support): Add declaration.
16302         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16303         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16304         * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16305         * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16307 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16309         * regformats/regdat.sh: Generate declaration for init function.
16311 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
16313         * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16314         up.
16315         (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16316         close_one_inferior>: New methods.
16317         (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16318         pass down target to find_inferior_pid.
16319         (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16320         Pass down target to find_inferior_ptid.
16321         (gdbsim_target::create_inferior): Pass down target to
16322         add_thread_silent.
16323         (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16324         target down to find_inferior_ptid and switch_to_thread.
16325         (gdbsim_target::close): Update to call close_one_inferior.
16326         (struct resume_data): Remove.
16327         (gdbsim_resume_inferior): Move to gdbsim_target.  Take arguments
16328         directly, rather than through a void pointer.
16329         (gdbsim_target::resume): Update to call resume_one_inferior.
16331 2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
16333         * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16335 2020-01-12  Pedro Alves  <palves@redhat.com>
16337         * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16338         directly for the current inferior instead of
16339         discard_all_inferiors.
16340         (discard_all_inferiors): Delete.
16342 2020-01-11  Tom Tromey  <tom@tromey.com>
16344         * tui/tui-wingeneral.c (box_win): Check cli_styling.
16345         * tui/tui-winsource.c (tui_source_window_base::refill): Use
16346         deprecated_safe_get_selected_frame.
16348 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
16350         * inferior.c (print_inferior): Switch inferior before printing it.
16352 2020-01-10  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>
16353             Pedro Alves  <palves@redhat.com>
16355         * progspace-and-thread.c (switch_to_program_space_and_thread):
16356         Assert there's an inferior for PSPACE.  Use
16357         switch_to_inferior_no_thread to switch the inferior too.
16358         * progspace.c (program_space::~program_space): Call
16359         clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16360         (program_space::free_all_objfiles): Don't call clear_symtab_users
16361         here.
16362         * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16364 2020-01-10  Pedro Alves  <palves@redhat.com>
16366         * NEWS: Mention multi-target debugging, "info connections", and
16367         "add-inferior -no-connection".
16369 2020-01-10  Pedro Alves  <palves@redhat.com>
16371         * infrun.c: Include "target-connection.h".
16372         (check_multi_target_resumption): New.
16373         (proceed): Call it.
16374         * target-connection.c (make_target_connection_string): Make
16375         extern.
16376         * target-connection.h (make_target_connection_string): Declare.
16378 2020-01-10  Pedro Alves  <palves@redhat.com>
16380         * Makefile.in (COMMON_SFILES): Add target-connection.c.
16381         * inferior.c (uiout_field_connection): New function.
16382         (print_inferior): Add new "connection-id" column.
16383         (add_inferior_command): Show connection number/string of added
16384         inferior.
16385         * process-stratum-target.h
16386         (process_stratum_target::connection_string): New virtual method.
16387         (process_stratum_target::connection_number): New field.
16388         * remote.c (remote_target::connection_string): New override.
16389         * target-connection.c: New file.
16390         * target-connection.h: New file.
16391         * target.c (decref_target): Remove process_stratum targets from
16392         the connection list.
16393         (target_stack::push): Add process_stratum targets to the
16394         connection list.
16396 2020-01-10  Pedro Alves  <palves@redhat.com>
16398         Revert:
16399         2016-04-12  Pedro Alves  <palves@redhat.com>
16400         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16401         Remove references to name.
16402         * serial.h (struct serial) <name>: Delete.
16404 2020-01-10  Pedro Alves  <palves@redhat.com>
16406         * gdbarch-selftests.c (register_to_value_test): Remove "target
16407         already pushed" check.
16409 2020-01-10  Pedro Alves  <palves@redhat.com>
16410             John Baldwin  <jhb@FreeBSD.org>
16412         * aarch64-linux-nat.c
16413         (aarch64_linux_nat_target::thread_architecture): Adjust.
16414         * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16415         (task_command_1): Likewise.
16416         * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16417         (aix_thread_target::wait, aix_thread_target::fetch_registers)
16418         (aix_thread_target::store_registers)
16419         (aix_thread_target::thread_alive): Adjust.
16420         * amd64-fbsd-tdep.c: Include "inferior.h".
16421         (amd64fbsd_get_thread_local_address): Pass down target.
16422         * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16423         thread's gdbarch instead of target_gdbarch.
16424         * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16425         get_last_target_status.
16426         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16427         * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16428         inferiors.
16429         (update_inserted_breakpoint_locations): Skip if inferiors with no
16430         execution.
16431         (update_global_location_list): When handling moribund locations,
16432         find representative inferior for location's pspace, and use thread
16433         count of its process_stratum target.
16434         * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16435         * bsd-uthread.c (bsd_uthread_target::wait): Use
16436         as_process_stratum_target and adjust thread_change_ptid and
16437         add_thread calls.
16438         (bsd_uthread_target::update_thread_list): Use
16439         as_process_stratum_target and adjust find_thread_ptid,
16440         thread_change_ptid and add_thread calls.
16441         * btrace.c (maint_btrace_packet_history_cmd): Adjust
16442         find_thread_ptid call.
16443         * corelow.c (add_to_thread_list): Adjust add_thread call.
16444         (core_target_open): Adjust add_thread_silent and thread_count
16445         calls.
16446         (core_target::pid_to_str): Adjust find_inferior_ptid call.
16447         * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16448         * event-top.c (async_disconnect): Pop targets from all inferiors.
16449         * exec.c (add_target_sections): Push exec target on all inferiors
16450         sharing the program space.
16451         (remove_target_sections): Remove the exec target from all
16452         inferiors sharing the program space.
16453         (exec_on_vfork): New.
16454         * exec.h (exec_on_vfork): Declare.
16455         * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16456         Pass it down.
16457         (fbsd_nat_target::update_thread_list): Adjust.
16458         (fbsd_nat_target::resume): Adjust.
16459         (fbsd_handle_debug_trap): Add fbsd_nat_target parameter.  Pass it
16460         down.
16461         (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16462         * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16463         get_thread_arch_regcache call.
16464         * fork-child.c (gdb_startup_inferior): Pass target down to
16465         startup_inferior and set_executing.
16466         * gdbthread.h (struct process_stratum_target): Forward declare.
16467         (add_thread, add_thread_silent, add_thread_with_info)
16468         (in_thread_list): Add process_stratum_target parameter.
16469         (find_thread_ptid(inferior*, ptid_t)): New overload.
16470         (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16471         parameter.
16472         (all_threads()): Delete overload.
16473         (all_threads, all_non_exited_threads): Add process_stratum_target
16474         parameter.
16475         (all_threads_safe): Use brace initialization.
16476         (thread_count): Add process_stratum_target parameter.
16477         (set_resumed, set_running, set_stop_requested, set_executing)
16478         (threads_are_executing, finish_thread_state): Add
16479         process_stratum_target parameter.
16480         (switch_to_thread): Use is_current_thread.
16481         * i386-fbsd-tdep.c: Include "inferior.h".
16482         (i386fbsd_get_thread_local_address): Pass down target.
16483         * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16484         * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16485         have_inferiors check.
16486         * inf-ptrace.c (inf_ptrace_target::create_inferior)
16487         (inf_ptrace_target::attach): Adjust.
16488         * infcall.c (run_inferior_call): Adjust.
16489         * infcmd.c (run_command_1): Pass target to
16490         scoped_finish_thread_state.
16491         (proceed_thread_callback): Skip inferiors with no execution.
16492         (continue_command): Rename 'all_threads' local to avoid hiding
16493         'all_threads' function.  Adjust get_last_target_status call.
16494         (prepare_one_step): Adjust set_running call.
16495         (signal_command): Use user_visible_resume_target.  Compare thread
16496         pointers instead of inferior_ptid.
16497         (info_program_command): Adjust to pass down target.
16498         (attach_command): Mark target's 'thread_executing' flag.
16499         (stop_current_target_threads_ns): New, factored out from ...
16500         (interrupt_target_1): ... this.  Switch inferior before making
16501         target calls.
16502         * inferior-iter.h
16503         (struct all_inferiors_iterator, struct all_inferiors_range)
16504         (struct all_inferiors_safe_range)
16505         (struct all_non_exited_inferiors_range): Filter on
16506         process_stratum_target too.  Remove explicit.
16507         * inferior.c (inferior::inferior): Push dummy target on target
16508         stack.
16509         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16510         Add process_stratum_target parameter, and pass it down.
16511         (have_live_inferiors): Adjust.
16512         (switch_to_inferior_and_push_target): New.
16513         (add_inferior_command, clone_inferior_command): Handle
16514         "-no-connection" parameter.  Use
16515         switch_to_inferior_and_push_target.
16516         (_initialize_inferior): Mention "-no-connection" option in
16517         the help of "add-inferior" and "clone-inferior" commands.
16518         * inferior.h: Include "process-stratum-target.h".
16519         (interrupt_target_1): Use bool.
16520         (struct inferior) <push_target, unpush_target, target_is_pushed,
16521         find_target_beneath, top_target, process_target, target_at,
16522         m_stack>: New.
16523         (discard_all_inferiors): Delete.
16524         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16525         (all_inferiors, all_non_exited_inferiors): Add
16526         process_stratum_target parameter.
16527         * infrun.c: Include "gdb_select.h" and <unordered_map>.
16528         (target_last_proc_target): New global.
16529         (follow_fork_inferior): Push target on new inferior.  Pass target
16530         to add_thread_silent.  Call exec_on_vfork.  Handle target's
16531         reference count.
16532         (follow_fork): Adjust get_last_target_status call.  Also consider
16533         target.
16534         (follow_exec): Push target on new inferior.
16535         (struct execution_control_state) <target>: New field.
16536         (user_visible_resume_target): New.
16537         (do_target_resume): Call target_async.
16538         (resume_1): Set target's threads_executing flag.  Consider resume
16539         target.
16540         (commit_resume_all_targets): New.
16541         (proceed): Also consider resume target.  Skip threads of inferiors
16542         with no execution.  Commit resumtion in all targets.
16543         (start_remote): Pass current inferior to wait_for_inferior.
16544         (infrun_thread_stop_requested): Consider target as well.  Pass
16545         thread_info pointer to clear_inline_frame_state instead of ptid.
16546         (infrun_thread_thread_exit): Consider target as well.
16547         (random_pending_event_thread): New inferior parameter.  Use it.
16548         (do_target_wait): Rename to ...
16549         (do_target_wait_1): ... this.  Add inferior parameter, and pass it
16550         down.
16551         (threads_are_resumed_pending_p, do_target_wait): New.
16552         (prepare_for_detach): Adjust calls.
16553         (wait_for_inferior): New inferior parameter.  Handle it.  Use
16554         do_target_wait_1 instead of do_target_wait.
16555         (fetch_inferior_event): Adjust.  Switch to representative
16556         inferior.  Pass target down.
16557         (set_last_target_status): Add process_stratum_target parameter.
16558         Save target in global.
16559         (get_last_target_status): Add process_stratum_target parameter and
16560         handle it.
16561         (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16562         (context_switch): Check inferior_ptid == null_ptid before calling
16563         inferior_thread().
16564         (get_inferior_stop_soon): Pass down target.
16565         (wait_one): Rename to ...
16566         (poll_one_curr_target): ... this.
16567         (struct wait_one_event): New.
16568         (wait_one): New.
16569         (stop_all_threads): Adjust.
16570         (handle_no_resumed, handle_inferior_event): Adjust to consider the
16571         event's target.
16572         (switch_back_to_stepped_thread): Also consider target.
16573         (print_stop_event): Update.
16574         (normal_stop): Update.  Also consider the resume target.
16575         * infrun.h (wait_for_inferior): Remove declaration.
16576         (user_visible_resume_target): New declaration.
16577         (get_last_target_status, set_last_target_status): New
16578         process_stratum_target parameter.
16579         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16580         process_stratum_target parameter, and use it.
16581         (clear_inline_frame_state (thread_info*)): New.
16582         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16583         process_stratum_target parameter.
16584         (clear_inline_frame_state (thread_info*)): Declare.
16585         * linux-fork.c (delete_checkpoint_command): Pass target down to
16586         find_thread_ptid.
16587         (checkpoint_command): Adjust.
16588         * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16589         instead of just tweaking inferior_ptid.
16590         (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16591         (exit_lwp): Pass target down to find_thread_ptid.
16592         (attach_proc_task_lwp_callback): Pass target down to
16593         add_thread/set_running/set_executing.
16594         (linux_nat_target::attach): Pass target down to
16595         thread_change_ptid.
16596         (get_detach_signal): Pass target down to find_thread_ptid.
16597         Consider last target status's target.
16598         (linux_resume_one_lwp_throw, resume_lwp)
16599         (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16600         (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16601         (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16602         (linux_nat_target::async_wait_fd): New.
16603         (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16604         target down.
16605         * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16606         * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16607         * linux-thread-db.c (struct thread_db_info::process_target): New
16608         field.
16609         (add_thread_db_info): Save target.
16610         (get_thread_db_info): New process_stratum_target parameter.  Also
16611         match target.
16612         (delete_thread_db_info): New process_stratum_target parameter.
16613         Also match target.
16614         (thread_from_lwp): Adjust to pass down target.
16615         (thread_db_notice_clone): Pass down target.
16616         (check_thread_db_callback): Pass down target.
16617         (try_thread_db_load_1): Always push the thread_db target.
16618         (try_thread_db_load, record_thread): Pass target down.
16619         (thread_db_target::detach): Pass target down.  Always unpush the
16620         thread_db target.
16621         (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16622         target down.  Always unpush the thread_db target.
16623         (find_new_threads_callback, thread_db_find_new_threads_2)
16624         (thread_db_target::update_thread_list): Pass target down.
16625         (thread_db_target::pid_to_str): Pass current inferior down.
16626         (thread_db_target::get_thread_local_address): Pass target down.
16627         (thread_db_target::resume, maintenance_check_libthread_db): Pass
16628         target down.
16629         * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16630         * procfs.c (procfs_target::procfs_init_inferior): Declare.
16631         (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16632         (procfs_init_inferior): Rename to ...
16633         (procfs_target::procfs_init_inferior): ... this and adjust.
16634         (procfs_target::create_inferior, procfs_notice_thread)
16635         (procfs_do_thread_registers): Adjust.
16636         * ppc-fbsd-tdep.c: Include "inferior.h".
16637         (ppcfbsd_get_thread_local_address): Pass down target.
16638         * proc-service.c (ps_xfer_memory): Switch current inferior and
16639         program space as well.
16640         (get_ps_regcache): Pass target down.
16641         * process-stratum-target.c
16642         (process_stratum_target::thread_address_space)
16643         (process_stratum_target::thread_architecture): Pass target down.
16644         * process-stratum-target.h
16645         (process_stratum_target::threads_executing): New field.
16646         (as_process_stratum_target): New.
16647         * ravenscar-thread.c
16648         (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16649         (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16650         down.
16651         * record-btrace.c (record_btrace_target::info_record): Adjust.
16652         (record_btrace_target::record_method)
16653         (record_btrace_target::record_is_replaying)
16654         (record_btrace_target::fetch_registers)
16655         (get_thread_current_frame_id, record_btrace_target::resume)
16656         (record_btrace_target::wait, record_btrace_target::stop): Pass
16657         target down.
16658         * record-full.c (record_full_wait_1): Switch to event thread.
16659         Pass target down.
16660         * regcache.c (regcache::regcache)
16661         (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16662         process_stratum_target parameter and handle it.
16663         (current_thread_target): New global.
16664         (get_thread_regcache): Add process_stratum_target parameter and
16665         handle it.  Switch inferior before calling target method.
16666         (get_thread_regcache): Pass target down.
16667         (get_thread_regcache_for_ptid): Pass target down.
16668         (registers_changed_ptid): Add process_stratum_target parameter and
16669         handle it.
16670         (registers_changed_thread, registers_changed): Pass target down.
16671         (test_get_thread_arch_aspace_regcache): New.
16672         (current_regcache_test): Define a couple local test_target_ops
16673         instances and use them for testing.
16674         (readwrite_regcache): Pass process_stratum_target parameter.
16675         (cooked_read_test, cooked_write_test): Pass mock_target down.
16676         * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16677         (get_thread_arch_aspace_regcache): Add process_stratum_target
16678         parameter.
16679         (regcache::target): New method.
16680         (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16681         (regcache::registers_changed_ptid): Add process_stratum_target
16682         parameter.
16683         (regcache::m_target): New field.
16684         (registers_changed_ptid): Add process_stratum_target parameter.
16685         * remote.c (remote_state::supports_vCont_probed): New field.
16686         (remote_target::async_wait_fd): New method.
16687         (remote_unpush_and_throw): Add remote_target parameter.
16688         (get_current_remote_target): Adjust.
16689         (remote_target::remote_add_inferior): Push target.
16690         (remote_target::remote_add_thread)
16691         (remote_target::remote_notice_new_inferior)
16692         (get_remote_thread_info): Pass target down.
16693         (remote_target::update_thread_list): Skip threads of inferiors
16694         bound to other targets.  (remote_target::close): Don't discard
16695         inferiors.  (remote_target::add_current_inferior_and_thread)
16696         (remote_target::process_initial_stop_replies)
16697         (remote_target::start_remote)
16698         (remote_target::remote_serial_quit_handler): Pass down target.
16699         (remote_target::remote_unpush_target): New remote_target
16700         parameter.  Unpush the target from all inferiors.
16701         (remote_target::remote_unpush_and_throw): New remote_target
16702         parameter.  Pass it down.
16703         (remote_target::open_1): Check whether the current inferior has
16704         execution instead of checking whether any inferior is live.  Pass
16705         target down.
16706         (remote_target::remote_detach_1): Pass down target.  Use
16707         remote_unpush_target.
16708         (extended_remote_target::attach): Pass down target.
16709         (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16710         (remote_target::append_resumption): Pass down target.
16711         (remote_target::append_pending_thread_resumptions)
16712         (remote_target::remote_resume_with_hc, remote_target::resume)
16713         (remote_target::commit_resume): Pass down target.
16714         (remote_target::remote_stop_ns): Check supports_vCont_probed.
16715         (remote_target::interrupt_query)
16716         (remote_target::remove_new_fork_children)
16717         (remote_target::check_pending_events_prevent_wildcard_vcont)
16718         (remote_target::remote_parse_stop_reply)
16719         (remote_target::process_stop_reply): Pass down target.
16720         (first_remote_resumed_thread): New remote_target parameter.  Pass
16721         it down.
16722         (remote_target::wait_as): Pass down target.
16723         (unpush_and_perror): New remote_target parameter.  Pass it down.
16724         (remote_target::readchar, remote_target::remote_serial_write)
16725         (remote_target::getpkt_or_notif_sane_1)
16726         (remote_target::kill_new_fork_children, remote_target::kill): Pass
16727         down target.
16728         (remote_target::mourn_inferior): Pass down target.  Use
16729         remote_unpush_target.
16730         (remote_target::core_of_thread)
16731         (remote_target::remote_btrace_maybe_reopen): Pass down target.
16732         (remote_target::pid_to_exec_file)
16733         (remote_target::thread_handle_to_thread_info): Pass down target.
16734         (remote_target::async_wait_fd): New.
16735         * riscv-fbsd-tdep.c: Include "inferior.h".
16736         (riscv_fbsd_get_thread_local_address): Pass down target.
16737         * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16738         * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16739         (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16740         Adjust.
16741         * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16742         * solib-svr4.c (enable_break): Pass down target.
16743         * spu-multiarch.c (parse_spufs_run): Pass down target.
16744         * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16745         * target-delegates.c: Regenerate.
16746         * target.c (g_target_stack): Delete.
16747         (current_top_target): Return the current inferior's top target.
16748         (target_has_execution_1): Refer to the passed-in inferior's top
16749         target.
16750         (target_supports_terminal_ours): Check whether the initial
16751         inferior was already created.
16752         (decref_target): New.
16753         (target_stack::push): Incref/decref the target.
16754         (push_target, push_target, unpush_target): Adjust.
16755         (target_stack::unpush): Defref target.
16756         (target_is_pushed): Return bool.  Adjust to refer to the current
16757         inferior's target stack.
16758         (dispose_inferior): Delete, and inline parts ...
16759         (target_preopen): ... here.  Only dispose of the current inferior.
16760         (target_detach): Hold strong target reference while detaching.
16761         Pass target down.
16762         (target_thread_name): Add assertion.
16763         (target_resume): Pass down target.
16764         (target_ops::beneath, find_target_at): Adjust to refer to the
16765         current inferior's target stack.
16766         (get_dummy_target): New.
16767         (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16768         has a thread running.
16769         (initialize_targets): Rename to ...
16770         (_initialize_target): ... this.
16771         * target.h: Include "gdbsupport/refcounted-object.h".
16772         (struct target_ops): Inherit refcounted_object.
16773         (target_ops::shortname, target_ops::longname): Make const.
16774         (target_ops::async_wait_fd): New method.
16775         (decref_target): Declare.
16776         (struct target_ops_ref_policy): New.
16777         (target_ops_ref): New typedef.
16778         (get_dummy_target): Declare function.
16779         (target_is_pushed): Return bool.
16780         * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16781         (all_matching_threads_iterator::all_matching_threads_iterator):
16782         Handle filter target.
16783         * thread-iter.h (struct all_matching_threads_iterator, struct
16784         all_matching_threads_range, class all_non_exited_threads_range):
16785         Filter by target too.  Remove explicit.
16786         * thread.c (threads_executing): Delete.
16787         (inferior_thread): Pass down current inferior.
16788         (clear_thread_inferior_resources): Pass down thread pointer
16789         instead of ptid_t.
16790         (add_thread_silent, add_thread_with_info, add_thread): Add
16791         process_stratum_target parameter.  Use it for thread and inferior
16792         searches.
16793         (is_current_thread): New.
16794         (thread_info::deletable): Use it.
16795         (find_thread_ptid, thread_count, in_thread_list)
16796         (thread_change_ptid, set_resumed, set_running): New
16797         process_stratum_target parameter.  Pass it down.
16798         (set_executing): New process_stratum_target parameter.  Pass it
16799         down.  Adjust reference to 'threads_executing'.
16800         (threads_are_executing): New process_stratum_target parameter.
16801         Adjust reference to 'threads_executing'.
16802         (set_stop_requested, finish_thread_state): New
16803         process_stratum_target parameter.  Pass it down.
16804         (switch_to_thread): Also match inferior.
16805         (switch_to_thread): New process_stratum_target parameter.  Pass it
16806         down.
16807         (update_threads_executing): Reimplement.
16808         * top.c (quit_force): Pop targets from all inferior.
16809         (gdb_init): Don't call initialize_targets.
16810         * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16811         Declare.
16812         (windows_add_thread, windows_delete_thread): Adjust.
16813         (get_windows_debug_event): Rename to ...
16814         (windows_nat_target::get_windows_debug_event): ... this.  Adjust.
16815         * tracefile-tfile.c (tfile_target_open): Pass down target.
16816         * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16817         Forward declare.
16818         (switch_to_thread): Add process_stratum_target parameter.
16819         * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16820         parameter.  Use it.
16821         (mi_on_resume): Pass target down.
16822         * nat/fork-inferior.c (startup_inferior): Add
16823         process_stratum_target parameter.  Pass it down.
16824         * nat/fork-inferior.h (startup_inferior): Add
16825         process_stratum_target parameter.
16826         * python/py-threadevent.c (py_get_event_thread): Pass target down.
16828 2020-01-10  Pedro Alves  <palves@redhat.com>
16830         * remote.c (remote_target::start_remote): Don't set inferior_ptid
16831         directly.  Instead find the first thread in the thread list and
16832         use switch_to_thread.
16834 2020-01-10  Pedro Alves  <palves@redhat.com>
16836         * remote.c (remote_target::remote_add_inferior): Don't bind a
16837         process to the current inferior if the current inferior is already
16838         bound to a process.
16840 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
16841             Pedro Alves  <palves@redhat.com>
16843         * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16844         If no process is specified, return null_ptid instead of
16845         inferior_ptid.
16846         (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16847         TARGET_WAITKIND_SIGNALLED with no pid.
16849 2020-01-10  Pedro Alves  <palves@redhat.com>
16851         * remote.c (first_remote_resumed_thread): New.
16852         (remote_target::wait_as): Use it as default event_ptid instead of
16853         inferior_ptid.
16855 2020-01-10  Pedro Alves  <palves@redhat.com>
16857         * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16859 2020-01-10  Pedro Alves  <palves@redhat.com>
16861         * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16862         not -1.
16864 2020-01-10  Pedro Alves  <palves@redhat.com>
16866         * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16867         ptid to get_last_target_status.
16868         * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16869         ptid to get_last_target_status.
16870         * infcmd.c (continue_command): Don't pass a target_waitstatus to
16871         get_last_target_status.
16872         (info_program_command): Don't pass a target_waitstatus to
16873         get_last_target_status.
16874         * infrun.c (init_wait_for_inferior): Use
16875         nullify_last_target_wait_ptid.
16876         (get_last_target_status): Handle nullptr arguments.
16877         (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16878         (print_stop_event): Don't pass a ptid to get_last_target_status.
16879         (normal_stop): Don't pass a ptid to get_last_target_status.
16880         * infrun.h (get_last_target_status, set_last_target_status): Move
16881         comments here and update.
16882         (nullify_last_target_wait_ptid): Declare.
16883         * linux-fork.c (fork_load_infrun_state): Remove local extern
16884         declaration of nullify_last_target_wait_ptid.
16885         * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16886         to get_last_target_status.
16888 2020-01-10  Pedro Alves  <palves@redhat.com>
16890         * gdbthread.h (scoped_restore_current_thread)
16891         <dont_restore, restore, m_dont_restore>: Declare.
16892         * thread.c (thread_alive): Add assertion.  Return bool.
16893         (switch_to_thread_if_alive): New.
16894         (prune_threads): Switch inferior/thread.
16895         (print_thread_info_1): Switch thread before calling target methods.
16896         (scoped_restore_current_thread::restore): New, factored out from
16897         ...
16898         (scoped_restore_current_thread::~scoped_restore_current_thread):
16899         ... this.
16900         (scoped_restore_current_thread::scoped_restore_current_thread):
16901         Add assertion.
16902         (thread_apply_all_command, thread_select): Use
16903         switch_to_thread_if_alive.
16904         * infrun.c (proceed, restart_threads, handle_signal_stop)
16905         (switch_back_to_stepped_thread): Switch current thread before
16906         calling target methods.
16908 2020-01-10  Pedro Alves <palves@redhat.com>
16910         * inferior.c (switch_to_inferior_no_thread): New function,
16911         factored out from ...
16912         (inferior_command): ... here.
16913         * inferior.h (switch_to_inferior_no_thread): Declare.
16914         * mi/mi-main.c (run_one_inferior): Use
16915         switch_to_inferior_no_thread.
16917 2020-01-10  Pedro Alves  <palves@redhat.com>
16919         * infcmd.c (kill_command): Remove dead code.
16921 2020-01-10  Pedro Alves  <palves@redhat.com>
16923         * remote.c (remote_target::mourn_inferior): No longer check
16924         whether the target is running.
16926 2020-01-10  Pedro Alves  <palves@redhat.com>
16928         * corelow.c (core_target::has_execution): Change parameter type to
16929         inferior pointer.
16930         * inferior.c (number_of_live_inferiors): Use
16931         inferior::has_execution instead of target_has_execution_1.
16932         * inferior.h (inferior::has_execution): New.
16933         * linux-thread-db.c (thread_db_target::update_thread_list): Use
16934         inferior::has_execution instead of target_has_execution_1.
16935         * process-stratum-target.c
16936         (process_stratum_target::has_execution): Change parameter type to
16937         inferior pointer.  Check the inferior's PID instead of
16938         inferior_ptid.
16939         * process-stratum-target.h
16940         (process_stratum_target::has_execution): Change parameter type to
16941         inferior pointer.
16942         * record-full.c (record_full_core_target::has_execution): Change
16943         parameter type to inferior pointer.
16944         * target.c (target_has_execution_1): Change parameter type to
16945         inferior pointer.
16946         (target_has_execution_current): Adjust.
16947         * target.h (target_ops::has_execution): Change parameter type to
16948         inferior pointer.
16949         (target_has_execution_1): Change parameter type to inferior
16950         pointer.  Change return type to bool.
16951         * tracefile.h (tracefile_target::has_execution): Change parameter
16952         type to inferior pointer.
16954 2020-01-10  Pedro Alves  <palves@redhat.com>
16956         * exceptions.c (print_flush): Remove current_top_target() check.
16958 2020-01-10  Pedro Alves  <palves@redhat.com>
16960         * remote.c (show_remote_exec_file): Show the current inferior's
16961         exec-file instead of the command variable's value.
16963 2020-01-10  Pedro Alves  <palves@redhat.com>
16965         * record-full.c (record_full_resume_ptid): New global.
16966         (record_full_target::resume): Set it.
16967         (record_full_wait_1): Use record_full_resume_ptid instead of
16968         inferior_ptid.
16970 2020-01-10  Pedro Alves  <palves@redhat.com>
16972         * gdbthread.h (scoped_restore_current_thread)
16973         <dont_restore, restore, m_dont_restore>: Declare.
16974         * thread.c (thread_alive): Add assertion.  Return bool.
16975         (switch_to_thread_if_alive): New.
16976         (prune_threads): Switch inferior/thread.
16977         (print_thread_info_1): Switch thread before calling target methods.
16978         (scoped_restore_current_thread::restore): New, factored out from
16979         ...
16980         (scoped_restore_current_thread::~scoped_restore_current_thread):
16981         ... this.
16982         (scoped_restore_current_thread::scoped_restore_current_thread):
16983         Add assertion.
16984         (thread_apply_all_command, thread_select): Use
16985         switch_to_thread_if_alive.
16987 2020-01-10  George Barrett  <bob@bob131.so>
16989         * stap-probe.c (stap_modify_semaphore): Don't check for null
16990         semaphores.
16991         (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16992         for null semaphores.
16994 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
16996         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16997         all source windows, and maintain horizontal scroll status while
16998         doing so.
17000 2020-01-09  Tom Tromey  <tom@tromey.com>
17002         PR tui/18932:
17003         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17004         update_source_window, not print_source_lines.
17006 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
17008         * tui/tui.c (tui_enable): Register tui hooks after calling
17009         tui_display_main.
17011 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17013         * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17015 2020-01-08  Simon Marchi  <simon.marchi@efficios.com>
17017         * thread.c (print_thread_info_1): Fix indentation.
17019 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
17021         * symtab.c (general_symbol_info::compute_and_set_names): Move the
17022         unique_xmalloc_ptr outside the if to always free the demangled name.
17024 2020-01-08  Tom Tromey  <tromey@adacore.com>
17026         * xcoffread.c (enter_line_range, read_xcoff_symtab)
17027         (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17028         * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17029         (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17030         Remove.
17031         (section_offsets): New typedef.
17032         * symtab.c (fixup_section, get_msymbol_address): Update.
17033         * symmisc.c (dump_msymbols): Update.
17034         * symfile.h (relative_addr_info_to_section_offsets)
17035         (symfile_map_offsets_to_segments): Update.
17036         * symfile.c (build_section_addr_info_from_objfile)
17037         (init_objfile_sect_indices): Update.
17038         (struct place_section_arg): Change type of "offsets".
17039         (place_section): Update.
17040         (relative_addr_info_to_section_offsets): Change type of
17041         "section_offsets".  Remove "num_sections" parameter.
17042         (default_symfile_offsets, syms_from_objfile_1)
17043         (set_objfile_default_section_offset): Update.
17044         (reread_symbols): No need to preserve section offsets by hand.
17045         (symfile_map_offsets_to_segments): Change type of "offsets".
17046         * stap-probe.c (relocate_address): Update.
17047         * stabsread.h (process_one_symbol): Update.
17048         * solib-target.c (struct lm_info_target) <offsets>: Change type.
17049         (solib_target_relocate_section_addresses): Update.
17050         * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17051         Update.
17052         * solib-frv.c (frv_relocate_main_executable): Update.
17053         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17054         * solib-aix.c (solib_aix_get_section_offsets): Change return
17055         type.
17056         (solib_aix_solib_create_inferior_hook): Update.
17057         * remote.c (remote_target::get_offsets): Update.
17058         * psymtab.c (find_pc_sect_psymtab): Update.
17059         * psympriv.h (struct partial_symbol) <address, text_low,
17060         text_high>: Update.
17061         * objfiles.h (obj_section_offset): Update.
17062         (struct objfile) <section_offsets>: Change type.
17063         <num_sections>: Remove.
17064         (objfile_relocate): Update.
17065         * objfiles.c (entry_point_address_query): Update
17066         (relocate_one_symbol): Change type of "section_offsets".
17067         (objfile_relocate1, objfile_relocate1): Change type of
17068         "new_offsets".
17069         (objfile_rebase1): Update.
17070         * mipsread.c (mipscoff_symfile_read): Update.
17071         (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17072         parameter.
17073         * mdebugread.c (parse_symbol): Change type of "section_offsets".
17074         (parse_external, psymtab_to_symtab_1): Update.
17075         * machoread.c (macho_symfile_offsets): Update.
17076         * ia64-tdep.c (ia64_find_unwind_table): Update.
17077         * hppa-tdep.c (read_unwind_info): Update.
17078         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17079         * dwarf2read.c (create_addrmap_from_index)
17080         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17081         (process_psymtab_comp_unit_reader, add_partial_symbol)
17082         (add_partial_subprogram, process_full_comp_unit)
17083         (read_file_scope, read_func_scope, read_lexical_block_scope)
17084         (read_call_site_scope, dwarf2_rnglists_process)
17085         (dwarf2_ranges_process, dwarf2_ranges_read)
17086         (dwarf_decode_lines_1, var_decode_location, new_symbol)
17087         (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17088         Update.
17089         * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17090         Update.
17091         * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17092         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17093         (process_one_symbol): Change type of "section_offsets".
17094         * ctfread.c (get_objfile_text_range): Update.
17095         * coffread.c (coff_symtab_read, enter_linenos)
17096         (process_coff_symbol): Update.
17097         * coff-pe-read.c (add_pe_forwarded_sym): Update.
17098         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17100 2020-01-08  Tom Tromey  <tromey@adacore.com>
17102         * dwarf2read.c (parse_macro_definition): Use std::string.
17103         (parse_macro_definition): Likewise.
17105 2020-01-08  Tom Tromey  <tromey@adacore.com>
17107         * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17108         (ATTR_ALLOC_CHUNK): Remove.
17110 2020-01-08  Tom Tromey  <tromey@adacore.com>
17112         * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17114 2020-01-08  Tom Tromey  <tromey@adacore.com>
17116         * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17117         (dwarf2_compute_name, open_dwo_file): Likewise.
17118         (process_enumeration_scope): Use std::vector.
17119         (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17120         (partial_die_info::fixup, dwarf2_start_subfile)
17121         (guess_full_die_structure_name, dwarf2_name): Likewise.
17122         (determine_prefix): Update.
17123         (guess_full_die_structure_name): Make return type const.
17124         (partial_die_full_name): Return unique_xmalloc_ptr.
17125         (DW_FIELD_ALLOC_CHUNK): Remove.
17127 2020-01-07  Tom Tromey  <tromey@adacore.com>
17129         PR build/24937:
17130         * stap-probe.c (class stap_static_probe_ops): Add constructor.
17132 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17134         * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17136 2020-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
17138         * stack.c (print_frame_info): Move disassemble_next_line code
17139         inside source_print block.
17141 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17143         * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17144         gdb/signals.h, as we are now using native signal symbols.
17146 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17148         * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17149         overflow by an early check of content vs threshold.
17150         * tui/tui-source.c (tui_source_window::line_is_displayed):
17151         Likewise.
17153 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17155         * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17157 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
17159         * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17160         export table if no section contains it's RVA.
17162 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17164         * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17166 2020-01-06  Hannes Domani  <ssbssa@yahoo.de>
17168         * source.c (print_source_lines_base): Set last_line_listed.
17170 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
17172         * tui/tui-disasm.c: Remove trailing spaces.
17174 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
17175             Pedro Alves  <palves@redhat.com>
17177         * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17178         * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17179         (windows_gdb_signal_to_target): New function, uses the above
17180         enumeration to convert GDB internal signal codes to equivalent
17181         Windows codes.
17182         (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17183         * windows-nat.c: Include "gdb_wait.h".
17184         (get_windows_debug_event): Extract the fatal exception from the
17185         exit status and convert to the equivalent Posix signal number.
17186         * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17187         possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17188         * gdbsupport/gdb_wait.c: New file, implements
17189         windows_status_to_termsig.
17190         * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17191         (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17193 2020-01-05  Andrew Burgess  <andrew.burgess@embecosm.com>
17195         * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17196         show_layout.
17198 2020-01-05  Luis Machado  <luis.machado@linaro.org>
17200         * aarch64-linux-nat.c
17201         (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17202         and bfd_mach_aarch64.
17204 2020-01-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
17206         * ui-file.c (stdio_file::can_emit_style_escape)
17207         (tee_file::can_emit_style_escape): Ensure style is used also on
17208         gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17209         to gdb_stdout.
17210         * main.c (set_gdb_data_directory): Use file style to output the
17211         warning that the given pathname is not a directory.
17212         * top.c (show_history_filename, gdb_safe_append_history)
17213         (show_gdb_datadir): Use file style.
17215 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17217         * solib-target.c (struct lm_info_target):
17218         Change offsets to be a unique_xmalloc_ptr.
17219         (solib_target_relocate_section_addresses): Update.
17221 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
17223         * windows-nat.c (windows_clear_solib): Free so_list linked list.
17225 2020-01-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17227         * MAINTAINERS (Write After Approval): Add myself.
17229 2020-01-02  Luis Machado  <luis.machado@linaro.org>
17231         * proc-service.c (get_ps_regcache): Remove reference to obsolete
17232         Cell BE architecture.
17233         * target.h (struct target_ops) <thread_architecture>: Likewise.
17235 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17237         * Makefile.in: Use INSTALL_PROGRAM_ENV.
17239 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
17241         * MAINTAINERS (Write After Approval): Add myself.
17243 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17245         * gdbarch.sh: Update copyright year range of generated files.
17247 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17249         Update copyright year range in all GDB files.
17251 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17253         * copyright.py: Convert to Python 3.
17255 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17257         * copyright.py: Adapt after move of gnulib directory from gdb
17258         directory to toplevel directory.
17260 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17262         * copyright.py (main): Exit if run from the wrong directory.
17264 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17266         * top.c (print_gdb_version): Change copyright year to 2020.
17268 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
17270         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17272 For older changes see ChangeLog-2019.
17274 Local Variables:
17275 mode: change-log
17276 left-margin: 8
17277 fill-column: 74
17278 version-control: never
17279 coding: utf-8
17280 End: