1 2020-11-24 Joel Brobecker <brobecker@adacore.com>
3 * NEWS: Add entry documenting support for DWARF-based fixed
6 2020-11-24 Joel Brobecker <brobecker@adacore.com>
8 * NEWS: Document that building GDB now requires GMP.
10 2020-11-24 Joel Brobecker <brobecker@adacore.com>
12 * typeprint.c (print_type_scalar): Add handling of
13 TYPE_CODE_FIXED_POINT.
15 2020-11-24 Joel Brobecker <brobecker@adacore.com>
17 * valarith.c (fixed_point_binop): Replace the
18 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
21 2020-11-24 Joel Brobecker <brobecker@adacore.com>
23 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
24 replacing fixed_point_scaling_factor. All callers updated
25 throughout this project.
26 (fixed_point_scaling_factor): Delete declaration.
27 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
28 fixed_point_scaling_factor. Adjust implementation accordingly.
30 2020-11-24 Joel Brobecker <brobecker@adacore.com>
32 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
33 replacing the fixed_point_type_base_type function. All callers
34 updated throughout this project.
35 (fixed_point_type_base_type): Remove declaration.
36 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
37 fixed_point_type_base_type. Adjust implementation accordingly.
39 2020-11-24 Joel Brobecker <brobecker@adacore.com>
41 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
43 (INIT_FIXED_POINT_SPECIFIC): Adjust.
44 (TYPE_FIXED_POINT_INFO): Delete macro.
45 (allocate_fixed_point_type_info): Change return type to void.
46 * gdbtypes.c (copy_type_recursive): Replace the use of
47 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
48 (fixed_point_scaling_factor): Likewise.
49 (allocate_fixed_point_type_info): Change return type to void.
50 Adjust implementation accordingly.
51 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
52 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
54 2020-11-24 Joel Brobecker <brobecker@adacore.com>
56 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
57 into one single gdb::array_view parameter.
58 (gdb_mpz::write): Likewise.
59 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
60 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
61 into one single gdb::array_view parameter.
62 Adjust implementation accordingly.
63 (gdb_mpz::write): Likewise.
64 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
65 * unittests/gmp-utils-selftests.c: Adapt following changes above.
66 * valarith.c, valops.c, valprint.c, value.c: Likewise.
68 2020-11-24 Joel Brobecker <brobecker@adacore.com>
70 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
71 Change return type to std::string. Update all callers.
72 * gmp-utils.c (gmp_string_printf): Likewise.
74 2020-11-24 Joel Brobecker <brobecker@adacore.com>
76 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
77 instead of mpq_set_ui to initialize our GMP rational.
79 2020-11-23 Tom de Vries <tdevries@suse.de>
81 * debuginfod-support.c (debuginfod_source_query)
82 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
84 2020-11-21 Tom Tromey <tom@tromey.com>
86 * breakpoint.c (watchpoint_exp_is_const): Return bool.
88 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
90 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
92 (gdb_mpz_write_all_from_small): Likewise.
94 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
96 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
99 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
101 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
102 ctf_arc_open_by_name.
104 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
106 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
107 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
109 2020-11-20 Pedro Alves <pedro@palves.net>
111 * language.c (language_arch_info::lookup_primitive_type): Use
112 gdb::function_view instead of gdb::function.
113 (template language_lookup_primitive_type): Rename to ...
114 (language_lookup_primitive_type_1): ... this, and make static.
115 (language_lookup_primitive_type(const struct language_defn *,
116 struct gdbarch *, const char *): Make non-template.
117 (language_lookup_primitive_type(const struct language_defn *,
118 struct gdbarch *, std::function<bool (struct type *)>): Make
119 non-template and use gdb::function_view.
120 * language.h (language_arch_info::lookup_primitive_type): Use
121 gdb::function_view instead of std::function.
122 (language_lookup_primitive_type): No longer template.
123 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
124 lambda instead of a std::function.
126 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
129 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
132 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
134 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
136 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
138 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
139 in `loop_cb` parameter.
140 * gdbarch.c: Re-generate.
141 * gdbarch.h: Re-generate.
142 * arch-utils.c (default_read_core_file_mappings): Remove `other`
144 * arch-utils.h (default_read_core_file_mappings): Likewise.
145 * corelow.c (core_target::build_file_mappings): Likewise.
146 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
147 (linux_core_info_proc_mappings): Likewise.
149 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
151 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
152 * NEWS: Mention new options.
153 * f-array-walker.h: New file.
154 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
155 (repack_array_slices): New static global.
156 (show_repack_array_slices): New function.
157 (fortran_array_slicing_debug): New static global.
158 (show_fortran_array_slicing_debug): New function.
159 (value_f90_subarray): Delete.
160 (skip_undetermined_arglist): Delete.
161 (class fortran_array_repacker_base_impl): New class.
162 (class fortran_lazy_array_repacker_impl): New class.
163 (class fortran_array_repacker_impl): New class.
164 (fortran_value_subarray): Complete rewrite.
165 (set_fortran_list): New static global.
166 (show_fortran_list): Likewise.
167 (_initialize_f_language): Register new commands.
168 (fortran_adjust_dynamic_array_base_address_hack): New function.
169 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
171 * f-valprint.c: Include 'f-array-walker.h'.
172 (class fortran_array_printer_impl): New class.
173 (f77_print_array_1): Delete.
174 (f77_print_array): Delete.
175 (fortran_print_array): New.
176 (f_value_print_inner): Update to call fortran_print_array.
177 * gdbtypes.c: Include 'f-lang.h'.
178 (resolve_dynamic_type_internal): Call
179 fortran_adjust_dynamic_array_base_address_hack.
181 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
183 * breakpoint.c (struct watch_options): New struct.
184 (watch_option_defs): New static global.
185 (make_watch_options_def_group): New function.
186 (watch_maybe_just_location): Convert option parsing.
187 (watch_command_completer): New function.
188 (_initialize_breakpoint): Build help text using options mechanism.
190 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
192 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
193 (watch_command_1): Update parameter types. Convert locals to
195 (watch_command_wrapper): Change parameter type.
196 (watch_maybe_just_location): Change locals to bool.
197 (rwatch_command_wrapper): Update parameter type.
198 (awatch_command_wrapper): Update parameter type.
199 * breakpoint.h (watch_command_wrapper): Change parameter type.
200 (rwatch_command_wrapper): Update parameter type.
201 (awatch_command_wrapper): Update parameter type.
202 * eval.c (fetch_subexp_value): Change parameter type.
203 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
205 * value.h (fetch_subexp_value): Change parameter type in
208 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
210 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
213 2020-11-18 Keith Seitz <keiths@redhat.com>
215 * linux-tdep.c (dump_note_entry_p): Return true instead of
218 2020-11-18 Tom de Vries <tdevries@suse.de>
220 * debuginfod-support.c (debuginfod_source_query)
221 (debuginfod_debuginfo_query): Also do early exit if
222 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
224 2020-11-18 Tom de Vries <tdevries@suse.de>
226 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
229 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
231 * gdbtypes.h (get_array_bounds): Return bool, adjust some
232 callers. Move doc here.
233 * gdbtypes.c (get_array_bounds): Return bool
235 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
237 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
239 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
240 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
243 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
245 * printcmd.c: Include 'safe-ctype.c'.
246 (skip_over_slash_fmt): New function.
247 (print_command_completer): Call skip_over_slash_fmt.
248 (display_and_x_command_completer): New function.
249 (_initialize_printcmd): Add command completion for 'x' and
252 2020-11-16 Pedro Alves <pedro@palves.net>
254 * frame.c (get_prev_frame): Move get_frame_id call from here ...
255 (get_prev_frame_always_1): ... to here.
256 * inline-frame.c (inline_frame_this_id): Mention
257 get_prev_frame_always_1 in comment.
259 2020-11-15 Joel Brobecker <brobecker@adacore.com>
261 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
263 (value_less): Add fixed-point handling.
265 2020-11-15 Joel Brobecker <brobecker@adacore.com>
267 * eval.c (binop_promote): Add fixed-point type handling.
268 * valarith.c (fixed_point_binop): New function.
269 (scalar_binop): Add fixed-point type handling.
270 (value_neg): Add fixed-point type handling.
271 * valops.c (value_cast_to_fixed_point): New function.
272 (value_cast): Add fixed-point type handling.
274 2020-11-15 Joel Brobecker <brobecker@adacore.com>
276 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
278 * c-typeprint.c (c_type_print_varspec_prefix)
279 (c_type_print_varspec_suffix, c_type_print_base_1): Add
280 TYPE_CODE_FIXED_POINT handling.
281 * p-typeprint.c (pascal_type_print_varspec_prefix)
282 (pascal_type_print_varspec_suffix): Likewise.
283 * typeprint.c (print_type_fixed_point): New function.
284 * typeprint.h (print_type_fixed_point): Add declaration.
286 2020-11-15 Joel Brobecker <brobecker@adacore.com>
288 * printcmd.c (print_scalar_formatted): Add fixed-point type
289 handling when options->format is set.
291 2020-11-15 Joel Brobecker <brobecker@adacore.com>
293 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
294 * dwarf2/read.c (get_dwarf2_rational_constant)
295 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
296 (has_zero_over_zero_small_attribute): New functions.
297 read_base_type, set_die_type): Add fixed-point type handling.
298 * gdb-gdb.py.in: Add fixed-point type handling.
299 * gdbtypes.c: #include "gmp-utils.h".
300 (create_range_type, set_type_code): Add fixed-point type handling.
301 (init_fixed_point_type): New function.
302 (is_integral_type, is_scalar_type): Add fixed-point type handling.
303 (print_fixed_point_type_info): New function.
304 (recursive_dump_type, copy_type_recursive): Add fixed-point type
306 (fixed_point_type_storage): New typedef.
307 (fixed_point_objfile_key): New static global.
308 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
309 (fixed_point_type_base_type, fixed_point_scaling_factor): New
311 * gdbtypes.h: #include "gmp-utils.h".
312 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
313 (union type_specific) <fixed_point_info>: New field.
314 (struct fixed_point_type_info): New struct.
315 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
316 (init_fixed_point_type, is_fixed_point_type)
317 (fixed_point_type_base_type, fixed_point_scaling_factor)
318 (allocate_fixed_point_type_info): Add declarations.
319 * valprint.c (generic_val_print_fixed_point): New function.
320 (generic_value_print): Add fixed-point type handling.
321 * value.c (value_as_address, unpack_long): Add fixed-point type
324 2020-11-15 Joel Brobecker <brobecker@adacore.com>
326 * utils.h (uinteger_pow): Add declaration.
327 * utils.c (uinteger_pow): Moved here (without changes)...
328 * valarith.c (uinteger_pow): ... from here.
330 2020-11-15 Joel Brobecker <brobecker@adacore.com>
332 * gmp-utils.h, gmp-utils.c: New file.
333 * unittests/gmp-utils-selftests.c: New file.
334 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
335 unittests/gmp-utils-selftests.c.
336 (COMMON_SFILES) Add gmp-utils.c.
337 (HFILES_NO_SRCDIR): Add gmp-utils.h.
339 2020-11-15 Joel Brobecker <brobecker@adacore.com>
341 * configure.ac: Generate an error if a usable GMP library
343 * configure: Regenerate.
345 2020-11-15 Joel Brobecker <brobecker@adacore.com>
347 * configure.ac: Add support for --with-libgmp-prefix.
348 * Makefile.in (LIBGMP): New variable.
349 (CLIBS): Include $(LIBGMP).
350 * configure, config.in: Regenerate
352 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
355 * f-exp.y (COMPLETE): New token.
356 (exp): Two new rules for tab-completion.
357 (saw_name_at_eof): New static global.
358 (last_was_structop): Likewise.
359 (yylex): Set new variables, and return COMPLETE token at the end
360 of the input stream in some cases.
362 2020-11-14 Tom Tromey <tom@tromey.com>
364 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
366 2020-11-14 Tom Tromey <tom@tromey.com>
368 * opencl-lang.c (opencl_component_ref): Make "comps" const.
370 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
372 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
374 2020-11-13 Tom Tromey <tom@tromey.com>
376 * c-lang.c (convert_ucn, convert_octal, convert_hex)
377 (convert_escape, parse_one_string): Constify.
379 2020-11-13 Keith Seitz <keiths@redhat.com>
381 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
382 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
383 outside of ELF segments" warning for debugin
385 2020-11-13 Keith Seitz <keiths@redhat.com>
388 * elfread.c (elf_symfile_segments): Output a BFD file name
389 for the "Loadable section ... outside of ELF segments" warning.
391 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
394 * arm-tdep.c (class arm_instruction_reader): New.
395 (target_arm_instruction_reader): New.
396 (arm_analyze_prologue): Add instruction reader parameter and use
397 it. Use arm_expand_immediate.
398 (class target_arm_instruction_reader): Adjust.
399 (arm_skip_prologue): Adjust.
400 (arm_expand_immediate): New.
401 (arm_scan_prologue): Adjust.
402 (arm_analyze_prologue_test): New.
403 (class test_arm_instruction_reader): New.
405 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
407 * f-lang.c (fortran_argument_convert): Add declaration. Add
408 header comment, taken from f-lang.h. Make static.
409 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
410 (fortran_argument_convert): Delete declaration.
412 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
414 * ada-exp.y (find_primitive_type): Make parameter const.
415 * ada-lang.c (enum ada_primitive_types): Delete.
416 (ada_language::language_arch_info): Update.
417 * c-lang.c (enum c_primitive_types): Delete.
418 (c_language_arch_info): Update.
419 (enum cplus_primitive_types): Delete.
420 (cplus_language::language_arch_info): Update.
421 * d-lang.c (enum d_primitive_types): Delete.
422 (d_language::language_arch_info): Update.
423 * f-lang.c (enum f_primitive_types): Delete.
424 (f_language::language_arch_info): Update.
425 * go-lang.c (enum go_primitive_types): Delete.
426 (go_language::language_arch_info): Update.
427 * language.c (auto_or_unknown_language::language_arch_info):
429 (language_gdbarch_post_init): Use obstack_new, use array indexing.
430 (language_string_char_type): Add header comment, call function in
432 (language_bool_type): Likewise
433 (language_arch_info::bool_type): Define.
434 (language_lookup_primitive_type_1): Delete.
435 (language_lookup_primitive_type): Rewrite as a templated function
436 to call function in language_arch_info, then instantiate twice.
437 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
438 (language_arch_info::lookup_primitive_type_and_symbol): Define.
439 (language_arch_info::lookup_primitive_type): Define twice with
440 different signatures.
441 (language_arch_info::lookup_primitive_type_as_symbol): Define.
442 (language_lookup_primitive_type_as_symbol): Rewrite to call a
443 member function in language_arch_info.
444 * language.h (language_arch_info): Complete rewrite.
445 (language_lookup_primitive_type): Make templated.
446 * m2-lang.c (enum m2_primitive_types): Delete.
447 (m2_language::language_arch_info): Update.
448 * opencl-lang.c (OCL_P_TYPE): Delete.
449 (enum opencl_primitive_types): Delete.
450 (opencl_type_data): Delete.
451 (builtin_opencl_type): Delete.
452 (lookup_opencl_vector_type): Update.
453 (opencl_language::language_arch_info): Update, lots of content
455 (build_opencl_types): ...here. This function is now deleted.
456 (_initialize_opencl_language): Delete.
457 * p-lang.c (enum pascal_primitive_types): Delete.
458 (pascal_language::language_arch_info): Update.
459 * rust-lang.c (enum rust_primitive_types): Delete.
460 (rust_language::language_arch_info): Update.
462 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
464 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
467 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
469 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
472 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
474 * dwarf2/read.c (dwarf_read_debug_printf,
475 dwarf_read_debug_printf_v): New macros, use throughout the file.
477 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
479 * arc-linux-tdep.c (collect_register): Populate "eret" by
480 "pc" value from the regcache when asked for "pc" value.
482 2020-11-12 Tom Tromey <tom@tromey.com>
485 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
488 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
490 * features/Makefile (XMLTOC): Add rx.xml.
491 (FEATURE_XMLFILES): Remove rx.xml.
492 (FEATURE_CFILES rule): Pass '-single-feature' flag.
493 * features/rx.c: Regenerate.
494 * features/rx.xml: Wrap in `target` tags, and reindent.
495 * target-descriptions.c (struct maint_print_c_tdesc_options): New
497 (maint_print_c_tdesc_opt_def): New typedef.
498 (maint_print_c_tdesc_opt_defs): New static global.
499 (make_maint_print_c_tdesc_options_def_group): New function.
500 (maint_print_c_tdesc_cmd): Make use of command line flags, only
501 print single feature C file for target descriptions containing a
503 (maint_print_c_tdesc_cmd_completer): New function.
504 (_initialize_target_descriptions): Update call to register command
505 completer, and include command line flag in help text.
507 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
509 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
511 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
514 2020-11-10 Tom Tromey <tom@tromey.com>
516 * value.h (internalvar_name): Update.
517 * value.c (internalvar_name): Make return type const.
519 2020-11-10 Tom Tromey <tom@tromey.com>
521 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
522 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
525 2020-11-10 Tom Tromey <tom@tromey.com>
527 * objc-lang.h (value_nsstring): Update.
528 * objc-lang.c (value_nsstring): Make "ptr" const.
530 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
532 * expprint.c (print_subexp_funcall): Increment expression position
533 after reading argument count.
534 * f-lang.c (print_subexp_f): Skip over opcode before calling
536 (dump_subexp_body_f): Likewise.
538 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
541 * configure: Regenerate.
542 * configure.ac: Check for python modules ctypes instead of
545 2020-11-06 Pedro Alves <pedro@palves.net>
547 * macroexp.c (struct macro_buffer): Split in two classes. Add
549 (struct shared_macro_buffer): New, factored out from struct
551 (struct growable_macro_buffer): New, factored out from struct
553 (set_token, get_comment, get_identifier, get_pp_number)
554 (get_character_constant, get_string_literal, get_punctuator)
555 (get_next_token_for_substitution): Constify parameters.
556 (substitute_args): Constify locals.
558 2020-11-05 Tom Tromey <tom@tromey.com>
560 * dwarf2/read.c (read_cutu_die_from_dwo)
561 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
562 (build_type_psymtabs_1): Update.
563 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
565 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
566 Don't read section. Add assert.
568 2020-11-04 Tom Tromey <tromey@adacore.com>
570 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
572 2020-11-04 Tom Tromey <tromey@adacore.com>
574 * ada-typeprint.c (ada_print_type): Handle __T types.
576 2020-11-04 Tom Tromey <tromey@adacore.com>
578 * dwarf2/read.c (add_partial_symbol, process_die):
579 Handle DW_TAG_array_type.
580 (is_type_tag_for_partial): Add "lang" parameter.
581 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
583 2020-11-04 Tom Tromey <tromey@adacore.com>
585 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
587 2020-11-04 Tom Tromey <tromey@adacore.com>
589 * dwarf2/read.c (read_array_type): Only apply stride to innermost
592 2020-11-04 Tom Tromey <tromey@adacore.com>
594 * gdbtypes.c (update_static_array_size): Handle bit stride.
596 2020-11-04 Tom Tromey <tromey@adacore.com>
598 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
600 2020-11-04 Tom Tromey <tromey@adacore.com>
602 * ada-lang.c (ada_is_any_packed_array_type): New function.
603 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
605 2020-11-04 Tom Tromey <tromey@adacore.com>
607 * dwarf2/read.c (recognize_bound_expression)
608 (quirk_ada_thick_pointer): New functions.
609 (read_array_type): Call quirk_ada_thick_pointer.
610 (set_die_type): Add "skip_data_location" parameter.
611 (quirk_ada_thick_pointer): New function.
612 (process_structure_scope): Call quirk_ada_thick_pointer.
613 * ada-lang.c (ada_is_unconstrained_packed_array_type)
614 (decode_packed_array_bitsize): Handle thick pointers without
616 (ada_is_gnat_encoded_packed_array_type): Rename from
617 ada_is_packed_array_type.
618 (ada_is_constrained_packed_array_type): Update.
619 * ada-valprint.c (ada_val_print_gnat_array): Remove.
620 (ada_value_print_1): Use ada_get_decoded_value.
622 2020-11-04 Tom Tromey <tromey@adacore.com>
624 * ada-lang.c (recursively_update_array_bitsize): New function.
625 (decode_constrained_packed_array_type): Call it.
627 2020-11-04 Tom Tromey <tromey@adacore.com>
629 * ada-lang.c (to_fixed_array_type): Error if
630 decode_constrained_packed_array_type returns NULL.
632 2020-11-04 Tom Tromey <tromey@adacore.com>
634 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
636 2020-11-02 Tom Tromey <tromey@adacore.com>
638 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
639 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
640 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
641 * amd64-ravenscar-thread.c: New file.
642 * amd64-ravenscar-thread.h: New file.
643 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
644 * configure.tgt (amd64_tobjs): Add ravenscar objects.
646 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
648 * main.c (execute_cmdargs): New function.
649 (captured_main_1): Make use of execute_cmdargs.
651 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
653 * NEWS: Mention changes to config file search path.
656 2020-11-02 Tom Tromey <tromey@adacore.com>
658 * python/python.c: Consolidate two HAVE_PYTHON blocks.
659 (python_GdbModuleDef): Move earlier. Now static.
660 (do_start_initialization): Consolidate some IS_PY3K blocks.
662 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
664 * aarch64-linux-tdep.c: Fix indentation.
665 * aarch64-ravenscar-thread.c: Fix indentation.
666 * aarch64-tdep.c: Fix indentation.
667 * aarch64-tdep.h: Fix indentation.
668 * ada-lang.c: Fix indentation.
669 * ada-lang.h: Fix indentation.
670 * ada-tasks.c: Fix indentation.
671 * ada-typeprint.c: Fix indentation.
672 * ada-valprint.c: Fix indentation.
673 * ada-varobj.c: Fix indentation.
674 * addrmap.c: Fix indentation.
675 * addrmap.h: Fix indentation.
676 * agent.c: Fix indentation.
677 * aix-thread.c: Fix indentation.
678 * alpha-bsd-nat.c: Fix indentation.
679 * alpha-linux-tdep.c: Fix indentation.
680 * alpha-mdebug-tdep.c: Fix indentation.
681 * alpha-nbsd-tdep.c: Fix indentation.
682 * alpha-obsd-tdep.c: Fix indentation.
683 * alpha-tdep.c: Fix indentation.
684 * amd64-bsd-nat.c: Fix indentation.
685 * amd64-darwin-tdep.c: Fix indentation.
686 * amd64-linux-nat.c: Fix indentation.
687 * amd64-linux-tdep.c: Fix indentation.
688 * amd64-nat.c: Fix indentation.
689 * amd64-obsd-tdep.c: Fix indentation.
690 * amd64-tdep.c: Fix indentation.
691 * amd64-windows-tdep.c: Fix indentation.
692 * annotate.c: Fix indentation.
693 * arc-tdep.c: Fix indentation.
694 * arch-utils.c: Fix indentation.
695 * arch/arm-get-next-pcs.c: Fix indentation.
696 * arch/arm.c: Fix indentation.
697 * arm-linux-nat.c: Fix indentation.
698 * arm-linux-tdep.c: Fix indentation.
699 * arm-nbsd-tdep.c: Fix indentation.
700 * arm-pikeos-tdep.c: Fix indentation.
701 * arm-tdep.c: Fix indentation.
702 * arm-tdep.h: Fix indentation.
703 * arm-wince-tdep.c: Fix indentation.
704 * auto-load.c: Fix indentation.
705 * auxv.c: Fix indentation.
706 * avr-tdep.c: Fix indentation.
707 * ax-gdb.c: Fix indentation.
708 * ax-general.c: Fix indentation.
709 * bfin-linux-tdep.c: Fix indentation.
710 * block.c: Fix indentation.
711 * block.h: Fix indentation.
712 * blockframe.c: Fix indentation.
713 * bpf-tdep.c: Fix indentation.
714 * break-catch-sig.c: Fix indentation.
715 * break-catch-syscall.c: Fix indentation.
716 * break-catch-throw.c: Fix indentation.
717 * breakpoint.c: Fix indentation.
718 * breakpoint.h: Fix indentation.
719 * bsd-uthread.c: Fix indentation.
720 * btrace.c: Fix indentation.
721 * build-id.c: Fix indentation.
722 * buildsym-legacy.h: Fix indentation.
723 * buildsym.c: Fix indentation.
724 * c-typeprint.c: Fix indentation.
725 * c-valprint.c: Fix indentation.
726 * c-varobj.c: Fix indentation.
727 * charset.c: Fix indentation.
728 * cli/cli-cmds.c: Fix indentation.
729 * cli/cli-decode.c: Fix indentation.
730 * cli/cli-decode.h: Fix indentation.
731 * cli/cli-script.c: Fix indentation.
732 * cli/cli-setshow.c: Fix indentation.
733 * coff-pe-read.c: Fix indentation.
734 * coffread.c: Fix indentation.
735 * compile/compile-cplus-types.c: Fix indentation.
736 * compile/compile-object-load.c: Fix indentation.
737 * compile/compile-object-run.c: Fix indentation.
738 * completer.c: Fix indentation.
739 * corefile.c: Fix indentation.
740 * corelow.c: Fix indentation.
741 * cp-abi.h: Fix indentation.
742 * cp-namespace.c: Fix indentation.
743 * cp-support.c: Fix indentation.
744 * cp-valprint.c: Fix indentation.
745 * cris-linux-tdep.c: Fix indentation.
746 * cris-tdep.c: Fix indentation.
747 * darwin-nat-info.c: Fix indentation.
748 * darwin-nat.c: Fix indentation.
749 * darwin-nat.h: Fix indentation.
750 * dbxread.c: Fix indentation.
751 * dcache.c: Fix indentation.
752 * disasm.c: Fix indentation.
753 * dtrace-probe.c: Fix indentation.
754 * dwarf2/abbrev.c: Fix indentation.
755 * dwarf2/attribute.c: Fix indentation.
756 * dwarf2/expr.c: Fix indentation.
757 * dwarf2/frame.c: Fix indentation.
758 * dwarf2/index-cache.c: Fix indentation.
759 * dwarf2/index-write.c: Fix indentation.
760 * dwarf2/line-header.c: Fix indentation.
761 * dwarf2/loc.c: Fix indentation.
762 * dwarf2/macro.c: Fix indentation.
763 * dwarf2/read.c: Fix indentation.
764 * dwarf2/read.h: Fix indentation.
765 * elfread.c: Fix indentation.
766 * eval.c: Fix indentation.
767 * event-top.c: Fix indentation.
768 * exec.c: Fix indentation.
769 * exec.h: Fix indentation.
770 * expprint.c: Fix indentation.
771 * f-lang.c: Fix indentation.
772 * f-typeprint.c: Fix indentation.
773 * f-valprint.c: Fix indentation.
774 * fbsd-nat.c: Fix indentation.
775 * fbsd-tdep.c: Fix indentation.
776 * findvar.c: Fix indentation.
777 * fork-child.c: Fix indentation.
778 * frame-unwind.c: Fix indentation.
779 * frame-unwind.h: Fix indentation.
780 * frame.c: Fix indentation.
781 * frv-linux-tdep.c: Fix indentation.
782 * frv-tdep.c: Fix indentation.
783 * frv-tdep.h: Fix indentation.
784 * ft32-tdep.c: Fix indentation.
785 * gcore.c: Fix indentation.
786 * gdb_bfd.c: Fix indentation.
787 * gdbarch.sh: Fix indentation.
788 * gdbarch.c: Re-generate
789 * gdbarch.h: Re-generate.
790 * gdbcore.h: Fix indentation.
791 * gdbthread.h: Fix indentation.
792 * gdbtypes.c: Fix indentation.
793 * gdbtypes.h: Fix indentation.
794 * glibc-tdep.c: Fix indentation.
795 * gnu-nat.c: Fix indentation.
796 * gnu-nat.h: Fix indentation.
797 * gnu-v2-abi.c: Fix indentation.
798 * gnu-v3-abi.c: Fix indentation.
799 * go32-nat.c: Fix indentation.
800 * guile/guile-internal.h: Fix indentation.
801 * guile/scm-cmd.c: Fix indentation.
802 * guile/scm-frame.c: Fix indentation.
803 * guile/scm-iterator.c: Fix indentation.
804 * guile/scm-math.c: Fix indentation.
805 * guile/scm-ports.c: Fix indentation.
806 * guile/scm-pretty-print.c: Fix indentation.
807 * guile/scm-value.c: Fix indentation.
808 * h8300-tdep.c: Fix indentation.
809 * hppa-linux-nat.c: Fix indentation.
810 * hppa-linux-tdep.c: Fix indentation.
811 * hppa-nbsd-nat.c: Fix indentation.
812 * hppa-nbsd-tdep.c: Fix indentation.
813 * hppa-obsd-nat.c: Fix indentation.
814 * hppa-tdep.c: Fix indentation.
815 * hppa-tdep.h: Fix indentation.
816 * i386-bsd-nat.c: Fix indentation.
817 * i386-darwin-nat.c: Fix indentation.
818 * i386-darwin-tdep.c: Fix indentation.
819 * i386-dicos-tdep.c: Fix indentation.
820 * i386-gnu-nat.c: Fix indentation.
821 * i386-linux-nat.c: Fix indentation.
822 * i386-linux-tdep.c: Fix indentation.
823 * i386-nto-tdep.c: Fix indentation.
824 * i386-obsd-tdep.c: Fix indentation.
825 * i386-sol2-nat.c: Fix indentation.
826 * i386-tdep.c: Fix indentation.
827 * i386-tdep.h: Fix indentation.
828 * i386-windows-tdep.c: Fix indentation.
829 * i387-tdep.c: Fix indentation.
830 * i387-tdep.h: Fix indentation.
831 * ia64-libunwind-tdep.c: Fix indentation.
832 * ia64-libunwind-tdep.h: Fix indentation.
833 * ia64-linux-nat.c: Fix indentation.
834 * ia64-linux-tdep.c: Fix indentation.
835 * ia64-tdep.c: Fix indentation.
836 * ia64-tdep.h: Fix indentation.
837 * ia64-vms-tdep.c: Fix indentation.
838 * infcall.c: Fix indentation.
839 * infcmd.c: Fix indentation.
840 * inferior.c: Fix indentation.
841 * infrun.c: Fix indentation.
842 * iq2000-tdep.c: Fix indentation.
843 * language.c: Fix indentation.
844 * linespec.c: Fix indentation.
845 * linux-fork.c: Fix indentation.
846 * linux-nat.c: Fix indentation.
847 * linux-tdep.c: Fix indentation.
848 * linux-thread-db.c: Fix indentation.
849 * lm32-tdep.c: Fix indentation.
850 * m2-lang.c: Fix indentation.
851 * m2-typeprint.c: Fix indentation.
852 * m2-valprint.c: Fix indentation.
853 * m32c-tdep.c: Fix indentation.
854 * m32r-linux-tdep.c: Fix indentation.
855 * m32r-tdep.c: Fix indentation.
856 * m68hc11-tdep.c: Fix indentation.
857 * m68k-bsd-nat.c: Fix indentation.
858 * m68k-linux-nat.c: Fix indentation.
859 * m68k-linux-tdep.c: Fix indentation.
860 * m68k-tdep.c: Fix indentation.
861 * machoread.c: Fix indentation.
862 * macrocmd.c: Fix indentation.
863 * macroexp.c: Fix indentation.
864 * macroscope.c: Fix indentation.
865 * macrotab.c: Fix indentation.
866 * macrotab.h: Fix indentation.
867 * main.c: Fix indentation.
868 * mdebugread.c: Fix indentation.
869 * mep-tdep.c: Fix indentation.
870 * mi/mi-cmd-catch.c: Fix indentation.
871 * mi/mi-cmd-disas.c: Fix indentation.
872 * mi/mi-cmd-env.c: Fix indentation.
873 * mi/mi-cmd-stack.c: Fix indentation.
874 * mi/mi-cmd-var.c: Fix indentation.
875 * mi/mi-cmds.c: Fix indentation.
876 * mi/mi-main.c: Fix indentation.
877 * mi/mi-parse.c: Fix indentation.
878 * microblaze-tdep.c: Fix indentation.
879 * minidebug.c: Fix indentation.
880 * minsyms.c: Fix indentation.
881 * mips-linux-nat.c: Fix indentation.
882 * mips-linux-tdep.c: Fix indentation.
883 * mips-nbsd-tdep.c: Fix indentation.
884 * mips-tdep.c: Fix indentation.
885 * mn10300-linux-tdep.c: Fix indentation.
886 * mn10300-tdep.c: Fix indentation.
887 * moxie-tdep.c: Fix indentation.
888 * msp430-tdep.c: Fix indentation.
889 * namespace.h: Fix indentation.
890 * nat/fork-inferior.c: Fix indentation.
891 * nat/gdb_ptrace.h: Fix indentation.
892 * nat/linux-namespaces.c: Fix indentation.
893 * nat/linux-osdata.c: Fix indentation.
894 * nat/netbsd-nat.c: Fix indentation.
895 * nat/x86-dregs.c: Fix indentation.
896 * nbsd-nat.c: Fix indentation.
897 * nbsd-tdep.c: Fix indentation.
898 * nios2-linux-tdep.c: Fix indentation.
899 * nios2-tdep.c: Fix indentation.
900 * nto-procfs.c: Fix indentation.
901 * nto-tdep.c: Fix indentation.
902 * objfiles.c: Fix indentation.
903 * objfiles.h: Fix indentation.
904 * opencl-lang.c: Fix indentation.
905 * or1k-tdep.c: Fix indentation.
906 * osabi.c: Fix indentation.
907 * osabi.h: Fix indentation.
908 * osdata.c: Fix indentation.
909 * p-lang.c: Fix indentation.
910 * p-typeprint.c: Fix indentation.
911 * p-valprint.c: Fix indentation.
912 * parse.c: Fix indentation.
913 * ppc-linux-nat.c: Fix indentation.
914 * ppc-linux-tdep.c: Fix indentation.
915 * ppc-nbsd-nat.c: Fix indentation.
916 * ppc-nbsd-tdep.c: Fix indentation.
917 * ppc-obsd-nat.c: Fix indentation.
918 * ppc-ravenscar-thread.c: Fix indentation.
919 * ppc-sysv-tdep.c: Fix indentation.
920 * ppc64-tdep.c: Fix indentation.
921 * printcmd.c: Fix indentation.
922 * proc-api.c: Fix indentation.
923 * producer.c: Fix indentation.
924 * producer.h: Fix indentation.
925 * prologue-value.c: Fix indentation.
926 * prologue-value.h: Fix indentation.
927 * psymtab.c: Fix indentation.
928 * python/py-arch.c: Fix indentation.
929 * python/py-bpevent.c: Fix indentation.
930 * python/py-event.c: Fix indentation.
931 * python/py-event.h: Fix indentation.
932 * python/py-finishbreakpoint.c: Fix indentation.
933 * python/py-frame.c: Fix indentation.
934 * python/py-framefilter.c: Fix indentation.
935 * python/py-inferior.c: Fix indentation.
936 * python/py-infthread.c: Fix indentation.
937 * python/py-objfile.c: Fix indentation.
938 * python/py-prettyprint.c: Fix indentation.
939 * python/py-registers.c: Fix indentation.
940 * python/py-signalevent.c: Fix indentation.
941 * python/py-stopevent.c: Fix indentation.
942 * python/py-stopevent.h: Fix indentation.
943 * python/py-threadevent.c: Fix indentation.
944 * python/py-tui.c: Fix indentation.
945 * python/py-unwind.c: Fix indentation.
946 * python/py-value.c: Fix indentation.
947 * python/py-xmethods.c: Fix indentation.
948 * python/python-internal.h: Fix indentation.
949 * python/python.c: Fix indentation.
950 * ravenscar-thread.c: Fix indentation.
951 * record-btrace.c: Fix indentation.
952 * record-full.c: Fix indentation.
953 * record.c: Fix indentation.
954 * reggroups.c: Fix indentation.
955 * regset.h: Fix indentation.
956 * remote-fileio.c: Fix indentation.
957 * remote.c: Fix indentation.
958 * reverse.c: Fix indentation.
959 * riscv-linux-tdep.c: Fix indentation.
960 * riscv-ravenscar-thread.c: Fix indentation.
961 * riscv-tdep.c: Fix indentation.
962 * rl78-tdep.c: Fix indentation.
963 * rs6000-aix-tdep.c: Fix indentation.
964 * rs6000-lynx178-tdep.c: Fix indentation.
965 * rs6000-nat.c: Fix indentation.
966 * rs6000-tdep.c: Fix indentation.
967 * rust-lang.c: Fix indentation.
968 * rx-tdep.c: Fix indentation.
969 * s12z-tdep.c: Fix indentation.
970 * s390-linux-tdep.c: Fix indentation.
971 * score-tdep.c: Fix indentation.
972 * ser-base.c: Fix indentation.
973 * ser-mingw.c: Fix indentation.
974 * ser-uds.c: Fix indentation.
975 * ser-unix.c: Fix indentation.
976 * serial.c: Fix indentation.
977 * sh-linux-tdep.c: Fix indentation.
978 * sh-nbsd-tdep.c: Fix indentation.
979 * sh-tdep.c: Fix indentation.
980 * skip.c: Fix indentation.
981 * sol-thread.c: Fix indentation.
982 * solib-aix.c: Fix indentation.
983 * solib-darwin.c: Fix indentation.
984 * solib-frv.c: Fix indentation.
985 * solib-svr4.c: Fix indentation.
986 * solib.c: Fix indentation.
987 * source.c: Fix indentation.
988 * sparc-linux-tdep.c: Fix indentation.
989 * sparc-nbsd-tdep.c: Fix indentation.
990 * sparc-obsd-tdep.c: Fix indentation.
991 * sparc-ravenscar-thread.c: Fix indentation.
992 * sparc-tdep.c: Fix indentation.
993 * sparc64-linux-tdep.c: Fix indentation.
994 * sparc64-nbsd-tdep.c: Fix indentation.
995 * sparc64-obsd-tdep.c: Fix indentation.
996 * sparc64-tdep.c: Fix indentation.
997 * stabsread.c: Fix indentation.
998 * stack.c: Fix indentation.
999 * stap-probe.c: Fix indentation.
1000 * stubs/ia64vms-stub.c: Fix indentation.
1001 * stubs/m32r-stub.c: Fix indentation.
1002 * stubs/m68k-stub.c: Fix indentation.
1003 * stubs/sh-stub.c: Fix indentation.
1004 * stubs/sparc-stub.c: Fix indentation.
1005 * symfile-mem.c: Fix indentation.
1006 * symfile.c: Fix indentation.
1007 * symfile.h: Fix indentation.
1008 * symmisc.c: Fix indentation.
1009 * symtab.c: Fix indentation.
1010 * symtab.h: Fix indentation.
1011 * target-float.c: Fix indentation.
1012 * target.c: Fix indentation.
1013 * target.h: Fix indentation.
1014 * tic6x-tdep.c: Fix indentation.
1015 * tilegx-linux-tdep.c: Fix indentation.
1016 * tilegx-tdep.c: Fix indentation.
1017 * top.c: Fix indentation.
1018 * tracefile-tfile.c: Fix indentation.
1019 * tracepoint.c: Fix indentation.
1020 * tui/tui-disasm.c: Fix indentation.
1021 * tui/tui-io.c: Fix indentation.
1022 * tui/tui-regs.c: Fix indentation.
1023 * tui/tui-stack.c: Fix indentation.
1024 * tui/tui-win.c: Fix indentation.
1025 * tui/tui-winsource.c: Fix indentation.
1026 * tui/tui.c: Fix indentation.
1027 * typeprint.c: Fix indentation.
1028 * ui-out.h: Fix indentation.
1029 * unittests/copy_bitwise-selftests.c: Fix indentation.
1030 * unittests/memory-map-selftests.c: Fix indentation.
1031 * utils.c: Fix indentation.
1032 * v850-tdep.c: Fix indentation.
1033 * valarith.c: Fix indentation.
1034 * valops.c: Fix indentation.
1035 * valprint.c: Fix indentation.
1036 * valprint.h: Fix indentation.
1037 * value.c: Fix indentation.
1038 * value.h: Fix indentation.
1039 * varobj.c: Fix indentation.
1040 * vax-tdep.c: Fix indentation.
1041 * windows-nat.c: Fix indentation.
1042 * windows-tdep.c: Fix indentation.
1043 * xcoffread.c: Fix indentation.
1044 * xml-syscall.c: Fix indentation.
1045 * xml-tdesc.c: Fix indentation.
1046 * xstormy16-tdep.c: Fix indentation.
1047 * xtensa-config.c: Fix indentation.
1048 * xtensa-linux-nat.c: Fix indentation.
1049 * xtensa-linux-tdep.c: Fix indentation.
1050 * xtensa-tdep.c: Fix indentation.
1052 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1053 Craig Blackmore <craig.blackmore@embecosm.com>
1055 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1056 as an unsigned value.
1058 2020-11-01 Tom Tromey <tom@tromey.com>
1060 * dbxread.c (dbx_end_psymtab): Update.
1061 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1062 (build_type_psymtabs_reader): Update.
1063 * xcoffread.c (xcoff_end_psymtab): Update.
1064 * ctfread.c (scan_partial_symbols): Update.
1065 * psymtab.c (sort_pst_symbols): Remove.
1066 (partial_symtab::end): Rename from end_psymtab_common. Inline
1068 * psympriv.h (struct partial_symtab) <end>: New method.
1069 (end_psymtab_common): Don't declare.
1071 2020-11-01 Tom Tromey <tom@tromey.com>
1073 * symmisc.c (count_psyms): New function.
1074 (print_objfile_statistics): Use it.
1075 * psymtab.c (append_psymbol_to_list): Remove.
1076 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1077 * objfiles.h (struct objstats) <n_psyms>: Remove.
1079 2020-11-01 Tom Tromey <tom@tromey.com>
1081 * dbxread.c (dbx_end_psymtab): Update.
1082 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1083 (build_type_psymtabs_reader): Update.
1084 * xcoffread.c (xcoff_end_psymtab): Update.
1085 * ctfread.c (scan_partial_symbols): Update.
1086 * psympriv.h (end_psymtab_common): Update.
1087 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1088 (sort_pst_symbols): Likewise.
1090 2020-11-01 Tom Tromey <tom@tromey.com>
1092 * dbxread.c (dbx_symfile_read): Update.
1093 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1094 * xcoffread.c (xcoff_initial_scan): Update.
1095 * psympriv.h (init_psymbol_list): Don't declare.
1096 * psymtab.c (init_psymbol_list): Remove.
1098 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1100 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1101 gnat_encoded_fixed_type_info. Update all callers.
1103 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1105 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1108 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1110 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1111 cast_from_fixed. Update all callers.
1112 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1114 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1116 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1118 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1119 to print_gnat_encoded_fixed_point_type.
1120 * ada-valprint.c: Likewise.
1122 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1125 (debug_prefixed_printf): Add check of debug_displaced flag.
1126 * linux-nat.c (linux_nat_debug_printf): Add check of
1127 debug_linux_nat flag.
1129 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1131 * infrun.c (infrun_debug_printf_1): Remove.
1132 (displaced_debug_printf_1): Remove.
1133 (stop_all_threads): Use debug_prefixed_printf.
1134 * infrun.h (infrun_debug_printf_1): Remove.
1135 (infrun_debug_printf): Use debug_prefixed_printf.
1136 (displaced_debug_printf_1): Remove.
1137 (displaced_debug_printf): Use debug_prefixed_printf.
1138 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1139 (linux_nat_debug_printf): Use debug_prefixed_printf.
1141 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1143 * configure: Re-generate.
1144 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1147 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1149 * configure: Re-generate.
1151 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1153 * configure: Re-generate.
1155 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1157 * configure: Re-generate.
1159 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1161 * configure: Re-generate.
1163 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1165 * acinclude.m4: Modernize.
1166 * configure: Re-generate.
1168 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1170 * configure.ac: Modernize.
1171 * configure: Re-generate.
1173 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1175 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1176 * configure: Re-generate.
1177 * configure.ac: Remove AM_PROG_CC_STDC.
1179 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1181 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1182 AC_CANONICAL_SYSTEM.
1183 * configure: Re-generate.
1185 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1187 * infrun.h (displaced_debug_printf): New macro. Replace
1188 displaced debug prints throughout to use it.
1189 (displaced_debug_printf_1): New declaration.
1190 (displaced_step_dump_bytes): Return string, remove ui_file
1191 parameter, update all callers.
1192 * infrun.c (displaced_debug_printf_1): New function.
1193 (displaced_step_dump_bytes): Return string, remove ui_file
1196 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1198 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1200 2020-10-30 Tom Tromey <tromey@adacore.com>
1202 * Makefile.in (stamp-init): Depend on config.status.
1204 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1206 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1208 2020-10-30 Pedro Alves <pedro@palves.net>
1210 * thread.c (lookup_selected_frame): Move ...
1211 * frame.c (lookup_selected_frame): ... here.
1213 2020-10-30 Pedro Alves <pedro@palves.net>
1215 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1217 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1218 Use save_selected_frame. Save language as well.
1219 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1220 Use restore_selected_frame, and restore language as well.
1221 (selected_frame_id, selected_frame_level): New.
1222 (selected_frame): Update comments.
1223 (save_selected_frame, restore_selected_frame): New.
1224 (get_selected_frame): Use lookup_selected_frame.
1225 (get_selected_frame_if_set): Delete.
1226 (select_frame): Record selected_frame_level and selected_frame_id.
1227 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1229 (get_selected_frame): Make 'message' parameter optional.
1230 (get_selected_frame_if_set): Delete declaration.
1231 (select_frame): Update comments.
1232 (save_selected_frame, restore_selected_frame)
1233 (lookup_selected_frame): Declare.
1234 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1235 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1237 (save_infcall_control_state): Use save_selected_frame.
1238 (restore_selected_frame): Delete.
1239 (restore_infcall_control_state): Use restore_selected_frame.
1240 * stack.c (select_frame_command_core, frame_command_core): Use
1242 * thread.c (restore_selected_frame): Rename to ...
1243 (lookup_selected_frame): ... this and make extern. Select the
1244 current frame if the frame level is -1.
1245 (scoped_restore_current_thread::restore): Also restore the
1247 (scoped_restore_current_thread::~scoped_restore_current_thread):
1249 (scoped_restore_current_thread::scoped_restore_current_thread):
1250 Save the language as well. Use save_selected_frame.
1252 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1254 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1256 * gdbarch.h: Re-generate.
1258 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1260 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1262 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1264 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1266 * arch-utils.c (default_displaced_step_hw_singlestep):
1268 * arch-utils.h (default_displaced_step_hw_singlestep):
1270 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1272 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1274 * gdbarch.c: Re-generate.
1275 * gdbarch.h: Re-generate.
1276 * infrun.c (resume_1): Adjust.
1278 2020-10-29 Tom Tromey <tom@tromey.com>
1280 * progspace.c (program_space::~program_space): Don't call
1283 2020-10-29 Tom Tromey <tom@tromey.com>
1285 * exec.c (exec_target::close): Don't change current program
1288 2020-10-29 Tom Tromey <tom@tromey.com>
1290 * symfile.c (add_symbol_file_command): Update.
1291 * exec.c (program_space::add_target_sections): Rename.
1292 * symfile-mem.c (symbol_file_add_from_memory): Update.
1293 * progspace.h (struct program_space) <add_target_sections>:
1294 Declare new overload.
1295 * exec.h (add_target_sections_of_objfile): Don't declare.
1297 2020-10-29 Tom Tromey <tom@tromey.com>
1299 * solib.c (solib_map_sections): Update.
1300 * exec.c (program_space::add_target_sections): Now a method.
1301 (exec_file_attach): Update.
1302 * exec.h (add_target_sections): Don't declare.
1303 * progspace.h (struct program_space) <add_target_sections>:
1306 2020-10-29 Tom Tromey <tom@tromey.com>
1308 * progspace.h (struct program_space) <remove_target_sections>:
1310 * exec.c (program_space::remove_target_sections): Now a method.
1311 * exec.h (remove_target_sections): Don't declare.
1313 2020-10-29 Tom Tromey <tom@tromey.com>
1315 * inferior.c (delete_inferior): Update.
1316 * progspace.c (program_space::empty): Rename from
1317 program_space_empty_p. Return bool.
1318 * progspace.h (struct program_space) <empty>: New method.
1319 (program_space_empty_p): Don't declare.
1321 2020-10-29 Tom Tromey <tom@tromey.com>
1323 * progspace.c (program_space::~program_space): Don't call
1324 clear_program_space_solib_cache.
1325 (program_space::clear_solib_cache): Rename from
1327 * solib.c (handle_solib_event): Update.
1328 * progspace.h (struct program_space) <clear_solib_cache>: New
1330 (clear_program_space_solib_cache): Don't declare.
1332 2020-10-29 Tom Tromey <tom@tromey.com>
1334 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1335 * target.c (info_target_command): Update.
1336 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1337 (symbol_file_clear, reread_symbols): Update.
1338 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1339 * stabsread.c (scan_file_globals): Update.
1340 * solib.c (update_solib_list): Update.
1341 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1342 (svr4_fetch_objfile_link_map, enable_break)
1343 (svr4_relocate_main_executable)
1344 (svr4_iterate_over_objfiles_in_search_order): Update.
1345 * solib-frv.c (lm_base, enable_break)
1346 (frv_relocate_main_executable): Update.
1347 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1348 (frv_fetch_objfile_link_map): Update.
1349 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1350 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1351 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1352 * remote.c (remote_target::get_offsets): Update.
1353 (remote_target::start_remote)
1354 (extended_remote_target::post_attach): Update.
1355 * objfiles.c (entry_point_address_query): Update.
1356 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1357 * minsyms.c (get_symbol_leading_char): Update.
1358 * frame.c (inside_main_func): Update.
1359 * progspace.h (symfile_objfile): Remove macro.
1361 2020-10-29 Tom Tromey <tom@tromey.com>
1363 * exec.c (exec_file_attach): Update.
1364 * progspace.c (program_space::exec_close): Update.
1365 * progspace.h (struct program_space) <ebfd>: Now a
1367 <set_exec_bfd>: Change argument type.
1370 2020-10-29 Tom Tromey <tom@tromey.com>
1372 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1373 * symfile.c (reread_symbols): Update.
1374 * symfile-mem.c (add_symbol_file_from_memory_command)
1375 (add_vsyscall_page): Update.
1376 * source-cache.c (source_cache::get_plain_source_lines): Update.
1377 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1378 (svr4_current_sos_direct, svr4_exec_displacement)
1379 (svr4_relocate_main_executable): Update.
1380 (svr4_iterate_over_objfiles_in_search_order): Update.
1381 * solib-frv.c (enable_break2, enable_break): Update.
1382 * solib-dsbt.c (lm_base, enable_break): Update.
1383 * solib-darwin.c (find_program_interpreter)
1384 (darwin_solib_create_inferior_hook): Update.
1385 * sol-thread.c (rw_common, ps_pdmodel): Update.
1386 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1387 * remote.c (compare_sections_command)
1388 (remote_target::trace_set_readonly_regions): Update.
1389 * remote-sim.c (get_sim_inferior_data)
1390 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1391 (gdbsim_target_open, gdbsim_target::files_info): Update.
1392 * exec.h (exec_bfd): Remove macro.
1393 * progspace.c (initialize_progspace): Update.
1394 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1396 * nto-procfs.c (nto_procfs_target::post_attach)
1397 (nto_procfs_target::create_inferior): Update.
1398 * maint.c (maintenance_info_sections): Update.
1399 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1401 * infcmd.c (post_create_inferior): Update.
1402 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1403 (objfile_find_memory_regions): Update.
1404 * exec.c (validate_exec_file, exec_file_attach)
1405 (exec_read_partial_read_only, print_section_info): Update.
1406 * corelow.c (core_target_open): Update.
1407 * corefile.c (reopen_exec_file, validate_files): Update.
1408 * arm-tdep.c (gdb_print_insn_arm): Update.
1409 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1410 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1413 2020-10-29 Tom Tromey <tom@tromey.com>
1415 * progspace.h (current_target_sections): Remove macro.
1416 * solib-svr4.c (scan_dyntag): Update.
1417 * solib-dsbt.c (scan_dyntag): Update.
1418 * exec.c (exec_target::close): Update.
1419 (add_target_sections, add_target_sections_of_objfile)
1420 (remove_target_sections, exec_target::get_section_table)
1421 (exec_target::files_info, set_section_command)
1422 (exec_set_section_address, exec_target::has_memory)
1423 (exec_target::has_memory): Update.
1425 2020-10-29 Tom Tromey <tom@tromey.com>
1427 * source-cache.c (source_cache::get_plain_source_lines): Use
1428 current_program_space.
1429 * corefile.c (reopen_exec_file): Use current_program_space.
1430 * exec.c (exec_file_attach): Use current_program_space.
1431 * exec.h (exec_bfd_mtime): Remove.
1433 2020-10-29 Tom Tromey <tom@tromey.com>
1435 * gcore.c (default_gcore_mach): Remove.
1436 (create_gcore_bfd): Update.
1438 2020-10-29 Tom Tromey <tom@tromey.com>
1440 * progspace.c (program_space::exec_close): New method, from
1441 exec_close in exec.c.
1442 * exec.c (exec_close): Move to progspace.c.
1443 (exec_target::close, exec_file_attach): Update.
1444 * progspace.h (struct program_space) <exec_close>: Declare
1447 2020-10-29 Tom Tromey <tom@tromey.com>
1449 * progspace.h (struct program_space) <exec_filename>: Rename from
1450 pspace_exec_filename. Now a unique_xmalloc_ptr.
1451 * inferior.c (print_selected_inferior): Update.
1452 (print_inferior): Update.
1453 * mi/mi-main.c (print_one_inferior): Update.
1454 * exec.h (exec_filename): Remove macro.
1455 * corefile.c (get_exec_file): Update.
1456 * exec.c (exec_close): Update.
1457 (exec_file_attach): Update.
1458 * progspace.c (clone_program_space): Update.
1459 (print_program_space): Update.
1461 2020-10-29 Tom Tromey <tom@tromey.com>
1463 * target-section.h (struct target_section): Add constructor.
1464 * exec.c (build_section_table, add_target_sections_of_objfile):
1466 * corelow.c (core_target::build_file_mappings): Update.
1468 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1471 * inferior.c (detach_inferior_command): Restore the current thread.
1472 (kill_inferior_command): Ditto.
1474 2020-10-28 Tom de Vries <tdevries@suse.de>
1477 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1478 map, check it in the "best match" loop.
1480 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1482 * m32c-tdep.c: Remove unused includes.
1484 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1486 * xtensa-tdep.c: Remove includes.
1488 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1490 * breakpoint.c (struct condition_command_opts): New struct.
1491 (condition_command_option_defs): New static global.
1492 (make_condition_command_options_def_group): New function.
1493 (condition_completer): Update to consider the '-force' flag.
1494 (condition_command): Use gdb::option for the '-force' flag.
1496 2020-10-27 Tom de Vries <tdevries@suse.de>
1498 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1499 symbols in section check.
1501 2020-10-27 Tom de Vries <tdevries@suse.de>
1503 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1505 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1508 * breakpoint.c: Update the help text of the 'condition' and 'break'
1510 (set_breakpoint_condition): Take a new bool parameter
1511 to control whether condition definition should be forced even when
1512 the condition expression is invalid in all of the current locations.
1513 (condition_command): Update the call to 'set_breakpoint_condition'.
1514 (find_condition_and_thread): Take the "-force-condition" flag into
1516 * linespec.c (linespec_keywords): Add "-force-condition" as an
1518 (FORCE_KEYWORD_INDEX): New #define.
1519 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1521 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1522 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1523 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1524 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1526 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1528 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1529 * breakpoint.c (set_breakpoint_location_condition): New function.
1530 (set_breakpoint_condition): Disable a breakpoint location if parsing
1531 the condition string gives an error.
1532 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1533 (build_target_condition_list): Ditto.
1534 (build_target_command_list): Ditto.
1535 (build_bpstat_chain): Ditto.
1536 (print_one_breakpoint_location): Ditto.
1537 (print_one_breakpoint): Ditto.
1538 (breakpoint_1): Ditto.
1539 (bp_location::bp_location): Ditto.
1540 (locations_are_equal): Ditto.
1541 (update_breakpoint_locations): Ditto.
1542 (enable_disable_bp_num_loc): Ditto.
1543 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1544 (find_condition_and_thread_for_sals): New static function.
1545 (create_breakpoint): Call find_condition_and_thread_for_sals.
1546 (location_to_sals): Call find_condition_and_thread_for_sals instead
1547 of find_condition_and_thread.
1549 2020-10-26 Tom de Vries <tdevries@suse.de>
1551 * dwarf2/read.c (process_full_comp_unit): Call
1552 dwarf2_find_base_address.
1554 2020-10-26 Tom Tromey <tromey@adacore.com>
1556 * gdbtypes.c (create_range_type): Revert previous patch. Add
1559 2020-10-26 Pedro Alves <pedro@palves.net>
1561 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1562 (my_waitpid): Use gdb::handle_eintr.
1564 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1566 * acinclude.m4: Update ptrace.m4 path.
1567 * ptrace.m4: Moved to gdbsupport.
1569 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1571 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1572 instead of target_gdbarch.
1574 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1576 * jit.c (jit_reader_load_command): Pass current inferior.
1577 (jit_inferior_init): Change parameter type to inferior, use it.
1578 (jit_inferior_created): Remove.
1579 (jit_inferior_created_hook): Pass inferior parameter down.
1580 (_initialize_jit): Use jit_inferior_created_hook instead of
1581 jit_inferior_created.
1582 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1583 * infrun.c (follow_exec): Pass inferior to
1584 jit_inferior_created_hook.
1586 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1588 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1589 parameter and use it.
1590 (thread_db_inferior_created): Pass inferior argument.
1592 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1594 * aix-thread.c (aix_thread_inferior_created): Add inferior
1596 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1597 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1598 * jit.c (jit_inferior_created): Likewise.
1599 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1600 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1601 * observable.h (inferior_created): Likewise.
1602 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1603 * symfile-mem.c (add_vsyscall_page): Likewise.
1604 * infcmd.c (post_create_inferior): Pass inferior argument.
1606 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1610 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1612 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1613 to ada_check_typedef.
1615 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1617 * f-exp.y (f_parse): Rename to...
1618 (f_language::parser): ...this.
1619 * f-lang.c (f_get_encoding): Rename to...
1620 (f_language::get_encoding): ...this.
1621 (f_op_print_tab): Rename to...
1622 (f_language::op_print_tab): ...this.
1623 (exp_descriptor_f): Rename to...
1624 (f_language::exp_descriptor_tab): ...this.
1625 (class f_language): Moved to f-lang.h.
1626 (f_language::language_arch_info): New function, moved out of class
1628 (f_language::search_name_hash): Likewise.
1629 (f_language::lookup_symbol_nonlocal): Likewise.
1630 (f_language::get_symbol_name_matcher_inner): Likewise.
1631 * f-lang.h: Add 'valprint.h' include.
1632 (class f_language): Moved here from f-lang.c.
1633 * f-typeprint.c (f_type_print_args): Delete commented out
1635 (f_print_typedef): Rename to...
1636 (f_language::print_typedef): ...this.
1637 (f_print_type): Rename to...
1638 (f_language::print_type): ...this.
1639 (f_type_print_varspec_prefix): Delete declaration and rename to...
1640 (f_language::f_type_print_varspec_prefix): ...this.
1641 (f_type_print_varspec_suffix): Delete declaration and rename to...
1642 (f_language::f_type_print_varspec_suffix): ...this.
1643 (f_type_print_base): Delete declaration and rename to...
1644 (f_language::f_type_print_base): ...this.
1645 * f-valprint.c (f_value_print_inner): Rename to...
1646 (f_language::value_print_inner): ...this.
1647 * parse.c: Delete 'f-lang.h' include.
1649 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1651 * language.h (language_defn::print_type): Add variable names in
1652 declaration, and update header comment.
1654 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1656 * ada-lang.c (ada_language::demangle): Rename to...
1657 (ada_language::demangle_symbol): ...this.
1658 * c-lang.c (cplus_language::demangle): Rename to...
1659 (cplus_language::demangle_symbol): ...this.
1660 * d-lang.c (d_language::demangle): Rename to...
1661 (d_language::demangle_symbol): ...this.
1662 * f-lang.c (f_language::demangle): Rename to...
1663 (f_language::demangle_symbol): ...this.
1664 * go-lang.c (go_language::demangle): Rename to...
1665 (go_language::demangle_symbol): ...this.
1666 * language.c (language_demangle): Update call to demangle_symbol.
1667 (auto_or_unknown_language::demangle): Rename to...
1668 (auto_or_unknown_language::demangle_symbol): ...this.
1669 * language.h (language_defn::demangle): Rename to...
1670 (language_defn::demangle_symbol): ...this.
1671 * objc-lang.c (objc_language::demangle): Rename to...
1672 (objc_language::demangle_symbol): ...this.
1673 * rust-lang.c (rust_language::demangle): Rename to...
1674 (rust_language::demangle_symbol): ...this.
1676 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1679 (iterate_over_file_blocks): Replace use of macro with the macros
1682 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1684 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1685 * valprint.c (maybe_print_array_index): Replace use of macro with
1686 the macros definition.
1688 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1690 * ada-lang.c (ada_language::print_array_index): Call value_print
1692 * language.c (language_defn::print_array_index): Likewise.
1693 * language.h (LA_VALUE_PRINT): Delete.
1694 * valprint.c (value_print): Call value_print on the
1695 current_language directly.
1697 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1699 * language.h (LA_PRINT_TYPEDEF): Delete.
1700 * typeprint.c (typedef_print): Call print_typedef directly on the
1701 current_language object.
1703 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1705 * m2-exp.y (m2_parse): Rename to...
1706 (m2_language::parser): ...this. Update function signature.
1707 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1708 (m2_op_print): Rename to...
1709 (m2_language::op_print_tab): ...this, and make const.
1710 (exp_descriptor_modula2): Rename to...
1711 (m2_language::exp_descriptor_modula2): ...this.
1712 (class m2_language): Move to m2-lang.h.
1713 (m2_language::language_arch_info): New function, moved out of
1715 (m2_language::printchar): New function, body from m2_printchar.
1716 (m2_language::printstr): New function, moved out of class
1718 (m2_language::emitchar): Likewise.
1719 * m2-lang.h (m2_parse): Delete declaration.
1720 (m2_print_typedef): Delete declaration.
1721 (m2_value_print_inner): Delete declaration.
1722 (class m2_language): Class declaration moved from m2-lang.c,
1723 larger functions are left in m2-lang.c.
1724 * m2-typeprint.c (m2_print_typedef): Rename to...
1725 (m2_language::print_typedef): ...this, and update function
1727 * m2-valprint.c (m2_value_print_inner): Rename to...
1728 (m2_language::value_print_inner): ...this, replace use of
1729 LA_PRINT_STRING with a direct call to printstr member function,
1730 and update recursive call.
1732 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1734 * language.c (default_is_string_type_p): Delete, implementation
1735 moved into auto_or_unknown_language::is_string_type_p.
1736 (unk_op_print_tab): Moved into
1737 auto_or_unknown_language::opcode_print_table.
1738 (unknown_language_arch_info): Delete, implementation moved into
1739 auto_or_unknown_language::language_arch_info.
1740 (class auto_or_unknown_language): New class, member functions
1741 copied from unknown_language class, with some updates.
1742 (class unknown_language): Most member functions moved into
1743 auto_or_unknown_language class. Inherit from
1744 auto_or_unknown_language class.
1745 (class auto_language): Inherit from auto_or_unknown_language.
1746 Delete most member functions.
1748 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1750 * stabsread.c (read_member_functions): Remove gdb_assert.
1752 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1754 * gdbtypes.c (init_complex_type): Check target type name.
1756 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1758 * target-debug.h (target_debug_print_struct_target_ops_p):
1760 (target_debug_print_async_callback_ftype_p): Remove.
1761 (target_debug_print_struct_trace_state_variable_p): Remove.
1762 (target_debug_print_struct_traceframe_info_p): Remove.
1763 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1764 (target_debug_print_enum_btrace_format): Remove.
1765 (target_debug_print_enum_info_proc_what): Remove.
1766 (target_debug_print_thread_info_pp): Remove.
1768 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1770 * target.h (struct target_ops) <make_corefile_notes>:
1771 Change return type to unique pointer.
1772 * target.c (dummy_make_corefile_notes): Likewise.
1773 * exec.c (struct exec_target) <make_corefile_notes>:
1775 (exec_target::make_corefile_notes): Likewise.
1776 * procfs.c (class procfs_target) <make_corefile_notes>:
1778 (procfs_do_thread_registers): Adjust to unique pointer.
1779 (struct procfs_corefile_thread_data): Add constructor.
1780 <note_data>: Change type to unique pointer.
1781 (procfs_corefile_thread_callback): Adjust to unique pointer.
1782 (procfs_target::make_corefile_notes): Change return type to
1784 * target-delegates.c: Re-generate.
1785 * gcore.c (write_gcore_file_1): Adjust.
1786 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1789 2020-10-22 Tom de Vries <tdevries@suse.de>
1791 * block.c (find_block_in_blockvector): Make sure the returned block
1794 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1797 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1799 (load_cu): Pass existing CU.
1800 (process_imported_unit_die): Likewise.
1801 (follow_die_offset): Likewise.
1803 2020-10-22 Luis Machado <luis.machado@linaro.org>
1805 * corelow.c (core_target::xfer_partial): Also check for an empty
1806 m_core_unavailable_mappings vector.
1808 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1810 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1811 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1812 * f-exp.y (arglist): Allow for a series of subranges.
1813 (subrange): Add cases for subranges with strides.
1814 * f-lang.c (value_f90_subarray): Catch use of array strides and
1816 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1818 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1820 * expprint.c (print_subexp_standard): Change enum range_type to
1821 range_flag and rename variables to match.
1822 (dump_subexp_body_standard): Likewise.
1823 * expression.h (enum range_type): Rename to...
1824 (enum range_flag): ...this.
1825 (range_types): Rename to...
1826 (range_flags): ...this.
1827 * f-lang.c (value_f90_subarray): Change enum range_type to
1828 range_flag and rename variables to match.
1829 * parse.c (operator_length_standard): Likewise.
1830 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1831 range_type to range_flag.
1832 * rust-lang.c (rust_evaluate_funcall): Likewise.
1833 (rust_range): Likewise.
1834 (rust_compute_range): Likewise.
1835 (rust_subscript): Likewise.
1837 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1839 * expprint.c (print_subexp_standard): Update to reflect changes to
1841 (dump_subexp_body_standard): Likewise.
1842 * expression.h (enum range_type): Convert to a bit field enum, and
1843 make the enum unsigned.
1844 * f-exp.y (subrange): Update to reflect changes to enum
1846 * f-lang.c (value_f90_subarray): Likewise.
1847 * parse.c (operator_length_standard): Likewise.
1848 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1849 * rust-lang.c (rust_range): Likewise.
1850 (rust_compute_range): Likewise.
1851 (rust_subscript): Likewise.
1853 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1855 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1856 (displaced_step_in_progress): Fix comment.
1858 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1860 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1861 * gdbarch.c: Re-generate.
1862 * gdbarch.h: Re-generate.
1863 * gcore.c (write_gcore_file_1): Adjust.
1864 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1866 <note_data>: Change type to unique pointer.
1867 <abort_iteration>: Change type to bool.
1868 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1869 (fbsd_collect_thread_registers): Return void, adjust.
1870 (struct fbsd_corefile_thread_data): Add construtor.
1871 <note_data>: Change type to unique pointer.
1872 (fbsd_corefile_thread): Adjust.
1873 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1874 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1875 to unique pointer, adjust.
1876 (struct linux_collect_regset_section_cb_data): Add constructor.
1877 <note_data>: Change type to unique pointer.
1878 <abort_iteration>: Change type to bool.
1879 (linux_collect_thread_registers): Return void, adjust.
1880 (struct linux_corefile_thread_data): Add constructor.
1881 <note_data>: Change type to unique pointer.
1882 (linux_corefile_thread): Adjust.
1883 (linux_make_corefile_notes): Return unique pointer, adjust.
1885 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1887 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1888 * gdbarch.c: Re-generate.
1889 * gdbarch.h: Re-generate.
1890 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1892 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1894 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1895 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1896 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1897 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1899 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1901 * gdbarch.sh: Make generated predicates return bool.
1902 * gdbarch.c: Re-generate.
1903 * gdbarch.h: Re-generate.
1905 2020-10-20 Tom Tromey <tom@tromey.com>
1907 * varobj-iter.h (struct varobj_item): Remove typedef.
1909 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1911 * infrun.c (currently_stepping): Change int to bool
1912 (maybe_software_singlestep): Likewise.
1913 (show_stop_on_solib_events): Likewise.
1914 (stepping_past_nonsteppable_watchpoint): Likewise.
1915 (displaced_step_in_progress_any_inferior): Likewise.
1916 (displaced_step_in_progress_thread): Likewise.
1917 (keep_going_stepped_thread): Likewise.
1918 (thread_still_needs_step_over): Likewise.
1919 (start_step_over): Likewise.
1920 (do_target_resume): Likewise.
1921 (resume_1): Likewise.
1922 (clear_proceed_status): Likewise.
1923 (thread_still_needs_step_over_bp): Likewise.
1924 (proceed): Likewise.
1925 (switch_back_to_stepped_thread): Likewise.
1926 (adjust_pc_after_break): Likewise.
1927 (stepped_in_from): Likewise.
1928 (handle_stop_requested): Likewise.
1929 (handle_syscall_event): Likewise.
1930 (handle_no_resumed): Likewise.
1931 (handle_inferior_event): Likewise.
1932 (finish_step_over): Likewise.
1933 (handle_signal_stop): Likewise.
1934 (process_event_stop_test): Likewise.
1936 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1938 * infrun.c (get_displaced_stepping_state): Fix comment.
1940 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1942 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1944 2020-10-19 Tom Tromey <tromey@adacore.com>
1947 * tui/tui-winsource.h (struct tui_source_window_base)
1948 <refresh_window>: Rename from refresh_pad.
1949 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1950 Rename from refresh_pad.
1951 (tui_source_window_base::show_source_content)
1952 (tui_source_window_base::do_scroll_horizontal): Update.
1954 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1956 * thread.c (_initialize_thread): Fine-tune the help text of
1959 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1961 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1963 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1965 * breakpoint.c (handle_jit_event): Add an argument, change how
1966 `jit_event_handler` is called.
1968 2020-10-17 Tom Tromey <tom@tromey.com>
1970 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1971 (scan_xcoff_symtab): Update.
1972 * psymtab.h (class psymtab_storage) <global_psymbols,
1973 static_psymbols, current_global_psymbols,
1974 current_static_psymbols>: Remove.
1975 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1976 (match_partial_symbol, lookup_partial_symbol): Update.
1977 (print_partial_symbols): Change parameters.
1978 (dump_psymtab, recursively_search_psymtabs)
1979 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1980 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1982 (end_psymtab_common): Simplify.
1983 (append_psymbol_to_list): Change parameters.
1984 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1985 (init_psymbol_list): Simplify.
1986 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1987 * psympriv.h (struct partial_symtab) <empty>: New method.
1988 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1990 <global_psymbols, static_psymbols>: New members.
1991 <add_psymbol>: New methods.
1992 (add_psymbol_to_list): Don't declare.
1993 (psymbol_placement): Move earlier.
1994 * mdebugread.c (parse_partial_symbols): Update.
1995 (handle_psymbol_enumerators): Change parameters.
1996 (mdebug_expand_psymtab): Update.
1997 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1998 (add_partial_symbol): Update.
1999 * dwarf2/index-write.c (write_psymbols): Change parameters.
2000 (write_one_signatured_type): Update.
2001 (recursively_count_psymbols): Update.
2002 (recursively_write_psymbols): Update.
2003 (class debug_names) <recursively_write_psymbols>: Update.
2004 <write_psymbols>: Change parameters.
2005 <write_one_signatured_type>: Update.
2006 * dbxread.c (read_dbx_symtab): Update.
2007 (dbx_end_psymtab): Use partial_symtab::empty.
2008 * ctfread.c (struct ctf_context) <pst>: New member.
2009 (create_partial_symtab): Set it.
2010 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2011 (scan_partial_symbols): Use the psymtab's context. Update.
2013 2020-10-17 Tom Tromey <tom@tromey.com>
2015 * valprint.c (generic_value_print): Remove comment.
2016 * m2-valprint.c (m2_value_print_inner): Remove comment.
2017 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2020 2020-10-17 Tom de Vries <tdevries@suse.de>
2023 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2026 2020-10-14 Tom de Vries <tdevries@suse.de>
2029 * solib.c (solib_contains_address_p): Handle
2030 'solib->sections == nullptr'.
2032 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2035 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2036 target can't do async.
2037 * target.c (target_wait): Assert that we don't pass
2038 TARGET_WNOHANG to a target that can't async.
2040 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2042 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2043 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2044 * alpha-bsd-nat.c: Adjust include.
2045 * alpha-bsd-tdep.h: Adjust comment.
2046 * alpha-nbsd-tdep.c: Rename to ...
2047 * alpha-netbsd-tdep.c: ... this, adjust include.
2048 * amd64-nbsd-nat.c: Rename to ...
2049 * amd64-netbsd-nat.c: ... this, adjust include.
2050 * amd64-nbsd-tdep.c: Rename to ...
2051 * amd64-netbsd-tdep.c: ... this, adjust include.
2052 * amd64-tdep.h: Adjust include.
2053 * arm-nbsd-nat.c: Rename to ...
2054 * arm-netbsd-nat.c: ... this, adjust include.
2055 * arm-nbsd-tdep.c: Rename to ...
2056 * arm-netbsd-tdep.c: ... this, adjust include.
2057 * arm-nbsd-tdep.h: Rename to ...
2058 * arm-netbsd-tdep.h: ... this, adjust include.
2059 * configure.nat: Adjust file lists.
2060 * configure.tgt: Likewise.
2061 * hppa-nbsd-nat.c: Rename to ...
2062 * hppa-netbsd-nat.c: ... this, adjust include.
2063 * hppa-nbsd-tdep.c: Rename to ...
2064 * hppa-netbsd-tdep.c: ... this, adjust include.
2065 * i386-nbsd-nat.c: Rename to ...
2066 * i386-netbsd-nat.c: ... this, adjust include.
2067 * i386-nbsd-tdep.c: Rename to ...
2068 * i386-netbsd-tdep.c: ... this, adjust include.
2069 * m68k-bsd-nat.c: Adjust include.
2070 * mips-nbsd-nat.c: Rename to ...
2071 * mips-netbsd-nat.c: ... this, adjust include.
2072 * mips-nbsd-tdep.c: Rename to ...
2073 * mips-netbsd-tdep.c: ... this, adjust include.
2074 * mips-nbsd-tdep.h: Rename to ...
2075 * mips-netbsd-tdep.h: ... this.
2076 * nbsd-nat.c: Rename to ...
2077 * netbsd-nat.c: ... this, adjust include.
2078 * nbsd-nat.h: Rename to ...
2079 * netbsd-nat.h: ... this, adjust include.
2080 * nbsd-tdep.c: Rename to ...
2081 * netbsd-tdep.c: ... this, adjust include.
2082 * nbsd-tdep.h: Rename to ...
2083 * netbsd-tdep.h: ... this.
2084 * ppc-nbsd-nat.c: Rename to ...
2085 * ppc-netbsd-nat.c: ... this, adjust include.
2086 * ppc-nbsd-tdep.c: Rename to ...
2087 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2088 * ppc-nbsd-tdep.h: Rename to ...
2089 * ppc-netbsd-tdep.h: ... this.
2090 * sh-nbsd-nat.c: Rename to ...
2091 * sh-netbsd-nat.c: ... this, adjust include.
2092 * sh-nbsd-tdep.c: Rename to ...
2093 * sh-netbsd-tdep.c: ... this, adjust include.
2094 * sparc-nbsd-nat.c: Rename to ...
2095 * sparc-netbsd-nat.c: ... this.
2096 * sparc-nbsd-tdep.c: Rename to ...
2097 * sparc-netbsd-tdep.c: ... this, adjust include.
2098 * sparc64-nbsd-nat.c: Rename to ...
2099 * sparc64-netbsd-nat.c: ... this.
2100 * sparc64-nbsd-tdep.c: Rename to ...
2101 * sparc64-netbsd-tdep.c: ... this, adjust include.
2102 * sparc64-tdep.h: Adjust comment.
2103 * vax-bsd-nat.c: Adjust include.
2104 * vax-nbsd-tdep.c: Rename to ...
2105 * vax-netbsd-tdep.c: ... this, adjust include.
2107 2020-10-12 Tom Tromey <tom@tromey.com>
2109 * target.h (struct target_ops) <get_section_table>: Update.
2110 (target_get_section_table): Update.
2111 * target.c (target_get_section_table, target_section_by_addr)
2112 (memory_xfer_partial_1): Update.
2113 * target-section.h (target_section_table): Now an alias.
2114 * target-delegates.c: Rebuild.
2115 * target-debug.h (target_debug_print_target_section_table_p):
2116 Rename from target_debug_print_struct_target_section_table_p.
2117 * symfile.c (build_section_addr_info_from_section_table): Update.
2118 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2119 * solib-svr4.c (scan_dyntag): Update.
2120 * solib-dsbt.c (scan_dyntag): Update.
2121 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2123 * record-full.c (record_full_core_target::xfer_partial): Update.
2124 * progspace.h (struct program_space) <target_sections>: Update.
2125 * exec.h (print_section_info): Update.
2126 * exec.c (exec_target::close, build_section_table)
2127 (add_target_sections, add_target_sections_of_objfile)
2128 (remove_target_sections, exec_on_vfork)
2129 (section_table_available_memory)
2130 (section_table_xfer_memory_partial)
2131 (exec_target::get_section_table, exec_target::xfer_partial)
2132 (print_section_info, set_section_command)
2133 (exec_set_section_address, exec_target::has_memory): Update.
2134 * corelow.c (core_target::build_file_mappings)
2135 (core_target::xfer_partial, core_target::info_proc_mappings)
2136 (core_target::info_proc_mappings): Update.
2137 * bfd-target.c (class target_bfd): Update
2139 2020-10-12 Tom Tromey <tom@tromey.com>
2141 * progspace.c (program_space::~program_space): Don't call
2142 clear_section_table.
2143 * exec.h (clear_section_table): Don't declare.
2144 * exec.c (exec_target::close): Update.
2145 (clear_section_table): Remove.
2147 2020-10-12 Tom Tromey <tom@tromey.com>
2149 * exec.c (add_target_sections_of_objfile): Simplify.
2151 2020-10-12 Tom Tromey <tom@tromey.com>
2153 * solib.c (solib_map_sections): Update.
2154 * record-full.c (record_full_core_open_1): Update.
2155 * exec.h (build_section_table): Return a target_section_table.
2156 * exec.c (exec_file_attach): Update.
2157 (build_section_table): Return a target_section_table.
2158 * corelow.c (core_target::core_target): Update.
2159 * bfd-target.c (target_bfd::target_bfd): Update.
2161 2020-10-12 Tom Tromey <tom@tromey.com>
2163 * target.c (target_section_by_addr, memory_xfer_partial_1):
2165 * target-section.h (struct target_section_table): Use
2167 * symfile.h (build_section_addr_info_from_section_table): Take a
2168 target_section_table.
2169 * symfile.c (build_section_addr_info_from_section_table): Take a
2170 target_section_table.
2171 * solist.h (struct so_list) <sections>: Change type.
2172 <sections_end>: Remove.
2173 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2174 (solib_contains_address_p): Update.
2175 * solib-svr4.c (scan_dyntag): Update.
2176 * solib-dsbt.c (scan_dyntag): Update.
2177 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2179 * record-full.c (record_full_core_start, record_full_core_end):
2181 (record_full_core_sections): New global.
2182 (record_full_core_open_1, record_full_core_target::xfer_partial):
2184 * exec.h (build_section_table, section_table_xfer_memory_partial)
2185 (add_target_sections): Take a target_section_table.
2186 * exec.c (exec_file_attach, clear_section_table): Update.
2187 (resize_section_table): Remove.
2188 (build_section_table, add_target_sections): Take a
2189 target_section_table.
2190 (add_target_sections_of_objfile, remove_target_sections)
2191 (exec_on_vfork): Update.
2192 (section_table_available_memory): Take a target_section_table.
2193 (section_table_read_available_memory): Update.
2194 (section_table_xfer_memory_partial): Take a target_section_table.
2195 (print_section_info, set_section_command)
2196 (exec_set_section_address, exec_target::has_memory): Update.
2197 * corelow.c (class core_target) <m_core_section_table,
2198 m_core_file_mappings>: Remove braces.
2199 <~core_target>: Remove.
2200 (core_target::core_target): Update.
2201 (core_target::~core_target): Remove.
2202 (core_target::build_file_mappings)
2203 (core_target::xfer_memory_via_mappings)
2204 (core_target::xfer_partial, core_target::info_proc_mappings):
2206 * bfd-target.c (target_bfd::xfer_partial): Update.
2207 (target_bfd::target_bfd): Update.
2208 (target_bfd::~target_bfd): Remove.
2210 2020-10-12 Tom Tromey <tom@tromey.com>
2212 * target.h (struct target_section, struct target_section_table):
2213 Move to target-section.h.
2214 * target-section.h: New file.
2216 2020-10-12 Pedro Alves <pedro@palves.net>
2219 * valops.c (struct struct_field_searcher): New.
2220 (update_search_result): Rename to ...
2221 (struct_field_searcher::update_result): ... this. Simplify
2222 prototype. Record all found fields.
2223 (do_search_struct_field): Rename to ...
2224 (struct_field_searcher::search): ... this. Simplify prototype.
2225 Maintain stack of visited baseclass path. Call update_result for
2226 fields too. Keep searching fields in baseclasses instead of
2227 stopping at the first found field.
2228 (search_struct_field): Use struct_field_searcher. When looking
2229 for fields, report ambiguous access attempts.
2231 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2233 * frame.c (inside_main_func): Check full symbols as well as
2236 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2238 * ada-lang.c (advance_wild_match): Rewrite the function's
2239 description. Change the type of target0, t0 and t1 to char.
2241 2020-10-09 Tom Tromey <tromey@adacore.com>
2243 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2245 2020-10-09 Tom Tromey <tromey@adacore.com>
2247 * ada-lang.h (ada_encode): Return std::string.
2248 * ada-lang.c (ada_encode_1): Return std::string.
2249 (ada_encode): Likewise.
2250 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2252 * ada-exp.y (block_lookup, write_var_or_type): Update.
2254 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2257 * printcmd.c (print_formatted): Handle void results as
2260 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2262 * arch/aarch32.c (aarch32_create_target_description): Release the
2263 target_desc_up as late as possible.
2264 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2265 * arch/amd64.c (amd64_create_target_description): Likewise.
2266 * arch/arc.c (arc_create_target_description): Return a
2267 target_desc_up, don't release it.
2268 * arch/arc.h (arc_create_target_description): Update declaration.
2269 (arc_lookup_target_description): Move target_desc_up into the
2270 cache, and return a borrowed pointer.
2271 * arch/arm.c (arm_create_target_description): Release the
2272 target_desc_up as late as possible.
2273 * arch/i386.c (i386_create_target_description): Likewise.
2274 * arch/riscv.h (riscv_create_target_description): Update
2275 declaration to match definition.
2276 * arch/tic6x.c (tic6x_create_target_description): Release the
2277 target_desc_up as late as possible.
2279 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2281 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2282 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2284 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2286 * source.c (directory_command): Notify observers that "directories"
2287 parameter has changed.
2289 2020-10-08 Tom Tromey <tom@tromey.com>
2291 * cli/cli-cmds.c (print_disassembly): Style function name and
2292 addresses. Add _() wrappers.
2294 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2296 * NEWS: Mention ARC support in GDBserver.
2298 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2300 * arch/aarch32.c (aarch32_create_target_description): Release
2301 unique_ptr returned from allocate_target_description.
2302 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2303 * arch/amd64.c (amd64_create_target_description): Likewise.
2304 * arch/arc.c (arc_create_target_description): Likewise.
2305 * arch/arm.c (arm_create_target_description): Likewise.
2306 * arch/i386.c (i386_create_target_description): Likewise.
2307 * arch/riscv.c (riscv_create_target_description): Update return
2308 type. Handle allocate_target_description returning a unique_ptr.
2309 (riscv_lookup_target_description): Update to handle unique_ptr.
2310 * arch/tic6x.c (tic6x_create_target_description): Release
2311 unique_ptr returned from allocate_target_description.
2312 * features/microblaze-with-stack-protect.c: Regenerate.
2313 * features/microblaze.c: Regenerate.
2314 * features/mips-dsp-linux.c: Regenerate.
2315 * features/mips-linux.c: Regenerate.
2316 * features/mips64-dsp-linux.c: Regenerate.
2317 * features/mips64-linux.c: Regenerate.
2318 * features/nds32.c: Regenerate.
2319 * features/nios2.c: Regenerate.
2320 * features/or1k.c: Regenerate.
2321 * features/rs6000/powerpc-32.c: Regenerate.
2322 * features/rs6000/powerpc-32l.c: Regenerate.
2323 * features/rs6000/powerpc-403.c: Regenerate.
2324 * features/rs6000/powerpc-403gc.c: Regenerate.
2325 * features/rs6000/powerpc-405.c: Regenerate.
2326 * features/rs6000/powerpc-505.c: Regenerate.
2327 * features/rs6000/powerpc-601.c: Regenerate.
2328 * features/rs6000/powerpc-602.c: Regenerate.
2329 * features/rs6000/powerpc-603.c: Regenerate.
2330 * features/rs6000/powerpc-604.c: Regenerate.
2331 * features/rs6000/powerpc-64.c: Regenerate.
2332 * features/rs6000/powerpc-64l.c: Regenerate.
2333 * features/rs6000/powerpc-7400.c: Regenerate.
2334 * features/rs6000/powerpc-750.c: Regenerate.
2335 * features/rs6000/powerpc-860.c: Regenerate.
2336 * features/rs6000/powerpc-altivec32.c: Regenerate.
2337 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2338 * features/rs6000/powerpc-altivec64.c: Regenerate.
2339 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2340 * features/rs6000/powerpc-e500.c: Regenerate.
2341 * features/rs6000/powerpc-e500l.c: Regenerate.
2342 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2343 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2344 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2345 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2346 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2347 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2348 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2349 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2350 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2351 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2352 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2353 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2354 * features/rs6000/powerpc-vsx32.c: Regenerate.
2355 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2356 * features/rs6000/powerpc-vsx64.c: Regenerate.
2357 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2358 * features/rs6000/rs6000.c: Regenerate.
2359 * features/rx.c: Regenerate.
2360 * features/s390-gs-linux64.c: Regenerate.
2361 * features/s390-linux32.c: Regenerate.
2362 * features/s390-linux32v1.c: Regenerate.
2363 * features/s390-linux32v2.c: Regenerate.
2364 * features/s390-linux64.c: Regenerate.
2365 * features/s390-linux64v1.c: Regenerate.
2366 * features/s390-linux64v2.c: Regenerate.
2367 * features/s390-te-linux64.c: Regenerate.
2368 * features/s390-tevx-linux64.c: Regenerate.
2369 * features/s390-vx-linux64.c: Regenerate.
2370 * features/s390x-gs-linux64.c: Regenerate.
2371 * features/s390x-linux64.c: Regenerate.
2372 * features/s390x-linux64v1.c: Regenerate.
2373 * features/s390x-linux64v2.c: Regenerate.
2374 * features/s390x-te-linux64.c: Regenerate.
2375 * features/s390x-tevx-linux64.c: Regenerate.
2376 * features/s390x-vx-linux64.c: Regenerate.
2377 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2378 from allocate_target_description.
2379 * target-descriptions.c (allocate_target_description): Update
2381 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2382 allocate_target_description.
2384 2020-10-07 Tom Tromey <tromey@adacore.com>
2386 * unittests/search-memory-selftests.c: New file.
2387 * Makefile.in (SELFTESTS_SRCS): Add
2388 unittests/search-memory-selftests.c.
2390 2020-10-07 Tom Tromey <tromey@adacore.com>
2393 * findcmd.c (_initialize_mem_search): Mention that the range is
2396 2020-10-07 Tom Tromey <tromey@adacore.com>
2398 * target.h (simple_search_memory): Don't declare.
2399 * target.c (simple_search_memory): Move to gdbsupport.
2400 (default_search_memory): Update.
2401 * remote.c (remote_target::search_memory): Update.
2403 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2405 * Makefile.in (COMPILE): Add CXXFLAGS.
2406 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2407 (check-headers): Add CXXFLAGS.
2409 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2411 * arc-linux-tdep.h: New file.
2412 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2413 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2414 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2415 arc_linux_gregset, arc_linux_v2_regset,
2416 arc_linux_iterate_over_regset_sections,
2417 arc_linux_core_read_description): Implement.
2418 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2419 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2420 (arc_gdbarch_features_create): Add.
2421 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2423 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2425 * arch/arc.h: Rename "arc_gdbarch_features" to
2426 "arc_arch_features".
2427 * arc-tdep.h: Likewise.
2428 * arc-tdep.c: Likewise.
2430 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2432 * infcmd.c (attach_command): Remove the redundant call to
2433 `clear_proceed_status`.
2435 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2437 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2439 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2441 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2442 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2443 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2445 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2447 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2448 (_initialize_break_catch_sig): Don't allocate array.
2450 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2452 * symtab.c (find_pc_line): Return unmapped addresses when the
2453 requested address is also unmapped.
2455 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2457 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2460 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2462 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2463 type::is_vector instead of TYPE_VECTOR.
2465 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2467 * auto-load.c (auto_load_objfile_script_1): Don't use
2468 debugfile_holder as temporary variable when stripping drive
2471 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2473 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2474 Add TYPE_CODE_COMPLEX.
2475 (amd64_windows_return_value): Fix types returned via XMM0.
2477 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2479 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2480 AArch64/ARM maintainers.
2482 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2484 * NEWS: Mention set/show debug event-loop.
2486 2020-10-02 Tom Tromey <tromey@adacore.com>
2488 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2491 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2493 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2494 * procfs.c (procfs_inferior_created): Remove.
2495 (_initialize_procfs): Don't register procfs_inferior_created.
2497 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2499 * async-event.c (invoke_async_signal_handlers): Add debug
2501 (check_async_event_handlers): Likewise.
2502 * event-top.c (show_debug_event_loop): New function.
2503 (_initialize_event_top): Register "set debug event-loop"
2506 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2508 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2510 * infrun.c: Include gdbsupport/common-debug.h.
2511 * linux-nat.c: Likewise.
2513 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2515 * async-event.h (create_async_signal_handler): Add name
2517 (create_async_event_handler): Likewise.
2518 * async-event.c (struct async_signal_handler) <name>: New field.
2519 (struct async_event_handler) <name>: New field.
2520 (create_async_signal_handler): Assign name.
2521 (create_async_event_handler): Assign name.
2522 * event-top.c (async_init_signals): Pass name when creating
2524 * infrun.c (_initialize_infrun): Likewise.
2525 * record-btrace.c (record_btrace_push_target): Likewise.
2526 * record-full.c (record_full_open): Likewise.
2527 * remote-notif.c (remote_notif_state_allocate): Likewise.
2528 * remote.c (remote_target::open_1): Likewise.
2529 * tui/tui-win.c (tui_initialize_win): Likewise.
2531 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2533 * async-event.c (initialize_async_signal_handlers): Pass name to
2535 * event-top.c (ui_register_input_event_handler): Likewise.
2536 * linux-nat.c (linux_nat_target::async): Likewise.
2537 * run-on-main-thread.c (_initialize_run_on_main_thread):
2539 * ser-base.c (reschedule): Likewise.
2540 (ser_base_async): Likewise.
2541 * tui/tui-io.c: Likewise.
2542 * top.h (struct ui) <num>: New field.
2543 * top.c (highest_ui_num): New variable.
2544 (ui::ui): Initialize num.
2546 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2548 * observable.h <inferior_created>: Remove parameters. Update all
2550 * inferior.h (post_create_inferior): Remove target parameter.
2553 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2555 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2556 and DW_MACRO_undef_strx.
2557 (dwarf_decode_macros): Likewise
2558 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2559 which is the value of DW_AT_str_offsets_base.
2560 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2563 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2565 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2567 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2569 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2570 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2572 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2574 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2576 2020-09-30 Tom de Vries <tdevries@suse.de>
2579 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2581 2020-09-30 Tom Tromey <tromey@adacore.com>
2583 * dwarf2/read.c (handle_variant): Use constant_value.
2585 2020-09-29 Tom Tromey <tom@tromey.com>
2587 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2588 (read_file_scope, dwarf2_get_pc_bounds)
2589 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2590 (read_structure_type, handle_struct_member_die)
2591 (read_enumeration_type, read_array_type, read_set_type)
2592 (read_tag_pointer_type, read_tag_reference_type)
2593 (read_subroutine_type, read_base_type, read_subrange_type)
2594 (read_full_die_1, partial_die_info::read)
2595 (partial_die_info::read, by, new_symbol)
2596 (dwarf2_const_value_data, dwarf2_const_value_attr)
2597 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2598 (prepare_one_comp_unit): Update.
2599 * dwarf2/attribute.h (DW_UNSND): Remove.
2601 2020-09-29 Tom Tromey <tom@tromey.com>
2603 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2604 (read_subroutine_type, partial_die_info::read)
2605 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2606 (dwarf2_add_member_fn): Update.
2607 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2608 * dwarf2/attribute.c (attribute::as_boolean): New method.
2610 2020-09-29 Tom Tromey <tom@tromey.com>
2612 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2613 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2615 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2617 2020-09-29 Tom Tromey <tom@tromey.com>
2619 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2620 the attribute's form.
2622 2020-09-29 Tom Tromey <tom@tromey.com>
2624 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2625 (dwarf2_add_member_fn): Update.
2626 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2627 * dwarf2/attribute.c (attribute::defaulted): New method, from
2628 is_valid_DW_AT_defaulted.
2630 2020-09-29 Tom Tromey <tom@tromey.com>
2632 * dwarf2/read.c (dw2_get_file_names_reader)
2633 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2634 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2635 (dwarf2_symbol_mark_computed): Use as_unsigned.
2636 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2638 <form_is_section_offset>: Update comment.
2640 2020-09-29 Tom Tromey <tom@tromey.com>
2642 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2643 dwarf2_default_access_attribute. Look up attribute.
2644 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2647 2020-09-29 Tom Tromey <tom@tromey.com>
2649 * dwarf2/read.c (skip_one_die): Update.
2650 (read_full_die_1): Change how reprocessing is done.
2651 (partial_die_info::read): Update.
2652 (read_attribute_value): Remove need_reprocess parameter.
2653 (read_attribute): Likewise.
2654 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2657 2020-09-29 Tom Tromey <tom@tromey.com>
2659 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2660 (dwarf2_const_value_attr, dump_die_shallow)
2661 (dwarf2_fetch_constant_bytes): Update.
2662 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2664 <set_address>: New method.
2666 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2667 (attribute::as_string, attribute::as_address): Add assert.
2669 2020-09-29 Tom Tromey <tom@tromey.com>
2671 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2672 (read_attribute_reprocess, read_attribute_value): Update.
2673 (read_attribute): Clear requires_reprocessing.
2674 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2675 form_requires_reprocessing>: New methods.
2676 <string_init>: Clear requires_reprocessing.
2677 <set_unsigned_reprocess>: New method.
2678 <name>: Shrink by one bit.
2679 <requires_reprocessing>: New member.
2680 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2683 2020-09-29 Tom Tromey <tom@tromey.com>
2685 * dwarf2/read.c (read_attribute_value): Update.
2686 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2687 set_unsigned>: New methods.
2688 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2690 2020-09-29 Tom Tromey <tom@tromey.com>
2692 * dwarf2/read.c (get_alignment, read_array_order)
2693 (read_attribute_value, dwarf2_const_value_attr)
2694 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2695 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2699 2020-09-29 Tom Tromey <tom@tromey.com>
2701 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2702 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2704 * dwarf2/attribute.h (struct attribute) <as_signature,
2705 set_signature>: New methods.
2706 (DW_SIGNATURE): Remove.
2708 2020-09-29 Tom Tromey <tom@tromey.com>
2710 * dwarf2/read.c (read_call_site_scope)
2711 (handle_data_member_location, dwarf2_add_member_fn)
2712 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2713 (partial_die_info::read, read_attribute_value)
2714 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2715 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2716 (dwarf2_symbol_mark_computed): Update.
2717 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2720 * dwarf2/attribute.c (attribute::form_is_block): Add
2723 2020-09-29 Tom Tromey <tom@tromey.com>
2725 * dwarf2/read.c (read_cutu_die_from_dwo)
2726 (read_attribute_reprocess, read_attribute_value, read_attribute)
2727 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2728 (dwarf2_fetch_constant_bytes): Update.
2729 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2730 <set_string_noncanonical, set_string_canonical>: New methods.
2731 <string_is_canonical>: Update comment.
2732 <canonical_string_p>: Add assert.
2733 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2734 * dwarf2/attribute.c (attribute::form_is_string): New method.
2735 (attribute::string): Use it.
2737 2020-09-29 Tom Tromey <tom@tromey.com>
2739 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2740 (dump_die_shallow): Use canonical_string_p.
2741 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2744 2020-09-29 Tom Tromey <tom@tromey.com>
2746 * dwarf2/read.c (partial_die_info::read)
2747 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2748 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2749 attribute::as_string.
2751 2020-09-29 Tom Tromey <tom@tromey.com>
2753 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2755 (attribute::string): Don't use DW_STRING.
2756 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2757 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2759 2020-09-29 Tom Tromey <tom@tromey.com>
2761 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2762 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2763 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2764 * dwarf2/attribute.h (struct attribute): Rename methods.
2765 * dwarf2/attribute.c (attribute::as_address): Rename from
2767 (attribute::as_string): Rename from value_as_string.
2769 2020-09-29 Tom Tromey <tom@tromey.com>
2771 * dwarf2/read.c (partial_die_info::read) <case
2772 DW_AT_linkage_name>: Use value_as_string.
2773 (dwarf2_string_attr): Use value_as_string.
2774 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2776 * dwarf2/attribute.c (attribute::value_as_string): New method.
2778 2020-09-29 Pedro Alves <pedro@palves.net>
2780 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2781 defined before using '#pragma GCC diagnostic' instead of checking
2784 2020-09-28 Tom Tromey <tom@tromey.com>
2786 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2787 (handle_signal_stop): Update.
2788 * procfs.c (procfs_target::insert_watchpoint): Update.
2789 * target.h (target_have_steppable_watchpoint): Now a function.
2791 2020-09-28 Tom Tromey <tom@tromey.com>
2793 * infrun.c (set_schedlock_func): Update.
2794 * target.h (target_can_lock_scheduler): Now a function.
2796 2020-09-28 Tom Tromey <tom@tromey.com>
2798 * inferior.h (class inferior) <has_execution>: Update.
2799 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2800 * valops.c (find_function_in_inferior)
2801 (value_allocate_space_in_inferior): Update.
2802 * top.c (kill_or_detach): Update.
2803 * target.c (target_preopen, set_target_permissions): Update.
2804 (target_has_execution_current): Remove.
2805 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2807 * solib.c (update_solib_list, reload_shared_libraries): Update.
2808 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2809 * solib-dsbt.c (enable_break): Update.
2810 * score-tdep.c (score7_fetch_inst): Update.
2811 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2813 * remote.c (remote_target::start_remote)
2814 (remote_target::remote_check_symbols, remote_target::open_1)
2815 (remote_target::remote_detach_1, remote_target::verify_memory)
2816 (remote_target::xfer_partial, remote_target::read_description)
2817 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2818 * record-full.c (record_full_open_1): Update.
2819 * record-btrace.c (record_btrace_target_open): Update.
2820 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2821 (value_nsstring): Update.
2822 * linux-thread-db.c (add_thread_db_info)
2823 (thread_db_find_new_threads_silently, check_thread_db_callback)
2824 (try_thread_db_load_1, record_thread): Update.
2825 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2827 * linux-fork.c (checkpoint_command): Update.
2828 * infrun.c (set_non_stop, set_observer_mode)
2829 (check_multi_target_resumption, for_each_just_stopped_thread)
2830 (maybe_remove_breakpoints, normal_stop)
2831 (class infcall_suspend_state): Update.
2832 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2833 (info_program_command, attach_command): Update.
2834 * infcall.c (call_function_by_hand_dummy): Update.
2835 * inf-loop.c (inferior_event_handler): Update.
2836 * gcore.c (gcore_command, derive_heap_segment): Update.
2837 * exec.c (exec_file_command): Update.
2838 * eval.c (evaluate_subexp): Update.
2839 * compile/compile.c (compile_to_object): Update.
2840 * cli/cli-dump.c (restore_command): Update.
2841 * breakpoint.c (update_watchpoint)
2842 (update_inserted_breakpoint_locations)
2843 (insert_breakpoint_locations, get_bpstat_thread): Update.
2844 * target.h (target_has_execution): Remove macro.
2845 (target_has_execution_current): Don't declare.
2846 (target_has_execution): Rename from target_has_execution_1. Add
2849 2020-09-28 Tom Tromey <tom@tromey.com>
2851 * mi/mi-main.c (exec_reverse_continue)
2852 (mi_cmd_list_target_features): Update.
2853 * infrun.c (set_exec_direction_func): Update.
2854 * target.c (default_execution_direction): Update.
2855 * reverse.c (exec_reverse_once): Update.
2856 * target.h (target_can_execute_reverse): Now a function.
2858 2020-09-28 Tom Tromey <tom@tromey.com>
2860 * tui/tui-regs.c (tui_get_register)
2861 (tui_data_window::show_registers): Update.
2862 * thread.c (scoped_restore_current_thread::restore)
2863 (scoped_restore_current_thread::scoped_restore_current_thread):
2865 * regcache-dump.c (regcache_print): Update.
2866 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2868 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2869 * mep-tdep.c (current_me_module, current_options): Update.
2870 * linux-thread-db.c (thread_db_load): Update.
2871 * infcmd.c (registers_info, info_vector_command)
2872 (info_float_command): Update.
2873 * ia64-tdep.c (ia64_frame_prev_register)
2874 (ia64_sigtramp_frame_prev_register): Update.
2875 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2876 * gcore.c (derive_stack_segment): Update.
2877 * frame.c (get_current_frame, has_stack_frames): Update.
2878 * findvar.c (language_defn::read_var_value): Update.
2879 * arm-tdep.c (arm_pc_is_thumb): Update.
2880 * target.c (target_has_registers): Rename from
2881 target_has_registers_1.
2882 * target.h (target_has_registers): Remove macro.
2883 (target_has_registers): Rename from target_has_registers_1.
2885 2020-09-28 Tom Tromey <tom@tromey.com>
2887 * windows-tdep.c (tlb_make_value): Update.
2888 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2889 * thread.c (scoped_restore_current_thread::restore)
2890 (scoped_restore_current_thread::scoped_restore_current_thread)
2891 (thread_command): Update.
2892 * stack.c (backtrace_command_1, frame_apply_level_command)
2893 (frame_apply_all_command, frame_apply_command): Update.
2894 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2896 * gcore.c (derive_stack_segment): Update.
2897 * frame.c (get_current_frame, has_stack_frames): Update.
2898 * auxv.c (info_auxv_command): Update.
2899 * ada-tasks.c (ada_build_task_list): Update.
2900 * target.c (target_has_stack): Rename from target_has_stack_1.
2901 * target.h (target_has_stack): Remove macro.
2902 (target_has_stack): Rename from target_has_stack_1.
2904 2020-09-28 Tom Tromey <tom@tromey.com>
2906 * target.c (target_has_memory): Rename from target_has_memory_1.
2907 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2908 * thread.c (scoped_restore_current_thread::restore)
2909 (scoped_restore_current_thread::scoped_restore_current_thread):
2911 * frame.c (get_current_frame, has_stack_frames): Update.
2912 * target.h (target_has_memory): Remove macro.
2913 (target_has_memory): Rename from target_has_memory_1.
2915 2020-09-28 Tom Tromey <tom@tromey.com>
2917 * target.c (target_has_all_memory_1): Remove.
2918 * target.h (target_has_all_memory): Remove define.
2919 (target_has_all_memory_1): Don't declare.
2921 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2923 * ser-base.c: Adjust comments formatting.
2925 2020-09-27 Tom Tromey <tom@tromey.com>
2928 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2930 2020-09-27 Tom Tromey <tom@tromey.com>
2933 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2935 2020-09-27 Tom Tromey <tom@tromey.com>
2937 * unittests/tui-selftests.c: Update.
2938 * tui/tui-winsource.h (struct tui_source_window_base)
2939 <extra_margin, show_line_number, refresh_pad>: New methods.
2940 <m_max_length, m_pad>: New members.
2941 (tui_copy_source_line): Update.
2942 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2943 first_col, line_width, ndigits parameters. Add length.
2944 (tui_source_window_base::show_source_line): Write to pad. Line
2946 (tui_source_window_base::refresh_pad): New method.
2947 (tui_source_window_base::show_source_content): Write to pad. Call
2949 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2951 (tui_source_window_base::update_exec_info): Call
2953 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2955 <m_digits>: New member.
2956 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2958 (tui_source_window::show_line_number): New method.
2959 * tui/tui-io.h (tui_puts): Fix comment.
2960 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2963 2020-09-27 Tom Tromey <tom@tromey.com>
2965 * tui/tui-winsource.c
2966 (tui_source_window_base::set_is_exec_point_at): Don't call
2969 2020-09-27 Tom Tromey <tom@tromey.com>
2971 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2974 <cursor_x, cursor_y>: Remove.
2975 <m_inner_window>: New member.
2976 (tui_py_window::rerender): Create inner window.
2977 (tui_py_window::output): Write to inner window.
2979 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2982 * cli/cli-script.c (execute_control_commands): don't set
2983 instream to nullptr here as this breaks the from_tty argument
2984 to gdb.execute in Python.
2985 (execute_user_command): set instream to nullptr here instead.
2987 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2989 * infrun.h (infrun_debug_printf): Fix formatting.
2990 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2992 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2994 * compile/compile-object-load.h (struct munmap_list): Add
2995 explicitly-defined move constructor.
2997 2020-09-24 Tom Tromey <tromey@adacore.com>
3000 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3002 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3003 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3004 (tui_prev_win): Rewrite.
3006 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3008 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3009 in WOW64 processes as SIGINT.
3010 * nat/windows-nat.h: Make wow64_process a shared variable.
3011 * windows-nat.c: Remove static wow64_process variable.
3013 2020-09-23 Tom Tromey <tom@tromey.com>
3016 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3017 offset and bit size.
3018 * printcmd.c (print_scalar_formatted): Handle zero-length
3020 (print_scalar_formatted): Use bit_size_differs_p.
3021 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3023 (union type_specific): <int_stuff>: New member.
3024 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3026 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3027 TYPE_SPECIFIC_FIELD.
3028 (recursive_dump_type, copy_type_recursive): Update.
3029 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3030 DW_AT_data_bit_offset.
3032 2020-09-23 Tom Tromey <tom@tromey.com>
3034 * utils.h (class gdb_argv): Add move operators.
3035 <append>: New methods.
3036 * compile/compile.c (build_argc_argv): Remove.
3037 (compile_args_argc): Remove.
3038 (compile_args_argv): Change type.
3039 (set_compile_args): Simplify.
3040 (append_args): Remove.
3041 (filter_args): Remove argcp parameter.
3042 (get_args): Return gdb_argv. Simplify.
3043 (compile_to_object): Update.
3045 2020-09-23 Tom Tromey <tom@tromey.com>
3047 * compile/compile-object-run.c (do_module_cleanup)
3048 <~do_module_cleanup> :Remove.
3049 (do_module_cleanup): Update.
3050 * compile/compile-object-load.h (struct munmap_list): Add move
3051 assignment operator.
3052 <source_file>: Now a std::string.
3053 <munmap_list>: Rename. No longer a pointer.
3054 * compile/compile-object-load.c (struct setup_sections_data): Add
3056 <setup_one_section>: Declare.
3057 <munmap_list>: Move earlier.
3058 <m_bfd>: New member.
3059 <m_last_size, m_last_section_first, m_last_prot,
3060 m_last_max_alignment>: Rename, add initializers where needed.
3061 (setup_sections_data::setup_one_section): Rename from
3062 setup_sections. Update.
3063 (compile_object_load): Update. Don't use bfd_map_over_sections.
3065 2020-09-23 Tom Tromey <tom@tromey.com>
3067 * compile/compile-object-run.c (struct do_module_cleanup): Add
3068 parameters to constructor. Update destructor.
3069 <source_file, scope, scope_data, out_value_type, out_value_addr,
3070 munmap_list_head, objfile_name_string>: Remove.
3071 <module>: New member.
3072 (do_module_cleanup): Update.
3073 (compile_object_run): Update.
3075 2020-09-23 Tom Tromey <tom@tromey.com>
3077 * compile/compile.c (eval_compile_command): Update.
3078 * compile/compile-object-run.h (compile_object_run): Take a
3080 * compile/compile-object-run.c (compile_object_run): Take a
3082 * compile/compile-object-load.h (struct compile_module): Add
3083 constructor, destructor.
3084 (compile_module_up): New typedef.
3085 (compile_object_load): Return compile_object_up.
3086 * compile/compile-object-load.c (compile_object_load): Return
3089 2020-09-23 Tom Tromey <tom@tromey.com>
3091 * compile/compile-object-run.c (struct do_module_cleanup): Add
3092 constructor, destructor.
3093 <objfile_name_string>: Don't use struct hack.
3094 (do_module_cleanup): Use delete.
3095 (compile_object_run): Use new.
3097 2020-09-23 Tom Tromey <tom@tromey.com>
3099 * compile/compile-cplus-types.c
3100 (compile_cplus_convert_struct_or_union): Use std::vector.
3101 (compile_cplus_convert_func): Likewise.
3102 * compile/compile-c-types.c (convert_func): Use std::vector.
3104 2020-09-21 Tom Tromey <tromey@adacore.com>
3106 * sparc-tdep.c (sparc32_skip_prologue): Use
3107 skip_prologue_using_sal.
3109 2020-09-19 Tom Tromey <tom@tromey.com>
3111 * symfile.c (add_section_size_callback): Remove.
3112 (load_one_section): Rename from load_section_callback. Change
3114 (generic_load): Use foreach.
3116 2020-09-19 Tom Tromey <tom@tromey.com>
3118 * exec.c (add_to_section_table): Remove.
3119 (build_section_table): Use foreach.
3121 2020-09-19 Tom Tromey <tom@tromey.com>
3123 * elfread.c (elf_locate_sections): Change parameters.
3124 (elf_symfile_read): Use foreach.
3126 2020-09-19 Tom Tromey <tom@tromey.com>
3128 * cli/cli-dump.c (struct callback_data): Remove.
3129 (restore_one_section): Rename from restore_section_callback.
3131 (restore_binary_file): Change parameters.
3132 (restore_command): Use foreach.
3134 2020-09-19 Tom Tromey <tom@tromey.com>
3136 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3137 (gcore_copy_callback): Likewise.
3138 (gcore_memory_sections): Use foreach.
3140 2020-09-19 Tom Tromey <tom@tromey.com>
3142 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3143 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3145 (generic_elf_osabi_sniffer): Use foreach.
3146 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3147 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3149 2020-09-19 Tom Tromey <tom@tromey.com>
3151 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3152 (dwarf2_get_dwz_file): Use foreach.
3153 (dwarf2_locate_dwo_sections): Change parameters.
3154 (open_and_init_dwo_file): Use foreach.
3155 (dwarf2_locate_common_dwp_sections): Change parameters.
3156 (open_and_init_dwp_file): Use foreach.
3158 2020-09-19 Tom Tromey <tom@tromey.com>
3160 * symfile.h: (find_lowest_section): Don't declare.
3161 * symfile.c (find_lowest_section): Now static. Change
3163 (struct place_section_arg): Remove.
3164 (place_section): Change parameters.
3165 (addr_info_make_relative): Use foreach.
3166 (symfile_dummy_outputs): Remove.
3167 (default_symfile_relocate): Use foreach.
3169 2020-09-19 Tom Tromey <tom@tromey.com>
3171 * objfiles.c (add_to_objfile_sections): Rename from
3172 add_to_objfile_sections_full.
3173 (add_to_objfile_sections): Remove.
3174 (build_objfile_section_table): Use foreach.
3176 2020-09-19 Tom Tromey <tom@tromey.com>
3178 * stap-probe.c (get_stap_base_address_1): Remove.
3179 (get_stap_base_address): Use foreach.
3181 2020-09-19 Tom Tromey <tom@tromey.com>
3183 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3185 (gdb_bfd_close_or_warn): Use foreach.
3187 2020-09-19 Tom Tromey <tom@tromey.com>
3189 * corelow.c (add_to_thread_list): Change parameters.
3190 (core_target_open): Use foreach.
3192 2020-09-19 Tom Tromey <tom@tromey.com>
3194 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3197 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3199 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3202 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3204 * eval.c: Remove 'f-lang.h' include.
3205 (value_f90_subarray): Moved to f-lang.c.
3206 (eval_call): Renamed to...
3207 (evaluate_subexp_do_call): ...this, is no longer static, header
3208 comment moved into header file.
3209 (evaluate_funcall): Update call to eval_call.
3210 (skip_undetermined_arglist): Moved to f-lang.c.
3211 (fortran_value_subarray): Likewise.
3212 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3213 moved to evaluate_subexp_f.
3214 (calc_f77_array_dims): Moved to f-lang.c
3215 * expprint.c (print_subexp_funcall): New function.
3216 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3217 moved to print_subexp_f, OP_FUNCALL uses new function.
3218 (dump_subexp_body_funcall): New function.
3219 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3220 moved to dump_subexp_f, OP_FUNCALL uses new function.
3221 * expression.h (evaluate_subexp_do_call): Declare.
3222 * f-lang.c (value_f90_subarray): Moved from eval.c.
3223 (skip_undetermined_arglist): Likewise.
3224 (calc_f77_array_dims): Likewise.
3225 (fortran_value_subarray): Likewise.
3226 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3227 (operator_length_f): Likewise.
3228 (print_subexp_f): Likewise.
3229 (dump_subexp_body_f): Likewise.
3230 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3231 declaration of this operation to here.
3232 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3233 support moved to operator_length_f.
3234 * parser-defs.h (dump_subexp_body_funcall): Declare.
3235 (print_subexp_funcall): Declare.
3236 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3237 fortran-operator.def.
3239 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3241 * eval.c (fortran_value_subarray): New function, content is taken
3243 (evaluate_subexp_standard): ...here, in two places. Now arrays
3244 and strings both call the new function.
3245 (calc_f77_array_dims): Add header comment, handle strings.
3247 2020-09-18 Victor Collod <vcollod@nvidia.com>
3250 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3251 (i386_analyze_prologue): Call i386_skip_endbr.
3253 2020-09-18 Tom Tromey <tromey@adacore.com>
3255 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3256 (windows_nat_target::wait): Update.
3257 * target/wait.h (enum target_wait_flag): New. Use
3258 DEF_ENUM_FLAGS_TYPE.
3259 * target/target.h (target_wait): Change type of options.
3260 * target.h (target_options_to_string, default_target_wait):
3262 (struct target_ops) <wait>: Change type of options.
3263 * target.c (target_wait, default_target_wait, do_option): Change
3265 (target_options_to_string): Likewise.
3266 * target-delegates.c: Rebuild.
3267 * target-debug.h (target_debug_print_target_wait_flags): Rename
3268 from target_debug_print_options.
3269 * sol-thread.c (class sol_thread_target) <wait>: Update.
3270 (sol_thread_target::wait): Update.
3271 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3272 (rs6000_nat_target::wait): Update.
3273 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3275 (remote_target::wait_ns, remote_target::wait_as): Change type of
3277 (remote_target::wait): Update.
3278 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3279 (gdbsim_target::wait): Update.
3280 * record-full.c (class record_full_base_target) <wait>: Update.
3281 (record_full_wait_1): Change type of "options".
3282 (record_full_base_target::wait): Update.
3283 * record-btrace.c (class record_btrace_target) <wait>: Update.
3284 (record_btrace_target::wait): Update.
3285 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3287 (ravenscar_thread_target::wait): Update.
3288 * procfs.c (class procfs_target) <wait>: Update.
3289 (procfs_target::wait): Update.
3290 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3291 * obsd-nat.c (obsd_nat_target::wait): Update.
3292 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3293 (nto_procfs_target::wait): Update.
3294 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3295 * nbsd-nat.c (nbsd_wait): Change type of "options".
3296 (nbsd_nat_target::wait): Update.
3297 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3298 (thread_db_target::wait): Update.
3299 * linux-nat.h (class linux_nat_target) <wait>: Update.
3300 * linux-nat.c (linux_nat_target::wait): Update.
3301 (linux_nat_wait_1): Update.
3302 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3304 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3305 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3306 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3307 (go32_nat_target::wait): Update.
3308 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3309 * gnu-nat.c (gnu_nat_target::wait): Update.
3310 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3311 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3312 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3313 * darwin-nat.c (darwin_nat_target::wait): Update.
3314 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3315 (bsd_uthread_target::wait): Update.
3316 * aix-thread.c (class aix_thread_target) <wait>: Update.
3317 (aix_thread_target::wait): Update.
3319 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3321 * compile/compile-object-run.c (create_copied_type_recursive): New
3323 (compile_object_run): Use new function.
3325 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3327 * NEWS: Mention x86_64 Cygwin core file support.
3329 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3331 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3332 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3334 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3336 * windows-tdep.h: Add prototypes.
3337 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3338 (i386_windows_core_pid_to_str): Move and rename ...
3339 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3340 (windows_core_pid_to_str): ... and here.
3341 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3343 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3344 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3345 (amd64_windows_init_abi_common): ... and register.
3347 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3349 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3350 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3352 2020-09-18 Pedro Alves <pedro@palves.net>
3355 * thread.c (thread_find_command): Switch inferior before calling
3358 2020-09-17 Tom Tromey <tromey@adacore.com>
3360 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3361 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3362 (tdesc_arch_data_up): New typedef.
3363 (tdesc_use_registers, tdesc_data_alloc): Update.
3364 (tdesc_data_cleanup): Don't declare.
3365 * target-descriptions.c (tdesc_data_alloc): Return a
3367 (tdesc_arch_data_deleter::operator()): Rename from
3368 tdesc_data_cleanup. Change argument type.
3369 (tdesc_use_registers): Change early_data to an rvalue reference.
3370 (tdesc_use_registers): Don't use delete.
3371 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3372 * s390-tdep.c (s390_gdbarch_init): Update.
3373 * rx-tdep.c (rx_gdbarch_init): Update.
3374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3375 * riscv-tdep.c (riscv_gdbarch_init): Update.
3376 * or1k-tdep.c (or1k_gdbarch_init): Update.
3377 * nios2-tdep.c (nios2_gdbarch_init): Update.
3378 * nds32-tdep.c (nds32_gdbarch_init): Update.
3379 * mips-tdep.c (mips_gdbarch_init): Update.
3380 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3381 * m68k-tdep.c (m68k_gdbarch_init): Update.
3382 * i386-tdep.c (i386_gdbarch_init): Update.
3383 * arm-tdep.c (arm_gdbarch_init): Update.
3384 * arc-tdep.c (arc_tdesc_init): Update.
3385 (arc_gdbarch_init): Update.
3386 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3388 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3390 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3391 for WOW64 processes.
3393 2020-09-17 Tom Tromey <tom@tromey.com>
3395 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3397 2020-09-17 Tom Tromey <tom@tromey.com>
3399 * value.c (preserve_values): Update.
3400 * python/py-type.c (save_objfile_types): Update.
3401 * guile/scm-type.c (save_objfile_types): Update.
3402 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3403 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3404 * compile/compile-object-run.c (compile_object_run): Update.
3406 2020-09-17 Tom Tromey <tom@tromey.com>
3408 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3410 <m_table>: Now htab_up.
3411 * typeprint.c (typedef_hash_table::recursively_update)
3412 (typedef_hash_table::add_template_parameters)
3413 (typedef_hash_table::typedef_hash_table): Update.
3414 (typedef_hash_table::~typedef_hash_table): Remove.
3415 (typedef_hash_table::typedef_hash_table)
3416 (typedef_hash_table::find_global_typedef)
3417 (typedef_hash_table::find_typedef): Update.
3419 2020-09-17 Tom Tromey <tom@tromey.com>
3421 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3423 2020-09-17 Tom Tromey <tom@tromey.com>
3425 * linespec.c (class decode_compound_collector)
3426 <~decode_compound_collector>: Remove.
3427 <m_unique_syms>: Now htab_up.
3428 (decode_compound_collector::operator ()): Update.
3429 (class symtab_collector) <~symtab_collector>: Remove.
3430 <m_symtab_table>: Now htab_up.
3431 (symtab_collector::operator ()): Update.
3433 2020-09-17 Tom Tromey <tom@tromey.com>
3435 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3436 (filename_seen_cache::clear): Update.
3437 (~filename_seen_cache): Remove.
3438 (filename_seen_cache::seen): Update.
3439 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3441 <~filename_seen_cache>: Remove.
3444 2020-09-17 Tom Tromey <tom@tromey.com>
3446 * completer.c (completion_tracker::discard_completions)
3447 (completion_tracker::~completion_tracker)
3448 (completion_tracker::maybe_add_completion)
3449 (completion_tracker::remove_completion)
3450 (completion_tracker::recompute_lowest_common_denominator)
3451 (completion_tracker::build_completion_result): Update.
3452 * completer.h (class completion_tracker) <have_completions>:
3454 <m_entries_hash>: Now htab_up.
3456 2020-09-17 Tom Tromey <tom@tromey.com>
3458 * breakpoint.c (ambiguous_names_p): Use htab_up.
3460 2020-09-17 Tom Tromey <tom@tromey.com>
3462 * auto-load.c (struct auto_load_pspace_info)
3463 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3464 <loaded_script_files, loaded_script_texts>: Change type to
3466 (~auto_load_pspace_info) Remove.
3467 (init_loaded_scripts_info, maybe_add_script_file)
3468 (maybe_add_script_text, auto_load_info_scripts): Update.
3470 2020-09-17 Tom Tromey <tromey@adacore.com>
3472 * c-exp.y (name_obstack): Now static.
3474 2020-09-17 Chungyi Chi <demonic@csie.io>
3476 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3478 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3480 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3481 (add_solib_catchpoint): Likewise.
3482 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3484 (add_solib_catchpoint): Change int parameter/variable to bool.
3485 (catch_load_or_unload): Likewise.
3486 (init_catchpoint): Likewise.
3487 (create_fork_vfork_event_catchpoint): Likewise.
3488 (catch_fork_command_1): Likewise.
3489 (catch_exec_command_1): Likewise.
3491 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3493 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3494 Change instance_flags to m_instance_flags.
3496 2020-09-16 Tom Tromey <tromey@adacore.com>
3499 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3501 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3503 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3505 (fbsd_nat_target::insert_exec_catchpoint)
3506 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3507 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3508 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3510 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3512 * configure.ac: Remove check for kinfo_getvmmap().
3513 * configure, config.in: Regenerate.
3514 * fbsd-nat.c (fbsd_read_mapping): Remove
3515 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3516 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3517 kinfo_get_vmmap() are always present.
3519 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3521 * fbsd-nat.c: Always include support for
3522 TARGET_OBJECT_SIGNAL_INFO.
3524 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3526 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3527 sysctl and remove procfs fallback.
3529 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3531 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3532 * fbsd-nat.h: Likewise.
3534 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3536 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3539 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3541 * ada-lang.c (ada_language_data): Delete.
3542 (ada_language): Remove references to ada_language_data.
3543 * c-lang.c (c_language_data): Delete.
3544 (c_language): Remove references to c_language_data.
3545 (cplus_language_data): Delete.
3546 (cplus_language): Remove references to cplus_language_data.
3547 (asm_language_data): Delete.
3548 (asm_language): Remove references to asm_language_data.
3549 (minimal_language_data): Delete.
3550 (minimal_language): Remove references to minimal_language_data.
3551 * d-lang.c (d_language_data): Delete.
3552 (d_language): Remove references to d_language_data.
3553 * f-lang.c (f_language_data): Delete.
3554 (f_language): Remove references to f_language_data.
3555 * go-lang.c (go_language_data): Delete.
3556 (go_language): Remove references to go_language_data.
3557 * language.c (unknown_language_data): Delete.
3558 (unknown_language): Remove references to unknown_language_data.
3559 (auto_language_data): Delete.
3560 (auto_language): Remove references to auto_language_data.
3561 * language.h (language_data): Delete struct.
3562 (language_defn): No longer inherit from language_data.
3563 * m2-lang.c (m2_language_data): Delete.
3564 (m2_language): Remove references to m2_language_data.
3565 * objc-lang.c (objc_language_data): Delete.
3566 (objc_language): Remove references to objc_language_data.
3567 * opencl-lang.c (opencl_language_data): Delete.
3568 (opencl_language): Remove references to opencl_language_data.
3569 * p-lang.c (pascal_language_data): Delete.
3570 (pascal_language): Remove references to pascal_language_data.
3571 * rust-lang.c (rust_language_data): Delete.
3572 (rust_language): Remove references to rust_language_data.
3574 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3576 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3578 (ada_language::opcode_print_table): New member function.
3579 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3580 (c_language::opcode_print_table): New member function.
3581 (cplus_language_data): Remove la_op_print_tab initializer.
3582 (cplus_language::opcode_print_table): New member function.
3583 (asm_language_data): Remove la_op_print_tab initializer.
3584 (asm_language::opcode_print_table): New member function.
3585 (minimal_language_data): Remove la_op_print_tab initializer.
3586 (minimal_language::opcode_print_table): New member function.
3587 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3588 (d_language::opcode_print_table): New member function.
3589 * expprint.c (print_subexp_standard): Update call to
3591 (op_string): Likewise.
3592 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3593 (f_language::opcode_print_table): New member function.
3594 * go-lang.c (go_language_data): Remove la_op_print_tab
3596 (go_language::opcode_print_table): New member function.
3597 * language.c (unknown_language_data): Remove la_op_print_tab
3599 (unknown_language::opcode_print_table): New member function.
3600 (auto_language_data): Remove la_op_print_tab initializer.
3601 (auto_language::opcode_print_table): New member function.
3602 * language.h (language_data): Remove la_op_print_tab field.
3603 (language_defn::opcode_print_table): Declare new member function.
3604 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3606 (m2_language::opcode_print_table): New member function.
3607 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3609 (objc_language::opcode_print_table): New member function.
3610 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3612 (opencl_language::opcode_print_table): New member function.
3613 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3615 (pascal_language::opcode_print_table): New member function.
3616 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3618 (rust_language::opcode_print_table): New member function.
3620 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3622 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3623 (ada_language::expression_ops): New member function.
3624 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3625 (c_language::expression_ops): New member function.
3626 (cplus_language_data): Remove la_exp_desc initializer.
3627 (cplus_language::expression_ops): New member function.
3628 (asm_language_data): Remove la_exp_desc initializer.
3629 (asm_language::expression_ops): New member function.
3630 (minimal_language_data): Remove la_exp_desc initializer.
3631 (minimal_language::expression_ops): New member function.
3632 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3633 (d_language::expression_ops): New member function.
3634 * eval.c (evaluate_subexp): Update call to expression_ops.
3635 * expprint.c (print_subexp): Likewise.
3636 (op_name): Likewise.
3637 (dump_subexp_body): Likewise.
3638 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3639 (f_language::expression_ops): New member function.
3640 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3641 (go_language::expression_ops): New member function.
3642 * language.c (language_defn::expression_ops): New function.
3643 (unknown_language_data): Remove la_exp_desc initializer.
3644 (auto_language_data): Likewise.
3645 * language.h (language_data): Remove la_exp_desc field.
3646 (language_defn::expression_ops): Declare new member function.
3647 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3648 (m2_language::expression_ops): New member function.
3649 * objc-lang.c (objc_language_data): Remove la_exp_desc
3651 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3653 (opencl_language::expression_ops): New member function.
3654 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3655 * parse.c (operator_length): Update call to expression_ops.
3656 (exp_iterate): Likewise.
3657 * rust-lang.c (rust_language_data): Remove la_exp_desc
3659 (ruse_language::expression_ops): New member function.
3661 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3663 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3665 (ada_language::varobj_ops): New member function.
3666 * c-lang.c (c_language_data): Remove la_varobj_ops
3668 (cplus_language_data): Likewise.
3669 (cplus_language::varobj_ops): New member function.
3670 (asm_language_data): Remove la_varobj_ops initializer.
3671 (minimal_language_data): Likewise.
3672 * d-lang.c (d_language_data): Likewise.
3673 * f-lang.c (f_language_data): Likewise.
3674 * go-lang.c (go_language_data): Likewise.
3675 * language.c (language_defn::varobj_ops): New function.
3676 (unknown_language_data): Remove la_varobj_ops
3678 (auto_language_data): Likewise.
3679 * language.h (language_data): Remove la_varobj_ops field.
3680 (language_defn::varobj_ops): Declare new member function.
3681 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3682 * objc-lang.c (objc_language_data): Likewise.
3683 * opencl-lang.c (opencl_language_data): Likewise.
3684 * p-lang.c (pascal_language_data): Likewise.
3685 * rust-lang.c (rust_language_data): Likewise.
3686 * varobj.c (varobj_create): Update call to varobj_ops.
3687 * varobj.h (default_varobj_ops): Delete define.
3689 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3691 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3693 * c-lang.c (c_language_data): Likewise.
3694 (c_language::macro_expansion): New member function.
3695 (cplus_language_data): Likewise.
3696 (cplus_language::macro_expansion): New member function.
3697 (asm_language_data): Likewise.
3698 (asm_language::macro_expansion): New member function.
3699 (minimal_language_data): Likewise.
3700 (minimal_language::macro_expansion): New member function.
3701 * d-lang.c (d_language_data): Remove la_macro_expansion
3703 * f-lang.c (f_language_data): Likewise.
3704 * go-lang.c (go_language_data): Likewise.
3705 * language.c (unknown_language_data): Likewise.
3706 (auto_language_data): Likewise.
3707 * language.h (language_data): Remove la_macro_expansion field.
3708 (language_defn::macro_expansion): New member function.
3709 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3711 * objc-lang.c (objc_language_data): Likewise.
3712 (objc_language::macro_expansion): New member function.
3713 * opencl-lang.c (opencl_language_data): Likewise.
3714 (opencl_language::macro_expansion): New member function.
3715 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3717 * rust-lang.c (rust_language_data): Likewise.
3718 * symtab.c (default_collect_symbol_completion_matches_break_on):
3719 Update call to macro_expansion.
3721 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3723 * ada-lang.c (ada_language_data): Remove la_array_ordering
3725 * c-lang.c (c_language_data): Likewise.
3726 (cplus_language_data): Likewise.
3727 (asm_language_data): Likewise.
3728 (minimal_language_data): Likewise.
3729 * d-lang.c (d_language_data): Likewise.
3730 * dwarf2/read.c (read_array_order): Update for call to
3732 * f-lang.c (f_language_data): Remove la_array_ordering
3734 (f_language::array_ordering): New member function.
3735 * go-lang.c (go_language_data): Remove la_array_ordering
3737 * language.c (unknown_language_data): Likewise.
3738 (auto_language_data): Likewise.
3739 * language.h (language_data): Delete la_array_ordering field.
3740 (language_defn::array_ordering): New member function.
3741 * m2-lang.c (m2_language_data): Remove la_array_ordering
3743 * objc-lang.c (objc_language_data): Likewise.
3744 * opencl-lang.c (opencl_language_data): Likewise.
3745 * p-lang.c (pascal_language_data): Likewise.
3746 * rust-lang.c (rust_language_data): Likewise.
3748 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3750 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3752 * c-lang.c (c_language_data): Likewise.
3753 (cplus_language_data): Likewise.
3754 (asm_language_data): Likewise.
3755 (minimal_language_data): Likewise.
3756 * d-lang.c (d_language_data): Likewise.
3757 * f-lang.c (f_language_data): Likewise.
3758 (f_language::case_sensitivity): New member function.
3759 * go-lang.c (go_language_data): Remove la_case_sensitivity
3761 * language.c (enum case_mode): Moved here from language.h.
3762 (case_mode): Make static.
3763 (show_case_command): Update for case_sensitivity being a method.
3764 (set_case_command): Likewise.
3765 (set_range_case): Likewise.
3766 (unknown_language_data): Remove la_case_sensitivity initializer.
3767 (auto_language_data): Likewise.
3768 * language.h (case_mode): Delete, move enum declaration to
3770 (language_data): Delete la_case_sensitivity field.
3771 (language_defn::case_sensitivity): New member function.
3772 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3774 * objc-lang.c (objc_language_data): Likewise.
3775 * opencl-lang.c (opencl_language_data): Likewise.
3776 * p-lang.c (pascal_language_data): Likewise.
3777 * rust-lang.c (rust_language_data): Likewise.
3779 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3781 * ada-lang.c (ada_language_data): Remove la_range_check
3783 * c-lang.c (c_language_data): Likewise.
3784 (cplus_language_data): Likewise.
3785 (asm_language_data): Likewise.
3786 (minimal_language_data): Likewise.
3787 * d-lang.c (d_language_data): Likewise.
3788 * f-lang.c (f_language_data): Likewise.
3789 (f_language::range_checking_on_by_default): New member function.
3790 * go-lang.c (go_language_data): Remove la_range_check initializer.
3791 * language.c (enum range_mode): Moved here from language.h.
3792 (range_mode): Made static.
3793 (show_range_command): Update to use
3794 range_checking_on_by_default.
3795 (set_range_command): Likewise.
3796 (set_range_case): Likewise.
3797 (unknown_language_data): Remove la_range_check initializer.
3798 (auto_language_data): Likewise.
3799 * language.h (range_mode): Delete. Enum definition moved to
3801 (language_data): Remove la_range_check field.
3802 (language_defn::range_checking_on_by_default): New member
3804 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3805 (m2_language::range_checking_on_by_default): New member function.
3806 * objc-lang.c (objc_language_data): Remove la_range_check
3808 * opencl-lang.c (opencl_language_data): Likewise.
3809 * p-lang.c (pascal_language_data): Likewise.
3810 (pascal_language::range_checking_on_by_default): New member
3812 * rust-lang.c (rust_language_data): Remove la_range_check
3814 (rust_language::range_checking_on_by_default): New member
3817 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3819 * dwarf2/read.c (dwarf2_physname): Remove special case for
3821 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3824 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3826 * ada-lang.c (ada_language_data): Remove
3827 la_store_sym_names_in_linkage_form_p initializer.
3828 (ada_language::store_sym_names_in_linkage_form_p): New member
3830 * c-lang.c (c_language_data): Remove
3831 la_store_sym_names_in_linkage_form_p initializer.
3832 (c_language::store_sym_names_in_linkage_form_p): New member
3834 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3836 (asm_language_data): Likewise.
3837 (asm_language::store_sym_names_in_linkage_form_p): New member
3839 (minimal_language_data): Remove
3840 la_store_sym_names_in_linkage_form_p initializer.
3841 (minimal_language::store_sym_names_in_linkage_form_p): New member
3843 * d-lang.c (d_language_data): Remove
3844 la_store_sym_names_in_linkage_form_p initializer.
3845 * dwarf2/read.c (dwarf2_physname): Update call to
3846 store_sym_names_in_linkage_form_p.
3847 * f-lang.c (f_language_data): Remove
3848 la_store_sym_names_in_linkage_form_p initializer.
3849 * go-lang.c (go_language_data): Remove
3850 la_store_sym_names_in_linkage_form_p initializer.
3851 * language.c (unknown_language_data): Remove
3852 la_store_sym_names_in_linkage_form_p initializer.
3853 (unknown_language::store_sym_names_in_linkage_form_p): New member
3855 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3857 (auto_language::store_sym_names_in_linkage_form_p): New member
3859 * language.h (language_data): Remove
3860 la_store_sym_names_in_linkage_form_p member variable.
3861 (language_defn::store_sym_names_in_linkage_form_p): New member
3863 * m2-lang.c (m2_language_data): Remove
3864 la_store_sym_names_in_linkage_form_p initializer.
3865 * objc-lang.c (objc_language_data): Likewise.
3866 * opencl-lang.c (opencl_language_data): Likewise.
3867 * p-lang.c (pascal_language_data): Likewise.
3868 * rust-lang.c (rust_language_data): Likewise.
3870 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3872 * ada-lang.c (ada_language_data): Remove string_lower_bound
3874 * c-lang.c (c_language_data): Likewise.
3875 (cplus_language_data): Likewise.
3876 (asm_language_data): Likewise.
3877 (minimal_language_data): Likewise.
3878 * d-lang.c (d_language_data): Likewise.
3879 * f-lang.c (f_language_data): Likewise.
3880 * go-lang.c (go_language_data): Likewise.
3881 * language.c (unknown_language_data): Likewise.
3882 (auto_language_data): Likewise.
3883 * language.h (language_data): Remove string_lower_bound field.
3884 (language_defn::string_lower_bound): New member function.
3885 * m2-lang.c (m2_language_data): Remove string_lower_bound
3887 (m2_language::string_lower_bound): New member function.
3888 * objc-lang.c (objc_language_data): Remove string_lower_bound
3890 * opencl-lang.c (opencl_language_data): Likewise.
3891 * p-lang.c (pascal_language_data): Likewise.
3892 * rust-lang.c (rust_language_data): Likewise.
3893 * valops.c (value_cstring): Update call to string_lower_bound.
3894 (value_string): Likewise.
3895 * value.c (allocate_repeated_value): Likewise.
3897 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3899 * valops.c (value_repeat): Fix incorrect argument name in comment.
3901 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3903 * ada-lang.c (ada_language_data): Remove c_style_arrays
3905 (ada_language::c_style_arrays_p): New member fuction.
3906 * c-lang.c (c_language_data): Remove c_style_arrays
3908 (cplus_language_data): Likewise.
3909 (asm_language_data): Likewise.
3910 (minimal_language_data): Likewise.
3911 * d-lang.c (d_language_data): Likewise.
3912 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3913 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3914 (f_language::c_style_arrays_p): New member function.
3915 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3916 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3917 * language.c (unknown_language_data): Remove c_style_arrays
3919 (auto_language_data): Likewise.
3920 * language.h (language_data): Remove c_style_arrays field.
3921 (language_defn::c_style_arrays_p): New member function.
3922 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3923 (m2_language::c_style_arrays_p): New member function.
3924 * objc-lang.c (objc_language_data): Remove c_style_arrays
3926 * opencl-lang.c (opencl_language_data): Likewise.
3927 * p-lang.c (pascal_language_data): Likewise.
3928 * rust-lang.c (rust_language_data): Likewise.
3929 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3930 and update local variable to a bool.
3931 * valops.c (value_cast): Update call to c_style_arrays_p.
3932 (value_array): Likewise.
3933 * value.c (coerce_array): Likewise.
3935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3937 * ada-lang.c (ada_language_data): Remove la_language initializer.
3938 * c-lang.c (c_language_data): Likewise.
3939 (cplus_language_data): Likewise.
3940 (asm_language_data): Likewise.
3941 (minimal_language_data): Likewise.
3942 * d-lang.c (d_language_data): Likewise.
3943 * f-lang.c (f_language_data): Likewise.
3944 * go-lang.c (go_language_data): Likewise.
3945 * language.c (unknown_language_data): Likewise.
3946 (auto_language_data): Likewise.
3947 * language.h (language_data): Remove la_language field.
3948 (language_defn::language_defn): Initialise la_language field.
3949 (language_defn::la_language): New member variable.
3950 * m2-lang.c (m2_language_data): Remove la_language field.
3951 * objc-lang.c (objc_language_data): Likewise.
3952 * opencl-lang.c (opencl_language_data): Likewise.
3953 * p-lang.c (pascal_language_data): Likewise.
3954 * rust-lang.c (rust_language_data): Likewise.
3956 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3958 * ada-lang.c (ada_extensions): Delete, moved into
3959 ada_language::filename_extensions.
3960 (ada_language_data): Remove la_filename_extensions initializer.
3961 (ada_language::filename_extensions): New member function.
3962 * c-lang.c (c_extensions): Delete, moved into
3963 c_language::filename_extensions.
3964 (c_language_data): Remove la_filename_extensions initializer.
3965 (c_language::filename_extensions): New member function.
3966 (cplus_extensions): Delete, moved into
3967 cplus_language::filename_extensions.
3968 (cplus_language_data): Remove la_filename_extensions initializer.
3969 (cplus_language::filename_extensions): New member function.
3970 (asm_extensions): Delete, moved into
3971 asm_language::filename_extensions.
3972 (asm_language_data): Remove la_filename_extensions initializer.
3973 (asm_language::filename_extensions): New member function.
3974 (minimal_language_data): Remove la_filename_extensions
3976 * d-lang.c (d_extensions): Delete, moved into
3977 d_language::filename_extensions.
3978 (d_language_data): Remove la_filename_extensions initializer.
3979 (d_language::filename_extensions): New member function.
3980 * f-lang.c (f_extensions): Delete, moved into
3981 f_language::filename_extensions.
3982 (f_language_data): Remove la_filename_extensions initializer.
3983 (f_language::filename_extensions): New member function.
3984 * go-lang.c (go_language_data): Remove la_filename_extensions
3986 * language.c (add_set_language_command): Update now that
3987 filename_extensions returns a vector.
3988 (unknown_language_data): Remove la_filename_extensions
3990 (auto_language_data): Likewise.
3991 * language.h (language_data): Remove la_filename_extensions field.
3992 (language_defn::filename_extensions): New member function.
3993 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3995 * objc-lang.c (objc_extensions): Delete, moved into
3996 objc_language::filename_extensions.
3997 (objc_language_data): Remove la_filename_extensions initializer.
3998 (objc_language::filename_extensions): New member function.
3999 * opencl-lang.c (opencl_language_data): Remove
4000 la_filename_extensions initializer.
4001 * p-lang.c (pascal_extensions): Delete, moved into
4002 pascal_language::filename_extensions.
4003 (pascal_language_data): Remove la_filename_extensions initializer.
4004 (pascal_language::filename_extensions): New member function.
4005 * rust-lang.c (rust_extensions): Delete, moved into
4006 rust_language::filename_extensions.
4007 (rust_language_data): Remove la_filename_extensions initializer.
4008 (rust_language::filename_extensions): New member function.
4009 * symfile.c (add_filename_language): Add new assert.
4011 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4013 * ada-lang.c (ada_language_data): Remove la_name and
4014 la_natural_name initializers.
4015 (ada_language::name): New member function.
4016 (ada_language::natural_name): New member function.
4017 * c-lang.c (c_language_data): Remove la_name and
4018 la_natural_name initializers.
4019 (c_language::name): New member function.
4020 (c_language::natural_name): New member function.
4021 (cplus_language_data): Remove la_name and
4022 la_natural_name initializers.
4023 (cplus_language::name): New member function.
4024 (cplus_language::natural_name): New member function.
4025 (asm_language_data): Remove la_name and
4026 la_natural_name initializers.
4027 (asm_language::name): New member function.
4028 (asm_language::natural_name): New member function.
4029 (minimal_language_data): Remove la_name and
4030 la_natural_name initializers.
4031 (minimal_language::name): New member function.
4032 (minimal_language::natural_name): New member function.
4033 * compile/compile.c (compile_to_object): Update call to
4034 lanugage_defn::name.
4035 * d-lang.c (d_language_data): Remove la_name and
4036 la_natural_name initializers.
4037 (d_language::name): New member function.
4038 (d_language::natural_name): New member function.
4039 * expprint.c (print_subexp_standard): Update call to
4040 language_defn::name.
4041 (dump_raw_expression): Likewise
4042 (dump_prefix_expression): Likewise.
4043 * f-lang.c (f_language_data): Remove la_name and
4044 la_natural_name initializers.
4045 (f_language::name): New member function.
4046 (f_language::natural_name): New member function.
4047 * go-lang.c (go_language_data): Remove la_name and
4048 la_natural_name initializers.
4049 (go_language::name): New member function.
4050 (go_language::natural_name): New member function.
4051 * language.c (show_language_command): Update call to
4052 language_defn::name.
4053 (set_language_command): Likewise.
4054 (language_enum): Likewise.
4055 (language_str): Likewise.
4056 (add_set_language_command): Likewise, use
4057 language_defn::natural_name in the doc string.
4058 (unknown_language_data): Remove la_name and
4059 la_natural_name initializers.
4060 (unknown_language::name): New member function.
4061 (unknown_language::natural_name): New member function.
4062 (auto_language_data): Remove la_name and
4063 la_natural_name initializers.
4064 (auto_language::name): New member function.
4065 (auto_language::natural_name): New member function.
4066 (language_lookup_primitive_type_as_symbol): Update call to
4067 language_defn::name.
4068 * language.h (language_data): Remove la_name and la_natural_name
4070 (language_defn::name): New member function.
4071 (language_defn::natural_name): New member function.
4072 * m2-lang.c (m2_language_data): Remove la_name and
4073 la_natural_name initializers.
4074 (m2_language::name): New member function.
4075 (m2_language::natural_name): New member function.
4076 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4077 language_defn::natural_name.
4078 * objc-lang.c (objc_language_data): Remove la_name and
4079 la_natural_name initializers.
4080 (objc_language::name): New member function.
4081 (objc_language::natural_name): New member function.
4082 * opencl-lang.c (opencl_language_data): Remove la_name and
4083 la_natural_name initializers.
4084 (opencl_language::name): New member function.
4085 (opencl_language::natural_name): New member function.
4086 * p-lang.c (pascal_language_data): Remove la_name and
4087 la_natural_name initializers.
4088 (pascal_language::name): New member function.
4089 (pascal_language::natural_name): New member function.
4090 * rust-lang.c (rust_language_data): Remove la_name and
4091 la_natural_name initializers.
4092 (rust_language::name): New member function.
4093 (rust_language::natural_name): New member function.
4094 * symtab.c (lookup_language_this): Update call to
4095 language_defn::name.
4097 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4099 * ada-lang.c (ada_language_data): Remove la_name_of_this
4101 * ax-gdb.c (gen_expr): Update call to name_of_this.
4102 * c-exp.y (classify_name): Likewise.
4103 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4104 (cplus_language_data): Likewise.
4105 (cplus_language::name_of_this): New member function.
4106 (asm_language_data): Remove la_name_of_this initializer.
4107 (minimal_language_data): Likewise.
4108 * d-lang.c (d_language_data): Likewise.
4109 (d_language::name_of_this): New member function.
4110 * expprint.c (print_subexp_standard): Update call to name_of_this.
4111 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4112 * go-lang.c (go_language_data): Likewise.
4113 * language.c (unknown_language_data): Likewise.
4114 (unknown_language::name_of_this): New member function.
4115 (auto_language_data): Remove la_name_of_this initializer.
4116 (auto_language::name_of_this): New member function.
4117 * language.h (language_data): Delete la_name_of_this member
4119 (language_defn::name_of_this): New member function.
4120 * m2-lang.c (m2_language_data): Remove la_name_of_this
4122 * objc-lang.c (objc_language_data): Likewise.
4123 (objc_language::name_of_this): New member function.
4124 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4126 * p-lang.c (pascal_language_data): Likewise.
4127 (pascal_language::name_of_this): New member function.
4128 * rust-lang.c (rust_language_data): Remove la_name_of_this
4130 * symtab.c (lookup_language_this): Update call to name_of_this.
4131 (lookup_symbol_aux): Likewise.
4132 * valops.c (value_of_this): Likewise.
4134 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4136 * ada-lang.c (ada_language_data): Remove
4137 la_struct_too_deep_ellipsis initializer.
4138 (ada_language::struct_too_deep_ellipsis): New member function.
4139 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4141 (cplus_language_data): Likewise.
4142 (asm_language_data): Likewise.
4143 (minimal_language_data): Likewise.
4144 * cp-valprint.c (cp_print_value): Update call to
4145 struct_too_deep_ellipsis.
4146 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4148 * f-lang.c (f_language_data): Likewise.
4149 (f_language::struct_too_deep_ellipsis): New member function.
4150 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4152 * language.c (unknown_language_data): Likewise.
4153 (auto_language_data): Likewise.
4154 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4156 (language_defn::struct_too_deep_ellipsis): New member function.
4157 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4159 * objc-lang.c (objc_language_data): Likewise.
4160 * opencl-lang.c (opencl_language_data): Likewise.
4161 * p-lang.c (pascal_language_data): Likewise.
4162 * rust-lang.c (rust_language_data): Likewise.
4163 * valprint.c (val_print_check_max_depth): Update call to
4164 struct_too_deep_ellipsis.
4166 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4168 * MAINTAINERS (Write After Approval): Add myself.
4170 2020-09-15 Tom Tromey <tom@tromey.com>
4172 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4175 2020-09-15 Tom Tromey <tom@tromey.com>
4177 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4178 and TYPE_CODE_METHODPTR cases.
4179 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4180 (c_value_print_inner): Update.
4181 * valprint.c (generic_value_print_memberptr): New function, from
4182 c_value_print_memberptr.
4183 (generic_value_print): Use it. Call cplus_print_method_ptr.
4185 2020-09-15 Tom Tromey <tromey@adacore.com>
4187 * python/python-internal.h (PyInt_FromLong): Remove define.
4188 * python/py-value.c (convert_value_from_python): Use
4189 gdb_py_object_from_longest.
4190 * python/py-type.c (typy_get_code): Use
4191 gdb_py_object_from_longest.
4192 * python/py-symtab.c (salpy_get_line): Use
4193 gdb_py_object_from_longest.
4194 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4195 gdb_py_object_from_longest.
4196 * python/py-record.c (recpy_gap_reason_code): Use
4197 gdb_py_object_from_longest.
4198 * python/py-record-btrace.c (recpy_bt_insn_size)
4199 (recpy_bt_func_level, btpy_list_count): Use
4200 gdb_py_object_from_longest.
4201 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4202 gdb_py_object_from_longest. Fix error handling.
4203 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4204 gdb_py_object_from_longest.
4205 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4206 gdb_py_object_from_longest.
4207 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4208 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4209 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4211 2020-09-15 Tom Tromey <tromey@adacore.com>
4213 * python/python.c (gdbpy_parameter_value): Use
4214 gdb_py_object_from_ulongest.
4216 2020-09-15 Tom Tromey <tromey@adacore.com>
4218 * python/py-infevents.c (create_register_changed_event_object):
4219 Use gdb_py_object_from_longest.
4220 * python/py-exitedevent.c (create_exited_event_object): Use
4221 gdb_py_object_from_longest.
4223 2020-09-15 Tom Tromey <tromey@adacore.com>
4225 * python/python.c (gdbpy_parameter_value): Use
4226 gdb_py_object_from_longest.
4227 * python/py-type.c (convert_field, typy_range): Use
4228 gdb_py_object_from_longest.
4229 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4230 gdb_py_object_from_longest.
4231 * python/py-lazy-string.c (stpy_get_length): Use
4232 gdb_py_object_from_longest.
4233 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4234 gdb_py_object_from_longest.
4235 * python/py-infevents.c (create_memory_changed_event_object): Use
4236 gdb_py_object_from_longest.
4237 * python/py-inferior.c (infpy_get_num): Use
4238 gdb_py_object_from_longest.
4239 (infpy_get_pid): Likewise.
4241 2020-09-15 Tom Tromey <tromey@adacore.com>
4243 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4245 * python/py-value.c (valpy_long): Use
4246 gdb_py_object_from_ulongest.
4247 * python/py-symtab.c (salpy_get_pc): Use
4248 gdb_py_object_from_ulongest.
4249 (salpy_get_last): Likewise.
4250 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4251 gdb_py_object_from_ulongest.
4252 * python/py-lazy-string.c (stpy_get_address): Use
4253 gdb_py_object_from_ulongest.
4254 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4255 * python/py-arch.c (archpy_disassemble): Use
4256 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4259 2020-09-15 Tom Tromey <tromey@adacore.com>
4261 * python/python-internal.h (gdb_py_long_from_longest): Remove
4263 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4264 * python/py-type.c (convert_field, typy_get_sizeof): Use
4265 gdb_py_object_from_longest.
4266 * python/py-record-btrace.c (btpy_list_index): Use
4267 gdb_py_object_from_longest.
4269 2020-09-15 Tom Tromey <tromey@adacore.com>
4271 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4272 * python/py-record.c (recpy_element_number): Use
4273 gdb_py_object_from_longest.
4274 (recpy_gap_number): Likewise.
4276 2020-09-15 Tom Tromey <tromey@adacore.com>
4278 * top.c (ui::ui): Update.
4279 (highest_ui_num): Remove.
4280 * top.h (struct ui) <num>: Remove.
4282 2020-09-15 Tom Tromey <tromey@adacore.com>
4284 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4285 * ui-style.c (ansi_regex_text): Now array.
4286 * rust-exp.y (number_regex_text): Now array.
4287 * linespec.c (linespec_quote_characters): Now array.
4288 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4291 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4293 * debuginfod-support.c (debuginfod_client_deleter): New.
4294 (debuginfod_client_up): New.
4295 (debuginfod_init): Return debuginfod_client_up.
4296 (debuginfod_source_query): Adjust.
4297 (debuginfod_debuginfo_query): Adjust.
4299 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4301 * debuginfod-support.c (debuginfod_source_query): Use
4302 make_unique_xstrdup.
4304 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4306 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4307 with `type::instance_flags`.
4309 2020-09-14 Michael Mullin <masmullin@gmail.com>
4311 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4312 Remove baton parameter.
4314 2020-09-14 Pedro Alves <pedro@palves.net>
4316 * Makefile.in (SELFTESTS_SRCS): Add
4317 unittests/enum-flags-selftests.c.
4318 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4319 btrace_function_flags instead of enum btrace_function_flag.
4320 * compile/compile-c-types.c (convert_qualified): Use
4322 * compile/compile-cplus-symbols.c (convert_one_symbol)
4323 (convert_symbol_bmsym):
4324 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4325 (compile_cplus_convert_struct_or_union_methods)
4326 (compile_cplus_instance::convert_qualified_base):
4327 * go-exp.y (parse_string_or_char): Add cast to int.
4328 * unittests/enum-flags-selftests.c: New file.
4329 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4330 type to btrace_thread_flags from btrace_thread_flag.
4331 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4332 local's type to btrace_thread_flags from btrace_thread_flag. Add
4335 2020-09-14 Pedro Alves <pedro@palves.net>
4337 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4338 * gdbtypes.c (address_space_name_to_int): Rename to ...
4339 (address_space_name_to_type_instance_flags): ... this.
4340 (address_space_int_to_name): Rename to ...
4341 (address_space_type_instance_flags_to_name): ... this.
4342 * gdbtypes.h (address_space_name_to_int): Rename to ...
4343 (address_space_name_to_type_instance_flags): ... this.
4344 (address_space_int_to_name): Rename to ...
4345 (address_space_type_instance_flags_to_name): ... this.
4346 * type-stack.c (type_stack::insert): Adjust to rename.
4347 * type-stack.h (type_stack::insert): Likewise.
4349 2020-09-14 Pedro Alves <pedro@palves.net>
4350 Andrew Burgess <andrew.burgess@embecosm.com>
4352 * avr-tdep.c (avr_address_class_type_flags): Return
4353 type_instance_flags.
4354 (avr_address_class_type_flags_to_name): Take a
4355 type_instance_flags.
4356 (avr_address_class_name_to_type_flags): Return bool and take a
4357 type_instance_flags.
4358 * d-lang.c (build_d_types): Use type::set_instance_flags.
4359 * ft32-tdep.c (ft32_address_class_type_flags): Return
4360 type_instance_flags.
4361 (ft32_address_class_type_flags_to_name): Take a
4362 type_instance_flags.
4363 (ft32_address_class_name_to_type_flags): Return bool and take a
4364 type_instance_flags.
4365 (ft32_gdbarch_init): Use type::set_instance_flags.
4366 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4367 * gdbarch.h, gdbarch.c: Regenerate.
4368 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4369 (address_class_name_to_type_flags): Use type_instance_flags and
4371 * gdbtypes.c (address_space_name_to_int)
4372 (address_space_int_to_name, make_qualified_type): Use
4373 type_instance_flags.
4374 (make_qualified_type): Use type_instance_flags and
4375 type::set_instance_flags.
4376 (make_type_with_address_space, make_cv_type, make_vector_type)
4377 (check_typedef): Use type_instance_flags.
4378 (recursive_dump_type): Cast type_instance_flags to unsigned for
4380 (copy_type_recursive): Use type::set_instance_flags.
4381 (gdbtypes_post_init): Use type::set_instance_flags.
4382 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4383 <m_instance_flags>: ... this.
4384 <instance_flags, set_instance_flags>: New methods.
4385 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4386 (SET_TYPE_INSTANCE_FLAGS): New.
4387 (address_space_name_to_int, address_space_int_to_name)
4388 (make_type_with_address_space): Pass flags using
4389 type_instance_flags instead of int.
4390 * stabsread.c (cleanup_undefined_types_noname): Use
4391 type::set_instance_flags.
4392 * s390-tdep.c (s390_address_class_type_flags): Return
4393 type_instance_flags.
4394 (s390_address_class_type_flags_to_name): Take a
4395 type_instance_flags.
4396 (s390_address_class_name_to_type_flags): Return bool and take a
4397 type_instance_flags.
4398 * type-stack.c (type_stack::follow_types): Use
4399 type_instance_flags.
4400 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4402 2020-09-14 Tom Tromey <tromey@adacore.com>
4404 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4405 * x86-tdep.c (x86_is_thunk_register_name)
4406 (x86_in_indirect_branch_thunk): Update.
4407 * sparc64-tdep.c (sparc64_fpu_register_names)
4408 (sparc64_cp0_register_names, sparc64_register_names)
4409 (sparc64_pseudo_register_names): Now const.
4410 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4411 cp0_registers_num>: Now const.
4412 * sparc-tdep.c (sparc_core_register_names)
4413 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4414 (sparc32_pseudo_register_names): Now const.
4415 (validate_tdesc_registers): Update.
4416 * rust-lang.c (rust_extensions): Now const.
4417 * p-lang.c (p_extensions): Now const.
4418 * objc-lang.c (objc_extensions): Now const.
4419 * nto-tdep.c (nto_thread_state_str): Now const.
4420 * moxie-tdep.c (moxie_register_names): Now const.
4421 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4423 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4424 (mips_linux_reg_names): Now const.
4425 (mips_gdbarch_init): Update.
4426 * microblaze-tdep.c (microblaze_register_names): Now const.
4427 * m68k-tdep.c (m68k_register_names): Now const.
4428 * m32r-tdep.c (m32r_register_names): Now const.
4429 * ia64-tdep.c (ia64_register_names): Now const.
4430 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4431 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4432 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4433 ymm_avx512_register_names, pkeys_register_names>: Now const.
4434 * i386-tdep.c (i386_register_names, i386_zmm_names)
4435 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4436 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4437 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4438 * f-lang.c (f_extensions): Now const.
4439 * d-lang.c (d_extensions): Now const.
4440 * csky-tdep.c (csky_register_names): Now const.
4441 * charset.c (default_charset_names, charset_enum): Now const.
4442 (_initialize_charset): Update.
4443 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4445 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4446 (bsd_uthread_solib_loaded): Update.
4447 (bsd_uthread_state): Now const.
4448 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4449 (amd64_ymm_avx512_names, amd64_ymmh_names)
4450 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4451 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4452 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4453 (amd64_dword_names): Now const.
4454 * agent.c (can_use_agent_enum): Now const.
4455 * ada-tasks.c (task_states, long_task_states): Now const.
4456 * ada-lang.c (known_runtime_file_name_patterns)
4457 (known_auxiliary_function_name_patterns, attribute_names)
4458 (standard_exc, ada_extensions): Now const.
4460 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4462 * bcache.h (struct bcache) <bcache>: Remove constructor.
4463 <m_hash_function, m_compare_function>: Remove.
4464 <~bcache>: Make virtual.
4465 <compare>: Remove static method, introduce virtual method.
4466 <default_hash>: Remove.
4467 <hash>: New virtual method.
4468 * bcache.c (bcache::expand_hash_table): Update.
4469 (bcache::insert): Update.
4470 (bcache::hash): New.
4471 (bcache::compare): Update comment and parameter names.
4472 * gdbtypes.c (types_deeply_equal): Update.
4473 * psymtab.h (struct psymbol_bcache): New struct.
4474 (class psymtab_storage) <psymtab_storage>: Make default.
4475 <psymbol_cache>: Change type to psymbol_bcache.
4476 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4477 (psymbol_hash): Change to...
4478 (psymbol_bcache::hash): ... this.
4479 (psymbol_compare): Change to...
4480 (psymbol_bcache::compare): ... this.
4482 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4484 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4485 checking for initial lwp.
4487 2020-09-14 Tom Tromey <tromey@adacore.com>
4489 * m68k-tdep.c (m68k_extract_return_value): Use
4490 pointer_result_regnum.
4491 (m68k_store_return_value): Likewise.
4492 (m68k_reg_struct_return_p): Handle vectors and arrays.
4493 (m68k_return_value): Handle arrays.
4494 (m68k_svr4_return_value): Fix single-element aggregate handling.
4495 Handle long double. Adjust for embedded ABI.
4496 (m68k_svr4_init_abi): Set pointer_result_regnum.
4497 (m68k_embedded_init_abi): New function.
4498 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4499 (m68k_osabi_sniffer): New function.
4500 (_initialize_m68k_tdep): Register osabi sniffer.
4501 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4504 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4506 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4507 with gdb::unique_xmalloc_ptr<char>.
4509 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4511 * xml-support.h (xml_fetch_another): Change type to be a
4513 (xml_process_xincludes): Remove baton parameter.
4514 (xml_fetch_content_from_file): Change baton parameter to
4516 * xml-support.c (struct xinclude_parsing_data)
4517 <xinclude_parsing_data>: Remove baton parameter.
4518 <fetcher_baton>: Remove.
4519 (xinclude_start_include): Adjust.
4520 (xml_process_xincludes): Adjust.
4521 (xml_fetch_content_from_file): Replace baton parameter with
4523 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4524 (xml_init_syscalls_info): Use a lambda.
4525 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4526 (file_read_description_xml): Use a lambda.
4527 (fetch_available_features_from_target): Change baton parameter
4529 (target_read_description_xml): Use a lambda.
4530 (target_fetch_description_xml): Use a lambda.
4531 (string_read_description_xml): Update.
4533 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4535 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4536 uses with type::endianity_is_not_default.
4538 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4540 * gdbtypes.h (struct type) <endianity_is_not_default,
4541 set_endianity_is_not_default>: New methods.
4542 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4543 type::endianity_is_not_default, change all write call sites to
4544 use type::set_endianity_is_not_default.
4546 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4548 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4549 uses with type::is_fixed_instance.
4551 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4553 * gdbtypes.h (struct type) <is_fixed_instance,
4554 set_is_fixed_instance>: New methods.
4555 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4556 write call sites to use type::set_is_fixed_instance.
4558 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4560 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4561 uses with type::is_gnu_ifunc.
4563 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4565 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4566 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4567 use type::set_is_gnu_ifunc.
4569 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4571 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4572 uses with type::stub_is_supported.
4574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4576 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4577 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4578 use type::set_stub_is_supported.
4580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4582 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4583 uses with type::is_vector.
4585 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4587 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4588 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4589 use type::set_is_vector.
4591 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4593 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4594 uses with type::has_varargs.
4596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4598 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4599 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4600 use type::set_has_varargs.
4602 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4604 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4605 uses with type::is_prototyped.
4607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4609 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4611 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4612 call sites to use type::set_is_prototyped.
4614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4616 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4617 uses with type::target_is_stub.
4619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4621 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4623 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4624 sites to use type::set_target_is_stub.
4626 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4628 * gdbtypes.h (TYPE_STUB): Remove, replace all
4629 uses with type::is_stub.
4631 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4633 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4634 (TYPE_STUB): Use type::is_stub, change all write call sites to
4635 use type::set_is_stub.
4637 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4639 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4640 type::has_no_signedness.
4642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4644 * gdbtypes.h (struct type) <has_no_signedness,
4645 set_has_no_signedness>: New methods.
4646 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4647 call sites to use type::set_has_no_signedness.
4649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4651 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4656 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4658 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4659 sites to use type::set_is_unsigned.
4661 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4662 Adam Renquinha <arenquinha@cimeq.qc.ca>
4664 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4665 pointer and stack frame offset when unwinding.
4667 2020-09-13 Pedro Alves <pedro@palves.net>
4669 * NEWS: Document "-break-insert --qualified".
4670 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4672 2020-09-13 Pedro Alves <pedro@palves.net>
4674 * linespec.c (classify_mtype, compare_msyms): Delete.
4675 (search_minsyms_for_name): Remove classification logic. Instead
4676 filter out trampoline symbols if we also found an external
4677 function of the same name.
4679 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4681 * NEWS: Create a new section for the next release branch.
4682 Rename the section of the current branch, now that it has
4685 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4687 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4688 * version.in: Bump version to 11.0.50.DATE-git.
4690 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4692 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4694 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4695 Felix Willgerodt <Felix.Willgerodt@intel.com>
4697 * gdbarch.sh: Added bfloat16 type.
4698 * gdbarch.c: Regenerated.
4699 * gdbarch.h: Regenerated.
4700 * gdbtypes.c (floatformats_bfloat16): New struct.
4701 (gdbtypes_post_init): Add builtin_bfloat16.
4702 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4703 (floatformats_bfloat16): New struct.
4704 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4705 (i386_ymm_type): Add field "v16_bfloat16"
4706 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4707 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4708 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4709 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4710 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4711 * features/i386/64bit-avx512.c: Regenerated.
4712 * features/i386/64bit-sse.xml: Add bfloat16 type.
4713 * features/i386/64bit-sse.c: Regenerated.
4715 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4717 * i386-tdep.c (i386_zmm_type): Fix field names.
4718 (i386_ymm_type): Fix field names.
4720 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4722 * breakpoint.c: Fix typo in the help message of the
4723 "set breakpoint condition-evaluation" command.
4725 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4727 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4728 * (nbsd_nat_target::pid_to_exec_file)
4729 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4730 (nbsd_nat_target::post_startup_inferior)
4731 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4732 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4733 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4734 * (nbsd_thread_lister): Remove.
4736 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4738 * fork-inferior.c (startup_inferior): Avoid double free.
4740 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4742 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4743 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4745 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4747 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4748 * netbsd-nat.c: Include <sys/ptrace.h>.
4749 * (netbsd_nat::enable_proc_events): Add.
4751 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4753 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4754 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4755 (netbsd_nat::for_each_thread): Add.
4756 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4757 "gdbsupport/common-debug.h".
4758 * (netbsd_nat::netbsd_thread_lister)
4759 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4760 (netbsd_nat::for_each_thread): Add.
4762 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4764 * netbsd-nat.h: Include <unistd.h>.
4765 * (netbsd_nat::pid_to_exec_file): Add.
4766 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4767 * (netbsd_nat::pid_to_exec_file) Add.
4769 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4771 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4773 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4775 * netbsd-nat.h: New file.
4776 * netbsd-nat.c: Likewise.
4778 2020-09-09 Tom Tromey <tromey@adacore.com>
4780 * ada-lang.c (remove_extra_symbols): Do not increment when
4783 2020-09-08 Tom Tromey <tromey@adacore.com>
4785 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4787 2020-09-08 Tom Tromey <tromey@adacore.com>
4790 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4791 (gdb_bfd_init_data): New function.
4792 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4794 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4796 * infrun.c (fetch_inferior_event): Use
4797 `switch_to_target_no_thread` to switch the target.
4799 2020-09-06 Tom Tromey <tom@tromey.com>
4801 * symfile.h (dwarf2_free_objfile): Don't declare.
4803 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4805 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4806 to match 16 byte real/complex type generated by Flang compiler.
4808 2020-09-03 Tom de Vries <tdevries@suse.de>
4811 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4812 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4814 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4816 * maint.c (index_digits): New function.
4817 (struct maint_print_section_data): Remove.
4818 (print_bfd_section_info): Remove print_data parameter, add arg
4820 (print_objfile_section_info): Likewise.
4821 (print_bfd_section_info_maybe_relocated): Likewise (plus
4823 (maintenance_info_sections): Adjust calls.
4825 2020-09-02 Tom Tromey <tromey@adacore.com>
4827 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4829 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4831 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4833 * bcache.h (struct bcache) <insert>: Change type of `added` to
4835 * bcache.c (bcache::insert): Likewise.
4836 * gdbtypes.c (check_types_worklist): Adjust.
4837 * psymtab.c (add_psymbol_to_bcache): Adjust.
4839 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4841 * corelow.c (unordered_set): Include.
4842 (class core_target): Add field 'm_core_unavailable_mappings'.
4843 (core_target::build_file_mappings): Print only one warning
4844 per inaccessible file. Add unavailable/broken mappings
4845 to m_core_unavailable_mappings.
4846 (core_target::xfer_partial): Call...
4847 (core_target::xfer_memory_via_mappings): New method.
4849 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4851 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4854 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4856 * dwarf2/read.c (struct field_info): Fix indentation.
4858 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4860 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4861 ordering in comment.
4862 * frame.c (frame_id_eq): Fix indentation.
4864 2020-08-31 Scott Linder <scott@scottlinder.com>
4865 Simon Marchi <simon.marchi@efficios.com>
4867 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4868 inline frame ids in outer frame.
4870 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4872 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4873 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4874 (outer_frame_id): Use FID_STACK_OUTER instead of
4876 (frame_id_p): Don't check for outer_frame_id.
4878 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4880 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4881 regnum/frame in value. Call allocate_value_lazy.
4882 * frame.c (frame_unwind_register_value): Use
4883 val_print_not_saved.
4885 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4887 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4889 2020-08-29 Pedro Alves <pedro@palves.net>
4891 * progspace.c (print_program_space): Use all_inferiors. Switch to
4892 the inferior before calling target_pid_to_str.
4894 2020-08-28 Tom Tromey <tom@tromey.com>
4896 * xcoffread.c (xcoff_end_psymtab): Update comment.
4897 * dbxread.c (dbx_end_psymtab): Update comment.
4899 2020-08-28 Tom de Vries <tdevries@suse.de>
4902 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4904 (create_breakpoint): Same.
4905 (base_breakpoint_decode_location): Same.
4906 (bkpt_create_sals_from_location): Same.
4907 (bkpt_decode_location): Same.
4908 (bkpt_probe_create_sals_from_location): Same.
4909 (bkpt_probe_decode_location): Same.
4910 (tracepoint_create_sals_from_location): Same.
4911 (tracepoint_decode_location): Same.
4912 (tracepoint_probe_decode_location): Same.
4913 (strace_marker_create_sals_from_location): Same.
4914 (strace_marker_decode_location): Same.
4915 (create_sals_from_location_default): Same.
4916 (decode_location_default): Same.
4917 * breakpoint.h (struct breakpoint_ops): Same.
4918 (create_breakpoint): Same.
4919 * linespec.h (decode_line_full): Same.
4920 * linespec.c (decode_line_full): Same. Throw error if
4921 result.size () == 0.
4923 2020-08-27 Pedro Alves <pedro@palves.net>
4926 * breakpoint.c (until_break_fsm) <location_breakpoint,
4927 caller_breakpoint>: Delete fields.
4928 <breakpoints>: New field.
4929 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4930 two individual breakpoints.
4931 (until_break_fsm::should_stop): Loop over breakpoints in the
4933 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4935 (until_break_command): Handle location expanding into multiple
4938 2020-08-27 Pedro Alves <pedro@palves.net>
4941 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4942 bp_until breakpoints user-specified locations. Update intro
4945 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4947 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4948 gdb_bfd_sections): New.
4949 * maint.c (print_bfd_section_info): Change param type to
4950 maint_print_section_data.
4951 (print_objfile_section_info): Likewise.
4952 (print_bfd_section_info_maybe_relocated): Likewise.
4953 (maintenance_info_sections): Use gdb_bfd_sections.
4955 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4957 * MAINTAINERS: Add ARC target and maintainer.
4959 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4961 * configure.tgt: ARC support for GNU/Linux.
4962 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4963 * arc-linux-tdep.c: New file.
4964 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4965 * arc-tdep.c (arc_write_pc): Use it.
4967 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4969 * arc-tdep.c (arc_check_for_hardware_loop): New.
4970 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4972 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4974 * arc-tdep.h: Include "gdbarch.h".
4976 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4979 (arc_gdbarch_features): New class to stir the selection of target XML.
4980 (arc_create_target_description): Use FEATURES to choose XML target.
4981 (arc_lookup_target_description): Use arc_create_target_description
4982 to create _new_ target descriptions or return the already created
4983 ones if the FEATURES is the same.
4984 * arch/arc.c: Implementation of prototypes described above.
4985 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4986 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4987 * arc-tdep.c (*_feature_name): Make feature names consistent.
4988 (arc_register_feature): A new struct to hold information about
4989 registers of a particular target/feature.
4990 (arc_check_tdesc_feature): Check if XML provides registers in
4991 compliance with ARC_REGISTER_FEATURE structs.
4992 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4993 (determine_*_reg_feature_set): Which feature name to look for.
4994 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4995 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4996 to expected ISA enums to be used in arc_gdbarch_features structs.
4997 * features/Makefile (FEATURE_XMLFILES): Add new files.
4998 * gdb/features/arc/v1-aux.c: New file.
4999 * gdb/features/arc/v1-aux.xml: Likewise.
5000 * gdb/features/arc/v1-core.c: Likewise.
5001 * gdb/features/arc/v1-core.xml: Likewise.
5002 * gdb/features/arc/v2-aux.c: Likewise.
5003 * gdb/features/arc/v2-aux.xml: Likewise.
5004 * gdb/features/arc/v2-core.c: Likewise.
5005 * gdb/features/arc/v2-core.xml: Likewise.
5006 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5008 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5009 Andrew Burgess <andrew.burgess@embecosm.com>
5012 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5013 an assert. Remove single element array indexing pattern as the
5014 MULTI_SUBSCRIPT support will handle this case too.
5016 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5018 * value.h (valprint_check_validity): Move declaration from
5020 * valprint.h (valprint_check_validity): ... to here.
5022 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5024 * debug.h: New file.
5025 * debug.c (debug_prefixed_vprintf): New function.
5026 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5027 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5029 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5031 * infrun.h (infrun_debug_printf_1): New function declaration.
5032 (infrun_debug_printf): New macro.
5033 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5035 (infrun_debug_printf): New function.
5036 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5037 (handle_jit_event): Likewise.
5039 2020-08-21 Mark Wielaard <mark@klomp.org>
5041 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5043 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5045 * frame.c (enum class frame_id_status): New.
5046 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5047 (fprintf_frame): Update.
5048 (compute_frame_id): Set frame id status to "computing" on entry.
5049 Set it back to "not_computed" on failure and to "computed" on
5051 (get_frame_id): Assert the frame id is not being computed.
5052 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5053 (create_new_frame): Likewise.
5054 (frame_cleanup_after_sniffer): Update assert.
5056 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5058 * regcache.c (pid_ptid_regcache_map): New type.
5059 (target_ptid_regcache_map): Remove.
5060 (target_pid_ptid_regcache_map): New type.
5061 (regcaches): Change type to target_pid_ptid_regcache_map.
5062 (get_thread_arch_aspace_regcache): Update.
5063 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5065 (regcaches_size): Update.
5066 (regcache_count): Update.
5067 (registers_changed_ptid_target_pid_test): New.
5068 (_initialize_regcache): Register new test.
5070 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5072 * regcache.c (regcache_count): New.
5073 (struct regcache_test_data): New.
5074 (regcache_test_data_up): New.
5075 (populate_regcaches_for_test): New.
5076 (regcaches_test): Remove.
5077 (get_thread_arch_aspace_regcache_test): New.
5078 (registers_changed_ptid_all_test): New.
5079 (registers_changed_ptid_target_test): New.
5080 (registers_changed_ptid_target_ptid_test): New.
5081 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5082 (_initialize_regcache): Register new tests.
5084 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5086 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5087 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5088 gdbarch and aspace parameter. Use current inferior's aspace.
5089 Validate regcache's arch value.
5090 (regcaches_test): Update.
5092 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5094 * regcache.c (regcaches_test): Call registers_changed.
5096 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5098 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5100 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5102 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5103 to find the end of prologue for flang compiled binaries.
5104 * arm-tdep.c (arm_skip_prologue): Likewise.
5105 * i386-tdep.c (i386_skip_prologue): Likewise.
5106 * producer.c (producer_is_llvm): New function.
5107 (producer_parsing_tests): Added new tests for clang/flang.
5108 * producer.h (producer_is_llvm): New declaration.
5110 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5112 * linux-nat.c (linux_nat_debug_printf): New function.
5113 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5115 2020-08-18 Aaron Merey <amerey@redhat.com>
5117 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5118 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5119 (CLIBS): Add DEBUGINFOD_LIBS.
5121 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5123 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5126 2020-08-17 Tom Tromey <tromey@adacore.com>
5128 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5129 ada_get_decoded_value returns NULL.
5131 2020-08-17 Tom Tromey <tromey@adacore.com>
5133 * python/py-inferior.c (infpy_search_memory): Use
5134 gdb_py_object_from_ulongest.
5135 * python/py-infevents.c (create_inferior_call_event_object)
5136 (create_memory_changed_event_object): Use
5137 gdb_py_object_from_ulongest.
5138 * python/py-linetable.c (ltpy_entry_get_pc): Use
5139 gdb_py_object_from_ulongest.
5141 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5143 * loc.c (class symbol_needs_eval_context): Fix indentation.
5145 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5147 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5150 2020-08-17 Tom de Vries <tdevries@suse.de>
5153 * gdbtypes.c (dump_dynamic_prop): New function.
5154 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5156 2020-08-15 Tom de Vries <tdevries@suse.de>
5159 * stack.c (print_frame_args): Temporarily set the selected
5160 frame to FRAME while printing the frame's arguments.
5162 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5164 PR breakpoints/26385
5165 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5166 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5168 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5170 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5171 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5172 and >= to check return value instead of == -1 and != -1.
5174 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5176 * utils.h (class gdb_argv) <as_array_view>: New method.
5177 * utils.c (gdb_argv_as_array_view_test): New.
5178 (_initialize_utils): Register selftest.
5179 * maint.c (maintenance_selftest): Use the new method.
5181 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5183 * target.h (supports_dumpcore, dumpcore): New
5184 function declarations.
5185 * target.c (supports_dumpcore, dumpcore): New
5187 * target-delegates.c: Rebuild.
5188 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5189 and target_dumpcore ().
5191 2020-08-13 Aaron Merey <amerey@redhat.com>
5193 * debuginfod-support.c: Replace global variables with user_data.
5195 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5197 * maint.c (maintenance_selftest): Split args and pass array_view
5200 2020-08-12 Luis Machado <luis.machado@linaro.org>
5202 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5204 Use %s and pulongest to print the length.
5206 2020-08-12 Pedro Alves <palves@redhat.com>
5208 * NEWS: Move "Multi-target debugging support" item to the
5209 "Changes since GDB 9" section.
5211 2020-08-12 Pedro Alves <palves@redhat.com>
5214 * progspace.c (program_space::remove_objfile): Invalidate the
5217 2020-08-11 Tom de Vries <tdevries@suse.de>
5219 * MAINTAINERS: Mark ms1 as deleted.
5221 2020-08-10 Luis Machado <luis.machado@linaro.org>
5225 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5227 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5228 movz/str/stur/stp skipping behavior.
5230 2020-08-10 Luis Machado <luis.machado@linaro.org>
5232 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5233 struct user_sve_header instead of struct sve_context.
5235 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5237 * read.h (dwarf2_fetch_die_loc_sect_off,
5238 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5239 `void *` parameter with function_view.
5240 * read.c (dwarf2_fetch_die_loc_sect_off,
5241 dwarf2_fetch_die_loc_cu_off): Likewise.
5242 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5243 (per_cu_dwarf_call): Adjust.
5244 (get_frame_address_in_block_wrapper): Remove.
5245 (indirect_synthetic_pointer): Adjust.
5246 (get_ax_pc): Remove.
5247 (dwarf2_compile_expr_to_ax): Adjust.
5249 2020-08-08 Tom de Vries <tdevries@suse.de>
5252 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5254 * regcache.c (get_thread_arch_aspace_regcache): Same.
5256 2020-08-07 Tom Tromey <tromey@adacore.com>
5258 * ravenscar-thread.c
5259 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5261 (ravenscar_thread_target::wait): Check
5262 runtime_initialized.
5263 (ravenscar_thread_target::prepare_to_store)
5264 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5265 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5266 (ravenscar_thread_target::stopped_by_watchpoint)
5267 (ravenscar_thread_target::stopped_data_address)
5268 (ravenscar_thread_target::core_of_thread): Use
5269 scoped_restore_current_thread and
5270 set_base_thread_from_ravenscar_task.
5272 2020-08-07 Tom Tromey <tromey@adacore.com>
5274 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5276 2020-08-07 Tom Tromey <tromey@adacore.com>
5278 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5279 update_inferior_ptid before update_thread_list.
5280 (temporarily_change_regcache_ptid): New class.
5281 (ravenscar_thread_target::fetch_registers)
5282 (ravenscar_thread_target::store_registers)
5283 (ravenscar_thread_target::prepare_to_store): Use base thread when
5284 forwarding operation.
5286 2020-08-07 Tom Tromey <tromey@adacore.com>
5288 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5291 2020-08-07 Tom Tromey <tromey@adacore.com>
5293 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5295 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5297 (ravenscar_thread_target::add_thread): Rename from
5298 ravenscar_add_thread.
5299 (ravenscar_thread_target::update_thread_list): Use a lambda.
5300 (ravenscar_thread_target::xfer_partial): New method.
5302 2020-08-07 Tom Tromey <tromey@adacore.com>
5304 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5306 (iterate_over_live_ada_tasks): Change type of argument.
5307 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5310 2020-08-07 Tom Tromey <tromey@adacore.com>
5312 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5314 (ravenscar_thread_target::extra_thread_info): Remove.
5315 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5316 defer to target beneath for non-Ravenscar threads.
5318 2020-08-07 Tom Tromey <tromey@adacore.com>
5320 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5321 get_base_thread_from_ravenscar_task>: Now methods.
5322 <m_cpu_map>: New member.
5323 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5324 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5325 (ravenscar_thread_target::task_is_currently_active): Update.
5326 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5328 (ravenscar_thread_target::add_active_thread): Put initial thread
5331 2020-08-07 Tom Tromey <tromey@adacore.com>
5333 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5336 2020-08-07 Tom Tromey <tromey@adacore.com>
5338 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5339 runtime_initialized.
5341 2020-08-07 Tom Tromey <tromey@adacore.com>
5343 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5345 (ravenscar_thread_target::add_active_thread): Now public.
5346 (ravenscar_inferior_created): Call add_active_thread after pushing
5349 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5351 * regcache.c (ptid_regcache_map): New type.
5352 (target_ptid_regcache_map): New type.
5353 (regcaches): Change type to target_ptid_regcache_map.
5354 (get_thread_arch_aspace_regcache): Update to regcaches' new
5356 (regcache_thread_ptid_changed): Likewise.
5357 (registers_changed_ptid): Likewise.
5358 (regcaches_size): Likewise.
5359 (regcaches_test): Update.
5360 (regcache_thread_ptid_changed): Update.
5361 * regcache.h (regcache_up): New type.
5362 * gdbsupport/ptid.h (hash_ptid): New struct.
5364 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5366 * observable.h (thread_ptid_changed): Add parameter
5367 `process_stratum_target *`.
5368 * infrun.c (infrun_thread_ptid_changed): Add parameter
5369 `process_stratum_target *` and use it.
5370 (selftests): New namespace.
5371 (infrun_thread_ptid_changed): New function.
5372 (_initialize_infrun): Register selftest.
5373 * regcache.c (regcache_thread_ptid_changed): Add parameter
5374 `process_stratum_target *` and use it.
5375 (regcache_thread_ptid_changed): New function.
5376 (_initialize_regcache): Register selftest.
5377 * thread.c (thread_change_ptid): Pass target to
5378 thread_ptid_changed observable.
5380 2020-08-06 Caroline Tice <cmtice@google.com>
5382 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5383 (struct dwp_sections): Update field comments. Add loclists and
5385 (struct virtual_v2_dwo_sections): Rename struct to
5386 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5387 size & offset fields for loclists and rnglists.
5388 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5389 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5390 skipping dummy type units.
5391 (create_dwp_hash_table): Update the large comment above the function to
5392 discuss Version 5 DWP files as well, with references. Update all the
5393 version checks in the function to check for version 5 as well. Add new
5394 section at the end to create dwp hash table for version 5.
5395 (create_dwp_v2_section): Rename function to
5396 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5397 Add V5 to error message text.
5398 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5399 into calls to create_dwp_v2_or_v5_section.
5400 (create_dwo_unit_in_dwp_v5): New function.
5401 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5402 check for version2; add else clause to handle version 5.
5403 (open_and_init_dwo_file): Add code to check dwarf version & only call
5404 create_debug_types_hash_table (with sections.types) if version is not 5;
5405 else call create_debug_type_hash_table, with sections.info.
5406 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5408 (dwarf2_locate_v5_dwp_sections): New function.
5409 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5410 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5412 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5414 * regcache.h (class regcache): Remove friend
5415 registers_changed_ptid.
5416 <regcache_thread_ptid_changed>: Remove.
5417 <regcaches>: Remove.
5418 * regcache.c (regcache::regcaches): Rename to...
5419 (regcaches): ... this. Make static.
5420 (get_thread_arch_aspace_regcache): Update.
5421 (regcache::regcache_thread_ptid_changed): Rename to...
5422 (regcache_thread_ptid_changed): ... this. Update.
5423 (class regcache_access): Remove.
5424 (regcaches_test): Update.
5425 (_initialize_regcache): Update.
5426 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5429 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5431 * regcache.h (class regcache) <current_regcache>: Rename to...
5432 <regcaches>: ... this. Move doc here.
5433 * regcache.c (regcache::current_regcache) Rename to...
5434 (regcache::regcaches): ... this. Move doc to header.
5435 (get_thread_arch_aspace_regcache): Update.
5436 (regcache::regcache_thread_ptid_changed): Update.
5437 (registers_changed_ptid): Update.
5438 (class regcache_access) <current_regcache_size>: Rename to...
5439 <regcaches_size>: ... this.
5440 (current_regcache_test): Rename to...
5441 (regcaches_test): ... this.
5442 (_initialize_regcache): Update.
5444 2020-08-06 Victor Collod <vcollod@nvidia.com>
5446 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5448 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5450 * corelow.c (core_target::build_file_mappings): Don't output
5451 null pathname in warning.
5453 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5455 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5456 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5457 gdb.dwarf2/dw2-single-line-discriminators.exp,
5458 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5460 2020-08-05 Tom Tromey <tromey@adacore.com>
5463 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5464 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5465 Fix off-by-one and type size errors in ordinary case.
5467 2020-08-05 Tom de Vries <tdevries@suse.de>
5469 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5470 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5472 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5474 * frame.h (frame_id_p): Return bool.
5475 (frame_id_artificial_p): Return bool.
5476 (frame_id_eq): Return bool.
5477 (has_stack_frames): Return bool.
5478 (get_selected_frame): Fix typo in comment.
5479 (get_frame_pc_if_available): Return bool.
5480 (get_frame_address_in_block_if_available): Return bool.
5481 (get_frame_func_if_available): Return bool.
5482 (read_frame_register_unsigned): Return bool.
5483 (get_frame_register_bytes): Return bool.
5484 (safe_frame_unwind_memory): Return bool.
5485 (deprecated_frame_register_read): Return bool.
5486 (frame_unwinder_is): Return bool.
5487 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5489 <this_id::p>: Likewise.
5491 (frame_stash_add): Return bool.
5492 (get_frame_id): Use bool.
5493 (frame_id_build_special) Use bool.
5494 (frame_id_build_unavailable_stack): Use bool.
5495 (frame_id_build): Use bool.
5496 (frame_id_p): Return bool, use true/false instead of 1/0.
5497 (frame_id_artificial_p): Likewise.
5498 (frame_id_eq): Likewise.
5499 (frame_id_inner): Likewise.
5500 (get_frame_func_if_available): Likewise.
5501 (read_frame_register_unsigned): Likewise.
5502 (deprecated_frame_register_read): Likewise.
5503 (get_frame_register_bytes): Likewise.
5504 (has_stack_frames): Likewise.
5505 (inside_main_func): Likewise.
5506 (inside_entry_func): Likewise.
5507 (get_frame_pc_if_available): Likewise.
5508 (get_frame_address_in_block_if_available): Likewise.
5509 (frame_unwinder_is): Likewise.
5510 (safe_frame_unwind_memory): Likewise.
5511 (frame_unwind_arch): Likewise.
5513 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5515 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5516 type to cached_copy_status.
5517 (fprintf_frame): Adjust.
5518 (get_frame_func_if_available): Adjust.
5519 (frame_cleanup_after_sniffer): Adjust.
5521 2020-08-04 Mark Wielaard <mark@klomp.org>
5523 * MAINTAINERS (Write After Approval): Update email address.
5525 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5527 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5528 dynamic_prop::const_val.
5530 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5532 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5535 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5537 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5539 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5541 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5543 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5544 Jose E. Marchesi <jose.marchesi@oracle.com>
5546 * configure.tgt: Add entry for bpf-*-*.
5547 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5548 (ALLDEPFILES): Add bpf-tdep.c.
5549 * bpf-tdep.c: New file.
5550 * MAINTAINERS: Add bpf target and maintainer.
5551 * NEWS: Mention the support for the new target.
5553 2020-08-04 Tom de Vries <tdevries@suse.de>
5556 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5559 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5561 * syscalls/freebsd.xml: Regenerate.
5563 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5565 * syscalls/update-freebsd.sh: Fix usage and year range.
5567 2020-08-03 Tom de Vries <tdevries@suse.de>
5570 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5571 DW_LNE_lo_user/DW_LNE_hi_user range.
5573 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5576 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5579 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5581 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5583 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5585 * breakpoint.c (set_breakpoint_condition): Update the condition
5586 expressions after checking that the input condition string parses
5587 successfully and does not contain junk at the end.
5589 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5591 * breakpoint.c (set_breakpoint_condition): Update the
5592 condition string after parsing the new condition successfully.
5594 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5596 * proc-api.c (_STRUCTURED_PROC): Don't define.
5597 * proc-events.c: Likewise.
5598 * proc-flags.c: Likewise.
5599 * proc-why.c: Likewise.
5600 * procfs.c: Likewise.
5602 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5603 * configure, config.in: Regenerate.
5605 2020-07-30 Tom de Vries <tdevries@suse.de>
5608 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5609 m_red/m_green/m_blue in a union.
5611 2020-07-29 Tom de Vries <tdevries@suse.de>
5614 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5616 2020-07-28 Tom Tromey <tromey@adacore.com>
5619 * symtab.h (find_pc_partial_function_sym): Declare.
5620 * cli/cli-cmds.c (disassemble_command): Use
5621 find_pc_partial_function_sym. Check asm_demangle.
5622 * blockframe.c (cache_pc_function_sym): New global.
5623 (cache_pc_function_name): Remove.
5624 (clear_pc_function_cache): Update.
5625 (find_pc_partial_function_sym): New function, from
5626 find_pc_partial_function.
5627 (find_pc_partial_function): Rewrite using
5628 find_pc_partial_function_sym.
5630 2020-07-28 Tom Tromey <tromey@adacore.com>
5632 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5635 2020-07-28 Tom Tromey <tromey@adacore.com>
5637 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5638 <DW_OP_GNU_variable_value>: Cast to address type.
5640 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5642 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5643 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5644 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5645 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5646 (nbsd_get_siginfo_type): New.
5647 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5648 (_initialize_nbsd_tdep): New.
5650 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5653 * configure: Regenerated.
5655 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5658 * configure: Regenerated.
5660 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5662 * python/py-frame.c: Remove 'user-regs.h' include.
5663 (frapy_read_register): Rewrite to make use of
5664 gdbpy_parse_register_id.
5665 * python/py-registers.c (gdbpy_parse_register_id): New function,
5666 moved here from python/py-unwind.c. Updated the return type, and
5667 also accepts register descriptor objects.
5668 * python/py-unwind.c: Remove 'user-regs.h' include.
5669 (pyuw_parse_register_id): Moved to python/py-registers.c.
5670 (unwind_infopy_add_saved_register): Update to use
5671 gdbpy_parse_register_id.
5672 (pending_framepy_read_register): Likewise.
5673 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5675 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5677 * python/py-registers.c: Add 'user-regs.h' include.
5678 (register_descriptor_iter_find): New function.
5679 (register_descriptor_iterator_object_methods): New static global
5681 (register_descriptor_iterator_object_type): Add pointer to methods
5684 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5686 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5687 for all architectures on FreeBSD 11.3 and later.
5689 2020-07-27 Tom Tromey <tromey@adacore.com>
5691 * gcore.h (load_corefile): Don't declare.
5693 2020-07-27 Tom de Vries <tdevries@suse.de>
5695 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5696 * config.in: Regenerate.
5697 * configure: Regenerate.
5699 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5701 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5702 ws2tcpip.h. When checking whether socklen_t type is defined, use
5703 ws2tcpip.h if it is available and sys/socket.h isn't.
5704 * configure: Regenerate.
5705 * config.in: Regenerate.
5707 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5711 * valops.c (value_ind): Pass address to
5712 readjust_indirect_value_type.
5713 * value.c (readjust_indirect_value_type): Make parameter
5714 non-const, and add extra address parameter. Resolve original type
5716 * value.h (readjust_indirect_value_type): Update function
5717 signature and comment.
5719 2020-07-25 Tom de Vries <tdevries@suse.de>
5722 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5725 2020-07-24 Aaron Merey <amerey@redhat.com>
5727 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5728 * configure: Rebuild.
5730 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5733 * corelow.c (_initialize_corelow): Add period to help text
5734 for "maintenance print core-file-backed-mappings".
5736 2020-07-23 Pedro Alves <pedro@palves.net>
5738 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5739 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5741 * frame.c (frame_cache_generation, get_frame_cache_generation):
5743 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5744 (get_prev_frame_if_no_cycle): On exception, don't touch
5745 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5746 * frame.h (get_frame_cache_generation): Declare.
5748 2020-07-23 Tom de Vries <tdevries@suse.de>
5751 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5752 New default constructor.
5754 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5756 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5757 exclude non-statement entries.
5759 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5761 * NEWS (New commands): Mention new command
5762 "maintenance print core-file-backed-mappings".
5764 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5766 * corelow.c (gdbcmd.h): Include.
5767 (core_target::info_proc_mappings): New method.
5768 (get_current_core_target): New function.
5769 (maintenance_print_core_file_backed_mappings): New function.
5770 (_initialize_corelow): Add core-file-backed-mappings to
5771 "maint print" commands.
5773 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5775 * linux-tdep.c (dump_note_entry_p): New function.
5776 (linux_dump_mapping_p_ftype): New typedef.
5777 (linux_find_memory_regions_full): Add new parameter,
5778 should_dump_mapping_p.
5779 (linux_find_memory_regions): Adjust call to
5780 linux_find_memory_regions_full.
5781 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5782 call to linux_find_memory_regions_full.
5784 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5786 * corelow.c (solist.h, unordered_map): Include.
5787 (class core_target): Add field m_core_file_mappings and
5788 method build_file_mappings.
5789 (core_target::core_target): Call build_file_mappings.
5790 (core_target::~core_target): Free memory associated with
5791 m_core_file_mappings.
5792 (core_target::build_file_mappings): New method.
5793 (core_target::xfer_partial): Use m_core_file_mappings
5794 for memory transfers.
5795 * linux-tdep.c (linux_read_core_file_mappings): New
5797 (linux_core_info_proc_mappings): Rewrite to use
5798 linux_read_core_file_mappings.
5799 (linux_init_abi): Register linux_read_core_file_mappings.
5801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5803 * arch-utils.c (default_read_core_file_mappings): New function.
5804 * arch-utils.c (default_read_core_file_mappings): Declare.
5805 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5806 * gdbarch.h, gdbarch.c: Regenerate.
5808 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5811 * corelow.c (core_target:xfer_partial): Revise
5812 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5813 case after first checking the stratum beneath the core
5815 (has_all_memory): Return true.
5816 * target.c (raw_memory_xfer_partial): Revise comment
5817 regarding use of has_all_memory.
5819 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5821 * exec.h (section_table_xfer_memory): Revise declaration,
5822 replacing section name parameter with an optional callback
5824 * exec.c (section_table_xfer_memory): Likewise.
5825 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5826 of section_table_xfer_memory.
5828 2020-07-22 Tom Tromey <tromey@adacore.com>
5830 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5831 lookup_symbol_search_name.
5833 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5835 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5836 redundant local variable.
5837 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5838 reference, not pointer, update code accordingly.
5840 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5841 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5843 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5844 * jit.c (jit_breakpoint_re_set_internal): Use the
5845 `skip_jit_symbol_lookup` field.
5847 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5848 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850 * jit.c (jit_read_descriptor): Define the descriptor address once,
5852 (jit_breakpoint_deleted): Move the declaration of the loop variable
5853 `iter` into the loop header.
5854 (jit_breakpoint_re_set_internal): Move the declaration of the local
5855 variable `objf_data` to the first point of definition.
5856 (jit_event_handler): Move the declaration of local variables
5857 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5858 Rename `objf` to `jited`.
5860 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5862 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5864 * jit.c (get_jiter_objfile_data): Update.
5866 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5867 Simon Marchi <simon.marchi@polymtl.ca>
5869 * jit.c (struct jit_program_space_data): Remove.
5870 (jit_program_space_key): Remove.
5871 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5873 (get_jit_program_space_data): Remove.
5874 (jit_breakpoint_deleted): Iterate on all of the program space's
5876 (jit_inferior_init): Likewise.
5877 (jit_breakpoint_re_set_internal): Likewise. Also change return
5879 (jit_breakpoint_re_set): Pass current_program_space to
5880 jit_breakpoint_re_set_internal.
5882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5884 * jit.h (struct jiter_objfile_data) <cached_code_address,
5885 jit_breakpoint>: Move to here from ...
5886 * jit.c (jit_program_space_data): ... here.
5887 (jiter_objfile_data::~jiter_objfile_data): Update.
5888 (jit_breakpoint_deleted): Update.
5889 (jit_breakpoint_re_set_internal): Update.
5891 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5893 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5895 (jit_read_descriptor): Remove NULL check.
5896 (jit_event_handler): Add an assertion.
5898 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5900 * jit.h (struct jit_objfile_data): Split into...
5901 (struct jiter_objfile_data): ... this ...
5902 (struct jited_objfile_data): ... and this.
5903 * objfiles.h (struct objfile) <jit_data>: Remove.
5904 <jiter_data, jited_data>: New fields.
5905 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5906 (jiter_objfile_data::~jiter_objfile_data): ... this.
5907 (get_jit_objfile_data): Rename to ...
5908 (get_jiter_objfile_data): ... this.
5909 (add_objfile_entry): Update.
5910 (jit_read_descriptor): Use get_jiter_objfile_data.
5911 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5912 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5913 (jit_inferior_exit_hook): Use objfile's jited_data field.
5915 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5917 * jit.h: Forward-declare `struct minimal_symbol`.
5918 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5919 constructor, destructor, and an objfile* field.
5920 * jit.c (jit_objfile_data): Remove.
5921 (struct jit_objfile_data): Migrate from here to jit.h.
5922 (jit_objfile_data::~jit_objfile_data): New destructor
5923 implementation with code moved from free_objfile_data.
5924 (free_objfile_data): Delete.
5925 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5926 (jit_find_objf_with_entry_addr): Ditto.
5927 (jit_inferior_exit_hook): Ditto.
5928 (_initialize_jit): Remove the call to
5929 register_objfile_data_with_cleanup.
5930 * objfiles.h (struct objfile) <jit_data>: New field.
5932 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5934 * jit.h: Forward-declare `struct objfile`.
5935 (jit_event_handler): Add a second parameter, the JITer objfile.
5936 * jit.c (jit_read_descriptor): Change the signature to take the
5937 JITer objfile as an argument instead of the jit_program_space_data.
5938 (jit_inferior_init): Update the call to jit_read_descriptor.
5939 (jit_event_handler): Use the new JITer objfile argument when calling
5940 jit_read_descriptor.
5941 * breakpoint.c (handle_jit_event): Update the call to
5942 jit_event_handler to pass the JITer objfile.
5944 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5946 * gdbarch.c: Regenerate.
5947 * gdbarch.h: Regenerate.
5948 * gdbarch.sh (handle_segmentation_fault): Remove method.
5949 * infrun.c (handle_segmentation_fault): Remove.
5950 (print_signal_received_reason): Remove call to
5951 handle_segmentation_fault.
5953 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5955 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5956 Rename to sparc64_linux_report_signal_info and add siggnal
5958 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5959 instead of sparc64_linux_handle_segmentation_fault.
5961 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5963 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5964 i386_linux_report_signal_info instead of
5965 i386_linux_handle_segmentation_fault.
5966 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5967 to i386_linux_report_signal_info and add siggnal argument.
5968 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5969 of i386_linux_handle_segmentation_fault.
5970 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5971 to i386_linux_report_signal_info and add siggnal argument.
5973 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5975 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5978 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5980 * gdbarch.c: Regenerate.
5981 * gdbarch.h: Regenerate.
5982 * gdbarch.sh (report_signal_info): New method.
5983 * infrun.c (print_signal_received_reason): Invoke gdbarch
5984 report_signal_info hook if present.
5986 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5988 * python/py-registers.c : Add 'unordered_map' include.
5989 (gdbpy_new_reggroup): Renamed to...
5990 (gdbpy_get_reggroup): ...this. Update to only create register
5991 group descriptors when needed.
5992 (gdbpy_reggroup_iter_next): Update.
5994 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5996 * python/py-registers.c (gdbpy_register_object_data): New static
5998 (gdbpy_register_object_data_init): New function.
5999 (gdbpy_new_register_descriptor): Renamed to...
6000 (gdbpy_get_register_descriptor): ...this, and update to reuse
6001 existing register descriptors where possible.
6002 (gdbpy_register_descriptor_iter_next): Update.
6003 (gdbpy_initialize_registers): Register new gdbarch data.
6005 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6007 * linux-nat.c (stopped_pids): Make static.
6009 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6012 * gdbtypes.c (ada_discrete_type_low_bound,
6013 ada_discrete_type_high_bound): Handle undefined bounds.
6015 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6017 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6019 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6022 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6024 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6025 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6026 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6027 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6028 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6031 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6033 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6034 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6035 which are deprecated in Guile 3.0.
6036 * configure.ac (try_guile_versions): Add "guile-3.0".
6037 * configure (try_guile_versions): Regenerate.
6038 * NEWS: Update entry.
6040 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6041 Doug Evans <dje@google.com>
6044 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6045 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6046 USING_GUILE_BEFORE_2_2.
6047 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6048 Change type to 'scm_t_port_type *'.
6049 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6050 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6051 parameter and honor it. Update callers.
6052 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6053 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6055 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6056 USING_GUILE_BEFORE_2_2.
6057 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6058 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6059 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6060 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6061 and 'SCM_PORT_TYPE'.
6062 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6063 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6064 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6065 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6066 [!USING_GUILE_BEFORE_2_2]: New functions.
6067 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6068 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6069 'gdbscm_memory_port_read'.
6070 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6071 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6072 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6074 (ioscm_init_memory_port): Remove.
6075 (ioscm_init_memory_port_stream): New function
6076 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6078 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6079 Return scm_from_uint (0).
6080 (gdbscm_set_memory_port_read_buffer_size_x)
6081 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6082 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6083 Return scm_from_uint (0).
6084 (gdbscm_set_memory_port_write_buffer_size_x)
6085 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6086 * configure.ac (try_guile_versions): Add "guile-2.2".
6087 * configure: Regenerate.
6090 2020-07-18 Tom Tromey <tom@tromey.com>
6092 * linux-nat.c (linux_multi_process): Remove.
6093 (linux_nat_target::supports_multi_process): Return true.
6095 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6097 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6098 (riscv_lookup_target_description): Return pointer out of
6100 * target-descriptions.c (allocate_target_description): Add
6102 (target_desc_deleter::operator()): Likewise.
6103 * target-descriptions.h (struct target_desc_deleter): Moved to
6105 (target_desc_up): Likewise.
6107 2020-07-17 Tom Tromey <tromey@adacore.com>
6109 * linux-nat.c (linux_nat_target::supports_non_stop)
6110 (linux_nat_target::always_non_stop_p): Use "true".
6111 (linux_nat_target::supports_disable_randomization): Use "true" and
6114 2020-07-16 Caroline Tice <cmtice@google.com>
6116 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6117 (RNGLIST_HEADER_SIZE64): New constant definition.
6118 (struct dwop_section_names): Add rnglists_dwo.
6119 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6120 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6121 (struct dwo_sections): Add rnglists field.
6122 (read_attribut_reprocess): Add tag parameter.
6123 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6124 (cu_debug_rnglists_section): New function (decl & definition).
6125 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6126 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6127 die whose range is being checked; get rnglist section from
6128 cu_debug_rnglists_section, to get from either objfile or dwo file as
6129 appropriate. Add cases for DW_RLE_base_addressx,
6130 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6131 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6132 test inside if-condition and updating complaint message.
6133 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6134 dwarf2_rnglists_process.
6135 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6136 dwarf2_ranges_process.
6137 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6138 need_ranges_base and update comment appropriately. Also pass die tag
6139 to dwarf2_ranges_read.
6140 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6141 need_ranges_base and update comment appropriately. Also pass die tag
6142 to dwarf2_ranges_process.
6143 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6144 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6145 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6146 need_ranges_base and update comment appropriately. Also pass die tag
6147 to read_attribute_reprocess and dwarf2_ranges_read.
6148 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6149 and update function comment appropriately.
6150 (read_loclist_index): Call read_loclists_rnglists_header instead of
6151 read_loclist_header.
6152 (read_rnglist_index): New function.
6153 (read_attribute_reprocess): Add tag parameter. Add code for
6154 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6155 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6157 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6159 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6162 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6164 * arch-utils.c (show_architecture): Update formatting of messages.
6166 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6168 * gdbtypes.h (struct type) <bounds>: Handle array and string
6170 * ada-lang.c (assign_aggregate): Use type::bounds on
6172 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6173 * c-varobj.c (c_number_of_children): Likewise.
6174 (c_describe_child): Likewise.
6175 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6176 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6177 (f_type_print_base): Likewise.
6178 * f-valprint.c (f77_array_offset_tbl): Likewise.
6179 (f77_get_upperbound): Likewise.
6180 (f77_print_array_1): Likewise.
6181 * guile/scm-type.c (gdbscm_type_range): Likewise.
6182 * m2-typeprint.c (m2_array): Likewise.
6183 (m2_is_long_set_of_type): Likewise.
6184 * m2-valprint.c (get_long_set_bounds): Likewise.
6185 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6186 * python/py-type.c (typy_range): Likewise.
6187 * rust-lang.c (rust_internal_print_type): Likewise.
6188 * type-stack.c (type_stack::follow_types): Likewise.
6189 * valarith.c (value_subscripted_rvalue): Likewise.
6190 * valops.c (value_cast): Likewise.
6192 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6194 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6195 callers to use the equivalent accessor methods.
6197 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6199 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6200 (struct type) <bit_stride>: New method.
6201 (TYPE_BIT_STRIDE): Remove.
6202 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6206 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6207 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6208 callers to use the equivalent accessor methods instead.
6210 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6212 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6213 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6214 callers to use the equivalent accessor methods instead.
6216 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6218 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6219 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6220 to use dynamic_prop::kind.
6222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6224 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6225 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6226 to get the bound property's kind and check against
6229 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6231 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6232 all callers to use type::range_bounds followed by
6233 dynamic_prop::{low,high}.
6235 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6237 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6238 const_val, set_const_val, baton, set_locexpr, set_loclist,
6239 set_addr_offset, variant_parts, set_variant_parts,
6240 original_type, set_original_type>: New methods.
6241 <kind>: Rename to...
6242 <m_kind>: ... this. Update all users to use the new methods
6244 <data>: Rename to...
6245 <m_data>: ... this. Update all users to use the new methods
6248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6250 * gdbtypes.c (get_discrete_bounds): Return failure if
6251 the range type's bounds are not both defined and constant
6253 (get_array_bounds): Update comment. Remove undefined bound check.
6255 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6257 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6258 the type::bounds method directly.
6260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6262 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6263 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6264 are used to set the range type's bounds to use set_bounds.
6266 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6268 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6270 2020-07-10 Pedro Alves <pedro@palves.net>
6272 * gdbthread.h (inferior_ref): Define.
6273 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6274 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6276 (scoped_restore_current_thread::restore):
6277 Adjust to gdb::ref_ptr.
6278 (scoped_restore_current_thread::~scoped_restore_current_thread):
6279 Remove manual decref handling.
6280 (scoped_restore_current_thread::scoped_restore_current_thread):
6282 inferior_ref::new_reference/thread_info_ref::new_reference.
6283 Incref the thread before calling get_frame_id instead of after.
6284 Let TARGET_CLOSE_ERROR propagate.
6286 2020-07-10 Pedro Alves <pedro@palves.net>
6288 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6289 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6290 NOT_AVAILABLE_ERROR.
6291 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6292 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6294 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6295 Pedro Alves <pedro@palves.net>
6298 * infrun.c (threads_are_resumed_pending_p): Delete.
6299 (do_target_wait): Remove threads_are_executing and
6300 threads_are_resumed_pending_p checks from the inferior_matches
6301 lambda. Update comments.
6303 2020-07-10 Pedro Alves <pedro@palves.net>
6306 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6309 2020-07-10 Pedro Alves <pedro@palves.net>
6312 * infrun.c (handle_no_resumed): Handle multiple targets.
6314 2020-07-10 Pedro Alves <pedro@palves.net>
6317 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6320 2020-07-10 Pedro Alves <pedro@palves.net>
6323 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6324 threads, not all threads.
6326 2020-07-10 Pedro Alves <pedro@palves.net>
6329 * remote.c (remote_target::open_1): Pass remote target pointer as
6330 data to create_async_event_handler.
6331 (remote_async_inferior_event_handler): Mark async event handler
6332 before returning if the remote target still has either pending
6333 events or unacknowledged notifications.
6335 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6337 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6339 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6342 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6344 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6347 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6349 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6350 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6351 AT_FREEBSD_PS_STRINGS.
6353 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6355 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6356 of debugfile path on Windows.
6358 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6360 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6363 2020-07-08 Tom Tromey <tromey@adacore.com>
6365 * ada-lang.c (ada_exception_message_1): Use read_memory.
6367 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6370 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6371 special handling for inline frames.
6372 * findvar.c (value_of_register_lazy): Skip inline frames when
6373 creating lazy register values.
6374 * frame.c (frame_id_computed_p): Delete definition.
6375 * frame.h (frame_id_computed_p): Delete declaration.
6377 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6379 * NEWS: Mention additions to Python API.
6380 * python/py-arch.c (archpy_register_groups): New function.
6381 (arch_object_methods): Add 'register_groups' method.
6382 * python/py-registers.c (reggroup_iterator_object): New struct.
6383 (reggroup_object): New struct.
6384 (gdbpy_new_reggroup): New function.
6385 (gdbpy_reggroup_to_string): New function.
6386 (gdbpy_reggroup_name): New function.
6387 (gdbpy_reggroup_iter): New function.
6388 (gdbpy_reggroup_iter_next): New function.
6389 (gdbpy_new_reggroup_iterator): New function
6390 (gdbpy_initialize_registers): Register new types.
6391 (reggroup_iterator_object_type): Define new Python type.
6392 (gdbpy_reggroup_getset): New static global.
6393 (reggroup_object_type): Define new Python type.
6394 * python/python-internal.h
6396 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6398 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6399 * python/py-arch.c (archpy_registers): New function.
6400 (arch_object_methods): Add 'registers' method.
6401 * python/py-registers.c: New file.
6402 * python/python-internal.h
6403 (gdbpy_new_register_descriptor_iterator): Declare.
6404 (gdbpy_initialize_registers): Declare.
6405 * python/python.c (do_start_initialization): Call
6406 gdbpy_initialize_registers.
6407 * NEWS: Mention additions to the Python API.
6409 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6411 * NEWS: Mention new Python API method.
6412 * python/py-unwind.c (pending_framepy_architecture): New function.
6413 (pending_frame_object_methods): Add architecture method.
6415 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6417 * gdbarch.c: Regenerate.
6418 * gdbarch.h: Regenerate.
6419 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6420 (gdbarch_data): Use internal_error for the case where
6421 deprecated_set_gdbarch_data was originally needed.
6422 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6423 and use passed in obstack.
6424 (libunwind_frame_set_descr): Should no longer get back NULL from
6426 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6428 * user-regs.c (user_regs_init): Update parameters, and use passed
6430 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6431 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6433 2020-07-06 Tom de Vries <tdevries@suse.de>
6435 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6436 End-Of-Sequence in lte_is_less_than.
6437 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6438 "gdb: Don't reorder line table entries too much when sorting".
6440 2020-07-06 Tom de Vries <tdevries@suse.de>
6443 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6445 2020-07-05 Tom de Vries <tdevries@suse.de>
6448 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6449 std::uncaught_exceptions instead of deprecated
6450 std::uncaught_exception.
6452 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6454 * macroexp.h (macro_stringify): Return
6455 gdb::unique_xmalloc_ptr<char>.
6456 * macroexp.c (macro_stringify): Likewise.
6457 * macrotab.c (fixup_definition): Update.
6459 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6461 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6462 (lex_one_token): Update.
6463 * macroexp.c (struct macro_buffer) <release>: Return
6464 gdb::unique_xmalloc_ptr<char>.
6465 (macro_stringify): Update.
6466 (macro_expand): Update.
6467 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6468 * macroexp.h (macro_expand_next): Likewise.
6470 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6472 * macroexp.h (macro_lookup_ftype): Remove.
6473 (macro_expand, macro_expand_once, macro_expand_next): Remove
6474 lookup function parameters, add scope parameter.
6475 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6476 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6477 * macroscope.h (standard_macro_lookup): Change parameter type
6479 * macroscope.c (standard_macro_lookup): Likewise.
6480 * c-exp.y (lex_one_token): Update.
6481 * macrocmd.c (macro_expand_command): Likewise.
6482 (macro_expand_once_command): Likewise.
6484 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6486 * inf-loop.c (inferior_event_handler): Remove client_data param.
6487 * inf-loop.h (inferior_event_handler): Likewise.
6488 * infcmd.c (step_1): Adjust.
6489 * infrun.c (proceed): Adjust.
6490 (fetch_inferior_event): Remove client_data param.
6491 (infrun_async_inferior_event_handler): Adjust.
6492 * infrun.h (fetch_inferior_event): Remove `void *` param.
6493 * linux-nat.c (handle_target_event): Adjust.
6494 * record-btrace.c (record_btrace_handle_async_inferior_event):
6496 * record-full.c (record_full_async_inferior_event_handler):
6498 * remote.c (remote_async_inferior_event_handler): Adjust.
6500 2020-07-01 Tom Tromey <tom@tromey.com>
6502 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6503 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6505 2020-07-01 Tom Tromey <tom@tromey.com>
6507 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6509 (tui_win_info::make_window): Merge with
6510 tui_gen_win_info::make_window.
6511 (tui_win_info::make_visible): Move from tui_gen_win_info.
6512 * tui/tui-win.c (tui_win_info::max_width): Move from
6514 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6516 <window_factory>: Likewise.
6517 * tui/tui-layout.c (tui_win_info::resize): Move from
6519 (make_standard_window): Change return type.
6520 (get_locator_window, tui_get_window_by_name): Likewise.
6521 (tui_layout_window::apply): Remove a cast.
6522 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6523 (struct tui_win_info): Merge with tui_gen_win_info.
6524 (struct tui_gen_win_info): Remove.
6526 2020-07-01 Tom Tromey <tom@tromey.com>
6528 * tui/tui-stack.h (struct tui_locator_window): Derive from
6530 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6531 <can_box>: New method.
6533 2020-07-01 Tom Tromey <tom@tromey.com>
6535 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6537 2020-07-01 Tom Tromey <tom@tromey.com>
6539 * tui/tui-regs.c (tui_data_window::display_registers_from)
6540 (tui_data_window::display_registers_from)
6541 (tui_data_window::first_data_item_displayed)
6542 (tui_data_window::delete_data_content_windows): Update.
6543 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6545 (tui_data_window::check_register_values): Update.
6546 (tui_data_item_window::rerender): Add parameters. Update.
6547 (tui_data_item_window::refresh_window): Remove.
6548 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6550 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6552 <refresh_window, max_height, min_height>: Remove.
6553 <rerender>: Add parameters.
6554 <x, y, visible>: New members.
6555 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6556 <m_item_width>: New member.
6558 2020-07-01 Tom Tromey <tom@tromey.com>
6560 * tui/tui-regs.c (tui_data_window::show_register_group)
6561 (tui_data_window::check_register_values): Update.
6562 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6565 2020-07-01 Tom Tromey <tom@tromey.com>
6567 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6570 2020-07-01 Tom Tromey <tom@tromey.com>
6572 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6573 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6575 2020-07-01 Tom Tromey <tom@tromey.com>
6577 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6578 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6579 (struct tui_line_or_address): Move from tui-data.h.
6580 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6581 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6582 (tui_cmd_window, tui_source_window_base, tui_source_window)
6583 (tui_disasm_window): Don't declare.
6584 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6586 (SINGLE_KEY): Move to tui-stack.c.
6588 2020-07-01 Tom Tromey <tom@tromey.com>
6590 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6592 * tui/tui-regs.c (class tab_expansion_file): New.
6593 (tab_expansion_file::write): New method.
6594 (tui_register_format): Change return type. Use
6596 (tui_get_register, tui_data_window::display_registers_from)
6597 (tui_data_item_window::rerender): Update.
6598 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6599 * tui/tui-io.c (tui_expand_tabs): Remove.
6601 2020-07-01 Tom Tromey <tom@tromey.com>
6603 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6605 2020-07-01 Fangrui Song <maskray@google.com>
6607 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6609 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6611 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6612 forms for DW_AT_associated and DW_AT_allocated attributes,
6613 which is already checked in function attr_to_dynamic_prop.
6615 2020-06-30 Tom Tromey <tromey@adacore.com>
6617 * dwarf2/read.c (quirk_rust_enum): Correctly call
6618 alloc_rust_variant for default-less enum.
6620 2020-06-30 Tom Tromey <tromey@adacore.com>
6623 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6626 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6628 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6629 * gdbarch.h: Re-generate.
6631 2020-06-28 Tom Tromey <tom@tromey.com>
6633 * command.h (cmd_types): Remove.
6634 (cmd_type): Don't declare.
6635 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6637 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6638 * cli/cli-decode.c (cmd_type): Remove.
6640 2020-06-27 Pedro Alves <palves@redhat.com>
6642 * fork-child.c (prefork_hook): Adjust.
6643 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6645 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6646 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6647 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6648 Remove declarations.
6649 (struct inferior) <set_tty, tty>: New methods.
6650 (struct inferior) <terminal>: Rename to ...
6651 (struct inferior) <m_terminal>: ... this and make private.
6652 * main.c (captured_main_1): Adjust.
6653 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6654 (mi_cmd_inferior_tty_show): Adjust.
6655 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6656 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6658 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6660 * configure.ac: Add --enable-libctf: handle --disable-static
6662 * acinclude.m4: sinclude ../config/enable.m4.
6663 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6664 (LIBCTF): Substitute in.
6665 (CTF_DEPS): New, likewise.
6666 (CLIBS): libctf needs symbols from libbfd: move earlier.
6667 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6669 * ctfread.c: Surround in ENABLE_LIBCTF.
6670 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6671 * configure: Regenerate.
6672 * config.in: Likewise.
6674 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6676 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6678 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6680 * inferior.h (struct inferior) <terminal>: Change type to
6681 gdb::unique_xmalloc_ptr<char>.
6682 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6683 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6684 field, adjust to unique pointer.
6685 (get_inferior_io_terminal): Adjust to unique pointer.
6687 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6689 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6690 registers, not just the known core set of registers.
6692 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6694 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6695 fflags, frm, and fcsr registers.
6696 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6698 (riscv_tdesc_unknown_reg): New function.
6699 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6700 tdesc_use_registers.
6701 * riscv-tdep.h (struct gdbarch_tdep): Add
6702 unknown_csrs_first_regnum, unknown_csrs_count,
6703 duplicate_fflags_regnum, duplicate_frm_regnum, and
6704 duplicate_fcsr_regnum fields.
6706 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6708 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6709 callback, use the callback (when not null) to help number unknown
6711 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6712 (tdesc_use_registers): Add extra parameter to declaration.
6714 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6716 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6718 (class riscv_pending_register_alias): Likewise.
6719 (riscv_register_feature::register_info): Change 'required_p' field
6720 to 'required', and change its type. Add 'check' member function.
6721 (riscv_register_feature::register_info::check): Define new member
6723 (riscv_xreg_feature): Change initialisation of 'required' field.
6724 (riscv_freg_feature): Likewise.
6725 (riscv_virtual_feature): Likewise.
6726 (riscv_csr_feature): Likewise.
6727 (riscv_check_tdesc_feature): Take extra parameter, the csr
6728 tdesc_feature, rewrite the function to use the new
6729 riscv_register_feature::register_info::check function.
6730 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6732 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6734 * features/Makefile: Remove all references to the deleted files
6736 * features/riscv/32bit-csr.c: Deleted.
6737 * features/riscv/32bit-csr.xml: Deleted.
6738 * features/riscv/64bit-csr.c: Deleted.
6739 * features/riscv/64bit-csr.xml: Deleted.
6740 * features/riscv/rebuild-csr-xml.sh: Deleted.
6742 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6744 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6745 whitespace error for declaration of names member variable.
6746 (struct riscv_register_feature): Add new prefer_first_name member
6747 variable, and fix whitespace error in declaration of registers.
6748 (riscv_xreg_feature): Initialize prefer_first_name field.
6749 (riscv_freg_feature): Likewise.
6750 (riscv_virtual_feature): Likewise.
6751 (riscv_csr_feature): Likewise.
6752 (riscv_register_name): Expand on comments. Remove register name
6753 modifications for CSR and virtual registers.
6755 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6757 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6760 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6762 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6764 (class riscv_pending_register_alias): New class.
6765 (riscv_check_tdesc_feature): Take vector of pending aliases and
6766 populate it as appropriate.
6767 (riscv_setup_register_aliases): Delete.
6768 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6769 to riscv_check_tdesc_feature in all cases. Use the vector to
6770 create the register aliases.
6772 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6774 * sol2-tdep.c (sol2_static_transform_name): Remove.
6775 (sol2_init_abi): Don't register it.
6776 * gdbarch.sh (static_transform_name): Remove.
6777 * gdbarch.c, gdbarch.h: Regenerate.
6779 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6780 gdbarch_static_transform_name.
6781 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6782 * stabsread.c (define_symbol) <'X'>: Remove.
6783 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6786 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6787 <'S'>: Remove call to gdbarch_static_transform_name.
6789 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6791 * procfs.c (procfs_pre_trace): New function.
6792 (procfs_target::create_inferior): Pass it to fork_inferior.
6794 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6796 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6797 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6798 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6799 sol2-tdep.o, sparc-sol2-tdep.o.
6800 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6801 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6802 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6803 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6805 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6807 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6808 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6810 Remove calls to set_gdbarch_skip_solib_resolver,
6811 set_gdbarch_core_pid_to_str.
6812 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6813 (i386_sol2_static_transform_name): Remove.
6814 (i386_sol2_init_abi): Call sol2_init_abi.
6815 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6816 set_gdbarch_static_transform_name,
6817 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6818 Use sol2_sigtramp_p.
6819 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6820 (sol2_sigtramp_p): New function.
6821 (sol2_static_transform_name): New function.
6822 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6823 (sol2_init_abi): New function.
6824 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6825 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6826 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6827 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6828 (sparc_sol2_static_transform_name): Remove.
6829 (sparc32_sol2_init_abi): Call sol2_init_abi.
6830 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6831 set_gdbarch_static_transform_name,
6832 set_gdbarch_skip_solib_resolver,
6833 set_gdbarch_core_pid_to_str.
6834 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6835 (sparc_sol2_static_transform_name): Remove
6836 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6837 call sol2_sigtramp_p.
6838 (sparc64_sol2_init_abi): Call sol2_init_abi.
6839 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6840 set_gdbarch_static_transform_name,
6841 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6843 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6845 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6846 * exec.c (validate_exec_file): If from_tty, set both
6847 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6848 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6849 and from_tty, unconditionally ask a confirmation.
6851 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853 * target-descriptions.c (tdesc_architecture_name): Protect against
6854 NULL pointer dereference.
6855 (maint_print_xml_tdesc_cmd): New function.
6856 (_initialize_target_descriptions): Register new 'maint print
6857 xml-tdesc' command and give it the filename completer.
6858 * NEWS: Mention new 'maint print xml-tdesc' command.
6860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6862 * target-descriptions.c (class tdesc_compatible_info): New class.
6863 (struct target_desc): Change type of compatible vector.
6864 (tdesc_compatible_p): Update for change in type of
6865 target_desc::compatible.
6866 (tdesc_compatible_info_list): New function.
6867 (tdesc_compatible_info_arch_name): New function.
6868 (tdesc_add_compatible): Update for change in type of
6869 target_desc::compatible.
6870 (print_c_tdesc::visit_pre): Likewise.
6872 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6874 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6875 whitespace to underscore.
6876 (maint_print_c_tdesc_cmd): Use fake filename for target
6877 descriptions that came from the target.
6878 (_initialize_target_descriptions): Add filename command completion
6879 for 'maint print c-tdesc'.
6881 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6883 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6886 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6888 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6890 (dwarf2_find_location_expression): Likewise.
6891 (call_site_parameter_matches): Likewise.
6892 (dwarf2_compile_expr_to_ax): Likewise.
6893 (disassemble_dwarf_expression): Likewise.
6894 (loclist_describe_location): Likewise.
6896 2020-06-23 Pedro Alves <palves@redhat.com>
6898 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6899 progspace-and-thread.h. Include scoped-mock-context.h instead.
6900 (register_to_value_test): Use scoped_mock_context.
6901 * regcache.c: Include "scoped-mock-context.h".
6902 (cooked_read_test): Don't error out if a target is already pushed.
6903 Use scoped_mock_context. Adjust.
6904 * scoped-mock-context.h: New file.
6906 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6908 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6910 (ada_language::is_string_type_p): New member function.
6911 * c-lang.c (c_language_data): Delete la_is_string_type_p
6913 (cplus_language_data): Likewise.
6914 (asm_language_data): Likewise.
6915 (minimal_language_data): Likewise.
6916 * d-lang.c (d_language_data): Likewise.
6917 * f-lang.c (f_is_string_type_p): Delete function, implementation
6918 moved to f_language::is_string_type_p.
6919 (f_language_data): Delete la_is_string_type_p initializer.
6920 (f_language::is_string_type_p): New member function,
6921 implementation from f_is_string_type_p.
6922 * go-lang.c (go_is_string_type_p): Delete function, implementation
6923 moved to go_language::is_string_type_p.
6924 (go_language_data): Delete la_is_string_type_p initializer.
6925 (go_language::is_string_type_p): New member function,
6926 implementation from go_is_string_type_p.
6927 * language.c (language_defn::is_string_type_p): Define new member
6929 (default_is_string_type_p): Make static, add comment copied from
6931 (unknown_language_data): Delete la_is_string_type_p initializer.
6932 (unknown_language::is_string_type_p): New member function.
6933 (auto_language_data): Delete la_is_string_type_p initializer.
6934 (auto_language::is_string_type_p): New member function.
6935 * language.h (language_data): Delete la_is_string_type_p field.
6936 (language_defn::is_string_type_p): Declare new function.
6937 (default_is_string_type_p): Delete desclaration, move comment to
6939 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6940 moved to m2_language::is_string_type_p.
6941 (m2_language_data): Delete la_is_string_type_p initializer.
6942 (m2_language::is_string_type_p): New member function,
6943 implementation from m2_is_string_type_p.
6944 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6946 * opencl-lang.c (opencl_language_data): Likewise.
6947 * p-lang.c (pascal_is_string_type_p): Delete function,
6948 implementation moved to pascal_language::is_string_type_p.
6949 (pascal_language_data): Delete la_is_string_type_p initializer.
6950 (pascal_language::is_string_type_p): New member function,
6951 implementation from pascal_is_string_type_p.
6952 * rust-lang.c (rust_is_string_type_p): Delete function,
6953 implementation moved to rust_language::is_string_type_p.
6954 (rust_language_data): Delete la_is_string_type_p initializer.
6955 (rust_language::is_string_type_p): New member function,
6956 implementation from rust_is_string_type_p.
6957 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6960 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6962 * ada-lang.c (ada_language_data): Delete la_print_typedef
6964 (ada_language::print_typedef): New member function.
6965 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6966 (cplus_language_data): Likewise.
6967 (asm_language_data): Likewise.
6968 (minimal_language_data): Likewise.
6969 * d-lang.c (d_language_data): Likewise.
6970 * f-lang.c (f_language_data): Likewise.
6971 (f_language::print_typedef): New member function.
6972 * go-lang.c (go_language_data): Delete la_print_typedef
6974 * language.c (language_defn::print_typedef): Define member
6976 (unknown_language_data): Delete la_print_typedef initializer.
6977 (unknown_language::print_typedef): New member function.
6978 (auto_language_data): Delete la_print_typedef initializer.
6979 (auto_language::print_typedef): New member function.
6980 * language.h (language_data): Delete la_print_typedef field.
6981 (language_defn::print_typedef): Declare new member function.
6982 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6983 (default_print_typedef): Delete declaration.
6984 * m2-lang.c (m2_language_data): Delete la_print_typedef
6986 (m2_language::print_typedef): New member function.
6987 * objc-lang.c (objc_language_data): Delete la_print_typedef
6989 * opencl-lang.c (opencl_language_data): Likewise.
6990 * p-lang.c (pascal_language_data): Likewise.
6991 (pascal_language::print_typedef): New member function.
6992 * rust-lang.c (rust_print_typedef): Delete function,
6993 implementation moved to rust_language::print_typedef.
6994 (rust_language): Delete la_print_typedef initializer.
6995 (rust_language::print_typedef): New member function,
6996 implementation from rust_print_typedef.
6997 * typeprint.c (default_print_typedef): Delete.
6999 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7001 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7002 (ada_language::printstr): New member function.
7003 * c-lang.c (c_language_data): Delete la_printstr initializer.
7004 (cplus_language_data): Likewise.
7005 (asm_language_data): Likewise.
7006 (minimal_language_data): Likewise.
7007 * d-lang.c (d_language_data): Likewise.
7008 * f-lang.c (f_printstr): Rename to f_language::printstr.
7009 (f_language_data): Delete la_printstr initializer.
7010 (f_language::printstr): New member function, implementation from
7012 * go-lang.c (go_language_data): Delete la_printstr initializer.
7013 * language.c (language_defn::printstr): Define new member
7015 (unk_lang_printstr): Delete.
7016 (unknown_language_data): Delete la_printstr initializer.
7017 (unknown_language::printstr): New member function.
7018 (auto_language_data): Delete la_printstr initializer.
7019 (auto_language::printstr): New member function.
7020 * language.h (language_data): Delete la_printstr field.
7021 (language_defn::printstr): Declare new member function.
7022 (LA_PRINT_STRING): Update call to printstr.
7023 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7024 (m2_language_data): Delete la_printstr initializer.
7025 (m2_language::printstr): New member function, implementation from
7027 * objc-lang.c (objc_language_data): Delete la_printstr
7029 * opencl-lang.c (opencl_language_data): Likewise.
7030 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7031 (pascal_language_data): Delete la_printstr initializer.
7032 (pascal_language::printstr): New member function, implementation
7033 from pascal_printstr.
7034 * p-lang.h (pascal_printstr): Delete declaration.
7035 * rust-lang.c (rust_printstr): Update header comment.
7036 (rust_language_data): Delete la_printstr initializer.
7037 (rust_language::printstr): New member function.
7039 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7041 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7042 (ada_language::printchar): New member function.
7043 * c-lang.c (c_language_data): Delete la_printchar initializer.
7044 (cplus_language_data): Likewise.
7045 (asm_language_data): Likewise.
7046 (minimal_language_data): Likewise.
7047 * d-lang.c (d_language_data): Likewise.
7048 * f-lang.c (f_printchar): Rename to f_language::printchar.
7049 (f_language_data): Delete la_printchar initializer.
7050 (f_language::printchar): New member function, implementation from
7052 * go-lang.c (go_language_data): Delete la_printchar initializer.
7053 * language.c (unk_lang_printchar): Delete.
7054 (language_defn::printchar): Define new member function.
7055 (unknown_language_data): Delete la_printchar initializer.
7056 (unknown_language::printchar): New member function.
7057 (auto_language_data): Delete la_printchar initializer.
7058 (auto_language::printchar): New member function.
7059 * language.h (language_data): Delete la_printchar field.
7060 (language_defn::printchar): Declare new member function.
7061 (LA_PRINT_CHAR): Update call to printchar.
7062 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7063 (m2_language::printchar): New member function.
7064 * objc-lang.c (objc_language_data): Delete la_printchar
7066 * opencl-lang.c (opencl_language_data): Likewise.
7067 * p-lang.c (pascal_language_data): Delete la_printchar
7069 (pascal_language::printchar): New member function.
7070 * rust-lang.c (rust_printchar): Rename to
7071 rust_language::printchar.
7072 (rust_language_data): Delete la_printchar initializer.
7073 (rust_language::printchar): New member function, implementation
7074 from rust_printchar.
7076 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7078 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7079 (ada_language_data): Delete la_emitchar initializer.
7080 (ada_language::emitchar): New member function, implementation from
7082 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7083 (cplus_language_data): Likewise.
7084 (asm_language_data): Likewise.
7085 (minimal_language_data): Likewise.
7086 * d-lang.c (d_language_data): Likewise.
7087 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7088 (f_language_data): Delete la_emitchar initializer.
7089 (f_language::emitchar): New member function, implementation from
7091 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7092 * language.c (unk_lang_emit_char): Delete.
7093 (language_defn::emitchar): New member function definition.
7094 (unknown_language_data): Delete la_emitchar initializer.
7095 (unknown_language::emitchar): New member function.
7096 (auto_language_data): Delete la_emitchar initializer.
7097 (auto_language::emitchar): New member function.
7098 * language.h (language_data): Delete la_emitchar field.
7099 (language_defn::emitchar): New member field declaration.
7100 (LA_EMIT_CHAR): Update call to emitchar.
7101 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7102 (m2_language_data): Delete la_emitchar initializer.
7103 (m2_language::emitchar): New member function, implementation from
7105 * objc-lang.c (objc_language_data): Delete la_emitchar
7107 * opencl-lang.c (opencl_language_data): Likewise.
7108 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7109 (pascal_language_data): Delete la_emitchar initializer.
7110 (pascal_language::emitchar): New member function, implementation
7111 from pascal_emit_char.
7112 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7113 (rust_language_data): Delete la_emitchar initializer.
7114 (rust_language::emitchar): New member function, implementation
7117 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7119 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7120 (ada_language_data): Delete la_post_parser initializer.
7121 (ada_language::post_parser): New member function.
7122 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7123 (cplus_language_data): Likewise.
7124 (asm_language_data): Likewise.
7125 (minimal_language_data): Likewise.
7126 * d-lang.c (d_language_data): Likewise.
7127 * f-lang.c (f_language_data): Likewise.
7128 * go-lang.c (go_language_data): Likewise.
7129 * language.c (unknown_language_data): Likewise.
7130 (auto_language_data): Likewise.
7131 * language.h (language_data): Delete la_post_parser field.
7132 (language_defn::post_parser): New member function.
7133 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7134 * objc-lang.c (objc_language_data): Likewise.
7135 * opencl-lang.c (opencl_language_data): Likewise.
7136 * p-lang.c (pascal_language_data): Likewise.
7137 * parse.c (parse_exp_in_context): Update call to post_parser.
7138 (null_post_parser): Delete definition.
7139 * parser-defs.h (null_post_parser): Delete declaration.
7140 * rust-lang.c (rust_language_data): Delete la_post_parser
7143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7145 * ada-lang.c (parse): Rename to ada_language::parser.
7146 (ada_language_data): Delete la_parser initializer.
7147 (ada_language::parser): New member function, implementation from
7149 * c-lang.c (c_language_data): Delete la_parser initializer.
7150 (cplus_language_data): Likewise.
7151 (asm_language_data): Likewise.
7152 (minimal_language_data): Likewise.
7153 * d-lang.c (d_language_data): Likewise.
7154 (d_language::parser): New member function.
7155 * f-lang.c (f_language_data): Delete la_parser initializer.
7156 (f_language::parser): New member function.
7157 * go-lang.c (go_language_data): Delete la_parser initializer.
7158 (go_language::parser): New member function.
7159 * language.c (unk_lang_parser): Delete.
7160 (language_defn::parser): Define new member function.
7161 (unknown_language_data): Delete la_parser initializer.
7162 (unknown_language::parser): New member function.
7163 (auto_language_data): Delete la_parser initializer.
7164 (auto_language::parser): New member function.
7165 * language.h (language_data): Delete la_parser field.
7166 (language_defn::parser): Declare new member function.
7167 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7168 (m2_language::parser): New member function.
7169 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7170 * opencl-lang.c (opencl_language_data): Likewise.
7171 * p-lang.c (pascal_language_data): Likewise.
7172 (pascal_language::parser): New member function.
7173 * parse.c (parse_exp_in_context): Update call to parser.
7174 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7175 (rust_language::parser): New member function.
7177 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7179 * top.c (print_gdb_configuration): Print --with-python-libdir
7180 configuration value.
7182 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7184 * NEWS: Mention change to the alias command.
7186 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7188 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7189 (alias_command_completer)
7190 (make_alias_options_def_group): New functions.
7191 (alias_opts, alias_option_defs): New struct and array.
7192 (alias_usage_error): Update usage.
7193 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7194 Use option framework.
7195 (_initialize_cli_cmds): Update alias command help.
7196 Update aliases command help.
7198 Add NULL for new default_args lookup_cmd argument.
7199 (valid_command_p): Rename to validate_aliased_command.
7200 Add NULL for new default_args lookup_cmd argument. Verify that the
7201 aliased_command has no default args.
7202 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7203 (lookup_cmd_1, lookup_cmd): New argument default_args.
7205 Add NULL for new default_args lookup_cmd argument.
7206 (print_help_for_command): Show default args under the layout
7207 alias some_alias = some_aliased_cmd some_alias_default_arg.
7208 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7209 xfree default_args in destructor.
7210 * cli/cli-script.c (process_next_line, do_define_command):
7211 Add NULL for new default_args lookup_cmd argument.
7212 * command.h: Declare new default_args argument in lookup_cmd
7214 * completer.c (complete_line_internal_1):
7215 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7216 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7217 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7219 * infcmd.c (_initialize_infcmd): Likewise.
7220 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7221 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7222 * python/py-param.c (add_setshow_generic): Likewise.
7223 * remote.c (_initialize_remote): Likewise.
7224 * top.c (execute_command): Prepend default_args if command has some.
7226 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7227 * tracepoint.c (validate_actionline, encode_actions_1):
7228 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7230 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7232 * jit.c (jit_read_descriptor): Use bool as the return type.
7233 (jit_breakpoint_re_set_internal): Use bool as the return type.
7234 Invert the return value logic; return true if the jit breakpoint
7235 has been successfully initialized.
7236 (jit_inferior_init): Update the call to
7237 jit_breakpoint_re_set_internal.
7239 2020-06-22 Pedro Alves <palves@redhat.com>
7242 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7243 Use the current inferior instead. Don't return
7244 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7246 * sol-thread.c (sol_thread_target::wait): Don't reference
7248 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7249 (sol_update_thread_list_callback): Use the current inferior's pid
7250 instead of inferior_ptid.
7252 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7254 * procfs.c: Cleanup many comments.
7256 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7257 (AFTER_WATCHFLAG): Replace by value.
7259 (MAIN_PROC_NAME_FORMAT): Inline ...
7260 (create_procinfo): ... here.
7262 (procfs_debug_inferior): Remove SYS_exec handling.
7263 (syscall_is_exec): Likewise.
7264 (procfs_set_exec_trap): Likewise.
7266 (syscall_is_lwp_exit): Inline in callers.
7267 (syscall_is_exit): Likewise.
7268 (syscall_is_exec): Likewise.
7269 (syscall_is_lwp_create): Likewise.
7271 (invalidate_cache): Remove #if 0 code.
7273 (make_signal_thread_runnable): Remove.
7274 (procfs_target::resume): Remove #if 0 code.
7276 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7279 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7281 (procfs_target::create_inferior): ... here.
7283 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7285 * exec.c (validate_exec_file): Ensure the build-id is up to
7286 date by calling reopen_exec_file (that checks file timestamp
7287 to decide to re-read the file).
7289 2020-06-18 Pedro Alves <palves@redhat.com>
7292 * gdbthread.h (delete_thread, delete_thread_silent)
7293 (find_thread_ptid): Update comments.
7294 * thread.c (current_thread_): New global.
7295 (is_current_thread): Move higher, and reimplement.
7296 (inferior_thread): Reimplement.
7297 (set_thread_exited): Use bool. Add assertions.
7298 (add_thread_silent): Simplify thread-reuse handling by always
7299 calling delete_thread.
7300 (delete_thread): Remove intro comment.
7301 (find_thread_ptid): Skip exited threads.
7302 (switch_to_thread_no_regs): Write to current_thread_.
7303 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7304 INFERIOR_PTID. Clear current_thread_.
7306 2020-06-18 Pedro Alves <palves@redhat.com>
7308 * aix-thread.c (pd_update): Use switch_to_thread.
7310 2020-06-18 Pedro Alves <palves@redhat.com>
7312 * ravenscar-thread.c (ravenscar_thread_target): Update.
7313 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7314 (ravenscar_thread_target::add_active_thread): ... this. Don't
7315 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7316 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7318 2020-06-18 Pedro Alves <palves@redhat.com>
7320 * nat/windows-nat.c (current_windows_thread): Remove.
7321 * nat/windows-nat.h (current_windows_thread): Remove.
7322 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7324 (display_selectors): Adjust to fetch the current
7325 windows_thread_info based on inferior_ptid.
7326 (fake_create_process): No longer write to current_windows_thread.
7327 (windows_nat_target::get_windows_debug_event):
7328 Don't set inferior_ptid or current_windows_thread.
7329 (windows_nat_target::wait): Adjust to not rely on
7330 current_windows_thread.
7331 (do_initial_windows_stuff): Now a method of windows_nat_target.
7332 Switch to the last_ptid thread.
7333 (windows_nat_target::attach): Adjust.
7334 (windows_nat_target::detach): Use switch_to_no_thread instead of
7335 writing to inferior_ptid directly.
7336 (windows_nat_target::create_inferior): Adjust.
7338 2020-06-18 Pedro Alves <palves@redhat.com>
7340 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7342 2020-06-18 Pedro Alves <palves@redhat.com>
7344 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7345 after creating it, instead of writing to inferior_ptid. Don't
7346 write to inferior_ptid.
7348 2020-06-18 Pedro Alves <palves@redhat.com>
7350 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7352 2020-06-18 Pedro Alves <palves@redhat.com>
7354 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7355 it, instead of writing to inferior_ptid.
7357 2020-06-18 Pedro Alves <palves@redhat.com>
7359 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7362 2020-06-18 Pedro Alves <palves@redhat.com>
7364 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7365 instead of writing to inferior_ptid directly.
7367 2020-06-18 Pedro Alves <palves@redhat.com>
7369 * corelow.c (core_target::close): Use switch_to_no_thread instead
7370 of writing to inferior_ptid directly.
7371 (add_to_thread_list, core_target_open): Use switch_to_thread
7372 instead of writing to inferior_ptid directly.
7374 2020-06-18 Pedro Alves <palves@redhat.com>
7376 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7378 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7380 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7381 inferior_ptid directly.
7382 (darwin_nat_target::init_thread_list): Switch to thread, instead
7383 of writing to inferior_ptid.
7384 (darwin_nat_target::attach): Don't write to inferior_ptid.
7385 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7387 2020-06-18 Pedro Alves <palves@redhat.com>
7389 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7391 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7392 Instead use switch_to_thread.
7393 (gnu_nat_target::detach): Use switch_to_no_thread
7394 instead of writing to inferior_ptid directly. Used passed-in
7395 inferior instead of looking up the inferior by pid.
7397 2020-06-18 Pedro Alves <palves@redhat.com>
7399 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7402 2020-06-18 Pedro Alves <palves@redhat.com>
7404 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7406 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7408 (nto_procfs_target::detach): Avoid referencing
7409 inferior_ptid. Use switch_to_no_thread instead of writing to
7410 inferior_ptid directly.
7411 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7412 instead of writing to inferior_ptid directly.
7413 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7416 2020-06-18 Pedro Alves <palves@redhat.com>
7418 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7419 after creating it, instead of writing to inferior_ptid.
7420 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7421 to inferior_ptid directly.
7422 (gdbsim_target::wait): Don't write to inferior_ptid.
7424 2020-06-18 Pedro Alves <palves@redhat.com>
7426 * remote.c (remote_target::remote_notice_new_inferior): Use
7427 switch_to_thread instead of writing to inferior_ptid directly.
7428 (remote_target::add_current_inferior_and_thread): Use
7429 switch_to_no_thread instead of writing to inferior_ptid directly.
7430 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7431 and switch_to_thread instead of using set_current_inferior or
7432 writing to inferior_ptid directly.
7434 2020-06-18 Pedro Alves <palves@redhat.com>
7436 * tracectf.c (ctf_target_open): Switch to added thread instead of
7437 writing to inferior_ptid directly.
7438 (ctf_target::close): Use switch_to_no_thread instead of writing to
7439 inferior_ptid directly.
7441 2020-06-18 Pedro Alves <palves@redhat.com>
7443 * tracefile-tfile.c (tfile_target_open): Don't write to
7444 inferior_ptid directly, instead switch to added thread.
7445 (tfile_target::close): Use switch_to_no_thread instead of writing
7446 to inferior_ptid directly.
7448 2020-06-18 Pedro Alves <palves@redhat.com>
7450 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7451 (procfs_target::detach): Use switch_to_no_thread
7452 instead of writing to inferior_ptid directly.
7453 (do_attach): Change return type to void. Switch to the added
7455 (procfs_target::create_inferior): Switch to the added thread.
7456 (procfs_do_thread_registers): Don't write to inferior_ptid.
7458 2020-06-18 Pedro Alves <palves@redhat.com>
7460 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7461 of writing to inferior_ptid.
7462 (scoped_restore_exited_inferior): Delete.
7463 (handle_vfork_child_exec_or_exit): Simplify using
7464 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7465 instead of writing to inferior_ptid.
7466 (THREAD_STOPPED_BY): Delete.
7467 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7468 (thread_stopped_by_hw_breakpoint): Delete.
7469 (save_waitstatus): Use
7470 scoped_restore_current_thread+switch_to_thread, and call
7471 target_stopped_by_watchpoint instead of
7472 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7473 instead of thread_stopped_by_sw_breakpoint, and
7474 target_stopped_by_hw_breakpoint instead of
7475 thread_stopped_by_hw_breakpoint.
7476 (handle_inferior_event)
7477 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7478 inferior_ptid directly, nor
7479 set_current_inferior/set_current_program_space. Use
7480 switch_to_thread / switch_to_inferior_no_thread instead.
7482 2020-06-18 Pedro Alves <palves@redhat.com>
7484 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7485 instead of writing to inferior_ptid.
7487 2020-06-18 Pedro Alves <palves@redhat.com>
7489 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7491 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7492 to the added thread.
7493 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7494 instead of writing to inferior_ptid.
7496 2020-06-18 Pedro Alves <palves@redhat.com>
7498 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7499 (register_to_value_test): Mock a program_space too. Heap-allocate
7500 the address space. Don't write to inferior_ptid. Use
7501 switch_to_thread instead.
7503 2020-06-18 Pedro Alves <palves@redhat.com>
7505 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7507 (find_signalled_thread()): New, factored out from
7508 linux_make_corefile_notes and adjusted to handle exited threads.
7509 (linux_make_corefile_notes): Adjust to use the new
7510 find_signalled_thread.
7512 2020-06-18 Pedro Alves <palves@redhat.com>
7514 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7515 of saving/restoring inferior_ptid.
7517 2020-06-17 Tom Tromey <tom@tromey.com>
7519 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7520 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7522 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7524 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7526 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7529 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7531 * regformats/reg-arm.dat: Remove.
7532 * regformats/reg-bfin.dat: Remove.
7533 * regformats/reg-cris.dat: Remove.
7534 * regformats/reg-crisv32.dat: Remove.
7535 * regformats/reg-m32r.dat: Remove.
7536 * regformats/reg-tilegx.dat: Remove.
7537 * regformats/reg-tilegx32.dat: Remove.
7539 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7541 * features/Makefile (WHICH): Remove arm files.
7542 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7543 * regformats/arm/arm-with-neon.dat: Remove.
7544 * regformats/arm/arm-with-vfpv2.dat: Remove.
7545 * regformats/arm/arm-with-vfpv3.dat: Remove.
7547 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7549 * features/Makefile (XMLTOC): Remove rx.xml.
7551 2020-06-17 Pedro Alves <palves@redhat.com>
7553 * gdbthread.h (thread_control_state) <trap_expected> Update
7556 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7558 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7559 ada_language::lookup_symbol_nonlocal.
7560 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7561 (ada_language::lookup_symbol_nonlocal): New member function,
7562 implementation from ada_lookup_symbol_nonlocal.
7563 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7565 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7567 (cplus_language::lookup_symbol_nonlocal): New member function.
7568 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7569 (minimal_language_data) Likewise.
7570 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7571 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7573 (d_language::lookup_symbol_nonlocal): New member function.
7574 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7576 (f_language::lookup_symbol_nonlocal): New member function.
7577 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7579 * language.c (unknown_language_data): Likewise.
7580 (auto_language_data): Likewise.
7581 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7583 (language_defn::lookup_symbol_nonlocal): New member function.
7584 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7586 * objc-lang.c (objc_language_data): Likewise.
7587 * opencl-lang.c (opencl_language_data): Likewise.
7588 * p-lang.c (pascal_language_data): Likewise.
7589 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7590 rust_language::lookup_symbol_nonlocal.
7591 (rust_language_data): Delete la_lookup_symbol_nonlocal
7593 (rust_language::lookup_symbol_nonlocal): New member function,
7594 implementation from rust_lookup_symbol_nonlocal.
7595 * symtab.c (lookup_symbol_aux): Update call to
7596 lookup_symbol_nonlocal.
7597 (basic_lookup_symbol_nonlocal): Rename to...
7598 (language_defn::lookup_symbol_nonlocal): ...this, and update
7599 header comment. Remove language_defn parameter, and replace with
7601 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7603 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7605 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7607 (ada_language::value_print_inner): New member function.
7608 * c-lang.c (c_language_data): Delete la_value_print_inner
7610 (cplus_language_data): Likewise.
7611 (asm_language_data): Likewise.
7612 (minimal_language_data): Likewise.
7613 * d-lang.c (d_language_data): Likewise.
7614 (d_language::value_print_inner): New member function.
7615 * f-lang.c (f_language_data): Delete la_value_print_inner
7617 (f_language::value_print_inner): New member function.
7618 * f-lang.h (f_value_print_innner): Rename to...
7619 (f_value_print_inner): ...this (note spelling of 'inner').
7620 * f-valprint.c (f_value_print_innner): Rename to...
7621 (f_value_print_inner): ...this (note spelling of 'inner').
7622 * go-lang.c (go_language_data): Delete la_value_print_inner
7624 (go_language::value_print_inner): New member function.
7625 * language.c (language_defn::value_print_inner): Define new member
7627 (unk_lang_value_print_inner): Delete.
7628 (unknown_language_data): Delete la_value_print_inner initializer.
7629 (unknown_language::value_print_inner): New member function.
7630 (auto_language_data): Delete la_value_print_inner initializer.
7631 (auto_language::value_print_inner): New member function.
7632 * language.h (language_data): Delete la_value_print_inner field.
7633 (language_defn::value_print_inner): Delcare new member function.
7634 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7636 (m2_language::value_print_inner): New member function.
7637 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7639 * opencl-lang.c (opencl_language_data): Likewise.
7640 * p-lang.c (pascal_language_data): Likewise.
7641 (pascal_language::value_print_inner): New member function.
7642 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7644 (rust_language::value_print_inner): New member function.
7645 * valprint.c (do_val_print): Update call to value_print_inner.
7647 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7649 * ada-lang.c (ada_language_data): Delete la_value_print
7651 (ada_language::value_print): New member function.
7652 * c-lang.c (c_language_data): Delete la_value_print initializer.
7653 (cplus_language_data): Likewise.
7654 (asm_language_data): Likewise.
7655 (minimal_language_data): Likewise.
7656 * d-lang.c (d_language_data): Likewise.
7657 * f-lang.c (f_language_data): Likewise.
7658 * go-lang.c (go_language_data): Likewise.
7659 * language.c (unk_lang_value_print): Delete.
7660 (language_defn::value_print): Define new member function.
7661 (unknown_language_data): Delete la_value_print initializer.
7662 (unknown_language::value_print): New member function.
7663 (auto_language_data): Delete la_value_print initializer.
7664 (auto_language::value_print): New member function.
7665 * language.h (language_data): Delete la_value_print field.
7666 (language_defn::value_print): Declare new member function.
7667 (LA_VALUE_PRINT): Update call to value_print.
7668 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7669 * objc-lang.c (objc_language_data): Likewise.
7670 * opencl-lang.c (opencl_language_data): Likewise.
7671 * p-lang.c (pascal_language_data): Likewise.
7672 (pascal_language::value_print): New member function.
7673 * rust-lang.c (rust_language_data): Delete la_value_print
7676 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7678 * ada-lang.c (ada_watch_location_expression): Rename to
7679 ada_language::watch_location_expression.
7680 (ada_language_data): Delete la_watch_location_expression
7682 (ada_language::watch_location_expression): New member function,
7683 implementation from ada_watch_location_expression.
7684 * breakpoint.c (watch_command_1): Update call to
7685 watch_location_expression.
7686 * c-lang.c (c_watch_location_expression): Rename to
7687 language_defn::watch_location_expression.
7688 (c_language_data): Delete la_watch_location_expression
7690 (cplus_language_data): Likewise.
7691 (asm_language_data): Likewise.
7692 (minimal_language_data): Likewise.
7693 * c-lang.h (c_watch_location_expression): Delete declaration.
7694 * d-lang.c (d_language_data): Delete la_watch_location_expression
7696 * f-lang.c (f_language_data): Likewise.
7697 * go-lang.c (go_language_data): Likewise.
7698 * language.c (language_defn::watch_location_expression): Member
7699 function implementation from c_watch_location_expression.
7700 (unknown_language_data): Delete la_watch_location_expression
7702 (auto_language_data): Likewise.
7703 * language.h (language_data): Delete la_watch_location_expression
7705 (language_defn::watch_location_expression): Declare new member
7707 * m2-lang.c (m2_language_data): Delete
7708 la_watch_location_expression initializer.
7709 * objc-lang.c (objc_language_data): Likewise.
7710 * opencl-lang.c (opencl_language_data): Likewise.
7711 * p-lang.c (pascal_language_data): Likewise.
7712 * rust-lang.c (rust_watch_location_expression): Rename to
7713 rust_language::watch_location_expression.
7714 (rust_language_data): Delete la_watch_location_expression
7716 (rust_language::watch_location_expression): New member function,
7717 implementation from rust_watch_location_expression.
7719 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7721 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7722 ada_language::collect_symbol_completion_matches.
7723 (ada_language_data): Delete la_collect_symbol_completion_matches
7725 (ada_language::collect_symbol_completion_matches): New member
7726 function, implementation from
7727 ada_collect_symbol_completion_matches.
7728 * c-lang.c (c_language_data): Delete
7729 la_collect_symbol_completion_matches initializer.
7730 (cplus_language_data): Likewise.
7731 (asm_language_data): Likewise.
7732 (minimal_language_data): Likewise.
7733 * d-lang.c (d_language_data): Likewise.
7734 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7735 f_language::collect_symbol_completion_matches.
7736 (f_language_data): Delete la_collect_symbol_completion_matches
7738 (f_language::collect_symbol_completion_matches) New member
7739 function, implementation from f_collect_symbol_completion_matches.
7740 * go-lang.c (go_language_data): Delete
7741 la_collect_symbol_completion_matches initializer.
7742 * language.c (unknown_language_data): Likewise.
7743 (auto_language_data): Likewise.
7744 * language.h (language_data): Delete
7745 la_collect_symbol_completion_matches field.
7746 (language_defn::collect_symbol_completion_matches): New member
7748 * m2-lang.c (m2_language_data): Delete
7749 la_collect_symbol_completion_matches initializer.
7750 * objc-lang.c (objc_language_data): Likewise.
7751 * opencl-lang.c (opencl_language_data): Likewise.
7752 * p-lang.c (pascal_language_data): Likewise.
7753 * rust-lang.c (rust_language_data): Likewise.
7754 * symtab.c (default_collect_symbol_completion_matches): Delete.
7755 (collect_symbol_completion_matches): Update call to
7756 collect_symbol_completion_matches.
7757 (collect_symbol_completion_matches_type): Likewise.
7758 * symtab.h (default_collect_symbol_completion_matches): Delete
7761 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7763 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7764 (ada_language_data): Delete la_word_break_characters initializer.
7765 (ada_language::word_break_characters): New member function.
7766 * c-lang.c (c_language_data): Delete la_word_break_characters
7768 (cplus_language_data): Likewise.
7769 (asm_language_data): Likewise.
7770 (minimal_language_data): Likewise.
7771 * completer.c: Update global comment.
7772 (advance_to_expression_complete_word_point): Update call to
7773 word_break_characters.
7774 (complete_files_symbols): Likewise.
7775 (complete_line_internal_1): Likewise.
7776 (default_completer_handle_brkchars): Likewise.
7777 (skip_quoted_chars): Likewise.
7778 * d-lang.c (d_language_data): Delete la_word_break_characters
7780 * f-lang.c (f_word_break_characters): Delete.
7781 (f_language_data): Delete la_word_break_characters initializer.
7782 (f_language::word_break_characters): New member function.
7783 * go-lang.c (go_language_data): Delete la_word_break_characters
7785 * language.c (unknown_language_data): Likewise.
7786 (auto_language_data): Likewise.
7787 * language.h (default_word_break_characters): Move declaration to
7788 earlier in the file.
7789 (language_data): Delete la_word_break_characters field.
7790 (language_defn::word_break_characters): New member function.
7791 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7793 * objc-lang.c (objc_language_data): Likewise.
7794 * opencl-lang.c (opencl_language_data): Likewise.
7795 * p-lang.c (pascal_language_data): Likewise.
7796 * rust-lang.c (rust_language_data): Likewise.
7798 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7800 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7801 (ada_language_data): Delete la_get_symbol_name_matcher
7803 (language_defn::get_symbol_name_matcher_inner): New member
7805 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7807 (cplus_language_data): Likewise.
7808 (cplus_language::get_symbol_name_matcher_inner): New member
7810 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7811 (minimal_language_data): Likewise.
7812 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7813 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7815 * dictionary.c (iter_match_first_hashed): Update call to
7816 get_symbol_name_matcher.
7817 (iter_match_next_hashed): Likewise.
7818 (iter_match_next_linear): Likewise.
7819 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7820 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7822 (f_language::get_symbol_name_matcher_inner): New member function.
7823 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7825 * language.c (default_symbol_name_matcher): Update header comment,
7827 (language_defn::get_symbol_name_matcher): New definition.
7828 (language_defn::get_symbol_name_matcher_inner): Likewise.
7829 (get_symbol_name_matcher): Delete.
7830 (unknown_language_data): Delete la_get_symbol_name_matcher
7832 (auto_language_data): Likewise.
7833 * language.h (language_data): Delete la_get_symbol_name_matcher
7835 (language_defn::get_symbol_name_matcher): New member function.
7836 (language_defn::get_symbol_name_matcher_inner): Likewise.
7837 (default_symbol_name_matcher): Delete declaration.
7838 * linespec.c (find_methods): Update call to
7839 get_symbol_name_matcher.
7840 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7842 * minsyms.c (lookup_minimal_symbol): Update call to
7843 get_symbol_name_matcher.
7844 (iterate_over_minimal_symbols): Likewise.
7845 * objc-lang.c (objc_language_data): Delete
7846 la_get_symbol_name_matcher initializer.
7847 * opencl-lang.c (opencl_language_data): Likewise.
7848 * p-lang.c (pascal_language_data): Likewise.
7849 * psymtab.c (psymbol_name_matches): Update call to
7850 get_symbol_name_matcher.
7851 * rust-lang.c (rust_language_data): Delete
7852 la_get_symbol_name_matcher initializer.
7853 * symtab.c (symbol_matches_search_name): Update call to
7854 get_symbol_name_matcher.
7855 (compare_symbol_name): Likewise.
7857 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7859 * ada-lang.c (ada_language_data): Delete la_compute_program
7861 * c-lang.c (c_language_data): Likewise.
7862 (c_language::compute_program): New member function.
7863 (cplus_language_data): Delete la_compute_program initializer.
7864 (cplus_language::compute_program): New member function.
7865 (asm_language_data): Delete la_compute_program initializer.
7866 (minimal_language_data): Likewise.
7867 * c-lang.h (c_compute_program): Update comment.
7868 (cplus_compute_program): Likewise.
7869 * compile/compile-c-support.c (c_compute_program): Likewise.
7870 (cplus_compute_program): Likewise.
7871 * compile/compile.c (compile_to_object): Update call to
7873 * d-lang.c (d_language_data): Delete la_compute_program
7875 * f-lang.c (f_language_data): Likewise.
7876 * go-lang.c (go_language_data): Likewise.
7877 * language.c (unknown_language_data): Likewise.
7878 (auto_language_data): Likewise.
7879 * language.h (language_data): Delete la_compute_program field.
7880 (language_defn::compute_program): New member function.
7881 * m2-lang.c (m2_language_data): Delete la_compute_program
7883 * objc-lang.c (objc_language_data): Likewise.
7884 * opencl-lang.c (opencl_language_data): Likewise.
7885 * p-lang.c (pascal_language_data): Likewise.
7886 * rust-lang.c (rust_language_data): Likewise.
7888 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7890 * ada-lang.c (ada_language_data) Delete
7891 la_class_name_from_physname initializer.
7892 * c-lang.c (c_language_data): Likewise.
7893 (cplus_language_data): Likewise.
7894 (cplus_language::class_name_from_physname): New member function.
7895 (asm_language_data): Delete la_class_name_from_physname
7897 (minimal_language_data): Likewise.
7898 * d-lang.c (d_language_data): Likewise.
7899 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7900 method on language_defn class.
7901 (guess_full_die_structure_name): Likewise.
7902 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7904 * go-lang.c (go_language_data): Likewise.
7905 * language.c (language_class_name_from_physname): Delete.
7906 (unk_lang_class_name): Delete.
7907 (unknown_language_data): Delete la_class_name_from_physname
7909 (auto_language_data): Likewise.
7910 * language.h (language_data): Delete la_class_name_from_physname
7912 (language_defn::class_name_from_physname): New function.
7913 (language_class_name_from_physname): Delete declaration.
7914 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7916 * objc-lang.c (objc_language_data): Likewise.
7917 * opencl-lang.c (opencl_language_data): Likewise.
7918 * p-lang.c (pascal_language_data): Likewise.
7919 * rust-lang.c (rust_language_data): Likewise.
7921 2020-06-16 Tom Tromey <tom@tromey.com>
7923 * tui/tui-data.h (STATUS_NAME): New macro.
7924 * tui/tui-layout.c (tui_remove_some_windows)
7925 (initialize_known_windows, tui_register_window)
7926 (tui_layout_split::remove_windows, initialize_layouts)
7927 (tui_new_layout_command): Don't use hard-coded window names.
7929 2020-06-16 Tom Tromey <tom@tromey.com>
7932 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7933 tui_initialize_readline. Only run once. Call rl_initialize.
7934 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7935 tui_initialize_readline.
7936 * tui/tui-io.c (tui_setup_io): Call
7937 tui_ensure_readline_initialized.
7938 * tui/tui-interp.c (tui_interp::init): Update.
7940 2020-06-16 Tom Tromey <tom@tromey.com>
7942 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7943 Also preserve the status window.
7945 2020-06-16 Tom Tromey <tom@tromey.com>
7947 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7948 where m_window==nullptr.
7950 2020-06-15 Tom Tromey <tromey@adacore.com>
7952 * windows-nat.c (windows_nat::handle_output_debug_string):
7954 (windows_nat::handle_ms_vc_exception): Update.
7955 * target.h (target_read_string): Change API.
7956 * target.c (target_read_string): Change API.
7957 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7959 * solib-frv.c (frv_current_sos): Update.
7960 * solib-dsbt.c (dsbt_current_sos): Update.
7961 * solib-darwin.c (darwin_current_sos): Update.
7962 * linux-thread-db.c (inferior_has_bug): Update.
7963 * expprint.c (print_subexp_standard): Update.
7964 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7965 (ada_exception_message_1): Update.
7967 2020-06-15 Tom Tromey <tromey@adacore.com>
7969 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7971 2020-06-15 Tom Tromey <tromey@adacore.com>
7973 * valprint.c (read_string): Update comment.
7974 * target.c (MIN): Remove.
7975 (target_read_string): Rewrite.
7977 2020-06-15 Tom Tromey <tromey@adacore.com>
7979 * corefile.c (read_memory_string): Remove.
7980 * ada-valprint.c (ada_value_print_ptr): Update.
7981 * ada-lang.h (ada_tag_name): Change return type.
7982 * ada-lang.c (type_from_tag): Update.
7983 (ada_tag_name_from_tsd): Change return type. Use
7985 (ada_tag_name): Likewise.
7986 * gdbcore.h (read_memory_string): Don't declare.
7988 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7990 * symtab.c (rbreak_command): Ignore Windows drive colon.
7992 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7994 * NEWS: Mention removed GDBserver host support.
7996 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7998 * features/riscv/rebuild-csr-xml.sh: Updated.
8000 2020-06-11 Tom Tromey <tom@tromey.com>
8003 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8005 2020-06-09 Jonny Grant <jg@jguk.org>
8006 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8008 * main.c (captured_main_1): Don't print new line after help.
8009 (print_gdb_help): add mailing list and IRC channel information
8010 to --help. Add new lines between items in the footer. Remove
8011 quotes around bug url.
8013 2020-06-11 Keith Seitz <keiths@redhat.com>
8016 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8017 Resolve typedefs for type length calculations.
8019 2020-06-10 Tom de Vries <tdevries@suse.de>
8022 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8023 (write_psymbols): Enable .gdb_index for ada.
8024 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8027 2020-06-10 Tom de Vries <tdevries@suse.de>
8029 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8030 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8031 namei" instead of "const char *name" argument.
8032 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8033 dw2_symtab_iter_init.
8035 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8037 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8038 to use type::field and field::type instead.
8040 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8042 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8043 to use field::type instead.
8045 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8047 * gdbtypes.h (struct field) <type, set_type>: New methods.
8048 Rename `type` field to...
8049 <m_type>: ... this. Change references throughout to use type or
8051 (FIELD_TYPE): Use field::type. Change call sites that modify
8052 the field's type to use field::set_type instead.
8054 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8056 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8057 to use type::index_type instead.
8059 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8061 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8063 (TYPE_INDEX_TYPE): Use type::index_type.
8064 * gdbtypes.c (create_array_type_with_stride): Likewise.
8066 2020-06-07 Tom Tromey <tom@tromey.com>
8068 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8070 (generic_value_print): Update.
8072 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8074 Revert commit 982a38f60b0.
8075 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8077 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8079 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8080 avoid use after free.
8082 2020-06-05 Tom de Vries <tdevries@suse.de>
8086 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8088 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8090 (dwarf2_read_debug_names): Likewise.
8091 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8092 object when re-using a per_bfd object with an index.
8094 2020-06-03 Tom de Vries <tdevries@suse.de>
8097 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8099 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8104 * ada-lang.c (ada_language_data): Delete skip_trampoline
8106 * c-lang.c (c_language_data): Likewise.
8107 (cplus_language_data): Likewise.
8108 (cplus_language::skip_trampoline): New member function.
8109 (asm_language_data): Delete skip_trampoline initializer.
8110 (minimal_language_data): Likewise.
8111 * d-lang.c (d_language_data): Likewise.
8112 * f-lang.c (f_language_data): Likewise.
8113 * go-lang.c (go_language_data): Likewise.
8114 * language.c (unk_lang_trampoline): Delete function.
8115 (skip_language_trampoline): Update.
8116 (unknown_language_data): Delete skip_trampoline initializer.
8117 (auto_language_data): Likewise.
8118 * language.h (language_data): Delete skip_trampoline field.
8119 (language_defn::skip_trampoline): New function.
8120 * m2-lang.c (m2_language_data): Delete skip_trampoline
8122 * objc-lang.c (objc_skip_trampoline): Delete function, move
8123 implementation to objc_language::skip_trampoline.
8124 (objc_language_data): Delete skip_trampoline initializer.
8125 (objc_language::skip_trampoline): New member function with
8126 implementation from objc_skip_trampoline.
8127 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8129 * p-lang.c (pascal_language_data): Likewise.
8130 * rust-lang.c (rust_language_data): Likewise.
8132 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8134 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8135 (ada_language::demangle): New member function.
8136 * c-lang.c (c_language_data): Delete la_demangle initializer.
8137 (cplus_language_data): Delete la_demangle initializer.
8138 (cplus_language::demangle): New member function.
8139 (asm_language_data): Delete la_demangle initializer.
8140 (minimal_language_data): Delete la_demangle initializer.
8141 * d-lang.c (d_language_data): Delete la_demangle initializer.
8142 (d_language::demangle): New member function.
8143 * f-lang.c (f_language_data): Delete la_demangle initializer.
8144 (f_language::demangle): New member function.
8145 * go-lang.c (go_language_data): Delete la_demangle initializer.
8146 (go_language::demangle): New member function.
8147 * language.c (language_demangle): Update.
8148 (unk_lang_demangle): Delete.
8149 (unknown_language_data): Delete la_demangle initializer.
8150 (unknown_language::demangle): New member function.
8151 (auto_language_data): Delete la_demangle initializer.
8152 (auto_language::demangle): New member function.
8153 * language.h (language_data): Delete la_demangle field.
8154 (language_defn::demangle): New function.
8155 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8156 * objc-lang.c (objc_language_data): Delete la_demangle
8158 (objc_language::demangle): New member function.
8159 * opencl-lang.c (opencl_language_data): Delete la_demangle
8161 * p-lang.c (pascal_language_data): Likewise.
8162 * rust-lang.c (rust_language_data): Likewise.
8163 (rust_language::demangle): New member function.
8165 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8167 * ada-lang.c (ada_language_data): Delete la_print_type
8169 (ada_language::print_type): New member function.
8170 * c-lang.c (c_language_data): Delete la_print_type initializer.
8171 (c_language::print_type): New member function.
8172 (cplus_language_data): Delete la_print_type initializer.
8173 (cplus_language::print_type): New member function.
8174 (asm_language_data): Delete la_print_type initializer.
8175 (asm_language::print_type): New member function.
8176 (minimal_language_data): Delete la_print_type initializer.
8177 (minimal_language::print_type): New member function.
8178 * d-lang.c (d_language_data): Delete la_print_type initializer.
8179 (d_language::print_type): New member function.
8180 * f-lang.c (f_language_data): Delete la_print_type initializer.
8181 (f_language::print_type): New member function.
8182 * go-lang.c (go_language_data): Delete la_print_type initializer.
8183 (go_language::print_type): New member function.
8184 * language.c (unk_lang_print_type): Delete.
8185 (unknown_language_data): Delete la_print_type initializer.
8186 (unknown_language::print_type): New member function.
8187 (auto_language_data): Delete la_print_type initializer.
8188 (auto_language::print_type): New member function.
8189 * language.h (language_data): Delete la_print_type field.
8190 (language_defn::print_type): New function.
8191 (LA_PRINT_TYPE): Update.
8192 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8193 (m2_language::print_type): New member function.
8194 * objc-lang.c (objc_language_data): Delete la_print_type
8196 (objc_language::print_type): New member function.
8197 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8198 to opencl_language::print_type.
8199 (opencl_language_data): Delete la_print_type initializer.
8200 (opencl_language::print_type): New member function, implementation
8201 from opencl_print_type.
8202 * p-lang.c (pascal_language_data): Delete la_print_type
8204 (pascal_language::print_type): New member function.
8205 * rust-lang.c (rust_print_type): Delete, implementation moved to
8206 rust_language::print_type.
8207 (rust_language_data): Delete la_print_type initializer.
8208 (rust_language::print_type): New member function, implementation
8209 from rust_print_type.
8211 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8213 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8214 implementation moves to...
8215 (ada_language::sniff_from_mangled_name): ...here. Update return
8217 (ada_language_data): Delete la_sniff_from_mangled_name
8219 * c-lang.c (c_language_data): Likewise.
8220 (cplus_language_data): Likewise.
8221 (cplus_language::sniff_from_mangled_name): New member function,
8222 implementation taken from gdb_sniff_from_mangled_name.
8223 (asm_language_data): Delete la_sniff_from_mangled_name
8225 (minimal_language_data): Likewise.
8226 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8227 implementation moves to cplus_language::sniff_from_mangled_name.
8228 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8229 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8231 (d_language::sniff_from_mangled_name): ...here.
8232 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8233 * f-lang.c (f_language_data): Likewise.
8234 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8236 (go_language::sniff_from_mangled_name): ...here.
8237 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8238 * language.c (language_sniff_from_mangled_name): Delete.
8239 (unknown_language_data): Delete la_sniff_from_mangled_name
8241 (auto_language_data): Likewise.
8242 * language.h (language_data): Delete la_sniff_from_mangled_name
8244 (language_defn::sniff_from_mangled_name): New function.
8245 (language_sniff_from_mangled_name): Delete declaration.
8246 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8248 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8249 implementation moves to...
8250 (objc_language::sniff_from_mangled_name): ...here.
8251 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8252 * opencl-lang.c (opencl_language_data): Likewise.
8253 * p-lang.c (pascal_language_data): Likewise.
8254 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8255 implementation moves to...
8256 (rust_language::sniff_from_mangled_name): ...here.
8257 (rust_language_data): Delete la_sniff_from_mangled_name
8259 * symtab.c (symbol_find_demangled_name): Call
8260 sniff_from_mangled_name member function.
8262 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8264 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8266 * c-lang.c (c_language_data): Likewise.
8267 (cplus_language_data): Likewise.
8268 (cplus_language::search_name_hash): New member function.
8269 (asm_language_data): Delete la_search_name_hash initializer.
8270 (minimal_language_data): Likewise.
8271 * d-lang.c (d_language_data): Likewise.
8272 * dictionary.c (default_search_name_hash): Rename to...
8273 (language_defn::search_name_hash): ...this.
8274 * f-lang.c (f_language_data): Likewise.
8275 (f_language::search_name_hash): New member function.
8276 * go-lang.c (go_language_data): Delete la_search_name_hash
8278 * language.c (unknown_language_data): Likewise.
8279 (auto_language_data): Likewise.
8280 * language.h (struct language_data): Delete la_search_name_hash
8282 (language_defn::search_name_hash): Declare new member function.
8283 (default_search_name_hash): Delete declaration.
8284 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8286 * objc-lang.c (objc_language_data): Likewise.
8287 * opencl-lang.c (opencl_language_data): Likewise.
8288 * p-lang.c (pascal_language_data): Likewise.
8289 * rust-lang.c (rust_language_data): Likewise.
8290 * symtab.c (search_name_hash): Update call.
8292 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8294 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8296 * c-lang.c (class compile_instance): Declare.
8297 (c_language_data): Delete la_get_compile_instance initializer.
8298 (c_language::get_compile_instance): New member function.
8299 (cplus_language_data): Delete la_get_compile_instance initializer.
8300 (cplus_language::get_compile_instance): New member function.
8301 (asm_language_data): Delete la_get_compile_instance initializer.
8302 (minimal_language_data): Likewise.
8303 * c-lang.h (c_get_compile_context): Update comment.
8304 (cplus_get_compile_context): Update comment.
8305 * compile/compile.c (compile_to_object): Update calls, don't rely
8306 on function pointer being NULL.
8307 * d-lang.c (d_language_data): Delete la_get_compile_instance
8309 * f-lang.c (f_language_data): Likewise.
8310 * go-lang.c (go_language_data): Likewise.
8311 * language.c (unknown_language_data): Likewise.
8312 (auto_language_data): Likewise.
8313 * language.h (language_data): Delete la_get_compile_instance field.
8314 (language_defn::get_compile_instance): New member function.
8315 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8317 * objc-lang.c (objc_language_data): Likewise.
8318 * opencl-lang.c (opencl_language_data): Likewise.
8319 * p-lang.c (pascal_language_data): Likewise.
8320 * rust-lang.c (rust_language_data): Likewise.
8322 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8324 * ada-lang.c (ada_add_all_symbols): Update comment.
8325 (ada_iterate_over_symbols): Delete, move implementation to...
8326 (ada_language::iterate_over_symbols): ...here, a new member
8327 function, rewrite to use range based for loop.
8328 (ada_language_data): Delete la_iterate_over_symbols initializer.
8329 * c-lang.c (c_language_data): Likewise.
8330 (cplus_language_data): Likewise.
8331 (asm_language_data): Likewise.
8332 (minimal_language_data): Likewise.
8333 * d-lang.c (d_language_data): Likewise.
8334 * f-lang.c (f_language_data): Likewise.
8335 * go-lang.c (go_language_data): Likewise.
8336 * language.c (unknown_language_data): Likewise.
8337 (auto_language_data): Likewise.
8338 * language.h (language_data): Delete la_iterate_over_symbols field.
8339 (language_defn::iterate_over_symbols): New member function.
8340 (LA_ITERATE_OVER_SYMBOLS): Update.
8341 * linespec.c (iterate_over_all_matching_symtabs): Update.
8342 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8344 * objc-lang.c (objc_language_data): Likewise.
8345 * opencl-lang.c (opencl_language_data): Likewise.
8346 * p-lang.c (pascal_language_data): Likewise.
8347 * rust-lang.c (rust_language_data): Likewise.
8349 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8351 * ada-lang.c (ada_language_data): Delete
8352 la_lookup_transparent_type initializer.
8353 * c-lang.c (c_language_data): Likewise.
8354 (cplus_language_data): Likewise.
8355 (cplus_language::lookup_transparent_type): New member function.
8356 (asm_language_data): Delete la_lookup_transparent_type
8358 (minimal_language_data): Likewise.
8359 * d-lang.c (d_language_data): Likewise.
8360 * f-lang.c (f_language_data): Likewise.
8361 * go-lang.c (go_language_data): Likewise.
8362 * language.c (unknown_language_data): Likewise.
8363 (auto_language_data): Likewise.
8364 * language.h (struct language_data): Delete
8365 la_lookup_transparent_type field.
8366 (language_defn::lookup_transparent_type): New member function.
8367 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8369 * objc-lang.c (objc_language_data): Likewise.
8370 * opencl-lang.c (opencl_language_data): Likewise.
8371 * p-lang.c (pascal_language_data): Likewise.
8372 * rust-lang.c (rust_language_data): Likewise.
8373 * symtab.c (symbol_matches_domain): Update call.
8375 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8377 * ada-lang.c (ada_language_arch_info): Delete function, move
8378 implementation to...
8379 (ada_language::language_arch_info): ...here, a new member
8381 (ada_language_data): Delete la_language_arch_info.
8382 * c-lang.c (c_language_data): Likewise.
8383 (c_language::language_arch_info): New member function.
8384 (cplus_language_arch_info): Delete function, move
8385 implementation to...
8386 (cplus_language::language_arch_info): ...here, a new member
8388 (cplus_language_data): Delete la_language_arch_info.
8389 (asm_language_data): Likewise.
8390 (asm_language::language_arch_info): New member function.
8391 (minimal_language_data): Delete la_language_arch_info.
8392 (minimal_language::language_arch_info): New member function.
8393 * d-lang.c (d_language_arch_info): Delete function, move
8394 implementation to...
8395 (d_language::language_arch_info): ...here, a new member
8397 (d_language_data): Delete la_language_arch_info.
8398 * f-lang.c (f_language_arch_info): Delete function, move
8399 implementation to...
8400 (f_language::language_arch_info): ...here, a new member
8402 (f_language_data): Delete la_language_arch_info.
8403 * go-lang.c (go_language_arch_info): Delete function, move
8404 implementation to...
8405 (go_language::language_arch_info): ...here, a new member
8407 (go_language_data): Delete la_language_arch_info.
8408 * language.c (unknown_language_data): Likewise.
8409 (unknown_language::language_arch_info): New member function.
8410 (auto_language_data): Delete la_language_arch_info.
8411 (auto_language::language_arch_info): New member function.
8412 (language_gdbarch_post_init): Update call to
8413 la_language_arch_info.
8414 * language.h (language_data): Delete la_language_arch_info
8416 (language_defn::language_arch_info): New function.
8417 * m2-lang.c (m2_language_arch_info): Delete function, move
8418 implementation to...
8419 (m2_language::language_arch_info): ...here, a new member
8421 (m2_language_data): Delete la_language_arch_info.
8422 * objc-lang.c (objc_language_arch_info): Delete function, move
8423 implementation to...
8424 (objc_language::language_arch_info): ...here, a new member
8426 (objc_language_data): Delete la_language_arch_info.
8427 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8428 implementation to...
8429 (opencl_language::language_arch_info): ...here, a new member
8431 (opencl_language_data): Delete la_language_arch_info.
8432 * p-lang.c (pascal_language_arch_info): Delete function, move
8433 implementation to...
8434 (pascal_language::language_arch_info): ...here, a new member
8436 (pascal_language_data): Delete la_language_arch_info.
8437 * rust-lang.c (rust_language_arch_info): Delete function, move
8438 implementation to...
8439 (rust_language::language_arch_info): ...here, a new member
8441 (rust_language_data): Delete la_language_arch_info.
8443 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8445 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8447 * c-lang.c (c_language_data): Likewise.
8448 (cplus_language_data): Likewise.
8449 (cplus_language::pass_by_reference_info): New method.
8450 (asm_language_data): Delete la_pass_by_reference initializer.
8451 (minimal_language_data): Likewise.
8452 * cp-abi.c (cp_pass_by_reference): Remove use of
8453 default_pass_by_reference.
8454 * d-lang.c (d_language_data): Likewise.
8455 * f-lang.c (f_language_data): Likewise.
8456 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8457 default_pass_by_reference.
8458 * go-lang.c (go_language_data): Likewise.
8459 * language.c (language_pass_by_reference): Update.
8460 (default_pass_by_reference): Delete.
8461 (unknown_language_data): Delete la_pass_by_reference
8463 (auto_language_data): Likewise.
8464 * language.h (struct language_data): Delete la_pass_by_reference
8466 (language_defn::pass_by_reference_info): New member function.
8467 (default_pass_by_reference): Delete declaration.
8468 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8470 * objc-lang.c (objc_language_data): Likewise.
8471 * opencl-lang.c (opencl_language_data): Likewise.
8472 * p-lang.c (pascal_language_data): Likewise.
8473 * rust-lang.c (rust_language_data): Likewise.
8475 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8477 * ada-lang.c (ada_read_var_value): Delete function, move
8478 implementation to...
8479 (ada_language::read_var_value): ...here.
8480 (ada_language_data): Delete la_read_var_value initializer.
8481 * c-lang.c (c_language_data): Likewise.
8482 (cplus_language_data): Likewise.
8483 (minimal_language_data): Likewise.
8484 * d-lang.c (d_language_data): Likewise.
8485 * f-lang.c (f_language_data): Likewise.
8486 * findvar.c (default_read_var_value): Rename to...
8487 (language_defn::read_var_value): ...this.
8488 * findvar.c (read_var_value): Update header comment, and change to
8489 call member function instead of function pointer.
8490 * go-lang.c (go_language_data): Likewise.
8491 * language.c (unknown_language_data): Delete la_read_var_value
8493 (auto_language_data): Likewise.
8494 * language.h (struct language_data): Delete la_read_var_value
8496 (language_defn::read_var_value): New member function.
8497 (default_read_var_value): Delete declaration.
8498 * m2-lang.c (m2_language_data): Delete la_read_var_value
8500 * objc-lang.c (objc_language_data): Likewise.
8501 * opencl-lang.c (opencl_language_data): Likewise.
8502 * p-lang.c (pascal_language_data): Likewise.
8503 * rust-lang.c (rust_language_data): Likewise.
8504 * value.h (default_read_var_value): Delete declaration.
8506 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8508 * ada-lang.c (ada_print_array_index): Delete function, move
8509 implementation to...
8510 (ada_language::print_array_index): ...here.
8511 (ada_language_data): Delete la_print_array_index initializer.
8512 * c-lang.c (c_language_data): Likewise.
8513 (cplus_language_data): Likewise.
8514 (minimal_language_data): Likewise.
8515 * d-lang.c (d_language_data): Likewise.
8516 * f-lang.c (f_language_data): Likewise.
8517 * go-lang.c (go_language_data): Likewise.
8518 * language.c (default_print_array_index): Delete function, move
8519 implementation to...
8520 (language_defn::print_array_index): ...here.
8521 (unknown_language_data): Delete la_print_array_index initializer.
8522 (auto_language_data): Likewise.
8523 * language.h (struct language_data): Delete la_print_array_index
8525 (language_defn::print_array_index): New member function.
8526 (LA_PRINT_ARRAY_INDEX): Update.
8527 (default_print_array_index): Delete declaration.
8528 * m2-lang.c (m2_language_data): Delete la_print_array_index
8530 * objc-lang.c (objc_language_data): Likewise.
8531 * opencl-lang.c (opencl_language_data): Likewise.
8532 * p-lang.c (pascal_language_data): Likewise.
8533 * rust-lang.c (rust_language_data): Likewise.
8535 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8537 * gdb/ada-lang.c (ada_language_defn): Convert to...
8538 (ada_language_data): ...this.
8539 (class ada_language): New class.
8540 (ada_language_defn): New static global.
8541 * gdb/c-lang.c (c_language_defn): Convert to...
8542 (c_language_data): ...this.
8543 (class c_language): New class.
8544 (c_language_defn): New static global.
8545 (cplus_language_defn): Convert to...
8546 (cplus_language_data): ...this.
8547 (class cplus_language): New class.
8548 (cplus_language_defn): New static global.
8549 (asm_language_defn): Convert to...
8550 (asm_language_data): ...this.
8551 (class asm_language): New class.
8552 (asm_language_defn): New static global.
8553 (minimal_language_defn): Convert to...
8554 (minimal_language_data): ...this.
8555 (class minimal_language): New class.
8556 (minimal_language_defn): New static global.
8557 * gdb/d-lang.c (d_language_defn): Convert to...
8558 (d_language_data): ...this.
8559 (class d_language): New class.
8560 (d_language_defn): New static global.
8561 * gdb/f-lang.c (f_language_defn): Convert to...
8562 (f_language_data): ...this.
8563 (class f_language): New class.
8564 (f_language_defn): New static global.
8565 * gdb/go-lang.c (go_language_defn): Convert to...
8566 (go_language_data): ...this.
8567 (class go_language): New class.
8568 (go_language_defn): New static global.
8569 * gdb/language.c (unknown_language_defn): Remove declaration.
8570 (current_language): Initialize to nullptr, real initialization is
8571 moved to _initialize_language.
8572 (languages): Delete global.
8573 (language_defn::languages): Define.
8574 (set_language_command): Use language_defn::languages.
8575 (set_language): Likewise.
8576 (range_error): Likewise.
8577 (language_enum): Likewise.
8578 (language_def): Likewise.
8579 (add_set_language_command): Use language_def::languages for the
8580 language list, and language_def to lookup language pointers.
8581 (skip_language_trampoline): Use language_defn::languages.
8582 (unknown_language_defn): Convert to...
8583 (unknown_language_data): ...this.
8584 (class unknown_language): New class.
8585 (unknown_language_defn): New static global.
8586 (auto_language_defn): Convert to...
8587 (auto_language_data): ...this.
8588 (class auto_language): New class.
8589 (auto_language_defn): New static global.
8590 (language_gdbarch_post_init): Use language_defn::languages.
8591 (_initialize_language): Initialize current_language.
8592 * gdb/language.h (struct language_defn): Rename to...
8593 (struct language_data): ...this.
8594 (struct language_defn): New.
8595 (auto_language_defn): Delete.
8596 (unknown_language_defn): Delete.
8597 (minimal_language_defn): Delete.
8598 (ada_language_defn): Delete.
8599 (asm_language_defn): Delete.
8600 (c_language_defn): Delete.
8601 (cplus_language_defn): Delete.
8602 (d_language_defn): Delete.
8603 (f_language_defn): Delete.
8604 (go_language_defn): Delete.
8605 (m2_language_defn): Delete.
8606 (objc_language_defn): Delete.
8607 (opencl_language_defn): Delete.
8608 (pascal_language_defn): Delete.
8609 (rust_language_defn): Delete.
8610 * gdb/m2-lang.c (m2_language_defn): Convert to...
8611 (m2_language_data): ...this.
8612 (class m2_language): New class.
8613 (m2_language_defn): New static global.
8614 * gdb/objc-lang.c (objc_language_defn): Convert to...
8615 (objc_language_data): ...this.
8616 (class objc_language): New class.
8617 (objc_language_defn): New static global.
8618 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8619 (opencl_language_data): ...this.
8620 (class opencl_language): New class.
8621 (opencl_language_defn): New static global.
8622 * gdb/p-lang.c (pascal_language_defn): Convert to...
8623 (pascal_language_data): ...this.
8624 (class pascal_language): New class.
8625 (pascal_language_defn): New static global.
8626 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8627 language pointer, update comment format.
8628 * gdb/rust-lang.c (rust_language_defn): Convert to...
8629 (rust_language_data): ...this.
8630 (class rust_language): New class.
8631 (rust_language_defn): New static global.
8633 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8635 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8637 <m_stmt_at_address>: New member variable.
8638 (lnp_state_machine::record_line): Don't record some lines, update
8639 tracking of is_stmt at the same address.
8640 (lnp_state_machine::lnp_state_machine): Initialise new member
8643 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8645 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8646 "-include gnu-nat-mig.h".
8647 * gnu-nat-mig.h: New file.
8648 * gnu-nat.c: Include "gnu-nat-mig.h".
8649 (exc_server, msg_reply_server, notify_server,
8650 process_reply_server): Remove declarations.
8652 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8654 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8655 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8656 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8657 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8658 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8659 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8660 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8661 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8662 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8663 to gnu_nat_target class.
8664 * gnu-nat.c: Likewise.
8665 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8666 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8667 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8669 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8670 instead of `gnu_target'.
8672 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8674 * i386-gnu-tdep.c: Include "gdbcore.h"
8675 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8676 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8677 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8678 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8679 i386_gnu_sigcontext_addr): New functions
8680 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8681 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8684 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8686 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8687 before fork_inferior call. Avoid calling it if target_is_pushed returns
8690 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8692 * gnu-nat.h (gnu_target): New variable declaration.
8693 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8695 * gnu-nat.c (gnu_target): New variable.
8696 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8697 add_thread_silent, and add_thread calls.
8698 (gnu_nat_target::create_inferior): Pass gnu_target to
8699 add_thread_silent, thread_change_ptid call.
8700 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8703 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8705 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8706 (gnu_nat_target::find_memory_regions): Remove unused
8707 `old_address' variable.
8709 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8711 * gnu-nat.c: Include "gdbarch.h".
8713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8715 * reply_mig_hack.awk (Error return): Cast function through
8716 void *, to bypass compiler function call check.
8718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8720 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8721 $(srcdir)/reply_mig_hack.awk.
8723 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8725 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8727 2020-05-30 Jonny Grant <jg@jguk.org>
8729 * configure.ac (ACX_BUGURL): change bug URL to https.
8731 2020-05-30 Pedro Alves <palves@redhat.com>
8733 * cp-support.c (replace_typedefs_template): New.
8734 (replace_typedefs_qualified_name): Handle
8735 DEMANGLE_COMPONENT_TEMPLATE.
8737 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8739 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8740 dwarf2/index-cache.h, dwarf2/index-write.c,
8741 dwarf2/index-write.h, dwarf2/line-header.c,
8742 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8743 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8744 variables and fields from `dwarf2_per_objfile` to just
8745 `per_objfile` throughout.
8747 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8749 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8750 <push_dwarf_reg_entry_value>: Add comment.
8752 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8753 Keith Seitz <keiths@redhat.com>
8755 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8756 instead of PyEval_ReleaseLock.
8757 (class gdbpy_gil): Move to earlier in file.
8758 (finalize_python): Set gdb_python_initialized.
8759 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8760 when not initialized.
8762 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8764 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8765 <push_dwarf_reg_entry_value>: Remove assert. Override
8766 per_objfile with caller_per_objfile.
8768 2020-05-28 Tom de Vries <tdevries@suse.de>
8770 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8771 PR gold/15646 workaround to symbol kind "type".
8773 2020-05-27 Tom Tromey <tromey@adacore.com>
8775 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8777 2020-05-27 Tom Tromey <tromey@adacore.com>
8779 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8780 Use htab_find_with_hash.
8781 <add_abbrev>: Remove "abbrev_number" parameter.
8782 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8783 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8784 (hash_abbrev): Add comment.
8785 (abbrev_table::lookup_abbrev): Move to header file.
8786 (abbrev_table::read): Update.
8788 2020-05-27 Tom Tromey <tromey@adacore.com>
8790 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8792 <canonical_name>: New member.
8793 <raw_name>: Rename from "name".
8794 (partial_die_info): Initialize canonical_name.
8795 (scan_partial_symbols): Check raw_name.
8796 (partial_die_parent_scope, partial_die_full_name)
8797 (add_partial_symbol, add_partial_subprogram)
8798 (add_partial_enumeration, load_partial_dies): Use "name" method.
8799 (partial_die_info::name): New method.
8800 (partial_die_info::read, guess_partial_die_structure_name)
8801 (partial_die_info::fixup): Update.
8803 2020-05-27 Tom Tromey <tromey@adacore.com>
8805 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8806 <get_ref_die_offset>: Inline.
8807 <get_ref_die_offset_complaint>: New method.
8808 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8809 (attribute::get_ref_die_offset_complaint): Rename from
8810 get_ref_die_offset. Just issue complaint.
8812 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8814 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8816 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8818 * exec.c (exec_file_attach): Use errno value of first openp failure.
8820 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8822 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8823 Don't close thread handle.
8825 2020-05-27 Tom Tromey <tom@tromey.com>
8826 Simon Marchi <simon.marchi@efficios.com>
8828 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8830 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8832 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8833 dwarf2_per_bfd_objfile_data_key>: New globals.
8834 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8835 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8836 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8838 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8839 short-circuit when sharing.
8840 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8841 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8845 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8847 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8848 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8852 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8853 build_name_components, find_name_components_bounds>:
8854 Add per_objfile parameter.
8855 (struct mapped_index) <symbol_name_at>: Likewise.
8856 (struct mapped_debug_names): Remove constructor.
8857 <dwarf2_per_objfile>: Remove field.
8858 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8859 (mapped_index_base::find_name_components_bounds,
8860 mapped_index_base::build_name_components,
8861 dw2_expand_symtabs_matching_symbol): Likewise.
8862 (class mock_mapped_index) <symbol_name_at>: Likewise.
8863 (check_match): Likewise.
8864 (check_find_bounds_finds): Likewise.
8865 (test_mapped_index_find_name_component_bounds): Update.
8866 (CHECK_MATCH): Update.
8867 (dw2_expand_symtabs_matching): Update.
8868 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8869 per_objfile parameter.
8870 <find_vec_in_debug_names>: Likewise.
8871 <m_per_objfile>: New field.
8872 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8874 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8875 (dw2_debug_names_iterator::next): Update.
8876 (dw2_debug_names_lookup_symbol): Update.
8877 (dw2_debug_names_expand_symtabs_for_function): Update.
8878 (dw2_debug_names_map_matching_symbols): Update.
8879 (dw2_debug_names_expand_symtabs_matching): Update.
8880 (dwarf2_read_debug_names): Update.
8882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8884 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8885 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8886 move to dwarf2_per_objfile.
8887 <read_in_chain>: Remove.
8888 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8889 remove_all_cus, age_comp_units>: New methods.
8890 <m_dwarf2_cus>: New member.
8891 (struct dwarf2_per_cu_data) <cu>: Remove.
8892 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8893 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8894 moved to methods of dwarf2_per_objfile.
8895 (dwarf2_clear_marks): Remove.
8896 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8897 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8898 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8899 (dwarf2_per_objfile::remove_all_cus): New.
8900 (class free_cached_comp_units) <~free_cached_comp_units>:
8903 (dw2_do_instantiate_symtab): Adjust.
8904 (fill_in_sig_entry_from_dwo_entry): Adjust.
8905 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8906 (cutu_reader::cutu_reader): Likewise.
8907 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8908 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8909 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8910 and dwarf2_per_objfile::age_comp_units.
8911 (load_partial_comp_unit): Update.
8912 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8913 (process_queue): Likewise.
8914 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8916 (dwarf2_read_addr_index): Likewise.
8917 (follow_die_offset): Likewise.
8918 (dwarf2_fetch_die_loc_sect_off): Likewise.
8919 (dwarf2_fetch_constant_bytes): Likewise.
8920 (dwarf2_fetch_die_type_sect_off): Likewise.
8921 (follow_die_sig_1): Likewise.
8922 (load_full_type_unit): Likewise.
8923 (read_signatured_type): Likewise.
8924 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8925 (dwarf2_cu::~dwarf2_cu): Remove.
8926 (dwarf2_per_objfile::get_cu): New.
8927 (dwarf2_per_objfile::set_cu): New.
8928 (age_cached_comp_units): Rename to...
8929 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8930 to std::unordered_map.
8931 (free_one_cached_comp_unit): Rename to...
8932 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8933 to std::unordered_map.
8934 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8935 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8936 a dwarf2_per_objfile in data.
8937 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8938 (dwarf2_clear_marks): Remove.
8940 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8942 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8943 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8944 (init_tu_and_read_dwo_dies): Likewise.
8945 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8946 (cutu_reader::cutu_reader): Likewise.
8947 (load_partial_comp_unit): Likewise.
8948 (process_psymtab_comp_unit): Update.
8949 (build_type_psymtabs_1): Update.
8950 (process_skeletonless_type_unit): Update.
8951 (load_full_comp_unit): Update.
8952 (find_partial_die): Update.
8953 (dwarf2_read_addr_index): Update.
8954 (read_signatured_type): Update.
8956 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8958 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8959 m_header_read_in>: New fields.
8960 <get_header>: New method.
8961 * dwarf2/read.c (per_cu_header_read_in): Remove.
8962 (dwarf2_per_cu_data::get_header): New.
8963 (dwarf2_per_cu_data::addr_size): Update.
8964 (dwarf2_per_cu_data::offset_size): Update.
8965 (dwarf2_per_cu_data::ref_addr_size): Update.
8967 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8969 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8970 (dw2_do_instantiate_symtab): Update.
8971 (queue_and_load_all_dwo_tus): Change parameter from
8972 dwarf2_per_cu_data to dwarf2_cu.
8973 (dwarf2_fetch_die_loc_sect_off): Update.
8974 (dwarf2_fetch_constant_bytes): Update.
8975 (dwarf2_fetch_die_type_sect_off): Update.
8977 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8979 * dwarf2/read.c (process_full_comp_unit,
8980 process_full_type_unit): Remove per_cu, per_objfile paramters.
8981 Add dwarf2_cu parameter.
8982 (process_queue): Update.
8984 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8986 * dwarf2/read.c (create_cu_from_index_list): Replace
8987 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8988 (create_cus_from_index_list): Likewise.
8989 (create_cus_from_index): Likewise.
8990 (create_signatured_type_table_from_index): Likewise.
8991 (create_cus_from_debug_names_list): Likewise.
8992 (create_cus_from_debug_names): Likewise.
8993 (dwarf2_read_gdb_index): Update.
8994 (dwarf2_read_debug_names): Update.
8996 2020-05-27 Tom Tromey <tom@tromey.com>
8997 Simon Marchi <simon.marchi@efficios.com>
8999 * dwarf2/read.h (struct dwarf2_per_objfile)
9000 <get_type_for_signatured_type, set_type_for_signatured_type>:
9002 <m_type_map>: New member.
9003 (struct signatured_type) <type>: Remove.
9005 (dwarf2_per_objfile::get_type_for_signatured_type,
9006 dwarf2_per_objfile::set_type_for_signatured_type): New.
9007 (get_signatured_type): Use new methods.
9009 2020-05-27 Tom Tromey <tom@tromey.com>
9010 Simon Marchi <simon.marchi@efficios.com>
9012 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9013 (struct dwarf2_per_objfile) <type_units>: New member.
9014 <get_type_unit_group_unshareable>: New method.
9015 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9016 num_symtabs, symtabs>: Remove; move to
9017 type_unit_group_unshareable.
9018 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9019 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9020 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9022 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9024 * dwarf2/read.h (struct dwarf2_per_cu_data):
9025 <dwarf2_per_objfile>: Remove.
9026 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9028 (create_signatured_type_table_from_index): Likewise.
9029 (create_signatured_type_table_from_debug_names): Likewise.
9030 (create_debug_type_hash_table): Likewise.
9031 (fill_in_sig_entry_from_dwo_entry): Likewise.
9032 (create_type_unit_group): Likewise.
9033 (read_comp_units_from_section): Likewise.
9034 (create_cus_hash_table): Likewise.
9036 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9038 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9039 dwarf2_per_cu_data::dwarf2_per_objfile.
9040 (compute_compunit_symtab_includes): Likewise.
9041 (dwarf2_cu::start_symtab): Likewise.
9043 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9045 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9047 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9048 (read_namespace_alias): Update.
9049 (lookup_die_type): Update.
9050 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9051 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9053 (disassemble_dwarf_expression): Update.
9055 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9057 * dwarf2/read.h (struct dwarf2_queue_item): Add
9058 dwarf2_per_objfile parameter, assign new parameter.
9059 <per_objfile>: New field.
9060 * dwarf2/read.c (free_one_cached_comp_unit): Add
9061 dwarf2_per_objfile parameter.
9062 (queue_comp_unit): Likewise.
9063 (dw2_do_instantiate_symtab): Update.
9064 (process_psymtab_comp_unit): Update.
9065 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9066 (process_imported_unit_die): Update.
9067 (queue_and_load_dwo_tu): Update.
9068 (follow_die_offset): Update.
9069 (follow_die_sig_1): Update.
9071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9073 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9074 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9075 (read_call_site_scope): Assign per_objfile.
9076 (dwarf2_per_cu_data::objfile): Remove.
9077 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9078 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9079 dwarf2_per_objfile parameter.
9080 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9081 dwarf2_per_objfile parameter.
9082 (dwarf_expr_reg_to_entry_parameter): Add output
9083 dwarf2_per_objfile parameter.
9084 (locexpr_get_frame_base): Update.
9085 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9086 <push_dwarf_reg_entry_value>: Update.
9087 <call_site_to_target_addr>: Update.
9088 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9090 (value_of_dwarf_reg_entry): Update.
9091 (rw_pieced_value): Update.
9092 (indirect_synthetic_pointer): Update.
9093 (dwarf2_evaluate_property): Update.
9094 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9096 (locexpr_read_variable): Update.
9097 (locexpr_get_symbol_read_needs): Update.
9098 (loclist_read_variable): Update.
9100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9102 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9104 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9106 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9107 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9108 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9110 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9111 sect_variable_value): Add dwarf2_per_objfile parameter.
9112 (class dwarf_evaluate_loc_desc) <dwarf_call,
9113 dwarf_variable_value>: Update.
9114 (fetch_const_value_from_synthetic_pointer): Add
9115 dwarf2_per_objfile parameter.
9116 (fetch_const_value_from_synthetic_pointer): Update.
9117 (coerced_pieced_ref): Update.
9118 (class symbol_needs_eval_context) <dwarf_call,
9119 dwarf_variable_value>: Update.
9120 (dwarf2_compile_expr_to_ax): Update.
9122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9124 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9126 (dwarf2_evaluate_loc_desc_full): Update.
9128 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9130 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9132 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9133 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9134 dwarf2_per_objfile parameter.
9135 (decode_debug_loc_dwo_addresses): Likewise.
9136 (dwarf2_find_location_expression): Update.
9137 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9138 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9140 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9142 (locexpr_describe_location_1): Likewise.
9143 (locexpr_describe_location): Update.
9145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9147 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9149 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9150 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9151 (dwarf2_compile_property_to_c): Update.
9152 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9153 use text offset from objfile.
9154 (locexpr_tracepoint_var_ref): Update.
9155 (locexpr_generate_c_location): Update.
9156 (loclist_describe_location): Update.
9157 (loclist_tracepoint_var_ref): Update.
9158 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9159 dwarf2_per_objfile parameter.
9160 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9161 use text offset from objfile.
9162 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9166 * dwarf2/expr.h (struct dwarf_expr_context)
9167 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9169 <per_objfile>: New member.
9170 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9171 dwarf2_per_objfile parameter. Don't set offset, set
9173 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9174 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9175 a dwarf2_per_objfile object instead of an offset.
9176 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9178 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9179 to dwarf2_expr_executor constructor. Don't set offset.
9180 (dwarf2_fetch_cfa_info): Update.
9181 (struct dwarf2_frame_cache) <text_offset>: Remove.
9182 <per_objfile>: New field.
9183 (dwarf2_frame_cache): Update.
9184 (dwarf2_frame_prev_register): Update.
9185 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9186 <dwarf_evaluate_loc_desc>: Add constructor.
9187 (dwarf2_evaluate_loc_desc_full): Update.
9188 (dwarf2_locexpr_baton_eval): Update.
9189 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9191 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9195 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9196 addr_sized_int_type>: Move to dwarf2_cu.
9197 <int_type>: Move to dwarf2_per_objfile.
9198 (struct dwarf2_per_objfile) <int_type>: Move here.
9199 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9200 addr_sized_int_type>: Move here.
9201 (read_func_scope): Update.
9202 (read_array_type): Update.
9203 (read_tag_string_type): Update.
9204 (attr_to_dynamic_prop): Update.
9205 (dwarf2_per_cu_data::int_type): Rename to...
9206 (dwarf2_per_objfile::int_type): ... this.
9207 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9208 (dwarf2_cu::addr_sized_int_type): ... this.
9209 (read_subrange_type): Update.
9210 (dwarf2_per_cu_data::addr_type): Rename to...
9211 (dwarf2_cu::addr_type): ... this.
9212 (set_die_type): Update.
9214 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9216 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9217 data through per_cu->cu.
9219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9221 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9222 dwarf2_per_cu_data parameter fo dwarf2_cu.
9223 (lookup_dwo_type_unit): Likewise.
9224 (read_cutu_die_from_dwo): Likewise.
9225 (lookup_dwo_unit): Likewise.
9226 (open_and_init_dwo_file): Likewise.
9227 (lookup_dwo_cutu): Likewise.
9228 (lookup_dwo_comp_unit): Likewise.
9229 (lookup_dwo_type_unit): Likewise.
9230 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9231 (cutu_reader::cutu_reader): Update.
9233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9235 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9237 (process_full_type_unit): Likewise.
9238 (process_queue): Update.
9240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9242 * dwarf2/read.c (recursively_compute_inclusions): Add
9243 dwarf2_per_objfile parameter.
9244 (compute_compunit_symtab_includes): Likewise.
9245 (process_cu_includes): Update.
9247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9249 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9251 (create_type_unit_group): Update.
9252 (process_psymtab_comp_unit_reader): Update.
9253 (build_type_psymtabs_reader): Update.
9255 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9257 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9258 object through m_this_cu->cu.
9260 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9262 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9264 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9266 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9268 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9269 per_objfile parameter.
9270 (load_full_type_unit): Add per_objfile parameter.
9271 (read_signatured_type): Likewise.
9272 (load_full_comp_unit): Likewise.
9273 (load_cu): Likewise.
9274 (dw2_do_instantiate_symtab): Likewise.
9275 (dw2_get_file_names): Likewise.
9276 (dw2_map_symtabs_matching_filename): Update.
9277 (dw_expand_symtabs_matching_file_matcher): Update.
9278 (dw2_map_symbol_filenames): Update.
9279 (process_psymtab_comp_unit): Add per_objfile parameter.
9280 (build_type_psymtabs_1): Update.
9281 (process_skeletonless_type_unit): Update.
9282 (dwarf2_build_psymtabs_hard): Update.
9283 (load_partial_comp_unit): Add per_objfile parameter.
9284 (scan_partial_symbols): Update.
9285 (load_full_comp_unit): Add per_objfile parameter.
9286 (process_imported_unit_die): Update.
9287 (create_cus_hash_table): Update.
9288 (find_partial_die): Update.
9289 (dwarf2_read_addr_index): Update.
9290 (follow_die_offset): Update.
9291 (dwarf2_fetch_die_loc_sect_off): Update.
9292 (dwarf2_fetch_constant_bytes): Update.
9293 (dwarf2_fetch_die_type_sect_off): Update.
9294 (follow_die_sig_1): Update.
9295 (load_full_type_unit): Add per_objfile parameter.
9296 (read_signatured_type): Likewise.
9298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9300 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9303 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9305 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9306 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9307 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9309 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9310 (create_cus_from_index): Update.
9311 (dwarf2_read_gdb_index): Update.
9312 (create_cus_from_debug_names): Update.
9313 (dwarf2_read_debug_names): Update.
9314 (get_abbrev_section_for_cu): Update.
9315 (create_all_comp_units): Update.
9316 (read_attribute_value): Update.
9317 (get_debug_line_section): Update.
9318 * dwarf2/index-cache.c (index_cache::store): Update.
9319 * dwarf2/index-write.c (save_gdb_index_command): Update.
9320 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9322 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9324 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9326 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9327 dwarf2_per_cu_data::per_bfd.
9328 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9329 (create_type_unit_group): Likewise.
9330 (queue_comp_unit): Remove reference to
9331 per_cu->dwarf2_per_objfile.
9332 (maybe_queue_comp_unit): Likewise.
9333 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9334 (create_cus_hash_table): Assign new field.
9336 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9338 * dwarf2/read.c: Replace
9339 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9340 dwarf2_cu->per_objfile throughout.
9342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9344 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9345 parameter, don't use per_cu->dwarf2_per_objfile.
9346 (dw2_instantiate_symtab): Likewise.
9347 (dw2_find_last_source_symtab): Update.
9348 (dw2_map_expand_apply): Update.
9349 (dw2_lookup_symbol): Update.
9350 (dw2_expand_symtabs_for_function): Update.
9351 (dw2_expand_all_symtabs): Update.
9352 (dw2_expand_symtabs_with_fullname): Update.
9353 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9354 don't use per_cu->dwarf2_per_objfile.
9355 (dw2_expand_marked_cus): Update.
9356 (dw2_find_pc_sect_compunit_symtab): Update.
9357 (dw2_debug_names_lookup_symbol): Update.
9358 (dw2_debug_names_expand_symtabs_for_function): Update.
9359 (dw2_debug_names_map_matching_symbols): Update.
9360 (dwarf2_psymtab::expand_psymtab): Update.
9362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9364 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9365 <per_objfile>: New member.
9366 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9367 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9369 (cutu_reader::cutu_reader): Update.
9370 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9372 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9374 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9375 struct dwarf2_per_objfile.
9376 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9378 * dwarf2/read.c (set_die_type): Update.
9379 (get_die_type_at_offset): Update.
9381 2020-05-27 Tom Tromey <tom@tromey.com>
9382 Simon Marchi <simon.marchi@efficios.com>
9384 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9386 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9387 get_symtab, set_symtab>: New methods.
9388 <m_symtabs>: New field.
9389 (struct dwarf2_psymtab): Derive from partial_symtab.
9390 <readin_p, get_compunit_symtab>: Declare methods.
9391 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9392 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9394 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9395 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9396 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9397 (dw2_symtab_iter_next, dw2_print_stats)
9398 (dw2_expand_symtabs_with_fullname)
9399 (dw2_expand_symtabs_matching_one)
9400 (dw_expand_symtabs_matching_file_matcher)
9401 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9402 (dw2_debug_names_iterator::next)
9403 (dw2_debug_names_map_matching_symbols)
9404 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9405 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9406 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9408 (get_compunit_symtab, process_full_comp_unit)
9409 (process_full_type_unit): Update.
9410 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9412 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9414 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9415 then introduce a new dwarf2_per_objfile type.
9416 <read_line_string>: Move to the new dwarf2_per_objfile type.
9417 <objfile>: Likewise.
9418 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9419 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9420 dwarf2_per_objfile->per_bfd.
9421 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9422 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9423 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9424 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9425 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9426 (dwarf2_per_objfile::locate_sections): Rename to...
9427 (dwarf2_per_bfd::locate_sections): ... this.
9428 (dwarf2_per_objfile::get_cutu): Rename to...
9429 (dwarf2_per_bfd::get_cutu): ... this.
9430 (dwarf2_per_objfile::get_cu): Rename to...
9431 (dwarf2_per_bfd::get_cu): ... this.
9432 (dwarf2_per_objfile::get_tu): Rename to...
9433 (dwarf2_per_bfd::get_tu): ... this.
9434 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9435 (dwarf2_per_bfd::allocate_per_cu): ... this.
9436 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9437 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9438 (get_gdb_index_contents_ftype): Change parameter from
9439 dwarf2_per_objfile to dwarf2_per_bfd.
9440 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9441 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9443 2020-05-27 Tom Tromey <tom@tromey.com>
9444 Simon Marchi <simon.marchi@efficios.com>
9446 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9447 (allocate_piece_closure): Set "per_objfile" member.
9448 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9449 (locexpr_describe_location, loclist_describe_location): Use new
9451 * dwarf2/read.c (read_call_site_scope)
9452 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9453 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9454 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9455 handle_data_member_location): Set per_objfile member.
9456 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9458 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9460 2020-05-27 Tom Tromey <tom@tromey.com>
9462 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9463 allocate_signatured_type>: Declare new methods.
9464 <m_num_psymtabs>: New member.
9465 (struct dwarf2_per_cu_data) <index>: New member.
9466 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9467 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9468 (create_cu_from_index_list): Use allocate_per_cu.
9469 (create_signatured_type_table_from_index)
9470 (create_signatured_type_table_from_debug_names)
9471 (create_debug_type_hash_table, add_type_unit)
9472 (read_comp_units_from_section): Use allocate_signatured_type.
9474 2020-05-27 Tom Tromey <tom@tromey.com>
9476 * psymtab.c (partial_map_expand_apply)
9477 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9478 (psym_lookup_global_symbol_language)
9479 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9480 (psym_print_stats, psym_expand_symtabs_for_function)
9481 (psym_map_symbol_filenames, psym_map_matching_symbols)
9482 (psym_expand_symtabs_matching)
9483 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9484 (maintenance_check_psymtabs): Update.
9485 * psympriv.h (struct partial_symtab) <readin_p,
9486 get_compunit_symtab>: Add objfile parameter.
9487 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9489 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9490 get_compunit_symtab>: Likewise.
9491 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9493 2020-05-27 Tom Tromey <tom@tromey.com>
9495 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9497 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9498 (create_cu_from_index_list)
9499 (create_signatured_type_table_from_index)
9500 (create_signatured_type_table_from_debug_names)
9501 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9502 (dwarf2_create_include_psymtab)
9503 (create_debug_type_hash_table, add_type_unit)
9504 (create_type_unit_group, read_comp_units_from_section)
9505 (dwarf2_compute_name, create_cus_hash_table)
9506 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9507 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9509 (dw2_get_real_path): Likewise. Change argument to
9512 2020-05-27 Luis Machado <luis.machado@linaro.org>
9515 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9516 for ldrd (immediate).
9518 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9520 * command.h: Add comment giving the name of class_tui.
9521 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9522 create the fake command for the help for class_tui.
9524 2020-05-26 Tom Tromey <tromey@adacore.com>
9526 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9527 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9528 (val_atr): New function.
9529 (value_val_atr): Use it.
9530 * ada-valprint.c (print_optional_low_bound): Change low bound
9532 (val_print_packed_array_elements): Don't call discrete_position.
9533 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9534 discrete_position for enum types.
9535 * language.c (default_print_array_index): Change type.
9536 * language.h (struct language_defn) <la_print_array_index>: Add
9537 index_type parameter, change type of index_value.
9538 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9539 (default_print_array_index): Update.
9540 * valprint.c (maybe_print_array_index): Don't call
9541 value_from_longest. Update.
9542 (value_print_array_elements): Don't call discrete_position.
9544 2020-05-26 Tom Tromey <tromey@adacore.com>
9546 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9547 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9549 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9552 * avr-tdep.c (avr_integer_to_address): Return data or code
9553 address accordingly to the second 'type' argument of the
9556 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9558 * infcmd.c, inferior.h: (construct_inferior_arguments):
9559 Moved function from here to gdbsupport/common-inferior.{h,cc}
9561 2020-05-23 Tom Tromey <tom@tromey.com>
9563 Revert commit eca1f90c:
9564 * NEWS: Remove entry for completion styling.
9565 * completer.c (_rl_completion_prefix_display_length): Move
9567 (gdb_fnprint): Revert.
9568 (gdb_display_match_list_1): Likewise.
9569 * cli/cli-style.c (completion_prefix_style)
9570 (completion_difference_style, completion_suffix_style): Remove.
9571 (_initialize_cli_style): Revert.
9572 * cli/cli-style.h (completion_prefix_style)
9573 (completion_difference_style, completion_suffix_style): Don't
9576 2020-05-24 Pedro Alves <palves@redhat.com>
9578 * symtab.c (completion_list_add_name): Return boolean indication
9579 of whether the symbol matched.
9580 (completion_list_add_symbol): Don't try to remove C++ aliases if
9581 the symbol didn't match in the first place.
9582 * symtab.h (completion_list_add_name): Return bool.
9584 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9586 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9589 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9593 2020-05-23 Tom Tromey <tom@tromey.com>
9595 * NEWS: Add entry for completion styling.
9596 * completer.c (_rl_completion_prefix_display_length): Move
9597 declaration earlier.
9598 (gdb_fnprint): Use completion_style.
9599 (gdb_display_match_list_1): Likewise.
9600 * cli/cli-style.c (completion_prefix_style)
9601 (completion_difference_style, completion_suffix_style): New
9603 (_initialize_cli_style): Register new globals.
9604 * cli/cli-style.h (completion_prefix_style)
9605 (completion_difference_style, completion_suffix_style): Declare.
9607 2020-05-23 Pedro Alves <palves@redhat.com>
9609 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9610 (parse_escape): Use ISDIGIT instead of isdigit.
9611 (puts_debug): Use gdb_isprint instead of isprint.
9612 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9613 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9614 ISSPACE instead of isspace.
9615 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9617 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9618 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9619 instead of isxdigit and ISDIGIT instead of isdigit.
9621 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9623 * gdbtypes.h (struct type) <field>: New method.
9624 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9627 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9629 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9630 (TYPE_FIELDS): Use type::fields. Change all call sites that
9631 modify the propery to use type::set_fields instead.
9633 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9635 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9636 type::num_fields instead.
9638 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9640 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9642 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9643 that modify the number of fields to use type::set_num_fields
9646 2020-05-22 Tom Tromey <tromey@adacore.com>
9648 * compile/compile-object-load.h (munmap_list_free): Don't
9651 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9653 * annotate.c (annotate_source_line): Update return type, add call
9654 to update current symtab and line.
9655 * annotate.h (annotate_source_line): Update return type, and
9656 extend header comment.
9657 * source.c (info_line_command): Check annotation_level before
9658 calling annotate_source_line.
9659 * stack.c (print_frame_info): If calling annotate_source_line
9660 returns true, then don't print any other source line information.
9662 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9664 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9666 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9668 * coffread.c (patch_type): Remove NULL check before xfree.
9669 * corefile.c (set_gnutarget): Likewise.
9670 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9671 * exec.c (build_section_table): Likewise.
9672 * remote.c (remote_target::pass_signals): Likewise.
9673 * utils.c (n_spaces): Likewise.
9674 * cli/cli-script.c (document_command): Likewise.
9675 * i386-windows-tdep.c (core_process_module_section): Likewise.
9676 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9678 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9680 * symfile.c (reread_symbols): Clear objfile's section_offsets
9681 vector and section indices, re-compute them by calling
9684 2020-05-20 Tom Tromey <tromey@adacore.com>
9686 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9687 (desc_one_bound, desc_index_type): Compute field name.
9689 2020-05-20 Tom de Vries <tdevries@suse.de>
9692 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9694 2020-05-20 Alan Modra <amodra@gmail.com>
9697 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9699 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9700 passed to bfd_set_filename.
9701 * symfile-mem.c (add_vsyscall_page): Likewise for string
9702 passed to symbol_file_add_from_memory.
9703 (symbol_file_add_from_memory): Make name param a const char* and
9706 2020-05-20 Alan Modra <amodra@gmail.com>
9708 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9709 rather than accessing bfd->filename directly.
9710 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9711 and use bfd_section_name.
9712 * dwarf2/frame.c (decode_frame_entry): Likewise.
9713 * exec.c (exec_set_section_address): Likewise.
9714 * solib-aix.c (solib_aix_bfd_open): Likewise.
9715 * stap-probe.c (get_stap_base_address): Likewise.
9716 * symfile.c (reread_symbols): Likewise.
9718 2020-05-19 Tom Tromey <tromey@adacore.com>
9720 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9722 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9724 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9726 2020-05-19 Pedro Alves <palves@redhat.com>
9728 * NEWS (set exec-file-mismatch): Adjust entry.
9729 * exec.c: Include "build-id.h".
9730 (validate_exec_file): Try to match build IDs instead of filenames.
9731 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9732 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9733 and pass down 'warn_if_slow'.
9734 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9735 gdb_bfd_open_closure to pass it down.
9736 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9738 2020-05-19 Pedro Alves <palves@redhat.com>
9740 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9741 * target.c (target_fileio_open_1): Rename to target_fileio_open
9742 and make extern. Use bool.
9743 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9744 (target_fileio_read_alloc_1): Adjust.
9745 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9746 (target_fileio_open_warn_if_slow): Delete declaration.
9748 2020-05-19 Pedro Alves <palves@redhat.com>
9750 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9753 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9755 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9756 whether disp is negative.
9758 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9760 * symfile.h (struct symfile_segment_data)
9761 <~symfile_segment_data>: Remove.
9762 <segment_info>: Change to std::vector.
9763 * symfile.c (default_symfile_segments): Update.
9764 * elfread.c (elf_symfile_segments): Update.
9766 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9768 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9770 <segment_bases, segment_sizes>: Remove.
9771 * symfile.c (default_symfile_segments): Update.
9772 * elfread.c (elf_symfile_segments): Update.
9773 * remote.c (remote_target::get_offsets): Update.
9774 * solib-target.c (solib_target_relocate_section_addresses):
9777 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9779 * symfile.h (struct symfile_segment_data): Initialize fields.
9780 <~symfile_segment_data>: Add.
9781 (symfile_segment_data_up): New.
9782 (struct sym_fns) <sym_segments>: Return a
9783 symfile_segment_data_up.
9784 (default_symfile_segments): Return a symfile_segment_data_up.
9785 (free_symfile_segment_data): Remove.
9786 (get_symfile_segment_data): Return a symfile_segment_data_up.
9787 * symfile.c (default_symfile_segments): Likewise.
9788 (get_symfile_segment_data): Likewise.
9789 (free_symfile_segment_data): Remove.
9790 (symfile_find_segment_sections): Update.
9791 * elfread.c (elf_symfile_segments): Return a
9792 symfile_segment_data_up.
9793 * remote.c (remote_target::get_offsets): Update.
9794 * solib-target.c (solib_target_relocate_section_addresses):
9796 * symfile-debug.c (debug_sym_segments): Return a
9797 symfile_segment_data_up.
9799 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9802 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9803 Hardcode register numbers.
9806 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9807 procfs_find_LDT_entry): Remove.
9808 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9809 procfs_find_LDT_entry): Remove.
9810 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9813 2020-05-17 Pedro Alves <palves@redhat.com>
9814 Andrew Burgess <andrew.burgess@embecosm.com>
9815 Keno Fischer <keno@juliacomputing.com>
9818 * breakpoint.c (build_target_condition_list): Update comments.
9819 (build_target_command_list): Update comments and skip matching
9821 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9822 a separate function. Simplify "set breakpoint auto-hw off"
9824 (insert_breakpoints): Update comment.
9825 (tracepoint_locations_match): New parameter. For breakpoints,
9826 compare location types too, if the caller wants to.
9827 (handle_automatic_hardware_breakpoints): New functions.
9828 (bp_location_is_less_than): Also sort by location type and
9829 hardware breakpoint length.
9830 (update_global_location_list): Handle "set breakpoint auto-hw on"
9832 (update_breakpoint_locations): Ask breakpoint_locations_match to
9833 ignore location types.
9835 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9837 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9840 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9842 * gdbtypes.h (struct type) <name, set_name>: New methods.
9843 (TYPE_CODE): Use type::name. Change all call sites used to set
9844 the name to use type::set_name instead.
9846 2020-05-16 Tom Tromey <tom@tromey.com>
9848 * top.c (quit_force): Update.
9849 * infrun.c (handle_no_resumed): Update.
9850 * top.h (all_uis): New function.
9853 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9855 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9857 2020-05-16 Pedro Alves <palves@redhat.com>
9860 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9862 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9864 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9866 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9867 (sparc64_adi_info): Likewise.
9869 2020-05-15 Tom Tromey <tom@tromey.com>
9871 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9873 (lookup_objfile_from_block): Remove.
9874 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9875 (lookup_global_symbol): Use block_objfile.
9876 * symtab.h (lookup_objfile_from_block): Don't declare.
9877 * printcmd.c (clear_dangling_display_expressions): Use
9879 * parse.c (operator_check_standard): Use block_objfile.
9881 2020-05-15 Tom Tromey <tom@tromey.com>
9883 * language.c (language_alloc_type_symbol): Set
9885 * symtab.c (initialize_objfile_symbol): Remove.
9886 (allocate_symbol): Remove.
9887 (allocate_template_symbol): Remove.
9888 * dwarf2/read.c (fixup_go_packaging): Use "new".
9889 (new_symbol): Use "new".
9890 (read_variable): Don't call initialize_objfile_symbol. Use
9892 (read_func_scope): Use "new".
9893 * xcoffread.c (process_xcoff_symbol): Don't call
9894 initialize_objfile_symbol.
9895 (SYMBOL_DUP): Remove.
9896 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9898 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9899 (allocate_template_symbol): Don't declare.
9900 (struct symbol): Add copy constructor. Change defaults.
9901 * jit.c (finalize_symtab): Use "new".
9902 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9904 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9905 (common_block_end): Use "new".
9906 * mdebugread.c (parse_symbol): Use "new".
9907 (new_symbol): Likewise.
9909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9911 * NEWS: Mention changes to help and apropos.
9913 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9915 * command.h (enum command_class): Improve comments, document
9916 that class_alias is for user-defined aliases, give the class
9917 name for each class, remove unused class_xdb.
9918 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9919 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9921 * infcmd.c (_initialize_infcmd): Likewise.
9922 * reverse.c (_initialize_reverse): Likewise.
9923 * stack.c (_initialize_stack): Likewise.
9924 * symfile.c (_initialize_symfile): Likewise.
9925 * tracepoint.c (_initialize_tracepoint): Likewise.
9927 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9929 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9930 when their aliased command is traversed.
9931 (help_cmd): Add fput_command_names_styled call to
9932 output command name and aliases when command has an alias.
9934 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9936 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9937 * cli/cli-decode.c (help_cmd_list): Declare as static,
9938 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9939 a command together with the command.
9940 (fput_command_name_styled, fput_command_names_styled): New functions.
9941 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9942 fput_command_name_styled.
9943 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9944 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9946 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9948 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9949 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9950 * command.h (cmd_show_list): Likewise.
9951 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9952 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9954 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956 * unittests/command-def-selftests.c (traverse_command_structure):
9957 Verify all commands of a list have the same prefix command and
9958 that only the top cmdlist commands have a null prefix.
9960 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9962 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9963 as prefix, not one of its aliases.
9964 (set_cmd_prefix): Remove.
9965 (do_add_cmd): Centralize the setting of the prefix of a command, when
9966 command is defined after its full chain of prefix commands.
9967 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9968 (add_setshow_cmd_full): Likewise.
9969 (update_prefix_field_of_prefixed_commands): New function.
9970 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9971 update_prefix_field_of_prefixed_commands.
9972 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9973 addresses of remote_set_cmdlist and remote_show_cmdlist given
9974 as argument, not the address of an argument.
9975 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9976 * gdb/remote.c (_initialize_remote): Likewise.
9978 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9980 * cli/cli-cmds.c (alias_command): Check for an existing alias
9981 using lookup_cmd_composition, as valid_command_p is too strict
9982 and forbids aliases that are the prefix of an existing alias
9984 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9985 command is properly recognised as a valid command.
9987 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989 * unittests/help-doc-selftests.c: Rename to
9990 unittests/command-def-selftests.c
9991 * unittests/command-def-selftests.c (help_doc_tests): Update some
9993 (command_structure_tests, traverse_command_structure): New namespace
9995 (command_structure_invariants_tests): New function.
9996 (_initialize_command_def_selftests) Renamed from
9997 _initialize_help_doc_selftests, register command_structure_invariants
10000 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10002 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10003 an alias of 'show'.
10005 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10007 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10008 ada_is_fixed_point_type. Update all callers.
10009 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10011 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10012 Update all callers.
10013 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10014 print_fixed_point_type. Update all callers.
10015 * ada-valprint.c (ada_value_print_num): Replace call to
10016 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10018 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10020 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10022 (cpu_supports_bts): Add CV_AMD case.
10024 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10025 Simon Marchi <simon.marchi@efficios.com>
10027 * infrun.c (stop_all_threads): Collect multiple wait events at
10030 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10032 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10033 type::code instead.
10035 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10037 * gdbtypes.h (struct type) <code, set_code>: New methods.
10038 (TYPE_CODE): Use type::code. Change all call sites used to set
10039 the code to use type::set_code instead.
10041 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10042 Tom de Vries <tdevries@suse.de>
10043 Pedro Alves <palves@redhat.com>
10046 * infrun.c (stop_all_threads): Do NOT ignore
10047 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10048 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10050 (handle_no_resumed): Remove code handling a live inferior with no
10052 * remote.c (has_single_non_exited_thread): New.
10053 (remote_target::update_thread_list): Do not delete a thread if is
10054 the last thread of the process.
10055 * thread.c (thread_select): Call delete_exited_threads instead of
10058 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10060 * infrun.c (stop_all_threads): Enable/disable thread events of all
10061 targets. Move a debug message denoting the end of the function
10062 into the SCOPED_EXIT block.
10064 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10066 * process-stratum-target.h: Include <set>.
10067 (all_non_exited_process_targets, switch_to_target_no_thread): New
10068 function declarations.
10069 * process-stratum-target.c (all_non_exited_process_targets)
10070 (switch_to_target_no_thread): New function implementations.
10072 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10074 * infrun.c (handle_inferior_event): Extract out a piece of code
10076 (mark_non_executing_threads): ...this new function.
10078 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10080 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10083 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10085 * regcache.c (regcache_read_pc_protected): New function
10086 implementation that returns 0 if the PC cannot read via
10087 'regcache_read_pc'.
10088 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10089 instead of 'regcache_read_pc'.
10090 (keep_going_pass_signal): Ditto.
10092 2020-05-13 Tom Tromey <tromey@adacore.com>
10094 * ada-lang.c (align_value): Remove.
10095 (ada_template_to_fixed_record_type_1): Use align_up.
10097 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10099 * async-event.c: Update the copyright year.
10100 * async-event.h: Update the copyright year.
10102 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10104 * objfiles.h (is_addr_in_objfile,
10105 shared_objfile_contains_address_p): Return bool.
10106 * objfile.c (is_addr_in_objfile,
10107 shared_objfile_contains_address_p): Return bool.
10109 2020-05-11 Tom Tromey <tromey@adacore.com>
10111 * cli/cli-cmds.c (info_command): Restore.
10112 (_initialize_cli_cmds): Use add_prefix_command for "info".
10113 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10115 2020-05-11 Tom Tromey <tromey@adacore.com>
10117 * ada-lang.c (ada_value_primitive_field): Now public.
10118 * ada-lang.h (ada_value_primitive_field): Declare.
10119 * ada-valprint.c (print_field_values): Use
10120 ada_value_primitive_field for wrapper fields.
10122 2020-05-11 Tom de Vries <tdevries@suse.de>
10124 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10127 2020-05-11 Tom de Vries <tdevries@suse.de>
10130 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10131 with length 0, if not gdb-produced.
10132 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10134 2020-05-09 Tom de Vries <tdevries@suse.de>
10137 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10140 2020-05-09 Tom Tromey <tom@tromey.com>
10142 * top.c (server_command): Now bool.
10143 * top.h (server_command): Now bool.
10145 2020-05-08 Tom Tromey <tromey@adacore.com>
10147 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10148 already being processed.
10150 2020-05-08 Tom Tromey <tom@tromey.com>
10152 * printcmd.c (struct display) <next>: Remove.
10153 <display>: New constructor.
10154 <exp_string>: Now a std::string.
10155 <enabled_p>: Now a bool.
10156 (display_number): Move definition earlier.
10157 (displays): Rename from display_chain. Now a std::vector.
10158 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10159 (display_command): Update.
10160 (do_one_display, disable_display)
10161 (enable_disable_display_command, do_enable_disable_display):
10163 (free_display): Remove.
10164 (clear_displays): Rewrite.
10165 (delete_display): Update.
10166 (map_display_numbers): Use function_view. Remove "data"
10168 (do_delete_display): Remove.
10169 (undisplay_command): Update.
10170 (do_one_display, do_displays, disable_display)
10171 (info_display_command): Update.
10172 (do_enable_disable_display): Remove.
10173 (enable_disable_display_command)
10174 (clear_dangling_display_expressions): Update.
10176 2020-05-08 Tom Tromey <tom@tromey.com>
10178 * symtab.c (set_symbol_cache_size)
10179 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10180 (maintenance_print_symbol_cache_statistics): Update.
10181 * symmisc.c (print_symbol_bcache_statistics)
10182 (print_objfile_statistics, maintenance_print_objfiles)
10183 (maintenance_info_symtabs, maintenance_check_symtabs)
10184 (maintenance_expand_symtabs, maintenance_info_line_tables):
10186 * symfile-debug.c (set_debug_symfile): Update.
10187 * source.c (forget_cached_source_info): Update.
10188 * python/python.c (gdbpy_progspaces): Update.
10189 * psymtab.c (maintenance_info_psymtabs): Update.
10190 * probe.c (parse_probes): Update.
10191 * linespec.c (iterate_over_all_matching_symtabs)
10192 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10193 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10194 * exec.c (exec_target::close): Update.
10195 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10196 * breakpoint.c (print_one_breakpoint_location)
10197 (create_longjmp_master_breakpoint)
10198 (create_std_terminate_master_breakpoint): Update.
10199 * progspace.c (program_spaces): Now a std::vector.
10200 (maybe_new_address_space): Update.
10201 (add_program_space): Remove.
10202 (program_space::program_space): Update.
10203 (remove_program_space): Update.
10204 (number_of_program_spaces): Remove.
10205 (print_program_space, update_address_spaces): Update.
10206 * progspace.h (program_spaces): Change type.
10207 (ALL_PSPACES): Remove.
10208 (number_of_program_spaces): Don't declare.
10209 (struct program_space) <next>: Remove.
10211 2020-05-08 Tom Tromey <tom@tromey.com>
10213 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10214 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10215 (enable_break): Update.
10216 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10217 (frv_fdpic_find_canonical_descriptor): Update.
10218 (frv_fetch_objfile_link_map): Update.
10219 * progspace.c (program_space::free_all_objfiles): Update.
10220 (program_space::solibs): New method.
10221 * progspace.h (struct program_space) <solibs>: New method.
10222 * solist.h (master_so_list): Don't declare.
10223 (ALL_SO_LIBS): Remove.
10224 * solib.h (so_list_head): Remove.
10225 (update_solib_list): Update comment.
10226 * solib.c (master_so_list): Remove.
10227 (solib_used, update_solib_list, solib_add)
10228 (info_sharedlibrary_command, clear_solib)
10229 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10231 2020-05-08 Tom Tromey <tom@tromey.com>
10233 * extension.c (extension_languages): Now a std::array.
10234 (ALL_EXTENSION_LANGUAGES): Remove.
10235 (get_ext_lang_defn, get_ext_lang_of_file)
10236 (eval_ext_lang_from_control_command): Update.
10237 (finish_ext_lang_initialization)
10238 (auto_load_ext_lang_scripts_for_objfile)
10239 (ext_lang_type_printers::ext_lang_type_printers)
10240 (apply_ext_lang_type_printers)
10241 (ext_lang_type_printers::~ext_lang_type_printers)
10242 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10243 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10244 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10245 (get_matching_xmethod_workers, ext_lang_colorize)
10246 (ext_lang_before_prompt): Update.
10247 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10249 2020-05-08 Tom Tromey <tom@tromey.com>
10251 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10253 <swap_string, m_string>: Remove.
10254 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10256 * stabsread.c (define_symbol, read_type): Update.
10257 * linespec.c (find_linespec_symbols): Update.
10258 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10259 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10260 * dbxread.c (read_dbx_symtab): Update.
10261 * cp-support.h (cp_canonicalize_string_full)
10262 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10263 Return unique_xmalloc_ptr.
10264 * cp-support.c (inspect_type): Update.
10265 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10266 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10268 * c-typeprint.c (print_name_maybe_canonical): Update.
10269 * break-catch-throw.c (check_status_exception_catchpoint):
10272 2020-05-08 Tom de Vries <tdevries@suse.de>
10274 * infrun.c (follow_fork): Copy current_line and current_symtab to
10277 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10279 * async-event.c (struct async_signal_handler, struct
10280 async_event_handler): Reformat, remove typedef.
10282 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10284 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10285 access thistype->main_type->dyn_prop_list directly.
10287 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10289 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10290 (remove_dyn_prop): Remove. Update all users to use
10291 type::remove_dyn_prop.
10292 * gdbtypes.c (remove_dyn_prop): Rename to...
10293 (type::remove_dyn_prop): ... this.
10295 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10297 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10298 (add_dyn_prop): Remove. Update all users to use
10299 type::add_dyn_prop.
10300 * gdbtypes.c (add_dyn_prop): Rename to...
10301 (type::add_dyn_prop): ... this.
10303 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10305 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10306 (get_dyn_prop): Remove. Update all users to use
10308 * gdbtypes.c (get_dyn_prop): Rename to...
10309 (type::dyn_prop): ... this.
10311 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10313 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10315 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10317 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10318 instruction, skip it if it's there.
10320 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10322 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10324 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10326 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10327 * gdbtypes.c (recursive_dump_type): Remove use of
10330 2020-05-03 Tom Tromey <tom@tromey.com>
10332 * breakpoint.c (catch_command, tcatch_command): Remove.
10333 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10334 add_show_prefix_cmd.
10335 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10336 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10338 (add_internal_problem_command): Use add_basic_prefix_cmd,
10339 add_show_prefix_cmd.
10340 * mips-tdep.c (set_mipsfpu_command): Remove.
10341 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10342 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10343 (_initialize_index_cache): Use add_basic_prefix_cmd.
10344 * memattr.c (dummy_cmd): Remove.
10345 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10346 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10347 (_initialize_tui_win): Use add_basic_prefix_cmd,
10348 add_show_prefix_cmd.
10349 * cli/cli-logging.c (set_logging_command): Remove.
10350 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10351 add_show_prefix_cmd.
10352 (show_logging_command): Remove.
10353 * target.c (target_command): Remove.
10354 (add_target): Use add_basic_prefix_cmd.
10356 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10358 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10360 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10362 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10365 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10367 * nbsd-nat.c (nbsd_enable_proc_events)
10368 (nbsd_nat_target::post_startup_inferior): Add.
10369 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10370 (nbsd_nat_target::update_thread_list): Rewrite.
10371 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10372 "PTRACE_LWP_CREATE".
10373 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10375 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10377 * stack.c (_initialize_stack): Remove duplicated creation
10378 of "frame" command and "f" alias.
10380 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10383 * gdbtypes.c (check_typedef): Calculate size of array of
10386 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10389 * i386-tdep.c (i386_push_dummy_call): Call
10390 i386_thiscall_push_dummy_call.
10391 (i386_thiscall_push_dummy_call): New function.
10392 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10393 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10394 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10396 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10398 * gdbarch.sh (do_read): Add shellcheck disable directive for
10401 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10403 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10404 "referenced but not assigned" warning.
10406 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10408 * gdbarch.sh: Remove code that sets fallbackdefault.
10410 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10412 * gdbarch.sh: Use shell operators && and || instead of
10415 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10417 * gdbarch.sh: Use $(...) instead of `...`.
10419 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10421 * gdbarch.sh: Use double quotes around variables.
10423 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10425 * gdbarch.sh: Use %s with printf, instead of variables in the
10428 2020-04-29 Tom Tromey <tromey@adacore.com>
10431 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10433 (read_enumeration_type): Call
10434 update_enumeration_type_from_children later. Update comments.
10435 (process_enumeration_scope): Don't create type fields.
10437 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10439 * nbsd-tdep.c: Include "xml-syscall.h".
10440 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10442 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10444 * nbsd-nat.c: Include "sys/wait.h".
10445 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10446 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10447 (nbsd_nat_target::remove_exec_catchpoint)
10448 (nbsd_nat_target::set_syscall_catchpoint): Add.
10449 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10450 (nbsd_nat_target::insert_exec_catchpoint)
10451 (nbsd_nat_target::remove_exec_catchpoint)
10452 (nbsd_nat_target::set_syscall_catchpoint): Add.
10453 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10454 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10455 `nbsd_get_syscall_number'.
10457 2020-04-29 Tom Tromey <tom@tromey.com>
10459 * stack.c (print_block_frame_labels): Remove.
10461 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10464 * ada-valprint.c (val_print_packed_array_elements): Move array
10465 end bracket to new line.
10466 (ada_val_print_string): Remove extra spaces before first array
10468 * c-valprint.c (c_value_print_array): Likewise.
10469 * m2-valprint.c (m2_print_array_contents): Likewise.
10470 (m2_value_print_inner): Likewise.
10471 * p-valprint.c (pascal_value_print_inner): Likewise.
10472 * valprint.c (generic_val_print_array): Likewise.
10473 (value_print_array_elements): Move first array element and array
10474 end bracket to new line.
10476 2020-04-29 Tom de Vries <tdevries@suse.de>
10479 * linespec.c (find_method): Fix ix calculation.
10481 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10483 * syscalls/update-netbsd.sh: New file.
10484 * syscalls/netbsd.xml: Regenerate.
10485 * data-directory/Makefile.in: Register `netbsd.xml' in
10488 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10490 * syscalls/update-freebsd.sh: Add double quotes.
10492 2020-04-28 Tom Tromey <tom@tromey.com>
10495 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10496 (cmdpy_init): Allow class_tui.
10498 2020-04-28 Mark Williams <mark@myosotissp.com>
10501 * dwarf2read.c: Add missing assingments to list_in_scope when
10502 start_symtab was already called.
10504 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10507 * dwarf2/read.c (offset_map_type): Use
10508 gdb:hash_enum<sect_offset> as hash function.
10510 2020-04-28 Tom de Vries <tdevries@suse.de>
10512 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10513 with DW_AT_signature.
10515 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10517 * configure.ac: Remove check for fs_base/gs_base in
10519 * configure: Re-generate.
10520 * config.in: Re-generate.
10521 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10522 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10523 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10525 2020-04-27 Luis Machado <luis.machado@linaro.org>
10527 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10528 problematic inline frame unwinding situation.
10529 * frame.c (frame_id_computed_p): New function.
10530 * frame.h (frame_id_computed_p): New prototype.
10532 2020-04-26 Tom Tromey <tom@tromey.com>
10534 * command.h (enum command_class) <class_pseudo>: Remove.
10536 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10538 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10541 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10543 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10544 `PT_GET_PROCESS_STATE' block.
10546 2020-04-24 Tom Tromey <tom@tromey.com>
10548 * symtab.h (symbol_get_demangled_name): Don't declare.
10549 * symtab.c (symbol_get_demangled_name): Remove.
10550 (general_symbol_info::natural_name)
10551 (general_symbol_info::demangled_name): Update.
10553 2020-04-24 Tom Tromey <tom@tromey.com>
10556 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10558 2020-04-24 Tom Tromey <tom@tromey.com>
10561 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10563 (new_symbol): Likewise.
10564 * compile/compile-object-load.c (get_out_value_type): Use
10565 symbol_matches_search_name.
10567 2020-04-24 Tom Tromey <tom@tromey.com>
10569 * dwarf2/read.c (add_partial_symbol): Do not call
10570 compute_and_set_names.
10572 2020-04-24 Tom Tromey <tom@tromey.com>
10574 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10577 2020-04-24 Tom Tromey <tom@tromey.com>
10579 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10580 (add_psymbol_to_list): New overload. Make old overload call new
10582 * psympriv.h (add_psymbol_to_list): New overload.
10584 2020-04-24 Tom Tromey <tom@tromey.com>
10586 * dwarf2/read.c (partial_die_info::read) <case
10587 DW_AT_linkage_name>: Use value_as_string.
10588 (dwarf2_string_attr): Use value_as_string.
10589 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10591 * dwarf2/attribute.c (attribute::value_as_string): New method.
10593 2020-04-24 Tom Tromey <tom@tromey.com>
10595 * symtab.c (general_symbol_info::natural_name)
10596 (general_symbol_info::demangled_name): Check for language_rust.
10598 2020-04-24 Tom Tromey <tom@tromey.com>
10600 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10601 (dwarf2_physname): ... from here.
10602 (partial_die_info::read): Add Rust "{" hack.
10604 2020-04-24 Tom Tromey <tom@tromey.com>
10606 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10608 (symbol_set_demangled_name): Don't declare.
10609 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10610 symbol_set_demangled_name.
10611 (general_symbol_info::set_language)
10612 (general_symbol_info::compute_and_set_names): Update.
10613 * minsyms.c (minimal_symbol_reader::install): Update.
10614 * dwarf2/read.c (new_symbol): Update.
10616 2020-04-24 Tom Tromey <tromey@adacore.com>
10619 * python/py-type.c (convert_field): Handle
10620 FIELD_LOC_KIND_DWARF_BLOCK.
10621 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10622 (typy_get_dynamic): Nw function.
10623 (type_object_getset): Add "dynamic".
10626 2020-04-24 Tom Tromey <tromey@adacore.com>
10628 * ada-typeprint.c (print_choices, print_variant_part)
10629 (print_record_field_types_dynamic): New functions.
10630 (print_record_field_types): Use print_record_field_types_dynamic.
10632 2020-04-24 Tom Tromey <tromey@adacore.com>
10634 * dwarf2/read.c (handle_data_member_location): New overload.
10635 (dwarf2_add_field): Use it.
10636 (decode_locdesc): Add "computed" parameter. Update comment.
10637 * gdbtypes.c (is_dynamic_type_internal): Also look for
10638 FIELD_LOC_KIND_DWARF_BLOCK.
10639 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10640 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10641 virtual base classes.
10642 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10643 FIELD_LOC_KIND_DWARF_BLOCK.
10645 2020-04-24 Tom Tromey <tromey@adacore.com>
10647 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10648 * gdbtypes.c (is_dynamic_type_internal): Check
10649 TYPE_HAS_DYNAMIC_LENGTH.
10650 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10651 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10653 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10656 2020-04-24 Tom Tromey <tromey@adacore.com>
10658 * dwarf2/read.c (struct variant_field): Rewrite.
10659 (struct variant_part_builder): New.
10660 (struct nextfield): Remove "variant" field. Add "offset".
10661 (struct field_info): Add "current_variant_part" and
10663 (alloc_discriminant_info): Remove.
10664 (alloc_rust_variant): New function.
10665 (quirk_rust_enum): Update.
10666 (dwarf2_add_field): Set "offset" member. Don't handle
10667 DW_TAG_variant_part.
10668 (offset_map_type): New typedef.
10669 (convert_variant_range, create_one_variant)
10670 (create_one_variant_part, create_variant_parts)
10671 (add_variant_property): New functions.
10672 (dwarf2_attach_fields_to_type): Call add_variant_property.
10673 (read_structure_type): Don't handle DW_TAG_variant_part.
10674 (handle_variant_part, handle_variant): New functions.
10675 (handle_struct_member_die): Use them.
10676 (process_structure_scope): Don't handle variant parts.
10677 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10678 (struct discriminant_info): Remove.
10679 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10680 (struct main_type) <flag_discriminated_union>: Remove.
10681 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10682 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10683 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10685 * valops.c (value_union_variant): Remove.
10686 * value.h (value_union_variant): Don't declare.
10688 2020-04-24 Tom Tromey <tromey@adacore.com>
10690 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10691 (ada_value_primitive_packed_val): Update.
10692 * ada-valprint.c (ada_value_print_1): Update.
10693 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10694 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10695 just an address. Use evaluate_for_locexpr_baton.
10696 (dwarf2_evaluate_property): Update.
10697 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10699 * findvar.c (default_read_var_value): Update.
10700 * gdbtypes.c (compute_variant_fields_inner)
10701 (resolve_dynamic_type_internal): Update.
10702 (resolve_dynamic_type): Change type of valaddr parameter.
10703 * gdbtypes.h (resolve_dynamic_type): Update.
10704 * valarith.c (value_subscripted_rvalue): Update.
10705 * value.c (value_from_contents_and_address): Update.
10707 2020-04-24 Tom Tromey <tromey@adacore.com>
10709 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10710 "push_initial_value" parameter.
10711 (dwarf2_evaluate_property): Likewise.
10712 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10714 2020-04-24 Tom Tromey <tromey@adacore.com>
10716 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10717 (variant::matches, compute_variant_fields_recurse)
10718 (compute_variant_fields_inner, compute_variant_fields): New
10720 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10721 Use resolved_type after type is made.
10722 (operator==): Add new cases.
10723 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10724 (struct discriminant_range, struct variant, struct variant_part):
10726 (union dynamic_prop_data) <variant_parts, original_type>: New
10728 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10729 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10731 * value.c (unpack_bits_as_long): Now public.
10732 * value.h (unpack_bits_as_long): Declare.
10734 2020-04-24 Tom Tromey <tromey@adacore.com>
10736 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10737 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10739 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10741 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10743 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10745 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10746 (remove_fork_catchpoint, post_startup_inferior)
10747 (post_attach): Move...
10748 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10749 (remove_fork_catchpoint, post_startup_inferior)
10750 (post_attach): ...here.
10751 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10752 (remove_fork_catchpoint, post_startup_inferior)
10753 (post_attach): Move...
10754 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10755 (remove_fork_catchpoint, post_startup_inferior)
10756 (post_attach): ...here.
10758 2020-04-24 Tom Tromey <tromey@adacore.com>
10760 * nat/windows-nat.h (struct windows_thread_info)
10761 <pc_adjusted>: New member.
10762 * windows-nat.c (windows_fetch_one_register): Check
10764 (windows_nat_target::get_windows_debug_event)
10765 (windows_nat_target::wait): Set pc_adjusted.
10767 2020-04-24 Tom de Vries <tdevries@suse.de>
10769 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10770 Run gdb-add-index inside temp dir.
10772 2020-04-23 Tom Tromey <tromey@adacore.com>
10774 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10777 2020-04-23 Luis Machado <luis.machado@linaro.org>
10779 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10780 get_frame_register instead of gdbarch_unwind_pc.
10782 2020-04-23 Tom de Vries <tdevries@suse.de>
10784 * symtab.c (lookup_global_symbol): Prefer def over decl.
10786 2020-04-23 Tom de Vries <tdevries@suse.de>
10789 * block.c (best_symbol, better_symbol): Promote to external.
10790 * block.h (best_symbol, better_symbol): Declare.
10791 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10794 2020-04-23 Tom Tromey <tromey@adacore.com>
10797 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10798 "const char *", not a "const std::string &".
10799 <name_and_matcher::operator==>: Update.
10800 * unittests/lookup_name_info-selftests.c: Change type of
10803 2020-04-23 Tom Tromey <tom@tromey.com>
10805 * inferior.h (iterate_over_inferiors): Don't declare.
10806 * inferior.c (iterate_over_inferiors): Remove.
10807 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10809 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10810 use iterate_over_inferiors.
10811 (darwin_resume_inferior_it)
10812 (struct resume_inferior_threads_param)
10813 (darwin_resume_inferior_threads_it): Remove.
10814 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10816 2020-04-23 Tom de Vries <tdevries@suse.de>
10818 * blockframe.c (find_pc_partial_function): Use
10819 find_pc_sect_compunit_symtab rather than
10820 objfile->sf->qf->find_pc_sect_compunit_symtab.
10822 2020-04-22 Tom de Vries <tdevries@suse.de>
10825 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10828 2020-04-22 Tom de Vries <tdevries@suse.de>
10831 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10834 2020-04-22 Tom de Vries <tdevries@suse.de>
10837 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10838 CU if already created.
10840 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10842 * infrun.c (displaced_step_fixup): Switch to the event_thread
10843 before calling displaced_step_restore, not after.
10845 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10847 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10848 its inferior is not recorded by us.
10849 (record_btrace_target_open): Replace call to
10850 all_non_exited_threads () with call to current_inferior
10851 ()->non_exited_threads ().
10852 (record_btrace_target::stop_recording): Likewise.
10853 (record_btrace_target::close): Likewise.
10854 (record_btrace_target::wait): Likewise.
10855 (record_btrace_target::record_stop_replaying): Likewise.
10857 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10859 * btrace.c (btrace_enable): Throw an error on double enables and
10860 when enabling recording fails.
10861 (btrace_disable): Throw an error if the thread is not recorded.
10863 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10865 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10866 request if we do not have a thread_info.
10868 2020-04-21 Tom de Vries <tdevries@suse.de>
10872 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10873 exception in get_frame_id.
10875 2020-04-20 Tom Tromey <tromey@adacore.com>
10877 * python/python.c (struct gdbpy_event): Mark move constructor as
10879 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10880 constructor as noexcept.
10881 * completer.h (struct completion_result): Mark move constructor as
10883 * completer.c (completion_result::completion_result): Use
10884 initialization style. Don't call reset_match_list.
10886 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10888 * MAINTAINERS (Write After Approval): Add myself.
10890 2020-04-18 Tom Tromey <tom@tromey.com>
10892 * windows-tdep.c (init_w32_command_list)
10893 (w32_prefix_command_valid): Restore.
10894 (_initialize_windows_tdep): Call init_w32_command_list.
10896 2020-04-18 Tom Tromey <tom@tromey.com>
10898 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10899 * value.c (value_fn_field): Update.
10900 * valops.c (find_function_in_inferior)
10901 (value_allocate_space_in_inferior): Update.
10902 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10904 * tui/tui-source.c (tui_source_window::set_contents): Update.
10905 * symtab.c (lookup_global_or_static_symbol)
10906 (find_function_start_sal_1, skip_prologue_sal)
10907 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10908 * symmisc.c (dump_msymbols, dump_symtab_1)
10909 (maintenance_print_one_line_table): Update.
10910 * symfile.c (init_entry_point_info, section_is_mapped)
10911 (list_overlays_command, simple_read_overlay_table)
10912 (simple_overlay_update_1): Update.
10913 * stap-probe.c (handle_stap_probe): Update.
10914 * stabsread.c (dbx_init_float_type, define_symbol)
10915 (read_one_struct_field, read_enum_type, read_range_type): Update.
10916 * source.c (info_line_command): Update.
10917 * python/python.c (gdbpy_source_objfile_script)
10918 (gdbpy_execute_objfile_script): Update.
10919 * python/py-type.c (save_objfile_types): Update.
10920 * python/py-objfile.c (py_free_objfile): Update.
10921 * python/py-inferior.c (python_new_objfile): Update.
10922 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10923 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10924 (maintenance_check_psymtabs): Update.
10925 * printcmd.c (info_address_command): Update.
10926 * objfiles.h (struct objfile) <arch>: New method, from
10928 (get_objfile_arch): Don't declare.
10929 * objfiles.c (get_objfile_arch): Remove.
10930 (filter_overlapping_sections): Update.
10931 * minsyms.c (msymbol_is_function): Update.
10932 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10933 (output_nondebug_symbol): Update.
10934 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10935 (mdebug_expand_psymtab): Update.
10936 * machoread.c (macho_add_oso_symfile): Update.
10937 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10939 * linux-fork.c (checkpoint_command): Update.
10940 * linespec.c (convert_linespec_to_sals): Update.
10941 * jit.c (finalize_symtab): Update.
10942 * infrun.c (insert_exception_resume_from_probe): Update.
10943 * ia64-tdep.c (ia64_find_unwind_table): Update.
10944 * hppa-tdep.c (internalize_unwinds): Update.
10945 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10947 * gcore.c (call_target_sbrk): Update.
10948 * elfread.c (record_minimal_symbol, elf_symtab_read)
10949 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10950 (elf_gnu_ifunc_resolve_by_got): Update.
10951 * dwarf2/read.c (create_addrmap_from_index)
10952 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10953 (read_debug_names_from_section)
10954 (process_psymtab_comp_unit_reader, add_partial_symbol)
10955 (add_partial_subprogram, process_full_comp_unit)
10956 (read_file_scope, read_func_scope, read_lexical_block_scope)
10957 (read_call_site_scope, dwarf2_ranges_read)
10958 (dwarf2_record_block_ranges, dwarf2_add_field)
10959 (mark_common_block_symbol_computed, read_tag_pointer_type)
10960 (read_tag_string_type, dwarf2_init_float_type)
10961 (dwarf2_init_complex_target_type, read_base_type)
10962 (partial_die_info::read, partial_die_info::read)
10963 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10964 (dwarf2_fetch_die_loc_sect_off): Update.
10965 * dwarf2/loc.c (dwarf2_find_location_expression)
10966 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10967 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10968 (dwarf2_loc_desc_get_symbol_read_needs)
10969 (locexpr_describe_location_piece, locexpr_describe_location_1)
10970 (loclist_describe_location): Update.
10971 * dwarf2/index-write.c (write_debug_names): Update.
10972 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10973 * dtrace-probe.c (dtrace_process_dof): Update.
10974 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10975 (process_one_symbol): Update.
10976 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10977 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10978 (coff_read_enum_type): Update.
10979 * cli/cli-cmds.c (edit_command, list_command): Update.
10980 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10981 * breakpoint.c (create_overlay_event_breakpoint)
10982 (create_longjmp_master_breakpoint)
10983 (create_std_terminate_master_breakpoint)
10984 (create_exception_master_breakpoint, get_sal_arch): Update.
10985 * block.c (block_gdbarch): Update.
10986 * annotate.c (annotate_source_line): Update.
10988 2020-04-17 Tom Tromey <tromey@adacore.com>
10990 * auto-load.c (show_auto_load_cmd): Remove.
10991 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10992 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10993 (maintenance_print_arc_command): Remove.
10994 * tui/tui-win.c (tui_command): Remove.
10995 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10996 * tui/tui-layout.c (tui_layout_command): Remove.
10997 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10998 * python/python.c (user_set_python, user_show_python): Remove.
10999 (_initialize_python): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11002 (install_gdb_commands): Use add_basic_prefix_cmd,
11003 add_show_prefix_cmd.
11004 (info_guile_command): Remove.
11005 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11006 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11009 Remove do_set and do_show parameters.
11010 * cli/cli-style.c (set_style, show_style): Remove.
11011 (_initialize_cli_style): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 (cli_style_option::add_setshow_commands): Remove do_set and
11014 do_show parameters.
11015 (cli_style_option::add_setshow_commands): Use
11016 add_basic_prefix_cmd, add_show_prefix_cmd.
11017 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11018 (set_style_name): Remove.
11019 * cli/cli-dump.c (dump_command, append_command): Remove.
11020 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11021 (tekhex_dump_command, binary_dump_command)
11022 (binary_append_command): Remove.
11023 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11024 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11025 (init_w32_command_list): Remove; move into ...
11026 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11027 * valprint.c (set_print, show_print, set_print_raw)
11028 (show_print_raw): Remove.
11029 (_initialize_valprint): Use add_basic_prefix_cmd,
11030 add_show_prefix_cmd.
11031 * typeprint.c (set_print_type, show_print_type): Remove.
11032 (_initialize_typeprint): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 * record.c (set_record_command, show_record_command): Remove.
11035 (_initialize_record): Use add_basic_prefix_cmd,
11036 add_show_prefix_cmd.
11037 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 (info_command, show_command, set_debug, show_debug): Remove.
11040 * top.h (set_history, show_history): Don't declare.
11041 * top.c (set_history, show_history): Remove.
11042 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11043 (unset_tdesc_cmd): Remove.
11044 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11045 add_show_prefix_cmd.
11046 * symtab.c (info_module_command): Remove.
11047 (_initialize_symtab): Use add_basic_prefix_cmd.
11048 * symfile.c (overlay_command): Remove.
11049 (_initialize_symfile): Use add_basic_prefix_cmd.
11050 * sparc64-tdep.c (info_adi_command): Remove.
11051 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11052 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11053 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11054 add_show_prefix_cmd.
11055 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11056 (_initialize_serial): Use add_basic_prefix_cmd,
11057 add_show_prefix_cmd.
11058 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11059 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11060 add_show_prefix_cmd.
11061 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11062 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11063 add_show_prefix_cmd.
11064 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11065 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11066 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 * remote.c (remote_command, set_remote_cmd): Remove.
11069 (_initialize_remote): Use add_basic_prefix_cmd.
11070 * record-full.c (set_record_full_command)
11071 (show_record_full_command): Remove.
11072 (_initialize_record_full): Use add_basic_prefix_cmd,
11073 add_show_prefix_cmd.
11074 * record-btrace.c (cmd_set_record_btrace)
11075 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11076 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11077 (cmd_show_record_btrace_pt): Remove.
11078 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 * ravenscar-thread.c (set_ravenscar_command)
11081 (show_ravenscar_command): Remove.
11082 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11083 add_show_prefix_cmd.
11084 * mips-tdep.c (show_mips_command, set_mips_command)
11085 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11086 add_show_prefix_cmd.
11087 * maint.c (maintenance_command, maintenance_info_command)
11088 (maintenance_check_command, maintenance_print_command)
11089 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11090 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 (show_per_command_cmd): Remove.
11093 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11095 (maintenance_show_test_settings_cmd): Remove.
11096 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11097 add_show_prefix_cmd.
11098 * maint-test-options.c (maintenance_test_options_command):
11100 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11101 * macrocmd.c (macro_command): Remove
11102 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11103 * language.c (set_check, show_check): Remove.
11104 (_initialize_language): Use add_basic_prefix_cmd,
11105 add_show_prefix_cmd.
11106 * infcmd.c (unset_command): Remove.
11107 (_initialize_infcmd): Use add_basic_prefix_cmd.
11108 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11109 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11110 add_show_prefix_cmd.
11111 * go32-nat.c (go32_info_dos_command): Remove.
11112 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11113 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11114 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11115 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11116 (_initialize_frame): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11119 (_initialize_dcache): Use add_basic_prefix_cmd,
11120 add_show_prefix_cmd.
11121 * cp-support.c (maint_cplus_command): Remove.
11122 (_initialize_cp_support): Use add_basic_prefix_cmd.
11123 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11124 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11125 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11126 add_basic_prefix_cmd, add_show_prefix_cmd.
11127 * breakpoint.c (save_command): Remove.
11128 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11129 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11130 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11131 add_show_prefix_cmd.
11132 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11133 (set_ada_command, show_ada_command): Remove.
11134 (_initialize_ada_language): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11138 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11140 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11141 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11143 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11145 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11148 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11150 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11151 import table is not at beginning of .idata section.
11153 2020-04-16 Pedro Alves <palves@redhat.com>
11155 * inferior.c (delete_inferior): Use delete operator directly
11156 instead of delete_program_space.
11157 * progspace.c (add_program_space): New, factored out from
11158 program_space::program_space.
11159 (remove_program_space): New, factored out from
11160 delete_program_space.
11161 (program_space::program_space): Remove intro comment. Rewrite.
11162 (program_space::~program_space): Remove intro comment. Call
11163 remove_program_space.
11164 (delete_program_space): Delete.
11165 * progspace.h (program_space::program_space): Make explicit. Move
11166 intro comment here, adjusted.
11167 (program_space::~program_space): Move intro comment here,
11169 (delete_program_space): Remove.
11171 2020-04-16 Tom Tromey <tromey@adacore.com>
11173 * windows-nat.c (windows_nat::handle_access_violation): New
11175 * nat/windows-nat.h (handle_access_violation): Declare.
11176 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11177 windows-nat.c. Call handle_access_violation.
11179 2020-04-16 Tom de Vries <tdevries@suse.de>
11182 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11183 CUs without psymtab.
11185 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11187 * python/python.c (do_start_initialization): Don't call
11188 PyEval_InitThreads for Python 3.9 and beyond.
11190 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11192 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11194 (obsd_nat_target::wait): Likewise.
11196 2020-04-15 Tom Tromey <tromey@adacore.com>
11198 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11199 (DEBUG_EXCEPT): Use debug_printf.
11201 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11203 * completer.c (class completion_tracker::completion_hash_entry)
11204 <hash_name>: New member function.
11205 (completion_tracker::discard_completions): New callback to hash a
11206 completion_hash_entry, pass this to htab_create_alloc.
11208 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11210 * windows-nat.c (windows_make_so): Warn rather than stopping with
11211 an error if realpath() fails.
11213 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11215 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11216 (nbsd_nat_target::info_proc): Add do_status.
11218 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11219 Tom de Vries <tdevries@suse.de>
11222 * psympriv.h (struct partial_symtab::read_symtab)
11223 (struct partial_symtab::expand_psymtab)
11224 (struct partial_symtab::read_dependencies): Update comments.
11225 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11226 read_symtab for includer.
11227 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11228 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11229 (struct dwarf2_include_psymtab::m_readin): Remove.
11230 (struct dwarf2_include_psymtab::includer): New member function.
11231 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11233 2020-04-14 Tom de Vries <tdevries@suse.de>
11236 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11237 with NULL symbol_matcher and lookup_name.
11238 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11240 * dwarf2/read.c (dw2_expand_symtabs_matching)
11241 (dw2_debug_names_expand_symtabs_matching): Same.
11242 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11243 Make lookup_name a pointer. Update comment.
11244 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11245 lookup_name being a pointer.
11246 * symfile.c (expand_symtabs_matching): Same.
11247 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11248 * linespec.c (iterate_over_all_matching_symtabs): Same.
11250 2020-04-13 Tom Tromey <tom@tromey.com>
11252 * run-on-main-thread.c: Update include.
11253 * unittests/main-thread-selftests.c: Update include.
11254 * tui/tui-win.c: Update include.
11255 * tui/tui-io.c: Update include.
11256 * tui/tui-interp.c: Update include.
11257 * tui/tui-hooks.c: Update include.
11258 * top.h: Update include.
11259 * top.c: Update include.
11260 * ser-base.c: Update include.
11261 * remote.c: Update include.
11262 * remote-notif.c: Update include.
11263 * remote-fileio.c: Update include.
11264 * record-full.c: Update include.
11265 * record-btrace.c: Update include.
11266 * python/python.c: Update include.
11267 * posix-hdep.c: Update include.
11268 * mingw-hdep.c: Update include.
11269 * mi/mi-main.c: Update include.
11270 * mi/mi-interp.c: Update include.
11271 * main.c: Update include.
11272 * linux-nat.c: Update include.
11273 * interps.c: Update include.
11274 * infrun.c: Update include.
11275 * inf-loop.c: Update include.
11276 * event-top.c: Update include.
11277 * event-loop.c: Move to ../gdbsupport/.
11278 * event-loop.h: Move to ../gdbsupport/.
11279 * async-event.h: Update include.
11280 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11282 2020-04-13 Tom Tromey <tom@tromey.com>
11284 * tui/tui-win.c: Include async-event.h.
11285 * remote.c: Include async-event.h.
11286 * remote-notif.c: Include async-event.h.
11287 * record-full.c: Include async-event.h.
11288 * record-btrace.c: Include async-event.h.
11289 * infrun.c: Include async-event.h.
11290 * event-top.c: Include async-event.h.
11291 * event-loop.h: Move some declarations to async-event.h.
11292 * event-loop.c: Don't include ser-event.h or top.h. Move some
11293 code to async-event.c.
11294 * async-event.h: New file.
11295 * async-event.c: New file.
11296 * Makefile.in (COMMON_SFILES): Add async-event.c.
11297 (HFILES_NO_SRCDIR): Add async-event.h.
11299 2020-04-13 Tom Tromey <tom@tromey.com>
11301 * utils.c (flush_streams): New function.
11302 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11304 2020-04-13 Tom Tromey <tom@tromey.com>
11306 * event-loop.c (handle_file_event): Use warning, not
11309 2020-04-13 Tom Tromey <tom@tromey.com>
11311 * event-loop.c: Include <chrono>.
11313 2020-04-13 Tom Tromey <tom@tromey.com>
11315 * gdb_select.h: Move to ../gdbsupport/.
11316 * event-loop.c: Update include path.
11317 * top.c: Update include path.
11318 * ser-base.c: Update include path.
11319 * ui-file.c: Update include path.
11320 * ser-tcp.c: Update include path.
11321 * guile/scm-ports.c: Update include path.
11322 * posix-hdep.c: Update include path.
11323 * ser-unix.c: Update include path.
11324 * gdb_usleep.c: Update include path.
11325 * mingw-hdep.c: Update include path.
11326 * inflow.c: Update include path.
11327 * infrun.c: Update include path.
11328 * event-top.c: Update include path.
11330 2020-04-13 Tom Tromey <tom@tromey.com>
11332 * configure: Rebuild.
11333 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11335 2020-04-13 Tom Tromey <tom@tromey.com>
11337 * event-loop.h (start_event_loop): Don't declare.
11338 * event-loop.c (start_event_loop): Move...
11339 * main.c (start_event_loop): ...here. Now static.
11341 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11343 * MAINTAINERS: Update my email address.
11345 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11347 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11350 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11352 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11353 (nbsd_nat_target::info_proc): Add do_cmdline.
11355 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11357 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11358 (nbsd_nat_target::info_proc): Add do_cwd.
11360 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11362 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11364 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11366 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11367 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11368 (nbsd_nat_target::info_proc): New functions.
11369 * nbsd-nat.c (kinfo_get_vmmap): New function.
11370 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11371 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11372 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11373 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11375 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11376 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11377 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11378 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11379 (KINFO_VME_FLAG_GROWS_DOWN): New.
11381 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11383 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11386 2020-04-10 Tom Tromey <tromey@adacore.com>
11388 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11390 2020-04-10 Tom Tromey <tromey@adacore.com>
11392 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11393 separate debug files.
11395 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11397 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11399 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11401 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11402 Check for STATUS_WX86_BREAKPOINT.
11403 (windows_nat_target::wait): Same.
11405 2020-04-10 Tom de Vries <tdevries@suse.de>
11408 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11410 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11412 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11413 (Write After Approval): Remove Tom de Vries.
11415 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11418 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11420 * buildsym.c (record_line): Fix undefined behavior and preserve
11423 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11425 * auxv.h (svr4_auxv_parse): New.
11426 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11427 and generic_auxv_parse.
11428 (svr4_auxv_parse): Add.
11429 * obsd-tdep.c: Include "auxv.h".
11430 (obsd_auxv_parse): Remove.
11431 (obsd_init_abi): Remove comment.
11432 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11433 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11434 * nbsd-tdep.c: Include "auxv.h".
11435 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11437 2020-04-08 Tom Tromey <tromey@adacore.com>
11439 * nat/windows-nat.h (last_wait_event): Don't declare.
11440 (wait_for_debug_event): Update comment.
11441 * nat/windows-nat.c (last_wait_event): Now static.
11443 2020-04-08 Tom Tromey <tromey@adacore.com>
11445 * windows-nat.c (wait_for_debug_event): Move to
11447 * nat/windows-nat.h (wait_for_debug_event): Declare.
11448 * nat/windows-nat.c (wait_for_debug_event): Move from
11449 windows-nat.c. No longer static.
11451 2020-04-08 Tom Tromey <tromey@adacore.com>
11453 * windows-nat.c (get_windows_debug_event): Use
11454 fetch_pending_stop.
11455 * nat/windows-nat.h (fetch_pending_stop): Declare.
11456 * nat/windows-nat.c (fetch_pending_stop): New function.
11458 2020-04-08 Tom Tromey <tromey@adacore.com>
11460 * windows-nat.c (windows_continue): Use matching_pending_stop and
11461 continue_last_debug_event.
11462 * nat/windows-nat.h (matching_pending_stop)
11463 (continue_last_debug_event): Declare.
11464 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11465 (matching_pending_stop, continue_last_debug_event): New
11468 2020-04-08 Tom Tromey <tromey@adacore.com>
11470 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11471 (handle_exception_result): Move to nat/windows-nat.h.
11472 (DEBUG_EXCEPTION_SIMPLE): Remove.
11473 (windows_nat::handle_ms_vc_exception): New function.
11474 (handle_exception): Move to nat/windows-nat.c.
11475 (get_windows_debug_event): Update.
11476 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11478 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11479 (handle_exception_result): Move from windows-nat.c.
11480 (handle_exception): Declare.
11481 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11482 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11485 2020-04-08 Tom Tromey <tromey@adacore.com>
11487 * windows-nat.c (exception_count, event_count): Remove.
11488 (handle_exception, get_windows_debug_event)
11489 (do_initial_windows_stuff): Update.
11491 2020-04-08 Tom Tromey <tromey@adacore.com>
11493 * windows-nat.c (windows_nat::handle_load_dll)
11494 (windows_nat::handle_unload_dll): Rename. No longer static.
11495 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11498 2020-04-08 Tom Tromey <tromey@adacore.com>
11500 * complaints.h (stop_whining): Declare at top-level.
11501 (complaint): Don't declare stop_whining.
11503 2020-04-08 Tom Tromey <tromey@adacore.com>
11505 * windows-nat.c (windows_nat::handle_output_debug_string):
11506 Rename. No longer static.
11507 * nat/windows-nat.h (handle_output_debug_string): Declare.
11509 2020-04-08 Tom Tromey <tromey@adacore.com>
11511 * windows-nat.c (current_process_handle, current_process_id)
11512 (main_thread_id, last_sig, current_event, last_wait_event)
11513 (current_windows_thread, desired_stop_thread_id, pending_stops)
11514 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11515 (display_selectors, fake_create_process)
11516 (get_windows_debug_event): Update.
11517 * nat/windows-nat.h (current_process_handle, current_process_id)
11518 (main_thread_id, last_sig, current_event, last_wait_event)
11519 (current_windows_thread, desired_stop_thread_id, pending_stops)
11520 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11521 * nat/windows-nat.c (current_process_handle, current_process_id)
11522 (main_thread_id, last_sig, current_event, last_wait_event)
11523 (current_windows_thread, desired_stop_thread_id, pending_stops)
11524 (siginfo_er): New globals. Move from windows-nat.c.
11526 2020-04-08 Tom Tromey <tromey@adacore.com>
11528 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11529 (handle_load_dll): Update.
11530 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11532 2020-04-08 Tom Tromey <tromey@adacore.com>
11534 * windows-nat.c (enum thread_disposition_type): Move to
11536 (windows_nat::thread_rec): Rename from thread_rec. No longer
11538 (windows_add_thread, windows_nat_target::fetch_registers)
11539 (windows_nat_target::store_registers, handle_exception)
11540 (windows_nat_target::resume, get_windows_debug_event)
11541 (windows_nat_target::get_tib_address)
11542 (windows_nat_target::thread_name)
11543 (windows_nat_target::thread_alive): Update.
11544 * nat/windows-nat.h (enum thread_disposition_type): Move from
11546 (thread_rec): Declare.
11548 2020-04-08 Tom Tromey <tromey@adacore.com>
11550 * windows-nat.c: Add "using namespace".
11551 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11552 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11554 2020-04-08 Tom Tromey <tromey@adacore.com>
11556 * nat/windows-nat.h (struct windows_thread_info): Declare
11558 * nat/windows-nat.c (~windows_thread_info): New.
11560 2020-04-08 Tom Tromey <tromey@adacore.com>
11563 * windows-nat.c (current_event): Update comment.
11564 (last_wait_event, desired_stop_thread_id): New globals.
11565 (struct pending_stop): New.
11566 (pending_stops): New global.
11567 (windows_nat_target) <stopped_by_sw_breakpoint>
11568 <supports_stopped_by_sw_breakpoint>: New methods.
11569 (windows_fetch_one_register): Add assertions. Adjust PC.
11570 (windows_continue): Handle pending stops. Suspend other threads
11571 when stepping. Use last_wait_event
11572 (wait_for_debug_event): New function.
11573 (get_windows_debug_event): Use wait_for_debug_event. Handle
11574 pending stops. Queue spurious stops.
11575 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11576 (windows_nat_target::kill): Use wait_for_debug_event.
11577 * nat/windows-nat.h (struct windows_thread_info)
11578 <stopped_at_software_breakpoint>: New field.
11579 * nat/windows-nat.c (windows_thread_info::resume): Clear
11580 stopped_at_software_breakpoint.
11582 2020-04-08 Tom Tromey <tromey@adacore.com>
11584 * windows-nat.c (enum thread_disposition_type): New.
11585 (thread_rec): Replace "get_context" parameter with "disposition";
11587 (windows_add_thread, windows_nat_target::fetch_registers)
11588 (windows_nat_target::store_registers, handle_exception)
11589 (windows_nat_target::resume, get_windows_debug_event)
11590 (windows_nat_target::get_tib_address)
11591 (windows_nat_target::thread_name)
11592 (windows_nat_target::thread_alive): Update.
11594 2020-04-08 Tom Tromey <tromey@adacore.com>
11596 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11597 (windows_continue): Use windows_continue::resume.
11598 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11599 resume>: Declare new methods.
11600 * nat/windows-nat.c: New file.
11601 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11603 2020-04-08 Tom Tromey <tromey@adacore.com>
11605 * windows-nat.c (windows_add_thread, windows_delete_thread)
11606 (windows_nat_target::fetch_registers)
11607 (windows_nat_target::store_registers, fake_create_process)
11608 (windows_nat_target::resume, windows_nat_target::resume)
11609 (get_windows_debug_event, windows_nat_target::wait)
11610 (windows_nat_target::pid_to_str)
11611 (windows_nat_target::get_tib_address)
11612 (windows_nat_target::get_ada_task_ptid)
11613 (windows_nat_target::thread_name)
11614 (windows_nat_target::thread_alive): Use lwp, not tid.
11616 2020-04-08 Tom Tromey <tromey@adacore.com>
11618 * windows-nat.c (handle_exception)
11619 (windows_nat_target::thread_name): Update.
11620 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11621 <name>: Now unique_xmalloc_ptr.
11623 2020-04-08 Tom Tromey <tromey@adacore.com>
11625 * windows-nat.c (thread_rec)
11626 (windows_nat_target::fetch_registers): Update.
11627 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11629 <debug_registers_changed, reload_context>: Now bool.
11631 2020-04-08 Tom Tromey <tromey@adacore.com>
11633 * windows-nat.c (windows_add_thread): Use new.
11634 (windows_init_thread_list, windows_delete_thread): Use delete.
11635 (get_windows_debug_event): Update.
11636 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11637 destructor, and initializers.
11639 2020-04-08 Tom Tromey <tromey@adacore.com>
11641 * windows-nat.c (struct windows_thread_info): Remove.
11642 * nat/windows-nat.h: New file.
11644 2020-04-08 Tom Tromey <tromey@adacore.com>
11646 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11647 (thread_rec, windows_add_thread, windows_delete_thread)
11648 (windows_continue): Update.
11650 2020-04-08 Tom Tromey <tromey@adacore.com>
11652 * windows-nat.c (struct windows_thread_info): Remove typedef.
11653 (thread_head): Remove.
11654 (thread_list): New global.
11655 (thread_rec, windows_add_thread, windows_init_thread_list)
11656 (windows_delete_thread, windows_continue): Update.
11658 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11660 * windows-tdep.h (windows_init_abi): Add comment.
11661 (cygwin_init_abi): New declaration.
11662 * windows-tdep.c: Split signal enumeration in two, one for
11663 Windows and one for Cygwin.
11664 (windows_gdb_signal_to_target): Only deal with signal of the
11666 (cygwin_gdb_signal_to_target): New function.
11667 (windows_init_abi): Rename to windows_init_abi_common, don't set
11668 gdb_signal_to_target gdbarch method. Add new new function with
11670 (cygwin_init_abi): New function.
11671 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11672 comment. Don't call windows_init_abi.
11673 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11674 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11675 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11676 i386_windows_init_abi_common, don't call windows_init_abi. Add
11677 a new function of this name.
11678 (i386_cygwin_init_abi): New function.
11679 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11682 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11684 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11686 (dwarf2_read_gdb_index): Update.
11688 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11690 * nbsd-tdep.c: Include "objfiles.h".
11691 (nbsd_skip_solib_resolver): New.
11692 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11694 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11696 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11697 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11698 with DW_LLE_base_addressx are being emitted in DWARFv5.
11699 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11700 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11703 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11705 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11706 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11707 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11708 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11709 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11710 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11711 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11714 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11716 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11717 (read_loclist_index): New function definition.
11718 (lookup_loclist_base): New function definition.
11719 (read_loclist_header): New function definition.
11720 (dwarf2_cu): Add loclist_base and loclist_header field.
11721 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11722 (read_full_die_1): Read the value of DW_AT_loclists_base.
11723 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11724 (read_attribute_value): Handle DW_FORM_loclistx.
11725 (skip_one_die): Handle DW_FORM_loclistx.
11726 (loclist_header): New structure declaration.
11727 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11729 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11731 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11732 constructor. Remove `addr` parameter from other constructor and
11733 add `per_cu` parameter.
11734 * dwarf2/read.c (create_partial_symtab): Update.
11736 2020-04-07 Tom de Vries <tdevries@suse.de>
11739 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11740 (partial_die_info::fixup): Inherit has_const_value.
11742 2020-04-07 Tom de Vries <tdevries@suse.de>
11744 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11745 symbols without address.
11747 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11749 * nbsd-nat.h (struct thread_info): Add forward declaration.
11750 (nbsd_nat_target::thread_alive): Add.
11751 (nbsd_nat_target::thread_name): Likewise.
11752 (nbsd_nat_target::update_thread_list): Likewise.
11753 (update_thread_list::post_attach): Likewise.
11754 (post_attach::pid_to_str): Likewise.
11755 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11756 (nbsd_thread_lister): Add.
11757 (nbsd_nat_target::thread_alive): Likewise.
11758 (nbsd_nat_target::thread_name): Likewise.
11759 (nbsd_add_threads): Likewise.
11760 (update_thread_list::post_attach): Likewise.
11761 (nbsd_nat_target::update_thread_list): Likewise.
11762 (post_attach::pid_to_str): Likewise.
11764 2020-04-06 Tom Tromey <tromey@adacore.com>
11766 * ada-valprint.c (print_variant_part): Extract the variant field.
11767 (print_field_values): Use the field as the outer value when
11770 2020-04-06 Tom Tromey <tromey@adacore.com>
11772 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11773 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11774 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11775 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11776 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11778 2020-04-06 Tom Tromey <tromey@adacore.com>
11780 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11783 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11785 * nbsd-tdep.c: Include "gdbarch.h".
11786 Define enum with NetBSD signal numbers.
11787 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11788 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11789 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11790 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11791 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11792 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11793 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11794 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11795 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11796 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11797 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11798 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11800 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11803 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11805 2020-04-03 Tom Tromey <tromey@adacore.com>
11807 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11808 Read constant block.
11810 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11812 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11813 (gdb_bfd_get_full_section_contents): New declaration.
11814 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11815 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11816 gdb_bfd_get_full_section_contents.
11818 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11820 * exec.c (build_section_table): Replace internal_error with
11822 (section_table_xfer_memory_partial): Likewise.
11823 * mdebugread.c (parse_partial_symbols): Likewise.
11824 * psymtab.c (lookup_partial_symbol): Likewise.
11825 * utils.c (wrap_here): Likewise.
11827 2020-04-02 Tom Tromey <tromey@adacore.com>
11829 * f-lang.c (build_fortran_types): Use arch_type to initialize
11830 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11832 2020-04-02 Tom Tromey <tromey@adacore.com>
11834 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11837 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11838 Bernd Edlinger <bernd.edlinger@hotmail.de>
11839 Tom Tromey <tromey@adacore.com>
11841 * buildsym.c (buildsym_compunit::record_line): Remove
11842 deduplication code.
11844 2020-04-02 Tom de Vries <tdevries@suse.de>
11847 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11849 2020-04-02 Tom de Vries <tdevries@suse.de>
11851 * dwarf2/read.c (dwarf2_gdb_index_functions,
11852 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11854 * psymtab.c (psym_lookup_global_symbol_language): New function.
11855 (psym_functions): Init psym_lookup_global_symbol_language with
11856 psym_lookup_global_symbol_language.
11857 * symfile-debug.c (debug_sym_quick_functions): Init
11858 lookup_global_symbol_language with NULL.
11859 * symfile.c (set_initial_language): Remove fixme comment.
11860 * symfile.h (struct quick_symbol_functions): Add
11861 lookup_global_symbol_language.
11862 * symtab.c (find_quick_global_symbol_language): New function.
11863 (find_main_name): Use find_quick_global_symbol_language.
11865 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11867 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11869 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11871 * buildsym.c (record_line): Fix undefined behavior and preserve
11874 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11876 * buildsym.c (record_line): Fix the resizing condition.
11878 2020-04-01 Tom Tromey <tom@tromey.com>
11880 * value.h (value_literal_complex): Add comment.
11881 * valops.c (value_literal_complex): Refer to value.h.
11883 2020-04-01 Tom Tromey <tom@tromey.com>
11885 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11886 (scalar_type): New rule, from typebase.
11887 (typebase): Use scalar_type. Recognize complex types.
11888 (field_name): Handle FLOAT_KEYWORD.
11889 (ident_tokens): Add _Complex and __complex__.
11891 2020-04-01 Tom Tromey <tom@tromey.com>
11894 * valarith.c (promotion_type, complex_binop): New functions.
11895 (scalar_binop): Handle complex numbers. Use promotion_type.
11896 (value_pos, value_neg, value_complement): Handle complex numbers.
11898 2020-04-01 Tom Tromey <tom@tromey.com>
11900 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11901 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11902 (parse_number): Handle complex numbers.
11904 2020-04-01 Tom Tromey <tom@tromey.com>
11906 * c-valprint.c (c_decorations): Change complex suffix to "i".
11908 2020-04-01 Tom Tromey <tom@tromey.com>
11910 * valprint.c (generic_value_print_complex): Use accessors.
11911 * value.h (value_real_part, value_imaginary_part): Declare.
11912 * valops.c (value_real_part, value_imaginary_part): New
11914 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11916 2020-04-01 Tom Tromey <tom@tromey.com>
11918 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11919 (read_range_type): Update.
11920 * mdebugread.c (basic_type): Update.
11921 * go-lang.c (build_go_types): Use init_complex_type.
11922 * gdbtypes.h (struct main_type) <complex_type>: New member.
11923 (init_complex_type): Update.
11924 (arch_complex_type): Don't declare.
11925 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11926 Make name if none given. Use alloc_type_copy. Look for cached
11928 (arch_complex_type): Remove.
11929 (gdbtypes_post_init): Use init_complex_type.
11930 * f-lang.c (build_fortran_types): Use init_complex_type.
11931 * dwarf2/read.c (read_base_type): Update.
11932 * d-lang.c (build_d_types): Use init_complex_type.
11933 * ctfread.c (read_base_type): Update.
11935 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11937 * infrun.c (stop_all_threads): Update assertion, plus when
11938 stopping threads, take into account that we might be trying
11939 to stop an all-stop target.
11940 (stop_waiting): Call 'stop_all_threads' if there exists a
11943 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11945 * target.h (exists_non_stop_target): New function declaration.
11946 * target.c (exists_non_stop_target): New function.
11948 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11951 * eval.c (is_integral_or_integral_reference): New function.
11952 (evaluate_subexp_standard): Allow integer references in
11953 pointer arithmetic.
11955 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11957 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11958 check for no ptid in the stop reply when the target is non-stop.
11960 2020-04-01 Tom Tromey <tromey@adacore.com>
11962 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11963 "name" parameter to rvalue reference. Initialize m_name_holder.
11964 <lookup_name_info>: New overloads.
11965 <name>: Return gdb::string_view.
11966 <c_str>: New method.
11967 <make_ignore_params>: Update.
11968 <search_name_hash>: Update.
11969 <language_lookup_name>: Return const char *.
11970 <m_name>: Change type.
11971 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11972 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11973 (lookup_name_info::match_any): Update.
11974 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11976 * minsyms.c (linkage_name_str): Update.
11977 * language.c (default_symbol_name_matcher): Update.
11978 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11980 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11981 (ada_lookup_name_info::ada_lookup_name_info): Update.
11982 (literal_symbol_name_matcher): Update.
11984 2020-04-01 Tom Tromey <tromey@adacore.com>
11986 * psymtab.c (psymtab_search_name): Remove function.
11987 (psym_lookup_symbol): Create search name and lookup name here.
11988 (lookup_partial_symbol): Remove "name" parameter; add
11990 (psym_expand_symtabs_for_function): Update.
11992 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11995 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11997 2020-03-31 Tom Tromey <tromey@adacore.com>
11999 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12002 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12004 * features/riscv/32bit-csr.xml: Regenerated.
12005 * features/riscv/64bit-csr.xml: Regenerated.
12007 2020-03-30 Tom Tromey <tromey@adacore.com>
12009 * ada-valprint.c (print_variant_part): Update.
12010 * ada-lang.h (ada_which_variant_applies): Update.
12011 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12012 outer_valaddr parameters; replace with "outer" value parameter.
12013 (to_fixed_variant_branch_type): Update.
12015 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12017 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12018 <list>. Remove inclusion of observable.h.
12019 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12020 (struct arch_lwp_info): New struct.
12021 (class ppc_linux_dreg_interface): New class.
12022 (struct ppc_linux_process_info): New struct.
12023 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12024 <low_new_clone, low_forget_process, low_prepare_to_resume>
12025 <copy_thread_dreg_state, mark_thread_stale>
12026 <mark_debug_registers_changed, register_hw_breakpoint>
12027 <clear_hw_breakpoint, register_wp, clear_wp>
12028 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12029 <num_memory_accesses, get_trigger_type>
12030 <create_watchpoint_request, hwdebug_point_cmp>
12031 <init_arch_lwp_info, get_arch_lwp_info>
12032 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12034 <struct ptid_hash>: New inner struct.
12035 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12037 (saved_dabr_value, hwdebug_info, max_slots_number)
12038 (struct hw_break_tuple, struct thread_points, ppc_threads)
12039 (have_ptrace_hwdebug_interface)
12040 (hwdebug_find_thread_points_by_tid)
12041 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12042 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12043 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12044 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12045 use m_dreg_interface.
12046 (hwdebug_point_cmp): Change to...
12047 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12048 reference arguments instead of pointers.
12049 (ppc_linux_nat_target::ranged_break_num_registers): Use
12051 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12052 m_dreg_interface. Call register_hw_breakpoint.
12053 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12054 m_dreg_interface. Call clear_hw_breakpoint.
12055 (get_trigger_type): Change to...
12056 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12058 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12059 use m_dreg_interface. Call register_hw_breakpoint.
12060 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12061 use m_dreg_interface. Call clear_hw_breakpoint.
12062 (can_use_watchpoint_cond_accel): Change to...
12063 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12064 method. Update comment, use m_dreg_interface and
12066 (calculate_dvc): Change to...
12067 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12069 (num_memory_accesses): Change to...
12070 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12071 (check_condition): Change to...
12072 (ppc_linux_nat_target::check_condition): ...this method.
12073 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12074 comment, use m_dreg_interface.
12075 (create_watchpoint_request): Change to...
12076 (ppc_linux_nat_target::create_watchpoint_request): ...this
12077 method. Use m_dreg_interface.
12078 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12079 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12080 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12081 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12082 (ppc_linux_nat_target::low_forget_process)
12083 (ppc_linux_nat_target::low_new_fork)
12084 (ppc_linux_nat_target::low_new_clone)
12085 (ppc_linux_nat_target::low_delete_thread)
12086 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12087 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12088 only call mark_thread_stale.
12089 (ppc_linux_thread_exit): Remove.
12090 (ppc_linux_nat_target::stopped_data_address): Change to...
12091 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12092 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12093 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12094 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12095 comment. Call low_stopped_data_address.
12096 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12098 (ppc_linux_nat_target::masked_watch_num_registers): Use
12100 (ppc_linux_nat_target::copy_thread_dreg_state)
12101 (ppc_linux_nat_target::mark_thread_stale)
12102 (ppc_linux_nat_target::mark_debug_registers_changed)
12103 (ppc_linux_nat_target::register_hw_breakpoint)
12104 (ppc_linux_nat_target::clear_hw_breakpoint)
12105 (ppc_linux_nat_target::register_wp)
12106 (ppc_linux_nat_target::clear_wp)
12107 (ppc_linux_nat_target::init_arch_lwp_info)
12108 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12109 (_initialize_ppc_linux_nat): Remove observer callback.
12111 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12113 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12114 (ppc_linux_nat_target::auxv_parse)
12115 (ppc_linux_nat_target::read_description)
12116 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12119 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12121 * linux-nat.h (low_new_clone): New method.
12122 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12124 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12126 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12127 (dbx_expand_psymtab): ... this.
12128 (start_psymtab): Update.
12129 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12130 (mdebug_expand_psymtab): ... this.
12131 (parse_partial_symbols): Update.
12132 (new_psymtab): Update.
12133 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12134 (xcoff_expand_psymtab): ... this.
12135 (xcoff_start_psymtab): Update.
12137 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12139 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12140 <expand_dependencies>: ... this.
12141 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12142 (partial_symtab::expand_dependencies): ... this.
12143 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12145 (dwarf2_psymtab::expand_psymtab): Update.
12146 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12147 * mdebugread.c (psymtab_to_symtab_1): Update.
12148 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12150 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12152 * psympriv.h (discard_psymtab): Remove.
12153 * dbxread.c (dbx_end_psymtab): Update.
12154 * xcoffread.c (xcoff_end_psymtab): Update.
12156 2020-03-28 Tom Tromey <tom@tromey.com>
12158 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12161 2020-03-28 Tom Tromey <tom@tromey.com>
12163 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12165 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12167 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12169 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12171 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12173 2020-03-26 Tom Tromey <tom@tromey.com>
12175 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12176 (mark_common_block_symbol_computed, read_tag_string_type)
12177 (attr_to_dynamic_prop, read_subrange_type): Update.
12178 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12179 to be methods on struct attribute.
12180 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12181 (read_call_site_scope, partial_die_info::read)
12182 (partial_die_info::read, lookup_die_type, follow_die_ref):
12184 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12185 from dwarf2_get_ref_die_offset.
12186 (attribute::constant_value): New method, from
12187 dwarf2_get_attr_constant_value.
12188 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12190 <constant_value>: New method.
12192 2020-03-26 Tom Tromey <tom@tromey.com>
12194 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12195 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12196 (dwarf_type_encoding_name): Move to stringify.c.
12197 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12198 * dwarf2/stringify.c: New file.
12199 * dwarf2/stringify.h: New file.
12201 2020-03-26 Tom Tromey <tom@tromey.com>
12203 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12206 2020-03-26 Tom Tromey <tom@tromey.com>
12208 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12210 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12211 (lookup_ranges_base): Likewise.
12212 (read_cutu_die_from_dwo, read_full_die_1): Update.
12214 2020-03-26 Tom Tromey <tom@tromey.com>
12216 * dwarf2/read.c (read_import_statement, read_file_scope)
12217 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12218 (read_lexical_block_scope, read_call_site_scope)
12219 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12220 (handle_struct_member_die, process_structure_scope)
12221 (update_enumeration_type_from_children)
12222 (process_enumeration_scope, read_array_type, read_common_block)
12223 (read_namespace, read_module, read_subroutine_type): Update.
12224 (sibling_die): Remove.
12226 2020-03-26 Tom Tromey <tom@tromey.com>
12228 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12229 (build_type_psymtabs_reader, read_structure_type)
12230 (read_enumeration_type, read_full_die_1): Update.
12231 (dwarf2_attr_no_follow): Move to die.h.
12232 * dwarf2/die.h (struct die_info) <attr>: New method.
12234 2020-03-26 Tom Tromey <tom@tromey.com>
12236 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12237 <base_address>: Now an optional.
12238 (dwarf2_find_base_address, dwarf2_rnglists_process)
12239 (dwarf2_ranges_process, fill_in_loclist_baton)
12240 (dwarf2_symbol_mark_computed): Update.
12242 2020-03-26 Tom Tromey <tom@tromey.com>
12244 * dwarf2/read.c (struct die_info): Move to die.h.
12245 * dwarf2/die.h: New file.
12247 2020-03-26 Tom Tromey <tom@tromey.com>
12249 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12251 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12252 Move to line-header.c.
12253 (read_checked_initial_length_and_offset, read_formatted_entries):
12255 (dwarf_decode_line_header): Split into two.
12256 * dwarf2/line-header.c
12257 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12259 (read_checked_initial_length_and_offset, read_formatted_entries):
12261 (dwarf_decode_line_header): New function, split from read.c.
12263 2020-03-26 Tom Tromey <tom@tromey.com>
12265 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12267 * dwarf2/read.c (read_attribute_value): Update.
12268 (dwarf2_per_objfile::read_line_string): Rename from
12269 read_indirect_line_string.
12270 (read_formatted_entries): Update.
12272 2020-03-26 Tom Tromey <tom@tromey.com>
12274 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12277 2020-03-26 Tom Tromey <tom@tromey.com>
12279 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12281 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12282 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12285 2020-03-26 Tom Tromey <tom@tromey.com>
12287 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12288 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12289 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12290 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12292 2020-03-26 Tom Tromey <tom@tromey.com>
12294 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12295 file_names_size, file_full_name, file_file_name>: Use const.
12296 <file_name_at, file_names>: Add const overload.
12297 * dwarf2/line-header.c (line_header::file_file_name)
12298 (line_header::file_full_name): Update.
12300 2020-03-26 Tom Tromey <tom@tromey.com>
12302 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12303 (macro_start_file, consume_improper_spaces)
12304 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12305 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12306 (dwarf_decode_macros): Move to macro.c.
12307 * dwarf2/macro.c: New file.
12308 * dwarf2/macro.h: New file.
12309 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12311 2020-03-26 Tom Tromey <tom@tromey.com>
12313 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12315 * dwarf2/section.c: New method. From
12316 read_indirect_string_at_offset_from.
12317 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12318 (read_indirect_string_at_offset_from): Move to section.c.
12319 (read_indirect_string_at_offset): Rewrite.
12320 (read_indirect_line_string_at_offset): Remove.
12321 (read_indirect_string, read_indirect_line_string)
12322 (dwarf_decode_macro_bytes): Update.
12324 2020-03-26 Tom Tromey <tom@tromey.com>
12326 * dwarf2/section.h (struct dwarf2_section_info)
12327 <overload_complaint>: Declare.
12328 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12329 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12330 Rename from dwarf2_section_buffer_overflow_complaint.
12331 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12332 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12334 2020-03-26 Tom Tromey <tom@tromey.com>
12336 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12338 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12340 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12343 2020-03-26 Tom Tromey <tom@tromey.com>
12345 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12347 2020-03-26 Tom Tromey <tom@tromey.com>
12349 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12351 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12353 (dwarf_decode_macros): Update.
12355 2020-03-26 Tom Tromey <tom@tromey.com>
12357 * dwarf2/read.c (read_attribute_value): Update.
12358 (read_indirect_string_from_dwz): Move to dwz.c; change into
12360 (dwarf_decode_macro_bytes): Update.
12361 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12362 * dwarf2/dwz.c: New file.
12363 * Makefile.in (COMMON_SFILES): Add dwz.c.
12365 2020-03-26 Tom Tromey <tom@tromey.com>
12367 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12368 * dwarf2/read.c: Add include.
12369 * dwarf2/index-write.c: Add include.
12370 * dwarf2/index-cache.c: Add include.
12371 * dwarf2/dwz.h: New file.
12373 2020-03-25 Tom Tromey <tom@tromey.com>
12375 * compile/compile-object-load.c (get_out_value_type): Mention
12376 correct symbol name in error message.
12378 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12380 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12382 2020-03-25 Tom de Vries <tdevries@suse.de>
12384 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12385 * symmisc.c (dump_symtab_1): Print user and includes fields.
12386 (maintenance_info_symtabs): Same.
12388 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12391 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12392 (riscv_regcache_cooked_write): New function.
12393 (riscv_push_dummy_call): Use new function.
12394 (riscv_return_value): Likewise.
12396 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12398 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12399 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12400 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12401 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12402 * infrun.c (follow_fork): Likewise.
12403 (follow_fork_inferior): Likewise.
12404 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12405 * linux-nat.h (class linux_nat_target): Likewise.
12406 * remote.c (class remote_target) <follow_fork>: Likewise.
12407 (remote_target::follow_fork): Likewise.
12408 * target-delegates.c: Re-generate.
12409 * target.c (default_follow_fork): Likewise.
12410 (target_follow_fork): Likewise.
12411 * target.h (struct target_ops) <follow_fork>: Likewise.
12412 (target_follow_fork): Likewise.
12414 2020-03-24 Tom de Vries <tdevries@suse.de>
12416 * psymtab.c (maintenance_info_psymtabs): Print user field.
12418 2020-03-20 Tom Tromey <tromey@adacore.com>
12420 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12422 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12425 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12427 * ptrace.m4: Don't check for ptrace declaration.
12428 * config.in: Re-generate.
12429 * configure: Re-generate.
12430 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12433 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12435 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12437 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12438 * sparc-nat.c (gdb_ptrace): Likewise.
12439 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12441 2020-03-20 Tom Tromey <tromey@adacore.com>
12443 * c-exp.y (lex_one_token): Fix assert.
12445 2020-03-20 Tom Tromey <tromey@adacore.com>
12447 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12448 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12451 2020-03-20 Tom Tromey <tromey@adacore.com>
12453 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12455 2020-03-20 Tom Tromey <tromey@adacore.com>
12457 * ada-valprint.c (print_variant_part): Remove parameters; switch
12458 to value-based API.
12459 (print_field_values): Likewise.
12460 (ada_val_print_struct_union): Likewise.
12461 (ada_value_print_1): Update.
12463 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12465 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12466 nbsd_nat_target instead of inf_ptrace_target.
12467 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12470 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12472 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12473 it to the ptrace call.
12474 * (store_registers): Likewise.
12476 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12478 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12479 it to the ptrace call.
12480 * (store_registers): Likewise.
12482 2020-03-19 Luis Machado <luis.machado@linaro.org>
12484 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12485 valid, fetch vg value from ptrace.
12487 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12488 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12489 * inf-ptrace.c: Likewise.
12490 * (gdb_ptrace): Add.
12491 * (inf_ptrace_target::resume): Update.
12492 * (inf_ptrace_target::xfer_partial): Likewise.
12493 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12494 * (inf_ptrace_peek_poke): Update.
12496 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12498 * x86-bsd-nat.c (gdb_ptrace): New.
12499 * (x86bsd_dr_set): Add new argument `ptid'.
12500 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12501 x86bsd_dr_set_addr): Update.
12503 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12505 * remote.c (remote_target::process_stop_reply): Handle events for
12506 all threads differently.
12508 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12510 * completer.c (completion_tracker::remove_completion): Define new
12512 * completer.h (completion_tracker::remove_completion): Declare new
12514 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12515 when adding a C++ function symbol.
12517 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12519 * completer.c (completion_tracker::completion_hash_entry): Define
12521 (advance_to_filename_complete_word_point): Call
12522 recompute_lowest_common_denominator.
12523 (completion_tracker::completion_tracker): Call discard_completions
12524 to setup the hash table.
12525 (completion_tracker::discard_completions): Allow for being called
12526 from the constructor, pass new equal function, and element deleter
12527 when constructing the hash table. Initialise new class member
12529 (completion_tracker::maybe_add_completion): Remove use of
12530 m_entries_vec, and store more information into m_entries_hash.
12531 (completion_tracker::recompute_lcd_visitor): New function, most
12532 content taken from...
12533 (completion_tracker::recompute_lowest_common_denominator):
12534 ...here, this now just visits each item in the hash calling the
12536 (completion_tracker::build_completion_result): Remove use of
12537 m_entries_vec, call recompute_lowest_common_denominator.
12538 * completer.h (completion_tracker::have_completions): Remove use
12540 (completion_tracker::completion_hash_entry): Declare new class.
12541 (completion_tracker::recompute_lowest_common_denominator): Change
12542 function signature.
12543 (completion_tracker::recompute_lcd_visitor): Declare new function.
12544 (completion_tracker::m_entries_vec): Delete.
12545 (completion_tracker::m_entries_hash): Initialize to NULL.
12546 (completion_tracker::m_lowest_common_denominator_valid): New
12548 (completion_tracker::m_lowest_common_denominator_max_length): New
12551 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12553 * regformats/regdef.h: Put reg in gdb namespace.
12555 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12557 * i386-bsd-nat.c (gdb_ptrace): New.
12558 * (i386bsd_fetch_inferior_registers,
12559 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12560 * (i386bsd_fetch_inferior_registers,
12561 i386bsd_store_inferior_registers) Use gdb_ptrace.
12563 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12565 * amd64-bsd-nat.c (gdb_ptrace): New.
12566 * (amd64bsd_fetch_inferior_registers,
12567 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12568 * (amd64bsd_fetch_inferior_registers,
12569 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12571 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12573 * user-regs.c (user_reg::read): Rename to...
12574 (user_reg::xread): ...this.
12575 * (append_user_reg): Rename argument `read' to `xread'.
12576 * (user_reg_add_builtin): Likewise.
12577 * (user_reg_add): Likewise.
12578 * (value_of_user_reg): Likewise.
12580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12582 * sparc-nat.c (gdb_ptrace): New.
12583 * sparc-nat.c (sparc_fetch_inferior_registers)
12584 (sparc_store_inferior_registers) Remove obsolete comment.
12585 * sparc-nat.c (sparc_fetch_inferior_registers)
12586 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12587 * sparc-nat.c (sparc_fetch_inferior_registers)
12588 (sparc_store_inferior_registers) Use gdb_ptrace.
12590 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12592 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12593 it to the ptrace call.
12594 * sh-nbsd-nat.c (store_registers): Likewise.
12596 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12598 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12599 nbsd_nat_target instead of inf_ptrace_target.
12600 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12603 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12605 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12607 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12609 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12611 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12613 2020-03-17 Tom de Vries <tdevries@suse.de>
12616 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12618 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12620 (process_imported_unit_die): Skip import of c++ CUs.
12622 2020-03-16 Tom Tromey <tom@tromey.com>
12624 * p-valprint.c (pascal_object_print_value): Initialize
12627 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12628 Shahab Vahedi <shahab@synopsys.com>
12630 * Makefile.in: Add arch/arc.o
12631 * configure.tgt: Likewise.
12632 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12633 (_initialize_arc_tdep): Don't initialize old target descriptions.
12634 (arc_read_description): New function to cache target descriptions.
12635 * arc-tdep.h (arc_read_description): Add proto type.
12636 * arch/arc.c: New file.
12637 * arch/arc.h: Likewise.
12638 * features/Makefile: Replace old target descriptions with new.
12639 * features/arc-arcompact.c: Remove.
12640 * features/arc-arcompact.xml: Likewise.
12641 * features/arc-v2.c: Likewise
12642 * features/arc-v2.xml: Likewise
12643 * features/arc/aux-arcompact.xml: New file.
12644 * features/arc/aux-v2.xml: Likewise.
12645 * features/arc/core-arcompact.xml: Likewise.
12646 * features/arc/core-v2.xml: Likewise.
12647 * features/arc/aux-arcompact.c: Generate.
12648 * features/arc/aux-v2.c: Likewise.
12649 * features/arc/core-arcompact.c: Likewise.
12650 * features/arc/core-v2.c: Likewise.
12651 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12653 2020-03-16 Tom Tromey <tromey@adacore.com>
12656 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12657 putting value into bcache.
12659 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12662 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12664 (amd64_windows_init_abi_common): ... this. Don't set size of
12666 (amd64_windows_init_abi): New function.
12667 (amd64_cygwin_init_abi): New function.
12668 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12670 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12673 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12675 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12676 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12677 (pe_import_directory_entry): New struct type.
12678 (is_linked_with_cygwin_dll): New function.
12679 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12680 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12681 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12683 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12685 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12686 i386_cygwin_core_osabi_sniffer.
12688 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12690 * i386-cygwin-tdep.c: Rename to...
12691 * i386-windows-tdep.c: ... this.
12692 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12693 i386-windows-tdep.c.
12694 * configure.tgt: Likewise.
12696 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12698 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12699 * osabi.c (gdb_osabi_names): Add "Windows".
12700 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12701 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12702 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12703 i386_cygwin_osabi_sniffer.
12704 (_initialize_i386_cygwin_tdep): Register OS ABI
12705 GDB_OSABI_WINDOWS for i386.
12706 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12707 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12708 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12710 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12711 when the target matches '*-*-mingw*'.
12713 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12715 * defs.h (enum gdb_osabi): Move to...
12716 * osabi.h (enum gdb_osabi): ... here.
12717 * gdbarch.sh: Include osabi.h in gdbarch.h.
12718 * gdbarch.h: Re-generate.
12720 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12722 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12724 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12726 2020-03-14 Tom Tromey <tom@tromey.com>
12728 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12730 (c_type_print_modifier): Likewise. Add "language" parameter.
12731 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12732 (c_type_print_base_1): Update.
12733 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12735 * type-stack.c (type_stack::insert): Handle tp_atomic and
12737 (type_stack::follow_type_instance_flags): Likewise.
12738 (type_stack::follow_types): Likewise. Merge type-following code.
12739 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12740 (space_identifier, cv_with_space_id)
12741 (const_or_volatile_or_space_identifier_noopt)
12742 (const_or_volatile_or_space_identifier): Remove.
12743 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12745 (ptr_operator, typebase): Update.
12746 (enum token_flag) <FLAG_C>: New constant.
12747 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12749 (lex_one_token): Handle FLAG_C.
12751 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12753 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12754 it to the ptrace call.
12755 * m68k-bsd-nat.c (store_registers): Likewise.
12757 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12759 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12761 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12762 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12763 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12767 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12768 nbsd_nat_target instead of inf_ptrace_target.
12769 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12772 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12774 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12777 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12779 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12780 it to the ptrace call.
12781 * alpha-bsd-nat.c (store_registers): Likewise.
12783 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12785 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12787 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12788 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12789 fill_fpregset): Likewise.
12791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12793 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12794 nbsd_nat_target instead of inf_ptrace_target.
12795 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12798 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12800 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12805 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12806 it to the ptrace call.
12807 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12808 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12809 * arm-nbsd-nat.c (store_register): Likewise.
12810 * arm-nbsd-nat.c (store_regs): Likewise.
12811 * arm-nbsd-nat.c (store_fp_register): Likewise.
12812 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12816 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12817 nbsd_nat_target instead of inf_ptrace_target.
12818 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12823 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12824 it to the ptrace call.
12825 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12829 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12830 it to the ptrace call.
12831 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12835 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12837 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12841 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12842 instead of inf_ptrace_target.
12843 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12846 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12848 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12851 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12853 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12858 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12861 2020-03-13 Tom Tromey <tom@tromey.com>
12863 * value.h (val_print): Don't declare.
12864 * valprint.h (val_print_array_elements)
12865 (val_print_scalar_formatted, generic_val_print): Don't declare.
12866 * valprint.c (generic_val_print_array): Take a struct value.
12867 (generic_val_print_ptr, generic_val_print_memberptr)
12868 (generic_val_print_bool, generic_val_print_int)
12869 (generic_val_print_char, generic_val_print_complex)
12870 (generic_val_print): Remove.
12871 (generic_value_print): Update.
12872 (do_val_print): Remove unused parameters. Don't call
12874 (val_print): Remove.
12875 (common_val_print): Update. Don't call value_check_printable.
12876 (val_print_scalar_formatted, val_print_array_elements): Remove.
12877 * rust-lang.c (rust_val_print): Remove.
12878 (rust_language_defn): Update.
12879 * p-valprint.c (pascal_val_print): Remove.
12880 (pascal_value_print_inner): Update.
12881 (pascal_object_print_val_fields, pascal_object_print_val):
12883 (pascal_object_print_static_field): Update.
12884 * p-lang.h (pascal_val_print): Don't declare.
12885 * p-lang.c (pascal_language_defn): Update.
12886 * opencl-lang.c (opencl_language_defn): Update.
12887 * objc-lang.c (objc_language_defn): Update.
12888 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12889 * m2-lang.h (m2_val_print): Don't declare.
12890 * m2-lang.c (m2_language_defn): Update.
12891 * language.h (struct language_defn) <la_val_print>: Remove.
12892 * language.c (unk_lang_value_print_inner): Rename. Change
12894 (unknown_language_defn, auto_language_defn): Update.
12895 * go-valprint.c (go_val_print): Remove.
12896 * go-lang.h (go_val_print): Don't declare.
12897 * go-lang.c (go_language_defn): Update.
12898 * f-valprint.c (f_val_print): Remove.
12899 * f-lang.h (f_value_print): Don't declare.
12900 * f-lang.c (f_language_defn): Update.
12901 * d-valprint.c (d_val_print): Remove.
12902 * d-lang.h (d_value_print): Don't declare.
12903 * d-lang.c (d_language_defn): Update.
12904 * cp-valprint.c (cp_print_value_fields)
12905 (cp_print_value_fields_rtti, cp_print_value): Remove.
12906 (cp_print_static_field): Update.
12907 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12908 (c_val_print_struct, c_val_print_union, c_val_print_int)
12909 (c_val_print_memberptr, c_val_print): Remove.
12910 * c-lang.h (c_val_print_array, cp_print_value_fields)
12911 (cp_print_value_fields_rtti): Don't declare.
12912 * c-lang.c (c_language_defn, cplus_language_defn)
12913 (asm_language_defn, minimal_language_defn): Update.
12914 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12915 (ada_val_print_enum): Take a struct value.
12916 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12917 (ada_val_print): Remove.
12918 (ada_value_print_1): Update.
12919 (printable_val_type): Remove.
12920 * ada-lang.h (ada_val_print): Don't declare.
12921 * ada-lang.c (ada_language_defn): Update.
12923 2020-03-13 Tom Tromey <tom@tromey.com>
12925 * valprint.c (do_val_print): Update.
12926 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12928 (value_to_value_object_no_release): Declare.
12929 * python/py-value.c (value_to_value_object_no_release): New
12931 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12933 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12935 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12937 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12939 (gdbscm_apply_val_pretty_printer): Take a struct value.
12940 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12942 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12944 * extension-priv.h (struct extension_language_ops)
12945 <apply_val_pretty_printer>: Take a struct value.
12946 * cp-valprint.c (cp_print_value): Create a struct value.
12947 (cp_print_value): Update.
12949 2020-03-13 Tom Tromey <tom@tromey.com>
12951 * ada-valprint.c (print_field_values): Call common_val_print.
12953 2020-03-13 Tom Tromey <tom@tromey.com>
12955 * ada-valprint.c (val_print_packed_array_elements): Remove
12956 bitoffset and val parameters. Call common_val_print.
12957 (ada_val_print_string): Remove offset, address, and original_value
12959 (ada_val_print_array): Update.
12960 (ada_value_print_array): New function.
12961 (ada_value_print_1): Call it.
12963 2020-03-13 Tom Tromey <tom@tromey.com>
12965 * ada-valprint.c (ada_value_print): Use common_val_print.
12967 2020-03-13 Tom Tromey <tom@tromey.com>
12969 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12971 2020-03-13 Tom Tromey <tom@tromey.com>
12973 * ada-valprint.c (ada_value_print_num): New function.
12974 (ada_value_print_1): Use it.
12976 2020-03-13 Tom Tromey <tom@tromey.com>
12978 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12980 2020-03-13 Tom Tromey <tom@tromey.com>
12982 * ada-valprint.c (ada_value_print_ptr): New function.
12983 (ada_value_print_1): Use it.
12985 2020-03-13 Tom Tromey <tom@tromey.com>
12987 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12988 call common_val_print.
12989 (ada_val_print_1): Update.
12990 (ada_value_print_1): New function.
12991 (ada_value_print_inner): Rewrite.
12993 2020-03-13 Tom Tromey <tom@tromey.com>
12995 * cp-valprint.c (cp_print_value_fields): Update.
12996 (cp_print_value): New function.
12998 2020-03-13 Tom Tromey <tom@tromey.com>
13000 * m2-valprint.c (m2_value_print_inner): Use
13001 cp_print_value_fields.
13002 * cp-valprint.c (cp_print_value_fields): New function.
13003 * c-valprint.c (c_value_print_struct): New function.
13004 (c_value_print_inner): Use c_value_print_struct.
13005 * c-lang.h (cp_print_value_fields): Declare.
13007 2020-03-13 Tom Tromey <tom@tromey.com>
13009 * c-valprint.c (c_value_print_array): New function.
13010 (c_value_print_inner): Use it.
13012 2020-03-13 Tom Tromey <tom@tromey.com>
13014 * c-valprint.c (c_value_print_memberptr): New function.
13015 (c_value_print_inner): Use it.
13017 2020-03-13 Tom Tromey <tom@tromey.com>
13019 * c-valprint.c (c_value_print_int): New function.
13020 (c_value_print_inner): Use it.
13022 2020-03-13 Tom Tromey <tom@tromey.com>
13024 * c-valprint.c (c_value_print_ptr): New function.
13025 (c_value_print_inner): Use it.
13027 2020-03-13 Tom Tromey <tom@tromey.com>
13029 * c-valprint.c (c_value_print_inner): Rewrite.
13031 2020-03-13 Tom Tromey <tom@tromey.com>
13033 * valprint.c (generic_value_print_complex): New function.
13034 (generic_value_print): Use it.
13036 2020-03-13 Tom Tromey <tom@tromey.com>
13038 * valprint.c (generic_val_print_float): Don't call
13039 val_print_scalar_formatted.
13040 (generic_val_print, generic_value_print): Update.
13042 2020-03-13 Tom Tromey <tom@tromey.com>
13044 * valprint.c (generic_value_print_char): New function
13045 (generic_value_print): Use it.
13047 2020-03-13 Tom Tromey <tom@tromey.com>
13049 * valprint.c (generic_value_print_int): New function.
13050 (generic_value_print): Use it.
13052 2020-03-13 Tom Tromey <tom@tromey.com>
13054 * valprint.c (generic_value_print_bool): New function.
13055 (generic_value_print): Use it.
13057 2020-03-13 Tom Tromey <tom@tromey.com>
13059 * valprint.c (generic_val_print_func): Simplify.
13060 (generic_val_print, generic_value_print): Update.
13062 2020-03-13 Tom Tromey <tom@tromey.com>
13064 * valprint.c (generic_val_print_flags): Remove.
13065 (generic_val_print, generic_value_print): Update.
13066 (val_print_type_code_flags): Add original_value parameter.
13068 2020-03-13 Tom Tromey <tom@tromey.com>
13070 * valprint.c (generic_val_print): Update.
13071 (generic_value_print): Update.
13072 * valprint.c (generic_val_print_enum): Don't call
13073 val_print_scalar_formatted.
13075 2020-03-13 Tom Tromey <tom@tromey.com>
13077 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13078 * valprint.c (generic_value_print_ptr): New function.
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13082 * valprint.c (generic_value_print): Rewrite.
13084 2020-03-13 Tom Tromey <tom@tromey.com>
13086 * p-valprint.c (pascal_object_print_value_fields)
13087 (pascal_object_print_value): New functions.
13089 2020-03-13 Tom Tromey <tom@tromey.com>
13091 * p-valprint.c (pascal_value_print_inner): Rewrite.
13093 2020-03-13 Tom Tromey <tom@tromey.com>
13095 * f-valprint.c (f_value_print_innner): Rewrite.
13097 2020-03-13 Tom Tromey <tom@tromey.com>
13099 * m2-valprint.c (m2_print_unbounded_array): New overload.
13100 (m2_print_unbounded_array): Update.
13101 (m2_print_array_contents): Take a struct value.
13102 (m2_value_print_inner): Rewrite.
13104 2020-03-13 Tom Tromey <tom@tromey.com>
13106 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13107 (d_value_print_inner): New function.
13108 * d-lang.h (d_value_print_inner): Declare.
13109 * d-lang.c (d_language_defn): Use d_value_print_inner.
13111 2020-03-13 Tom Tromey <tom@tromey.com>
13113 * go-valprint.c (go_value_print_inner): New function.
13114 * go-lang.h (go_value_print_inner): Declare.
13115 * go-lang.c (go_language_defn): Use go_value_print_inner.
13117 2020-03-13 Tom Tromey <tom@tromey.com>
13119 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13121 (rust_val_print): Rewrite.
13122 (rust_value_print_inner): New function, from rust_val_print.
13123 (rust_language_defn): Use rust_value_print_inner.
13125 2020-03-13 Tom Tromey <tom@tromey.com>
13127 * ada-valprint.c (ada_value_print_inner): New function.
13128 * ada-lang.h (ada_value_print_inner): Declare.
13129 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13131 2020-03-13 Tom Tromey <tom@tromey.com>
13133 * f-valprint.c (f_value_print_innner): New function.
13134 * f-lang.h (f_value_print_innner): Declare.
13135 * f-lang.c (f_language_defn): Use f_value_print_innner.
13137 2020-03-13 Tom Tromey <tom@tromey.com>
13139 * p-valprint.c (pascal_value_print_inner): New function.
13140 * p-lang.h (pascal_value_print_inner): Declare.
13141 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13143 2020-03-13 Tom Tromey <tom@tromey.com>
13145 * m2-valprint.c (m2_value_print_inner): New function.
13146 * m2-lang.h (m2_value_print_inner): Declare.
13147 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13151 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13152 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13153 * c-valprint.c (c_value_print_inner): New function.
13154 * c-lang.h (c_value_print_inner): Declare.
13155 * c-lang.c (c_language_defn, cplus_language_defn)
13156 (asm_language_defn, minimal_language_defn): Use
13157 c_value_print_inner.
13159 2020-03-13 Tom Tromey <tom@tromey.com>
13161 * p-valprint.c (pascal_object_print_value_fields): Now static.
13162 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13164 2020-03-13 Tom Tromey <tom@tromey.com>
13166 * c-valprint.c (c_val_print_array): Simplify.
13168 2020-03-13 Tom Tromey <tom@tromey.com>
13170 * valprint.c (value_print_array_elements): New function.
13171 * valprint.h (value_print_array_elements): Declare.
13173 2020-03-13 Tom Tromey <tom@tromey.com>
13175 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13176 * mips-tdep.c (mips_print_register): Use
13177 value_print_scalar_formatted.
13179 2020-03-13 Tom Tromey <tom@tromey.com>
13181 * valprint.h (value_print_scalar_formatted): Declare.
13182 * valprint.c (value_print_scalar_formatted): New function.
13184 2020-03-13 Tom Tromey <tom@tromey.com>
13186 * valprint.h (generic_value_print): Declare.
13187 * valprint.c (generic_value_print): New function.
13189 2020-03-13 Tom Tromey <tom@tromey.com>
13191 * valprint.c (do_val_print): Call la_value_print_inner, if
13193 * rust-lang.c (rust_language_defn): Update.
13194 * p-lang.c (pascal_language_defn): Update.
13195 * opencl-lang.c (opencl_language_defn): Update.
13196 * objc-lang.c (objc_language_defn): Update.
13197 * m2-lang.c (m2_language_defn): Update.
13198 * language.h (struct language_defn) <la_value_print_inner>: New
13200 * language.c (unknown_language_defn, auto_language_defn): Update.
13201 * go-lang.c (go_language_defn): Update.
13202 * f-lang.c (f_language_defn): Update.
13203 * d-lang.c (d_language_defn): Update.
13204 * c-lang.c (c_language_defn, cplus_language_defn)
13205 (asm_language_defn, minimal_language_defn): Update.
13206 * ada-lang.c (ada_language_defn): Update.
13208 2020-03-13 Tom Tromey <tom@tromey.com>
13210 * c-valprint.c (c_value_print): Use common_val_print.
13212 2020-03-13 Tom Tromey <tom@tromey.com>
13214 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13216 2020-03-13 Tom Tromey <tom@tromey.com>
13218 * f-valprint.c (f77_print_array_1, f_val_print): Use
13221 2020-03-13 Tom Tromey <tom@tromey.com>
13223 * riscv-tdep.c (riscv_print_one_register_info): Use
13226 2020-03-13 Tom Tromey <tom@tromey.com>
13228 * mi/mi-main.c (output_register): Use common_val_print.
13230 2020-03-13 Tom Tromey <tom@tromey.com>
13232 * infcmd.c (default_print_one_register_info): Use
13235 2020-03-13 Tom Tromey <tom@tromey.com>
13237 * valprint.h (common_val_print_checked): Declare.
13238 * valprint.c (common_val_print_checked): New function.
13239 * stack.c (print_frame_arg): Use common_val_print_checked.
13241 2020-03-13 Tom Tromey <tom@tromey.com>
13243 * valprint.c (do_val_print): New function, from val_print.
13244 (val_print): Use do_val_print.
13245 (common_val_print): Use do_val_print.
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13249 * valprint.c (value_print): Use scoped_value_mark.
13251 2020-03-13 Tom de Vries <tdevries@suse.de>
13254 * psymtab.c (partial_symtab::partial_symtab): Don't set
13255 globals_offset and statics_offset. Push element onto
13256 current_global_psymbols and current_static_psymbols stacks.
13257 (concat): New function.
13258 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13259 element from current_global_psymbols and current_static_psymbols
13260 stacks. Concat popped elements to global_psymbols and
13262 (add_psymbol_to_list): Use current_global_psymbols and
13263 current_static_psymbols stacks.
13264 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13265 current_static_psymbols fields.
13267 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13269 * corelow.c (sniff_core_bfd): Remove.
13270 (class core_target) <m_core_vec>: Remove.
13271 (core_target::core_target): Update.
13272 (core_file_fns): Remove.
13273 (deprecated_add_core_fns): Remove.
13274 (default_core_sniffer): Remove.
13275 (sniff_core_bfd): Remove.
13276 (default_check_format): Remove.
13277 (gdb_check_format): Remove.
13278 (core_target_open): Update.
13279 (core_target::get_core_register_section): Update.
13280 (get_core_registers_cb): Update.
13281 (core_target::fetch_registers): Update.
13282 * gdbcore.h (struct core_fns): Remove.
13283 (deprecated_add_core_fns): Remove.
13284 (default_core_sniffer): Remove.
13285 (default_check_format): Remove.
13287 2020-03-12 Tom Tromey <tom@tromey.com>
13289 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13291 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13293 2020-03-12 Tom Tromey <tom@tromey.com>
13295 * remote.c (remote_target::download_tracepoint)
13296 (remote_target::enable_tracepoint)
13297 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13298 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13301 2020-03-12 Tom Tromey <tom@tromey.com>
13303 * symfile-mem.c: Update CORE_ADDR size assert.
13305 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13307 * selftest.m4: Move to gdbsupport/.
13308 * acinclude.m4: Update path to selftest.m4.
13310 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13312 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13313 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13314 gdbarch-selfselftests.c and selftest-arch.c.
13315 (SUBDIR_UNITTESTS_OBS): Rename to...
13316 (SELFTESTS_OBS): ... this.
13317 (COMMON_SFILES): Remove disasm-selftests.c and
13318 gdbarch-selftests.c.
13319 * configure.ac: Don't add selftest-arch.{c,o} to
13321 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13322 preprocessor conditions.
13324 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13326 * configure.ac: Don't source bfd/development.sh.
13327 * selftest.m4: Modify comment.
13328 * configure: Re-generate.
13330 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13332 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13333 not "true" or "false".
13334 * configure: Re-generate.
13336 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13338 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13339 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13340 renamed to arm_nbsd_supply_gregset.
13341 (fetch_register): Update to call arm_nbsd_supply_gregset.
13342 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13343 (arm_netbsd_nat_target::fetch_registers): Update.
13344 (fetch_elfcore_registers): Removed.
13345 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13346 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13347 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13348 not require NetBSD system headers.
13349 (arm_nbsd_regset): New struct.
13350 (arm_nbsd_iterate_over_regset_sections): New function.
13351 (arm_netbsd_init_abi_common): Updated to call
13352 set_gdbarch_iterate_over_regset_sections.
13353 * arm-nbsd-tdep.h: New file.
13355 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13357 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13360 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13362 * configure: Re-generate.
13364 2020-03-11 Tom Tromey <tromey@adacore.com>
13366 * ada-typeprint.c (print_choices): Fix comment.
13368 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13370 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13371 previous item in the list, when the list has no items.
13373 2020-03-11 Tom de Vries <tdevries@suse.de>
13375 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13376 PROP_LOCLIST handling code.
13378 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13380 * buildsym-legacy.c (record_line): Pass extra parameter to
13382 * buildsym.c (buildsym_compunit::record_line): Take an extra
13383 parameter, reduce duplication in the line table, and record the
13384 is_stmt flag in the line table.
13385 * buildsym.h (buildsym_compunit::record_line): Add extra
13387 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13388 non-statement lines.
13389 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13390 this to the symtab builder.
13391 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13392 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13393 through to dwarf_record_line_1.
13394 * infrun.c (process_event_stop_test): When stepping, don't stop at
13395 a non-statement instruction, and only refresh the step info when
13396 we land in the middle of a line's range. Also add an extra
13398 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13400 * record-btrace.c (btrace_find_line_range): Only record lines
13401 marked as is-statement.
13402 * stack.c (frame_show_address): Show the frame address if we are
13403 in a non-statement sal.
13404 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13405 (maintenance_print_one_line_table): Print a header for the is_stmt
13406 column, and include is_stmt information in the output.
13407 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13408 preference to non-statements.
13409 (find_pcs_for_symtab_line): Prefer is-statement entries.
13410 (find_line_common): Likewise.
13411 * symtab.h (struct linetable_entry): Add is_stmt field.
13412 (struct symtab_and_line): Likewise.
13413 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13414 arranging the line table.
13416 2020-03-07 Tom de Vries <tdevries@suse.de>
13418 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13421 2020-03-07 Tom Tromey <tom@tromey.com>
13423 * valops.c (value_literal_complex): Remove obsolete comment.
13424 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13427 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13429 * infrun.h: Forward-declare thread_info.
13430 (set_step_info): Add thread_info parameter, add doc.
13431 * infrun.c (set_step_info): Add thread_info parameter, move doc
13433 * infrun.c (process_event_stop_test): Pass thread to
13434 set_step_info call.
13435 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13437 (prepare_one_step): Add thread_info parameter, pass it to
13438 set_step_frame and prepare_one_step (recursive) call.
13439 (step_1): Pass thread to prepare_one_step call.
13440 (step_command_fsm::should_stop): Pass thread to
13442 (until_next_fsm): Pass thread to set_step_frame call.
13443 (finish_command): Pass thread to set_step_info call.
13445 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13447 * windows-tdep.c (windows_solib_create_inferior_hook):
13448 Check if inferior is running.
13450 2020-03-06 Tom de Vries <tdevries@suse.de>
13452 * NEWS: Fix "the the".
13455 2020-03-06 Tom de Vries <tdevries@suse.de>
13457 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13459 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13461 * .dir-locals.el: Add a comment referencing the other copies of
13464 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13466 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13469 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13471 * .gitattributes: New file.
13473 2020-03-04 Tom Tromey <tom@tromey.com>
13475 * symmisc.c (print_symbol_bcache_statistics)
13476 (print_objfile_statistics): Update.
13477 * symfile.c (allocate_symtab): Use intern.
13478 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13479 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13480 macro_cache>: Remove.
13481 <string_cache>: New member.
13482 (struct objfile) <intern>: New methods.
13483 * elfread.c (elf_symtab_read): Use intern.
13484 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13485 (dwarf2_compute_name, dwarf2_physname)
13486 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13488 (guess_partial_die_structure_name): Update.
13489 (partial_die_info::fixup): Intern name.
13490 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13492 (dwarf2_name): Intern name. Update.
13493 * buildsym.c (buildsym_compunit::get_macro_table): Use
13496 2020-03-04 Tom Tromey <tom@tromey.com>
13498 * jit.c (bfd_open_from_target_memory): Make "target" const.
13499 * corefile.c (gnutarget): Now const.
13500 * gdbcore.h (gnutarget): Now const.
13502 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13504 * NEWS: Mention support for WOW64 processes.
13505 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13506 (amd64_windows_segment_register_p): Remove static.
13507 (_initialize_amd64_windows_nat): Update.
13508 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13509 * i386-windows-nat.c (context_offset): Update.
13510 (i386_mappings): Rename and remove static.
13511 (i386_windows_segment_register_p): Remove static.
13512 (_initialize_i386_windows_nat): Update.
13513 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13514 (STATUS_WX86_SINGLE_STEP): New macro.
13515 (EnumProcessModulesEx): New macro.
13516 (Wow64SuspendThread): New macro.
13517 (Wow64GetThreadContext): New macro.
13518 (Wow64SetThreadContext): New macro.
13519 (Wow64GetThreadSelectorEntry): New macro.
13520 (windows_set_context_register_offsets): Add static.
13521 (windows_set_segment_register_p): Likewise.
13522 (windows_add_thread): Adapt for WOW64 processes.
13523 (windows_fetch_one_register): Likewise.
13524 (windows_nat_target::fetch_registers): Likewise.
13525 (windows_store_one_register): Likewise.
13526 (display_selector): Likewise.
13527 (display_selectors): Likewise.
13528 (handle_exception): Likewise.
13529 (windows_continue): Likewise.
13530 (windows_nat_target::resume): Likewise.
13531 (windows_add_all_dlls): Likewise.
13532 (do_initial_windows_stuff): Likewise.
13533 (windows_nat_target::attach): Likewise.
13534 (windows_get_exec_module_filename): Likewise.
13535 (windows_nat_target::create_inferior): Likewise.
13536 (windows_xfer_siginfo): Likewise.
13537 (_initialize_loadable): Initialize Wow64SuspendThread,
13538 Wow64GetThreadContext, Wow64SetThreadContext,
13539 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13540 * windows-nat.h (windows_set_context_register_offsets):
13541 Remove declaration.
13542 (windows_set_segment_register_p): Likewise.
13543 (i386_windows_segment_register_p): Add declaration.
13544 (amd64_windows_segment_register_p): Likewise.
13546 2020-03-04 Luis Machado <luis.machado@linaro.org>
13548 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13549 in "info registers" for AArch64/ARM.
13551 The change caused "info registers" to not print GPR's.
13555 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13557 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13558 when reg->group is empty and reggroup is not.
13560 2020-03-03 Tom Tromey <tromey@adacore.com>
13562 * dwarf2/frame.c (struct dwarf2_frame_cache)
13563 <checked_tailcall_bottom, entry_cfa_sp_offset,
13564 entry_cfa_sp_offset_p>: Remove members.
13565 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13566 (dwarf2_frame_prev_register): Don't call
13567 dwarf2_tailcall_sniffer_first.
13568 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13569 * frame-unwind.c (add_unwinder): New fuction.
13570 (frame_unwind_init): Use it. Add tailcall unwinder.
13572 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13573 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13575 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13576 value should be printed as true.
13578 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13580 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13581 (windows_init_abi): Set and use windows_so_ops.
13583 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13585 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13586 when verifying if dealing with a convenience variable.
13588 2020-03-03 Luis Machado <luis.machado@linaro.org>
13590 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13592 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13594 * infrun.c (gdbarch_supports_displaced_stepping): New.
13595 (use_displaced_stepping): Break up conditions in smaller pieces.
13596 Use gdbarch_supports_displaced_stepping.
13597 (displaced_step_prepare_throw): Use
13598 gdbarch_supports_displaced_stepping.
13600 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13602 * NEWS: Mention new behaviour of the history filename.
13603 * top.c (write_history_p): Add comment.
13604 (show_write_history_p): Add header comment, give a different
13605 message when history writing is on, but the history filename is
13607 (history_filename): Add comment.
13608 (history_filename_empty): New function.
13609 (show_history_filename): Add header comment, give a different
13610 message when the filename is empty.
13611 (init_history): Compare history_filename against nullptr, and only
13612 read history if the filename is not empty.
13613 (set_history_filename): Add header comment, and only make
13614 non-empty filenames absolute.
13615 (init_main): Make the filename argument to 'set history filename'
13618 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13620 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13621 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13622 (fetch_fp_register): Update.
13623 (fetch_fp_regs): Update.
13624 (store_fp_register): Update.
13625 (store_fp_regs): Update.
13626 (arm_netbsd_nat_target::read_description): New function.
13627 (fetch_elfcore_registers): Update.
13629 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13631 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13632 general_thread if the stop reply is missing a thread-id.
13633 (remote_target::process_stop_reply): Use the first non-exited
13634 thread if the target didn't pass a thread-id.
13635 * infrun.c (do_target_wait): Move call to
13636 switch_to_inferior_no_thread to ....
13637 (do_target_wait_1): ... here.
13639 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13641 * debuginfod-support.c: Include defs.h first.
13643 2020-02-28 Tom de Vries <tdevries@suse.de>
13645 * symfile.c (set_initial_language): Use default language for lookup.
13647 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13649 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13650 reader variable, pass `this` to read_cutu_die_from_dwo.
13652 2020-02-27 Aaron Merey <amerey@redhat.com>
13654 * source.c (open_source_file): Check for nullptr when computing
13657 2020-02-27 Tom Tromey <tromey@adacore.com>
13659 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13661 (dwarf2_add_field): Don't update nfields.
13662 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13664 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13666 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13669 2020-02-26 Tom Tromey <tom@tromey.com>
13671 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13672 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13673 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13674 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13677 2020-02-26 Tom Tromey <tom@tromey.com>
13679 * dwarf2/index-write.c (psym_index_map): Change type.
13680 (add_address_entry_worker, write_one_signatured_type)
13681 (recursively_count_psymbols, recursively_write_psymbols)
13682 (class debug_names, psyms_seen_size, write_gdbindex)
13683 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13685 2020-02-26 Aaron Merey <amerey@redhat.com>
13687 * Makefile.in: Handle optional debuginfod support.
13689 * README: Add --with-debuginfod summary.
13690 * config.in: Regenerate.
13691 * configure: Regenerate.
13692 * configure.ac: Handle optional debuginfod support.
13693 * debuginfod-support.c: debuginfod helper functions.
13694 * debuginfod-support.h: Ditto.
13695 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13697 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13698 when a dwz file cannot be found.
13699 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13700 debuginfo file cannot be found.
13701 * source.c (open_source_file): Query debuginfod servers when a
13702 source file cannot be found.
13703 * top.c (print_gdb_configuration): Include
13704 --{with,without}-debuginfod in the output.
13706 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13708 * thread.c (thr_try_catch_cmd): Print thread name.
13710 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13712 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13713 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13714 dwarf2_fetch_die_type_sect_off): Move to...
13715 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13716 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13717 dwarf2_fetch_die_type_sect_off): ... here.
13718 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13719 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13720 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13722 2020-02-26 Tom de Vries <tdevries@suse.de>
13725 * symfile.c (set_initial_language): Exit-early if
13726 language_mode == language_mode_manual.
13728 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13730 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13731 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13732 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13734 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13736 * gdbtypes.c (create_array_type_with_stride): Handle negative
13738 * valarith.c (value_subscripted_rvalue): Likewise.
13740 2020-02-25 Luis Machado <luis.machado@linaro.org>
13742 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13744 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13746 * loc.h (dwarf2_get_die_type): Move to...
13747 * read.h (dwarf2_get_die_type): ... here.
13748 * read.c (dwarf2_get_die_type): Move doc to header.
13750 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13752 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13753 'gnulib/Makefile.in' to the list.
13755 2020-02-24 Tom Tromey <tom@tromey.com>
13757 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13759 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13762 2020-02-24 Tom Tromey <tom@tromey.com>
13764 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13766 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13767 (dw2_do_instantiate_symtab, dw2_get_file_names)
13768 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13770 2020-02-24 Tom Tromey <tom@tromey.com>
13772 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13773 make_scoped_restore.
13774 (dwarf2_psymtab::read_symtab): Don't clear
13775 reading_partial_symbols.
13777 2020-02-24 Tom de Vries <tdevries@suse.de>
13780 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13782 2020-02-24 Tom de Vries <tdevries@suse.de>
13784 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13785 commands layout next/prev/regs.
13787 2020-02-22 Tom Tromey <tom@tromey.com>
13789 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13790 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13792 2020-02-22 Tom Tromey <tom@tromey.com>
13794 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13796 2020-02-22 Tom Tromey <tom@tromey.com>
13798 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13799 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13800 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13801 * tui/tui.c (_initialize_tui): Add usage text.
13803 2020-02-22 Tom Tromey <tom@tromey.com>
13805 * tui/tui-win.c (tui_set_focus_command)
13806 (tui_set_win_height_command): Use error_no_arg.
13807 (_initialize_tui_win): Update help text.
13808 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13810 2020-02-22 Tom Tromey <tom@tromey.com>
13812 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13813 * tui/tui-disasm.h (struct tui_disasm_window)
13814 <display_start_addr>: Declare.
13815 * tui/tui-source.h (struct tui_source_window)
13816 <display_start_addr>: Declare.
13817 * tui/tui-winsource.h (struct tui_source_window_base)
13818 <show_source_line, display_start_addr>: New methods.
13819 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13820 Rename and move to protected section.
13821 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13822 (tui_source_window_base::do_erase_source_content): Update.
13823 (tui_source_window_base::show_source_line): Now a method.
13824 (tui_source_window_base::show_source_content)
13825 (tui_source_window_base::tui_source_window_base)
13826 (tui_source_window_base::rerender)
13827 (tui_source_window_base::refill)
13828 (tui_source_window_base::do_scroll_horizontal)
13829 (tui_source_window_base::set_is_exec_point_at)
13830 (tui_source_window_base::update_breakpoint_info)
13831 (tui_source_window_base::update_exec_info): Update.
13832 * tui/tui-source.c (tui_source_window::set_contents)
13833 (tui_source_window::showing_source_p)
13834 (tui_source_window::do_scroll_vertical)
13835 (tui_source_window::location_matches_p)
13836 (tui_source_window::line_is_displayed): Update.
13837 (tui_source_window::display_start_addr): New method.
13838 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13839 (tui_disasm_window::do_scroll_vertical)
13840 (tui_disasm_window::location_matches_p): Update.
13841 (tui_disasm_window::display_start_addr): New method.
13843 2020-02-22 Tom Tromey <tom@tromey.com>
13845 * NEWS: Add entry for gdb.register_window_type.
13846 * tui/tui-layout.h (window_factory): New typedef.
13847 (tui_register_window): Declare.
13848 * tui/tui-layout.c (saved_tui_windows): New global.
13849 (tui_apply_current_layout): Use it.
13850 (tui_register_window): New function.
13851 * python/python.c (do_start_initialization): Call
13852 gdbpy_initialize_tui.
13853 (python_GdbMethods): Add "register_window_type" function.
13854 * python/python-internal.h (gdbpy_register_tui_window)
13855 (gdbpy_initialize_tui): Declare.
13856 * python/py-tui.c: New file.
13857 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13859 2020-02-22 Tom Tromey <tom@tromey.com>
13861 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13863 2020-02-22 Tom Tromey <tom@tromey.com>
13865 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13866 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13867 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13868 (tui_set_win_focus_to): Move from tui-win.c.
13870 2020-02-22 Tom Tromey <tom@tromey.com>
13872 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13874 (known_window_types): New global.
13875 (tui_get_window_by_name): Reimplement.
13876 (initialize_known_windows): New function.
13877 (validate_window_name): Rewrite.
13878 (_initialize_tui_layout): Call initialize_known_windows.
13880 2020-02-22 Tom Tromey <tom@tromey.com>
13882 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13884 * tui/tui-winsource.h (struct tui_source_window_base)
13885 <tui_source_window_base>: Remove parameter.
13886 * tui/tui-winsource.c
13887 (tui_source_window_base::tui_source_window_base): Remove
13889 (tui_source_window_base::refill): Update.
13890 * tui/tui-stack.h (struct tui_locator_window)
13891 <tui_locator_window>: Update.
13892 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13893 Default the constructor.
13894 * tui/tui-regs.h (struct tui_data_item_window)
13895 <tui_data_item_window>: Default the constructor.
13896 (struct tui_data_window) <tui_data_window>: Likewise.
13897 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13898 Default the constructor.
13899 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13900 Default the constructor.
13902 (struct tui_win_info) <tui_win_info>: Default the constructor.
13903 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13904 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13905 Default the constructor.
13907 2020-02-22 Tom Tromey <tom@tromey.com>
13909 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13910 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13911 * tui/tui-win.c (tui_resize_all): Don't call
13912 tui_delete_invisible_windows.
13913 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13915 (tui_set_layout): Update.
13916 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13917 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13918 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13920 2020-02-22 Tom Tromey <tom@tromey.com>
13922 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13925 2020-02-22 Tom Tromey <tom@tromey.com>
13927 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13929 2020-02-22 Tom Tromey <tom@tromey.com>
13931 * tui/tui-winsource.h (struct tui_source_window_iterator)
13932 <inner_iterator>: New etytypedef.
13933 <tui_source_window_iterator>: Take "end" parameter.
13934 <tui_source_window_iterator>: Take iterator.
13935 <operator*, advance>: Update.
13936 <m_iter>: Change type.
13937 <m_end>: New field.
13938 (struct tui_source_windows) <begin, end>: Update.
13939 * tui/tui-layout.c (tui_windows): New global.
13940 (tui_apply_current_layout): Clear tui_windows.
13941 (tui_layout_window::apply): Update tui_windows.
13942 * tui/tui-data.h (tui_windows): Declare.
13943 (all_tui_windows): Now inline function.
13944 (class tui_window_iterator, struct all_tui_windows): Remove.
13946 2020-02-22 Tom Tromey <tom@tromey.com>
13949 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13950 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13952 (class tui_layout_window) <get_sizes>: Likewise.
13953 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13955 <get_sizes>: Add "height" argument.
13956 <m_vertical>: New field.
13957 * tui/tui-layout.c (tui_layout_split::clone): Update.
13958 (tui_layout_split::get_sizes): Add "height" argument.
13959 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13960 (tui_new_layout_command): Parse "-horizontal".
13961 (_initialize_tui_layout): Update help string.
13962 (tui_layout_split::specification): Add "-horizontal" when needed.
13963 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13965 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13968 2020-02-22 Tom Tromey <tom@tromey.com>
13970 * tui/tui-layout.h (enum tui_adjust_result): New.
13971 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13972 (class tui_layout_window) <adjust_size>: Return
13973 tui_adjust_result. Rewrite.
13974 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13975 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13977 2020-02-22 Tom Tromey <tom@tromey.com>
13979 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13980 parameter and return types.
13981 (class tui_layout_base) <specification>: Add "depth".
13982 (class tui_layout_window) <specification>: Add "depth".
13983 (class tui_layout_split) <specification>: Add "depth".
13984 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13986 (tui_new_layout_command): Parse sub-layouts.
13987 (_initialize_tui_layout): Update help string.
13988 (tui_layout_window::specification): Add "depth".
13989 (add_layout_command): Update.
13991 2020-02-22 Tom Tromey <tom@tromey.com>
13993 * NEWS: Add "tui new-layout" item.
13994 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13995 Add new-layout command to help text.
13996 (validate_window_name): New function.
13997 (tui_new_layout_command): New function.
13998 (_initialize_tui_layout): Register "new-layout".
13999 (tui_layout_window::specification): New method.
14000 (tui_layout_window::specification): New method.
14001 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14003 (class tui_layout_window) <specification>: New method.
14004 (class tui_layout_split) <specification>: New method.
14006 2020-02-22 Tom Tromey <tom@tromey.com>
14008 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14009 * tui/tui-win.c (window_name_completer): Update comment.
14010 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14012 (class tui_layout_window) <replace_window>: Likewise.
14013 (class tui_layout_split) <replace_window>: Likewise.
14014 (tui_set_layout): Don't declare.
14015 (tui_set_initial_layout): Declare function.
14016 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14017 (asm_regs_layout): New globals.
14018 (tui_current_layout, show_layout): Remove.
14019 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14020 (find_layout, tui_apply_layout): New function.
14021 (layout_completer): Remove.
14022 (tui_next_layout): Reimplement.
14023 (tui_next_layout_command): New function.
14024 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14025 (tui_regs_layout): Reimplement.
14026 (tui_regs_layout_command): New function.
14027 (extract_display_start_addr): Rewrite.
14028 (next_layout, prev_layout): Remove.
14029 (tui_layout_window::replace_window): New method.
14030 (tui_layout_split::replace_window): New method.
14031 (destroy_layout): New function.
14032 (layout_list): New global.
14033 (add_layout_command): New function.
14034 (initialize_layouts): Update.
14035 (tui_layout_command): New function.
14036 (_initialize_tui_layout): Install "layout" commands.
14037 * tui/tui-data.h (enum tui_layout_type): Remove.
14038 (tui_current_layout): Don't declare.
14040 2020-02-22 Tom Tromey <tom@tromey.com>
14042 * tui/tui-regs.c (tui_reg_layout): Remove.
14043 (tui_reg_command): Use tui_regs_layout.
14044 * tui/tui-layout.h (tui_reg_command): Declare.
14045 * tui/tui-layout.c (tui_reg_command): New function.
14047 2020-02-22 Tom Tromey <tom@tromey.com>
14049 * tui/tui.c (tui_rl_delete_other_windows): Call
14050 tui_remove_some_windows.
14051 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14053 (class tui_layout_window) <remove_windows>: New method.
14054 (class tui_layout_split) <remove_windows>: Declare.
14055 (tui_remove_some_windows): Declare.
14056 * tui/tui-layout.c (tui_remove_some_windows): New function.
14057 (tui_layout_split::remove_windows): New method.
14059 2020-02-22 Tom Tromey <tom@tromey.com>
14061 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14062 * tui/tui-layout.h (tui_next_layout): Declare.
14063 * tui/tui-layout.c (tui_next_layout): New function.
14065 2020-02-22 Tom Tromey <tom@tromey.com>
14067 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14068 correct coordinates.
14070 2020-02-22 Tom Tromey <tom@tromey.com>
14072 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14073 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14076 2020-02-22 Tom Tromey <tom@tromey.com>
14078 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14079 TUI_DISASM_WIN, not tui_win_list.
14081 2020-02-22 Tom Tromey <tom@tromey.com>
14083 * valprint.c (generic_val_print_enum_1)
14084 (val_print_type_code_flags): Style member names.
14085 * rust-lang.c (val_print_struct, rust_print_enum)
14086 (rust_print_struct_def, rust_internal_print_type): Style member
14088 * p-valprint.c (pascal_object_print_value_fields): Style member
14089 names. Only call fprintf_symbol_filtered for static members.
14090 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14091 * f-valprint.c (f_val_print): Style member names.
14092 * f-typeprint.c (f_type_print_base): Style member names.
14093 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14094 call fprintf_symbol_filtered for static members.
14095 (cp_print_class_member): Style member names.
14096 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14098 * ada-valprint.c (ada_print_scalar): Style enum names.
14099 (ada_val_print_enum): Likewise.
14100 * ada-typeprint.c (print_enum_type): Style enum names.
14102 2020-02-21 Tom Tromey <tom@tromey.com>
14104 * psympriv.h (struct partial_symtab): Update comment.
14106 2020-02-21 Tom Tromey <tromey@adacore.com>
14108 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14111 2020-02-21 Tom de Vries <tdevries@suse.de>
14114 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14115 if dependencies[i]->user != NULL.
14117 2020-02-21 Ali Tamur <tamur@google.com>
14119 * dwarf2/read.c (dwarf2_name): Add null check.
14121 2020-02-20 Tom Tromey <tom@tromey.com>
14123 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14124 ">=", in binary search.
14125 (dwarf2_find_containing_comp_unit): New overload.
14126 (run_test): New self-test.
14127 (_initialize_dwarf2_read): Register new test.
14129 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14131 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14132 * riscv-tdep.h: Likewise.
14133 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14135 * features/riscv/64bit-csr.xml: Regenerated.
14137 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14138 Tom Tromey <tom@tromey.com>
14140 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14141 of 'fputc_unfiltered'.
14142 (putchar_unfiltered): Call 'fputc_unfiltered'.
14143 (fputc_unfiltered): Call 'fputs_unfiltered'.
14145 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14147 * config.in: Regenerate.
14148 * configure: Regenerate.
14149 * configure.ac: Add --with-python-libdir option.
14150 * main.c: Use WITH_PYTHON_LIBDIR.
14152 2020-02-19 Tom Tromey <tom@tromey.com>
14154 * symtab.c (general_symbol_info::compute_and_set_names): Use
14155 obstack_strndup. Simplify call to symbol_set_demangled_name.
14157 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14159 * dwarf2/read.c (allocate_signatured_type_table,
14160 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14161 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14162 Remove objfile parameter, update all callers.
14164 2020-02-19 Doug Evans <dje@google.com>
14167 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14168 rust_enum_variant calculation.
14170 2020-02-19 Tom Tromey <tromey@adacore.com>
14172 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14174 2020-02-19 Tom Tromey <tromey@adacore.com>
14176 * ada-lang.c (cache_symbol): Use obstack_strdup.
14178 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14180 * configure: Regenerate.
14182 2020-02-19 Tom Tromey <tromey@adacore.com>
14184 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14187 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14189 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14191 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14193 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14194 if GDBSERVER is not defined.
14195 (riscv_tdesc_cache): Likewise, also store const target_desc.
14196 (STATIC_IN_GDB): Define.
14197 (riscv_create_target_description): Update declaration with
14199 (riscv_lookup_target_description): New function, only define if
14200 GDBSERVER is not defined.
14201 * arch/riscv.h (riscv_create_target_description): Declare only
14202 when GDBSERVER is defined.
14203 (riscv_lookup_target_description): New declaration when GDBSERVER
14205 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14206 (riscv_linux_read_features): ...this, and return
14207 riscv_gdbarch_features instead of target_desc.
14208 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14209 (riscv_linux_read_description): Rename to...
14210 (riscv_linux_read_features): ...this.
14211 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14212 Update to use riscv_gdbarch_features and
14213 riscv_lookup_target_description.
14214 * riscv-tdep.c (riscv_find_default_target_description): Use
14215 riscv_lookup_target_description instead of
14216 riscv_create_target_description.
14218 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14220 * valprint.c (generic_val_print_enum_1): When printing a flag
14221 enum with value 0 and there is no enumerator with value 0, print
14222 just "0" instead of "(unknown: 0x0)".
14224 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14226 * valprint.c (generic_val_print_enum_1): Print unknown part of
14229 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14231 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14232 flag enums to contain duplicate enumerators.
14233 * valprint.c (generic_val_print_enum_1): Update comment.
14235 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14237 * dwarf2/read.c: Include "count-one-bits.h".
14238 (update_enumeration_type_from_children): If an enumerator has
14239 multiple bits set, don't treat the enumeration as a "flag enum".
14240 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14241 of flag enums have 0 or 1 bit set.
14243 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14245 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14247 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14248 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14249 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14250 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14251 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14253 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14255 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14257 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14259 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14260 displaced_step_closure_up.
14261 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14262 (struct displaced_step_closure_up):
14263 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14264 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14265 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14267 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14268 * gdbarch.c, gdbarch.h: Re-generate.
14269 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14270 displaced_step_closure_up.
14271 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14272 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14273 * infrun.h (displaced_step_closure_up): New type alias.
14274 (struct displaced_step_inferior_state) <step_closure>: Change
14275 type to displaced_step_closure_up.
14276 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14277 displaced_step_closure_up.
14278 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14280 2020-02-14 Tom Tromey <tom@tromey.com>
14282 * minidebug.c (gnu_debug_key): New global.
14283 (find_separate_debug_file_in_section): Use it.
14285 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14287 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14289 * gdbarch.c: Re-generate.
14290 * gdbarch.h: Re-generate.
14291 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14293 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14294 type to std::unique_ptr.
14295 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14296 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14297 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14298 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14299 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14300 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14301 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14302 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14303 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14305 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14307 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14309 (displaced_step_clear): Rename to...
14310 (displaced_step_reset): ... this. Just call displaced->reset ().
14311 (displaced_step_clear_cleanup): Rename to...
14312 (displaced_step_reset_cleanup): ... this.
14313 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14314 (displaced_step_fixup): Likewise.
14315 (resume_1): Likewise.
14316 (handle_inferior_event): Restore child's memory before calling
14317 displaced_step_fixup on the parent.
14318 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14319 to std::unique_ptr.
14320 <step_closure>: Change type to std::unique_ptr.
14322 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14324 * arm-tdep.c: Include count-one-bits.h.
14325 (cleanup_block_store_pc): Use count_one_bits.
14326 (cleanup_block_load_pc): Use count_one_bits.
14327 (arm_copy_block_xfer): Use count_one_bits.
14328 (thumb2_copy_block_xfer): Use count_one_bits.
14329 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14330 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14331 (thumb_get_next_pcs_raw): Use count_one_bits.
14332 (arm_get_next_pcs_raw): Use count_one_bits_l.
14333 * arch/arm.c (bitcount): Remove.
14334 * arch/arm.h (bitcount): Remove.
14336 2020-02-14 Tom Tromey <tromey@adacore.com>
14338 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14340 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14341 * dwarf2/loc.c (call_site_find_chain_1): Return
14342 unique_xmalloc_ptr.
14343 (call_site_find_chain): Likewise.
14345 2020-02-14 Richard Biener <rguenther@suse.de>
14347 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14348 on expression with division operators.
14350 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14352 * MAINTAINERS (Write After Approval): Adding myself.
14354 2020-02-12 Tom Tromey <tom@tromey.com>
14356 * event-loop.c (event_data, gdb_event, event_handler_func):
14359 2020-02-12 Tom Tromey <tom@tromey.com>
14361 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14362 (dwarf2_frame_objfile_data): Add comment.
14363 (find_comp_unit, set_comp_unit): New functions.
14364 (dwarf2_frame_find_fde): Use find_comp_unit.
14365 (dwarf2_build_frame_info): Use set_comp_unit.
14367 2020-02-12 Tom Tromey <tom@tromey.com>
14369 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14370 (comp_unit): Don't initialize objfile.
14371 (execute_cfa_program): Add text_offset parameter.
14372 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14373 (dwarf2_frame_cache): Update.
14374 (dwarf2_build_frame_info): Don't set "objfile" member.
14376 2020-02-12 Tom Tromey <tom@tromey.com>
14378 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14379 (decode_frame_entry): Likewise.
14380 (dwarf2_build_frame_info): Update.
14382 2020-02-12 Tom Tromey <tom@tromey.com>
14384 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14385 (decode_frame_entry_1): Use the comp_unit obstack.
14387 2020-02-12 Tom Tromey <tom@tromey.com>
14389 * dwarf2/frame.c (struct comp_unit): Add initializers and
14391 (dwarf2_frame_objfile_data): Store a comp_unit.
14392 (dwarf2_frame_find_fde): Update.
14393 (dwarf2_build_frame_info): Use "new".
14395 2020-02-12 Tom Tromey <tom@tromey.com>
14397 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14398 (dwarf2_fde_table): Typedef for std::vector.
14399 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14400 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14401 (decode_frame_entry): Update.
14402 (dwarf2_build_frame_info): Use "new".
14404 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14406 * arm-tdep.c (arm_gdbarch_init): Update.
14407 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14408 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14409 have_neon, is_m>: Change to bool.
14411 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14413 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14415 2020-02-12 Tom Tromey <tom@tromey.com>
14417 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14419 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14421 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14422 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14424 2020-02-11 Tom Tromey <tom@tromey.com>
14426 * psymtab.h: Update comment.
14428 2020-02-11 Tom Tromey <tom@tromey.com>
14430 * gdb_obstack.h (struct auto_obstack): Use
14431 DISABLE_COPY_AND_ASSIGN.
14433 2020-02-11 Tom Tromey <tom@tromey.com>
14435 * dwarf2/frame.h (struct objfile): Don't forward declare.
14437 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14439 * cris-tdep.c (cris_supply_gregset): Change signature to match
14440 what struct regset expects.
14441 (cris_regset): New struct.
14442 (fetch_core_registers): Remove.
14443 (cris_iterate_over_regset_sections): New function.
14444 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14445 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14447 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14449 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14452 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14454 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14456 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14458 * configure: Re-generate.
14460 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14462 * configure: Re-generate.
14464 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14466 * acinclude: Update warning.m4 path.
14467 * warning.m4: Move to gdbsupport.
14469 2020-02-11 Tom Tromey <tromey@adacore.com>
14471 * remote.c (remote_console_output): Update.
14472 * printcmd.c (printf_command): Update.
14473 * event-loop.c (gdb_wait_for_event): Update.
14474 * linux-nat.c (sigchld_handler): Update.
14475 * remote-sim.c (gdb_os_write_stdout): Update.
14476 (gdb_os_flush_stdout): Update.
14477 (gdb_os_flush_stderr): Update.
14478 (gdb_os_write_stderr): Update.
14479 * exceptions.c (print_exception): Update.
14480 * remote-fileio.c (remote_fileio_func_read): Update.
14481 (remote_fileio_func_write): Update.
14482 * tui/tui.c (tui_enable): Update.
14483 * tui/tui-interp.c (tui_interp::init): Update.
14484 * utils.c (init_page_info): Update.
14485 (putchar_unfiltered, fputc_unfiltered): Update.
14486 (gdb_flush): Update.
14487 (emit_style_escape): Update.
14488 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14489 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14490 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14491 (stderr_file::write): Update.
14492 (stderr_file::puts): Update.
14493 * ui-file.h (ui_file_isatty, ui_file_write)
14494 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14495 (ui_file_puts): Don't declare.
14497 2020-02-10 Tom de Vries <tdevries@suse.de>
14499 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14500 sentinel to char *.
14502 2020-02-09 Tom de Vries <tdevries@suse.de>
14504 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14505 filename if it matches "<artificial>".
14507 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14509 * windows-tdep.c (struct enum_value_name): New struct.
14510 (create_enum): New function.
14511 (windows_get_siginfo_type): Create and use enum types.
14513 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14515 * NEWS: Mention $_siginfo support for Windows.
14516 * windows-nat.c (handle_exception): Set siginfo_er.
14517 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14518 (windows_xfer_siginfo): New function.
14519 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14520 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14521 (init_windows_gdbarch_data): New function.
14522 (get_windows_gdbarch_data): New function.
14523 (windows_get_siginfo_type): New function.
14524 (windows_init_abi): Register windows_get_siginfo_type.
14525 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14527 2020-02-08 Tom Tromey <tom@tromey.com>
14529 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14530 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14531 <keep>: Declare method.
14532 <m_keep>: Remove member.
14533 <~cutu_reader>: Remove.
14534 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14535 (cutu_reader::cutu_reader): Update.
14536 (cutu_reader::keep): Rename from ~cutu_reader.
14537 (process_psymtab_comp_unit, build_type_psymtabs_1)
14538 (process_skeletonless_type_unit, load_partial_comp_unit)
14539 (load_full_comp_unit, dwarf2_read_addr_index)
14540 (read_signatured_type): Update.
14542 2020-02-08 Tom Tromey <tom@tromey.com>
14544 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14545 "want_partial_unit" parameter.
14546 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14547 Inline check for DW_TAG_partial_unit.
14548 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14550 2020-02-08 Tom Tromey <tom@tromey.com>
14552 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14554 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14557 2020-02-08 Tom Tromey <tom@tromey.com>
14559 * dwarf2/read.c (read_address): Move to comp-unit.c.
14560 (dwarf2_rnglists_process, dwarf2_ranges_process)
14561 (read_attribute_value, dwarf_decode_lines_1)
14562 (var_decode_location, decode_locdesc): Update.
14563 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14564 read.c. Remove "cu" parameter.
14565 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14568 2020-02-08 Tom Tromey <tom@tromey.com>
14570 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14571 (read_indirect_line_string): Update.
14572 * dwarf2/comp-unit.c (read_offset): Remove.
14573 (read_comp_unit_head): Update.
14574 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14576 (read_offset): Don't declare.
14578 2020-02-08 Tom Tromey <tom@tromey.com>
14580 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14581 * dwarf2/read.c (struct comp_unit_head): Move to
14582 dwarf2/comp-unit.h.
14583 (enum class rcuh_kind): Move to comp-unit.h.
14584 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14585 (read_comp_unit_head, error_check_comp_unit_head)
14586 (read_and_check_comp_unit_head): Move to comp-unit.c.
14587 (read_offset, dwarf_unit_type_name): Likewise.
14588 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14589 (cutu_reader::cutu_reader, read_call_site_scope)
14590 (find_partial_die, follow_die_offset): Update.
14591 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14593 2020-02-08 Tom Tromey <tom@tromey.com>
14595 * dwarf2/read.c (read_offset_1): Move to leb.c.
14596 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14597 (dwarf_decode_macro_bytes): Update.
14598 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14599 * dwarf2/leb.h (read_offset): Declare.
14601 2020-02-08 Tom Tromey <tom@tromey.com>
14603 * dwarf2/read.c (dwarf2_section_size): Remove.
14604 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14606 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14608 2020-02-08 Tom Tromey <tom@tromey.com>
14610 * dwarf2/read.c (read_initial_length): Move to leb.c.
14611 * dwarf2/leb.h (read_initial_length): Declare.
14612 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14613 handle_nonstd parameter.
14614 * dwarf2/frame.c (read_initial_length): Remove.
14615 (decode_frame_entry_1): Update.
14617 2020-02-08 Tom Tromey <tom@tromey.com>
14619 * dwarf2/loc.c (dwarf2_find_location_expression)
14620 (dwarf_evaluate_loc_desc::get_tls_address)
14621 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14622 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14623 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14624 (dwarf2_compile_property_to_c)
14625 (dwarf2_loc_desc_get_symbol_read_needs)
14626 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14627 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14628 (loclist_describe_location, loclist_tracepoint_var_ref)
14629 (loclist_generate_c_location): Update.
14630 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14631 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14632 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14633 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14634 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14635 (dwarf2_per_cu_data::addr_size)
14636 (dwarf2_per_cu_data::ref_addr_size)
14637 (dwarf2_per_cu_data::text_offset)
14638 (dwarf2_per_cu_data::addr_type): Now methods.
14639 (per_cu_header_read_in): Make per_cu "const".
14640 (dwarf2_version): Remove.
14641 (dwarf2_per_cu_data::int_type): Now a method.
14642 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14643 (set_die_type, read_array_type, read_subrange_index_type)
14644 (read_tag_string_type, read_subrange_type): Update.
14645 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14646 offset_size, ref_addr_size, text_offset, addr_type, version,
14647 objfile, int_type, addr_sized_int_type>: Declare methods.
14649 2020-02-08 Tom Tromey <tom@tromey.com>
14651 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14654 2020-02-08 Tom Tromey <tom@tromey.com>
14656 * dwarf2/read.h (dwarf_line_debug): Declare.
14657 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14658 * dwarf2/read.c: Move line_header code to new files.
14659 (dwarf_line_debug): No longer static.
14660 * dwarf2/line-header.c: New file.
14661 * dwarf2/line-header.h: New file.
14663 2020-02-08 Tom Tromey <tom@tromey.com>
14665 * dwarf2/read.c (struct line_header) <file_full_name,
14666 file_file_name>: Return unique_xmalloc_ptr.
14667 (line_header::file_file_name): Update.
14668 (line_header::file_full_name): Update.
14669 (dw2_get_file_names_reader): Update.
14670 (macro_start_file): Update.
14672 2020-02-08 Tom Tromey <tom@tromey.com>
14674 * dwarf2/read.c (struct line_header) <file_full_name,
14675 file_file_name>: Declare methods.
14676 (dw2_get_file_names_reader): Update.
14677 (file_file_name): Now a method.
14678 (file_full_name): Likewise.
14679 (macro_start_file): Update.
14681 2020-02-08 Tom Tromey <tom@tromey.com>
14683 * dwarf2/read.c (dwarf_always_disassemble)
14684 (show_dwarf_always_disassemble): Move to loc.c.
14685 (_initialize_dwarf2_read): Move "always-disassemble" registration
14687 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14688 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14690 (show_dwarf_always_disassemble): Move from read.c.
14691 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14693 2020-02-08 Tom Tromey <tom@tromey.com>
14695 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14696 (create_quick_file_names_table): Return htab_up.
14697 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14699 * dwarf2/read.h (struct dwarf2_per_objfile)
14700 <quick_file_names_table>: Now htab_up.
14702 2020-02-08 Tom Tromey <tom@tromey.com>
14704 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14706 2020-02-08 Tom Tromey <tom@tromey.com>
14708 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14710 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14711 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14712 (abbrev_table::abbrev_table): No longer inline.
14713 (ABBREV_HASH_SIZE): Remove.
14714 (abbrev_table::m_abbrevs): Now an htab_up.
14716 2020-02-08 Tom Tromey <tom@tromey.com>
14718 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14719 (cutu_reader): Update.
14720 (build_type_psymtabs_1): Update.
14721 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14722 (abbrev_table::alloc_abbrev): Update.
14723 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14724 (abbrev_table::read): New static method, renamed from
14725 abbrev_table_read_table.
14726 (abbrev_table::alloc_abbrev)
14727 (abbrev_table::add_abbrev): Now private.
14728 (abbrev_table::abbrev_table): Now private.
14729 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14731 2020-02-08 Tom Tromey <tom@tromey.com>
14733 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14734 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14737 2020-02-08 Tom Tromey <tom@tromey.com>
14739 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14741 (lookup_dwo_unit_in_dwp): Update.
14742 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14745 2020-02-08 Tom Tromey <tom@tromey.com>
14747 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14750 2020-02-08 Tom Tromey <tom@tromey.com>
14752 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14754 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14755 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14756 Change type to htab_up.
14758 2020-02-08 Tom Tromey <tom@tromey.com>
14760 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14761 htab_up. Don't allocate on obstack.
14762 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14763 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14764 Change type to htab_up.
14766 2020-02-08 Tom Tromey <tom@tromey.com>
14768 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14769 Change type to htab_up.
14770 * dwarf2/read.c (create_signatured_type_table_from_index)
14771 (create_signatured_type_table_from_debug_names)
14772 (create_all_type_units, add_type_unit)
14773 (lookup_dwo_signatured_type, lookup_signatured_type)
14774 (process_skeletonless_type_unit): Update.
14775 (create_debug_type_hash_table, create_debug_types_hash_table):
14776 Change type of types_htab.
14777 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14778 htab_up. Don't allocate on obstack.
14779 (create_cus_hash_table): Change type of cus_htab parameter.
14780 (struct dwo_file) <cus, tus>: Now htab_up.
14781 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14782 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14783 (queue_and_load_all_dwo_tus): Update.
14784 * dwarf2/index-write.c (write_gdbindex): Update.
14785 (write_debug_names): Update.
14787 2020-02-08 Tom Tromey <tom@tromey.com>
14789 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14790 dwarf2/read.c. Remove "next" member. Add constructor ntad
14792 (struct dwarf2_per_objfile) <queue>: New member.
14793 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14795 (dwarf2_queue, dwarf2_queue_tail): Remove.
14796 (class dwarf2_queue_guard): Add parameter to constructor. Use
14797 DISABLE_COPY_AND_ASSIGN.
14798 <m_per_objfile>: New member.
14799 <~dwarf2_queue_guard>: Rewrite.
14800 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14802 (~dwarf2_queue_item): New.
14804 2020-02-08 Tom Tromey <tom@tromey.com>
14806 * dwarf2/read.c (struct die_info) <has_children>: New member.
14807 (dw2_get_file_names_reader): Remove has_children.
14808 (dw2_get_file_names): Update.
14809 (read_cutu_die_from_dwo): Remove has_children.
14810 (cutu_reader::init_tu_and_read_dwo_dies)
14811 (cutu_reader::cutu_reader): Update.
14812 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14813 Remove has_children.
14814 (build_type_psymtabs_1, process_skeletonless_type_unit)
14815 (load_partial_comp_unit, load_full_comp_unit): Update.
14816 (create_dwo_cu_reader): Remove has_children.
14817 (create_cus_hash_table, read_die_and_children): Update.
14818 (read_full_die_1,read_full_die): Remove has_children.
14819 (read_signatured_type): Update.
14820 (class cutu_reader) <has_children>: Remove.
14822 2020-02-08 Tom Tromey <tom@tromey.com>
14824 * dwarf2/expr.c: Rename from dwarf2expr.c.
14825 * dwarf2/expr.h: Rename from dwarf2expr.h.
14826 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14827 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14828 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14829 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14830 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14831 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14832 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14833 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14834 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14835 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14836 * dwarf2/loc.c: Rename from dwarf2loc.c.
14837 * dwarf2/loc.h: Rename from dwarf2loc.h.
14838 * dwarf2/read.c: Rename from dwarf2read.c.
14839 * dwarf2/read.h: Rename from dwarf2read.h.
14840 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14841 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14842 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14843 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14844 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14845 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14846 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14847 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14848 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14849 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14850 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14851 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14852 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14854 * Makefile.in (COMMON_SFILES): Update.
14855 (HFILES_NO_SRCDIR): Update.
14857 2020-02-08 Tom Tromey <tom@tromey.com>
14859 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14860 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14862 2020-02-08 Tom Tromey <tom@tromey.com>
14864 * dwarf2read.h (struct die_info): Don't declare.
14866 2020-02-08 Tom Tromey <tom@tromey.com>
14868 * dwarf2read.h (die_info_ptr): Remove typedef.
14870 2020-02-08 Tom Tromey <tom@tromey.com>
14872 * dwarf2read.c (read_call_site_scope)
14873 (handle_data_member_location, dwarf2_add_member_fn)
14874 (mark_common_block_symbol_computed, read_common_block)
14875 (attr_to_dynamic_prop, partial_die_info::read)
14876 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14877 (dwarf2_symbol_mark_computed, set_die_type): Update.
14878 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14880 (attr_form_is_block): Don't declare.
14881 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14883 2020-02-08 Tom Tromey <tom@tromey.com>
14885 * dwarf2read.c (dwarf2_find_base_address, )
14886 (read_call_site_scope, rust_containing_type)
14887 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14888 (handle_data_member_location, dwarf2_add_member_fn)
14889 (get_alignment, read_structure_type, process_structure_scope)
14890 (mark_common_block_symbol_computed, read_common_block)
14891 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14892 (partial_die_info::read, read_attribute_value, new_symbol)
14893 (lookup_die_type, dwarf2_get_ref_die_offset)
14894 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14895 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14896 (dwarf2_symbol_mark_computed): Update.
14897 * dwarf2/attribute.h (struct attribute) <value_as_address,
14898 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14900 (value_as_address, attr_form_is_section_offset)
14901 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14902 * dwarf2/attribute.c (attribute::value_as_address)
14903 (attribute::form_is_section_offset, attribute::form_is_constant)
14904 (attribute::form_is_ref): Now methods.
14906 2020-02-08 Tom Tromey <tom@tromey.com>
14908 * dwarf2read.c (struct attribute, DW_STRING)
14909 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14910 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14911 (attr_form_is_block, attr_form_is_section_offset)
14912 (attr_form_is_constant, attr_form_is_ref): Move.
14913 * dwarf2/attribute.h: New file.
14914 * dwarf2/attribute.c: New file, from dwarf2read.c.
14915 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14917 2020-02-08 Tom Tromey <tom@tromey.com>
14919 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14920 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14922 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14923 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14924 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14926 * dwarf2/abbrev.h: New file.
14927 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14928 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14930 2020-02-08 Tom Tromey <tom@tromey.com>
14932 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14933 (dwarf2_section_size, dwarf2_get_section_info)
14934 (create_signatured_type_table_from_debug_names)
14935 (create_addrmap_from_aranges, read_debug_names_from_section)
14936 (get_gdb_index_contents_from_section, read_comp_unit_head)
14937 (error_check_comp_unit_head, read_abbrev_offset)
14938 (create_debug_type_hash_table, init_cu_die_reader)
14939 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14940 (read_comp_units_from_section, create_cus_hash_table)
14941 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14942 (create_dwp_v2_section, dwarf2_rnglists_process)
14943 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14944 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14945 (read_indirect_string_from_dwz, read_addr_index_1)
14946 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14947 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14948 (fill_in_loclist_baton): Update.
14949 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14950 get_containing_section, get_bfd_owner, get_bfd_section,
14951 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14952 (dwarf2_read_section, get_section_name, get_section_file_name)
14953 (get_containing_section, get_section_bfd_owner)
14954 (get_section_bfd_section, get_section_name, get_section_file_name)
14955 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14957 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14958 (dwarf2_section_info::get_bfd_owner)
14959 (dwarf2_section_info::get_bfd_section)
14960 (dwarf2_section_info::get_name)
14961 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14962 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14963 (dwarf2_section_info::read): Now methods.
14964 * dwarf-index-write.c (class debug_names): Update.
14966 2020-02-08 Tom Tromey <tom@tromey.com>
14968 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14969 Move to dwarf2/section.h.
14970 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14971 (get_section_bfd_section, get_section_name)
14972 (get_section_file_name, get_section_id, get_section_flags)
14973 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14975 * dwarf2/section.h: New file.
14976 * dwarf2/section.c: New file, from dwarf2read.c.
14977 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14979 2020-02-08 Tom Tromey <tom@tromey.com>
14981 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14982 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14983 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14984 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14985 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14986 * dwarf2/leb.h: New file, from dwarf2read.c.
14987 * dwarf2/leb.c: New file, from dwarf2read.c.
14988 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14990 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14991 (COMMON_SFILES): Add dwarf2/leb.c.
14993 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14997 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15000 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15001 * gdb/remote.c (remote_console_output): Update.
15002 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15003 (ui_file_puts): ...this.
15004 * gdb/ui-file.h (ui_file_puts): Add declaration.
15005 * gdb/utils.c (emit_style_escape): Update.
15006 (flush_wrap_buffer): Update.
15007 (fputs_maybe_filtered): Update.
15008 (fputs_unfiltered): Add function.
15010 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15012 * gdb/event-loop.c (gdb_wait_for_event): Update.
15013 * gdb/printcmd.c (printf_command): Update.
15014 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15015 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15016 (gdb_os_flush_stderr): Update.
15017 * gdb/remote.c (remote_console_output): Update.
15018 * gdb/ui-file.c (gdb_flush): Rename to...
15019 (ui_file_flush): ...this.
15020 (stderr_file::write): Update.
15021 (stderr_file::puts): Update.
15022 * gdb/ui-file.h (gdb_flush): Rename to...
15023 (ui_file_flush): ...this.
15024 * gdb/utils.c (gdb_flush): Add function.
15025 * gdb/utils.h (gdb_flush): Add declaration.
15027 2020-02-07 Tom Tromey <tromey@adacore.com>
15029 PR breakpoints/24915:
15030 * source.c (find_and_open_source): Do not check basenames_may_differ.
15032 2020-02-07 Tom Tromey <tom@tromey.com>
15034 * README: Update gdbserver documentation.
15035 * gdbserver: Move to top level.
15036 * configure.tgt (build_gdbserver): Remove.
15037 * configure.ac: Remove --enable-gdbserver.
15038 * configure: Rebuild.
15039 * Makefile.in (distclean): Don't mention gdbserver.
15041 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15043 * source-cache.c (source_cache::ensure): Surround
15044 get_plain_source_lines with a try/catch.
15045 (source_cache::get_line_charpos): Get rid of try/catch
15046 and only check for the return value of "ensure".
15047 * tui/tui-source.c (tui_source_window::set_contents):
15048 Simplify "nlines" calculation.
15050 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15052 * MAINTAINERS (Write After Approval): Add myself.
15054 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15056 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15059 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15061 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15063 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15065 * nat/riscv-linux-tdesc.h: New file.
15066 * nat/riscv-linux-tdesc.c: New file, taking code from...
15067 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15069 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15072 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15074 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15075 we don't set the fake simulator ptid to the null_ptid.
15077 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15079 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15080 * gdbthread.h (class thread_info) <resumed>: Likewise.
15081 * infrun.c (resume_1): Likewise.
15082 (proceed): Likewise.
15083 (infrun_thread_stop_requested): Likewise.
15084 (stop_all_threads): Likewise.
15085 (handle_inferior_event): Likewise.
15086 (restart_threads): Likewise.
15087 (finish_step_over): Likewise.
15088 (keep_going_stepped_thread): Likewise.
15089 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15090 (linux_handle_extended_wait): Likewise.
15091 * record-btrace.c (get_thread_current_frame_id): Likewise.
15092 * record-full.c (record_full_wait_1): Likewise.
15093 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15094 * target.c (target_resume): Likewise.
15095 * thread.c (set_running_thread): Likewise.
15097 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15099 * f-valprint.c (f77_print_array_1): Changed datatype of index
15100 variable to LONGEST from int to enable it to contain bound
15103 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15105 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15106 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15107 offsets according to FLEN determined.
15108 (riscv_linux_nat_target::read_description): Determine FLEN
15110 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15111 according to FLEN determined.
15112 (riscv_linux_nat_target::store_registers): Likewise.
15114 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15116 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15117 when reg->group is empty and reggroup is not.
15119 2020-01-31 Tom Tromey <tromey@adacore.com>
15121 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15122 Call beneath target's mourn_inferior after unpushing.
15124 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15127 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15128 have enough lines to fill the screen, still return the lowest
15131 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15133 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15134 '-', '<', and '>' commands.
15136 2020-01-29 Pedro Alves <palves@redhat.com>
15137 Sergio Durigan Junior <sergiodj@redhat.com>
15139 * infcmd.c (construct_inferior_arguments): Assert that
15140 'argc' is greater than 0.
15142 2020-01-29 Luis Machado <luis.machado@linaro.org>
15144 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15145 (BRK_INSN_MASK): Define to 0xd4200000.
15146 (aarch64_program_breakpoint_here_p): New function.
15147 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15148 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15150 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15152 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15153 call gdbarch_program_breakpoint_here_p.
15154 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15155 default_program_breakpoint_here_p, changed return type to bool and
15157 * breakpoint.h (program_breakpoint_here): Moved prototype to
15158 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15159 return type to bool.
15160 * gdbarch.c: Regenerate.
15161 * gdbarch.h: Regenerate.
15162 * gdbarch.sh (program_breakpoint_here_p): New method.
15163 * infrun.c (handle_signal_stop): Call
15164 gdbarch_program_breakpoint_here_p.
15166 2020-01-26 Tom Tromey <tom@tromey.com>
15168 * ctfread.c (struct ctf_fp_info): Reindent.
15169 (_initialize_ctfread): Remove.
15171 2020-01-26 Tom Tromey <tom@tromey.com>
15173 * psymtab.c (partial_map_expand_apply)
15174 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15175 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15176 (psym_print_stats, psym_expand_symtabs_for_function)
15177 (psym_map_symbol_filenames, psym_map_matching_symbols)
15178 (psym_expand_symtabs_matching)
15179 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15180 (maintenance_check_psymtabs): Use new methods.
15181 * psympriv.h (struct partial_symtab) <readin_p,
15182 get_compunit_symtab>: New methods.
15183 <readin, compunit_symtab>: Remove members.
15184 (struct standard_psymtab): New.
15185 (struct legacy_psymtab): Derive from standard_psymtab.
15186 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15188 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15190 2020-01-26 Tom Tromey <tom@tromey.com>
15192 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15193 read_dependencies. Add assert.
15194 * psymtab.c (partial_symtab::read_dependencies): New method.
15195 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15197 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15198 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15200 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15203 2020-01-26 Tom Tromey <tom@tromey.com>
15205 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15206 Call expand_psymtab.
15207 (xcoff_read_symtab): Call expand_psymtab.
15208 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15209 legacy_expand_psymtab.
15210 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15212 (struct legacy_psymtab) <expand_psymtab>: Implement.
15213 <legacy_expand_psymtab>: New member.
15214 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15215 (parse_partial_symbols): Set legacy_expand_psymtab.
15216 (psymtab_to_symtab_1): Change argument order. Call
15218 (new_psymtab): Set legacy_expand_psymtab.
15219 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15220 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15222 (dwarf2_psymtab::expand_psymtab): Rename from
15223 psymtab_to_symtab_1. Call expand_psymtab.
15224 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15225 (dbx_end_psymtab): Likewise.
15226 (dbx_psymtab_to_symtab_1): Change argument order. Call
15228 (dbx_read_symtab): Call expand_psymtab.
15229 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15230 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15231 (ctf_psymtab::read_symtab): Call expand_psymtab.
15233 2020-01-26 Tom Tromey <tom@tromey.com>
15235 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15236 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15238 * mdebugread.c (mdebug_read_symtab): Remove prints.
15239 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15241 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15243 2020-01-26 Tom Tromey <tom@tromey.com>
15245 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15246 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15247 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15249 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15250 * psymtab.c (psymtab_to_symtab): Call method.
15251 (dump_psymtab): Update.
15252 * psympriv.h (struct partial_symtab): Add virtual destructor.
15253 <read_symtab>: New method.
15254 (struct legacy_symtab): New.
15255 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15256 (struct pst_map) <pst>: Now a legacy_psymtab.
15257 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15258 (new_psymtab): Use legacy_psymtab.
15259 * dwarf2read.h (struct dwarf2_psymtab): New.
15260 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15261 * dwarf2read.c (dwarf2_create_include_psymtab)
15262 (dwarf2_build_include_psymtabs, create_type_unit_group)
15263 (create_partial_symtab, process_psymtab_comp_unit_reader)
15264 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15265 (set_partial_user): Use dwarf2_psymtab.
15266 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15267 (psymtab_to_symtab_1, process_full_comp_unit)
15268 (process_full_type_unit, dwarf2_ranges_read)
15269 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15270 (dwarf_decode_lines): Use dwarf2_psymtab.
15271 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15272 (add_address_entry_worker, write_one_signatured_type)
15273 (recursively_count_psymbols, recursively_write_psymbols)
15274 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15275 (write_debug_names): Likewise.
15276 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15277 <pst>: Now a legacy_psymtab.
15278 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15279 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15280 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15281 * ctfread.c (struct ctf_psymtab): New.
15282 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15284 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15285 (create_partial_symtab): Return a ctf_psymtab.
15286 (scan_partial_symbols): Update.
15288 2020-01-26 Tom Tromey <tom@tromey.com>
15290 * xcoffread.c (xcoff_start_psymtab): Use new.
15291 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15292 renamed from start_psymtab_common.
15293 * psympriv.h (struct partial_symtab): Add new constructor.
15294 (start_psymtab_common): Don't declare.
15295 * mdebugread.c (parse_partial_symbols): Use new.
15296 * dwarf2read.c (create_partial_symtab): Use new.
15297 * dbxread.c (start_psymtab): Use new.
15298 * ctfread.c (create_partial_symtab): Use new.
15300 2020-01-26 Tom Tromey <tom@tromey.com>
15302 * xcoffread.c (xcoff_end_psymtab): Use new.
15303 * psymtab.c (start_psymtab_common): Use new.
15304 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15306 * psympriv.h (struct partial_symtab): Add parameters to
15307 constructor. Don't inline.
15308 (allocate_psymtab): Don't declare.
15309 * mdebugread.c (new_psymtab): Use new.
15310 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15311 * dbxread.c (dbx_end_psymtab): Use new.
15313 2020-01-26 Tom Tromey <tom@tromey.com>
15315 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15316 allocate_psymtab. Update documentation.
15317 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15318 allocate_psymtab. Do not use new.
15319 (allocate_psymtab): Use new. Update.
15321 2020-01-26 Tom Tromey <tom@tromey.com>
15323 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15324 * psymtab.c (psym_print_stats): Update.
15325 * psympriv.h (struct partial_symtab) <readin,
15326 psymtabs_addrmap_supported, anonymous>: Now bool.
15327 * mdebugread.c (psymtab_to_symtab_1): Update.
15328 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15329 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15330 (process_full_comp_unit, process_full_type_unit): Update.
15331 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15332 * ctfread.c (psymtab_to_symtab): Update.
15334 2020-01-26 Tom Tromey <tom@tromey.com>
15336 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15337 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15338 * psymtab.c (psymtab_storage): Delete psymtabs.
15339 (psymtab_storage::allocate_psymtab): Use new.
15340 (psymtab_storage::discard_psymtab): Use delete.
15341 * psympriv.h (struct partial_symtab): Add constructor and
15344 2020-01-26 Tom Tromey <tom@tromey.com>
15346 * machoread.c: Do not include psympriv.h.
15348 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15350 * NEWS: Mention the new option and the set/show commands.
15352 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15354 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15355 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15356 (validate_exec_file): New variables, enums, functions.
15357 (exec_file_locate_attach, print_section_info): Style the filenames.
15358 (_initialize_exec): Install show_exec_file_mismatch_command and
15359 set_exec_file_mismatch_command.
15360 * gdbcore.h (validate_exec_file): Declare.
15361 * infcmd.c (attach_command): Call validate_exec_file.
15362 * remote.c ( remote_target::remote_add_inferior): Likewise.
15364 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15366 * frame.c (find_frame_sal): Move call to get_next_frame into more
15368 * inline-frame.c (inilne_state) <inline_state>: Update argument
15370 (inilne_state) <skipped_symbol>: Rename to...
15371 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15372 (skip_inline_frames): Build vector of skipped symbols and use this
15373 to reate the inline_state.
15374 (inline_skipped_symbol): Add a comment and some assertions, fetch
15375 skipped symbol from the list.
15377 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15379 * buildsym.c (lte_is_less_than): Delete.
15380 (buildsym_compunit::end_symtab_with_blockvector): Create local
15381 lambda function to sort line table entries, and use
15382 std::stable_sort instead of std::sort.
15383 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15384 markers when looking for a previous line.
15386 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15388 * dwarf2read.c (lnp_state_machine::record_line): Include
15389 end_sequence parameter in debug print out. Record the line if we
15390 are at an end_sequence marker even if it's not the start of a
15392 * symmisc.c (maintenance_print_one_line_table): Print end of
15393 sequence markers with 'END' not '0'.
15395 2020-01-24 Pedro Alves <palves@redhat.com>
15398 * thread.c (scoped_restore_current_thread::restore): Use
15399 switch_to_inferior_no_thread.
15400 * exec.c: Include "progspace-and-thread.h".
15401 (add_target_sections, remove_target_sections):
15402 scoped_restore_current_pspace_and_thread instead of
15403 scoped_restore_current_thread.
15404 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15405 and aspace to the inferior before calling clone_program_space.
15406 Remove stale comment.
15408 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15410 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15411 (arm_netbsd_nat_target::fetch_registers): ...this.
15412 (arm_nbsd_nat_target::store_registers): Rename to...
15413 (arm_netbsd_nat_target::store_registers): ...this.
15415 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15417 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15420 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15422 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15424 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15426 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15427 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15428 the correct replacement (iterate_over_regset_sections).
15429 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15432 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15435 * gdb/python/python.c (execute_gdb_command): Call
15436 async_enable_stdin in catch block.
15438 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15440 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15441 SWITCH_THRU_ALL_UIS.
15443 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15446 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15447 comment, add extra parameter, and update to store previous symbol
15449 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15450 add extra parameter.
15451 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15452 remove unneeded parameter, add try/catch around gdb_print_insn,
15453 rewrite to add items to asm_lines vector.
15454 (tui_find_backward_disassembly_start_address): New function.
15455 (tui_find_disassembly_address): Updated throughout.
15456 (tui_disasm_window::set_contents): Update for changes to
15458 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15459 number of lines to scroll.
15461 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15463 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15464 (SECT_OFF_DATA): Likewise.
15465 (SECT_OFF_RODATA): Likewise.
15466 (SECT_OFF_TEXT): Likewise.
15467 (SECT_OFF_BSS): Likewise.
15468 (struct objfile) <text_section_offset, data_section_offset>: New
15470 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15471 objfile::text_section_offset.
15472 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15473 * coffread.c (coff_symtab_read): Likewise.
15474 (enter_linenos): Likewise.
15475 (process_coff_symbol): Likewise.
15476 * ctfread.c (get_objfile_text_range): Likewise.
15477 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15478 Use objfile::data_section_offset.
15479 * dwarf2-frame.c (execute_cfa_program): Use
15480 objfile::text_section_offset.
15481 (dwarf2_frame_find_fde): Likewise.
15482 * dwarf2read.c (create_addrmap_from_index): Likewise.
15483 (create_addrmap_from_aranges): Likewise.
15484 (dw2_find_pc_sect_compunit_symtab): Likewise.
15485 (process_psymtab_comp_unit_reader): Likewise.
15486 (add_partial_symbol): Likewise.
15487 (add_partial_subprogram): Likewise.
15488 (process_full_comp_unit): Likewise.
15489 (read_file_scope): Likewise.
15490 (read_func_scope): Likewise.
15491 (read_lexical_block_scope): Likewise.
15492 (read_call_site_scope): Likewise.
15493 (dwarf2_rnglists_process): Likewise.
15494 (dwarf2_ranges_process): Likewise.
15495 (dwarf2_ranges_read): Likewise.
15496 (dwarf_decode_lines_1): Likewise.
15497 (new_symbol): Likewise.
15498 (dwarf2_fetch_die_loc_sect_off): Likewise.
15499 (dwarf2_per_cu_text_offset): Likewise.
15500 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15501 * hppa-tdep.c (read_unwind_info): Likewise.
15502 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15503 * psympriv.h (struct partial_symtab): Likewise.
15504 * psymtab.c (find_pc_sect_psymtab): Likewise.
15505 * solib-svr4.c (enable_break): Likewise.
15506 * stap-probe.c (relocate_address): Use
15507 objfile::data_section_offset.
15508 * xcoffread.c (enter_line_range): Use
15509 objfile::text_section_offset.
15510 (read_xcoff_symtab): Likewise.
15512 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15514 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15515 declaration to narrower scopes.
15517 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15519 * darwin-nat.h (struct darwin_exception_msg, enum
15520 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15522 (class darwin_nat_target) <wait_1, check_new_threads,
15523 decode_exception_message, decode_message, stop_inferior,
15524 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15525 * darwin-nat.c (darwin_check_new_threads): Rename to...
15526 (darwin_nat_target::check_new_threads): ... this.
15527 (darwin_suspend_inferior_it): Remove.
15528 (darwin_decode_exception_message): Rename to...
15529 (darwin_nat_target::decode_exception_message): ... this.
15530 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15531 (darwin_decode_message): Rename to...
15532 (darwin_nat_target::decode_message): ... this.
15533 (cancel_breakpoint): Rename to...
15534 (darwin_nat_target::cancel_breakpoint): ... this.
15535 (darwin_wait): Rename to...
15536 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15537 instead of iterate_over_inferiors.
15538 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15539 (darwin_stop_inferior): Rename to...
15540 (darwin_nat_target::stop_inferior): ... this.
15541 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15542 (darwin_init_thread_list): Rename to...
15543 (darwin_nat_target::init_thread_list): ... this.
15544 (darwin_ptrace_him): Rename to...
15545 (darwin_nat_target::ptrace_him): ... this.
15546 (darwin_nat_target::create_inferior): Pass lambda function to
15548 (darwin_nat_target::detach): Call stop_inferior instead of
15549 darwin_stop_inferior.
15550 * fork-inferior.h (fork_inferior): Change init_trace_fun
15551 parameter to gdb::function_view.
15552 * fork-inferior.c (fork_inferior): Likewise.
15554 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15556 * i386-cygwin-tdep.c (core_process_module_section): Update.
15557 * windows-nat.c (struct lm_info_windows): Add text_offset.
15558 (windows_xfer_shared_libraries): Update.
15559 * windows-tdep.c (windows_xfer_shared_library):
15560 Add text_offset_cached argument.
15561 * windows-tdep.h (windows_xfer_shared_library): Update.
15563 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15565 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15567 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15569 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15570 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15571 replace with range-based for.
15572 (gdbsim_interrupt_inferior): Remove.
15573 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15574 with a range-based for. Inline code from
15575 gdbsim_interrupt_inferior.
15577 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15579 * infrun.c (proceed): Fix indentation.
15581 2020-01-21 Tom Tromey <tromey@adacore.com>
15583 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15584 * python/python.c (python_extension_ops): Update.
15585 (gdbpy_colorize): New function.
15586 * python/lib/gdb/__init__.py (colorize): New function.
15587 * extension.h (ext_lang_colorize): Declare.
15588 * extension.c (ext_lang_colorize): New function.
15589 * extension-priv.h (struct extension_language_ops) <colorize>: New
15591 * cli/cli-style.c (_initialize_cli_style): Update help text.
15593 2020-01-21 Luis Machado <luis.machado@linaro.org>
15595 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15596 <cond>: Change type to bool.
15597 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15598 (aarch64_displaced_step_cb): Likewise.
15599 (aarch64_displaced_step_tb): Likewise.
15601 2020-01-21 Luis Machado <luis.machado@linaro.org>
15603 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15606 2020-01-21 Luis Machado <luis.machado@linaro.org>
15608 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15609 <pc_adjust>: Adjust the documentation.
15610 (aarch64_displaced_step_fixup): Check if PC really moved before
15613 2020-01-19 Tom Tromey <tom@tromey.com>
15615 * disasm.c (~gdb_disassembler): New destructor.
15616 (gdb_buffered_insn_length): Call disassemble_free_target.
15617 * disasm.h (class gdb_disassembler): Declare destructor. Use
15618 DISABLE_COPY_AND_ASSIGN.
15620 2020-01-19 Tom Tromey <tom@tromey.com>
15622 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15623 (die_reader_func_ftype): Remove.
15624 (cutu_reader): New class.
15625 (dw2_get_file_names_reader): Remove "data" parameter.
15626 (dw2_get_file_names): Use cutu_reader.
15627 (create_debug_type_hash_table): Update.
15628 (read_cutu_die_from_dwo): Update comment.
15629 (lookup_dwo_unit): Add dwo_name parameter.
15630 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15631 die_reader_func_ftype and data parameters.
15632 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15633 Remove die_reader_func_ftype and data parameters.
15634 (~cutu_reader): New; from init_cutu_and_read_dies.
15635 (cutu_reader::cutu_reader): Rename from
15636 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15637 and data parameters.
15638 (init_cutu_and_read_dies_simple): Remove.
15639 (struct process_psymtab_comp_unit_data): Remove.
15640 (process_psymtab_comp_unit_reader): Remove data parameter; add
15641 want_partial_unit and pretend_language parameters.
15642 (process_psymtab_comp_unit): Use cutu_reader.
15643 (build_type_psymtabs_reader): Remove data parameter.
15644 (build_type_psymtabs_1): Use cutu_reader.
15645 (process_skeletonless_type_unit): Likewise.
15646 (load_partial_comp_unit_reader): Remove.
15647 (load_partial_comp_unit): Use cutu_reader.
15648 (load_full_comp_unit_reader): Remove.
15649 (load_full_comp_unit): Use cutu_reader.
15650 (struct create_dwo_cu_data): Remove.
15651 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15652 dwo_unit parameters.
15653 (create_cus_hash_table): Use cutu_reader.
15654 (struct dwarf2_read_addr_index_data): Remove.
15655 (dwarf2_read_addr_index_reader): Remove.
15656 (dwarf2_read_addr_index): Use cutu_reader.
15657 (read_signatured_type_reader): Remove.
15658 (read_signatured_type): Use cutu_reader.
15660 2020-01-19 Tom Tromey <tom@tromey.com>
15662 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15663 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15664 (tui_wrefresh): Declare.
15665 * tui/tui-wingeneral.c (suppress_output): New global.
15666 (tui_suppress_output, ~tui_suppress_output): New constructor and
15668 (tui_wrefresh): New function.
15669 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15670 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15671 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15673 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15675 (tui_data_window::no_refresh): New method.
15676 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15677 (tui_reg_command): Use tui_suppress_output
15678 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15679 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15681 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15683 2020-01-19 Tom Tromey <tom@tromey.com>
15685 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15686 Handle case where symtab is null.
15688 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15690 * linux-fork.c (one_fork_p): Simplify.
15692 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15694 * top.c (struct qt_args): Remove.
15695 (kill_or_detach): Change return type to void, replace `void *`
15696 parameter with a proper one.
15697 (print_inferior_quit_action): Likewise.
15698 (quit_confirm): Use range-based for loop to iterate over inferiors.
15699 (quit_force): Likewise.
15701 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15703 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15704 `void *` parameter with proper parameters.
15705 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15706 (print_one_inferior): Change return type to void, replace `void *`
15707 parameter with proper parameters.
15708 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15710 (get_other_inferior): Remove.
15711 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15714 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15716 * mi/mi-interp.c (report_initial_inferior): Remove.
15717 (mi_interp::init): Use range-based for to iterate over inferiors.
15719 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15721 * python/py-inferior.c (build_inferior_list): Remove.
15722 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15724 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15726 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15727 (btrace_stitch_trace): Likewise.
15728 * charset.c (intermediate_encoding): Likewise (vaild).
15729 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15730 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15731 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15733 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15735 * windows-tdep.c (windows_get_tlb_type):
15736 Add rtl_user_process_parameters type.
15738 2020-01-16 Pedro Alves <palves@redhat.com>
15739 Norbert Lange <nolange79@gmail.com>
15742 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15743 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15744 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15745 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15746 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15747 (ps_plog): Redeclare exported functions with default visibility.
15749 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15751 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15752 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15754 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15756 * infcmd.c (post_create_inferior): Use get_thread_regcache
15757 instead of get_current_regcache.
15759 2020-01-14 Tom Tromey <tom@tromey.com>
15762 * python/python.c (gdbpy_decode_line): Treat empty string the same
15765 2020-01-14 Tom Tromey <tom@tromey.com>
15767 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15769 2020-01-14 Tom Tromey <tom@tromey.com>
15771 * nat/linux-btrace.c: Don't include <config.h>.
15772 * nat/linux-ptrace.c: Don't include <config.h>.
15773 * nat/x86-linux-dregs.c: Don't include <config.h>.
15775 2020-01-14 Tom Tromey <tom@tromey.com>
15777 * configure: Rebuild.
15778 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15780 2020-01-14 Tom Tromey <tom@tromey.com>
15782 * nat/x86-linux-dregs.c: Include configh.h.
15783 * nat/linux-ptrace.c: Include configh.h.
15784 * nat/linux-btrace.c: Include configh.h.
15785 * defs.h: Include config.h, bfd.h.
15786 * configure.ac: Don't source common.host.
15787 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15788 * configure: Rebuild.
15789 * acinclude.m4: Update path.
15790 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15791 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15792 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15793 (CLIBS): Add LIBSUPPORT.
15795 (COMMON_SFILES): Remove gdbsupport files.
15796 (HFILES_NO_SRCDIR): Likewise.
15797 (stamp-version): Update path to create-version.sh.
15798 (ALLDEPFILES): Remove gdbsupport files.
15800 2020-01-14 Tom Tromey <tom@tromey.com>
15802 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15803 USE_WIN32API when needed.
15804 * configure.ac (USE_WIN32API): Don't define.
15805 (WIN32LIBS): Use WIN32APILIBS.
15806 * configure: Rebuild.
15808 2020-01-14 Tom Tromey <tom@tromey.com>
15810 * configure: Rebuild.
15811 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15813 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15815 * skip.c (skip_function_command): Make skip w/o arguments use the
15816 name of the inlined function if pc is inside any inlined function.
15818 2020-01-14 Luis Machado <luis.machado@linaro.org>
15820 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15821 * infrun.c (resume_1): Likewise.
15822 (handle_inferior_event): Remove stale comment.
15823 * linux-nat.c (linux_nat_target::resume): Update comments.
15824 (save_stop_reason): Likewise.
15825 (linux_nat_filter_event): Likewise.
15826 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15828 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15830 * elfread.c (record_minimal_symbol): Set section index to 0 for
15831 non-allocatable sections.
15834 2020-01-13 Ali Tamur <tamur@google.com>
15836 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15837 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15838 to gdb::optional. Update comments.
15839 (dwo_file): Update comments.
15840 (read_attribute): Update API to take an additional out parameter,
15841 need_reprocess. This is used to mark attributes that need other
15842 attributes (e.g. str_offsets_base) for correct computation which may not
15843 have been read yet.
15844 (read_attribute_reprocess): New function declaration.
15845 (read_addr_index): Likewise.
15846 (read_dwo_str_index): Likewise.
15847 (read_stub_str_index): Likewise.
15848 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15849 (lookup_addr_base): New function definition.
15850 (lookup_ranges_base): Likewise.
15851 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15852 lookup_ranges_base.
15853 (init_cutu_and_read_dies): Update comments.
15854 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15855 unit. This is used to inherit parent's str_offsets_base and addr_base.
15857 (init_cutu_and_read_dies_simple): Reflect API changes.
15858 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15859 (create_cus_hash_table): Change API to take parent compile unit.
15860 Reflect API changes.
15861 (open_and_init_dwo_file): Reflect API changes.
15862 (dwarf2_get_pc_bounds): Update comments.
15863 (dwarf2_record_block_ranges): Likewise.
15864 (read_full_die_1): Change implementation to reprocess attributes that
15865 need str_offsets_base and addr_base.
15866 (partial_die_info::read): Likewise.
15867 (read_attribute_reprocess): New function definition.
15868 (read_attribute_value): Change API to take an additional out parameter,
15869 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15870 when a non-dwo compile unit has index based attributes.
15871 (read_attribute): Reflect API changes.
15872 (read_addr_index_1): Reflect API changes. Update comments.
15873 (dwarf2_read_addr_index_data): Reflect API changes.
15874 (dwarf2_read_addr_index): Likewise.
15875 (read_str_index): Change API and implementation. This becomes a helper
15876 to be used by the new string index related methods. Update error
15877 message and comments.
15878 (read_dwo_str_index): New function definition.
15879 (read_stub_str_index): Likewise.
15880 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15881 * symfile.h (dwarf2_debug_sections): Likewise.
15882 * xcoffread.c (dwarf2_debug_sections): Likewise.
15884 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15886 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15887 core_reg_sect type to gdb_byte *.
15888 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15889 * cris-tdep.c (fetch_core_registers): Likewise.
15890 * corelow.c (core_target::get_core_register_section): Change
15891 type of `contents` to gdb::byte_vector.
15893 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15895 * tui/tui-wingeneral.c (box_win): Position the title in the center
15898 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15900 * corelow.c (core_target::get_core_register_section): Use
15901 std::vector instead of alloca.
15903 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15905 * warning.m4: Add -Wmissing-declarations to build_warnings.
15906 * configure: Re-generate.
15908 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15910 * python/python.c (init__gdb_module): Add declaration.
15912 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15914 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15915 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15916 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15917 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15918 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15919 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15920 * ada-exp.y (_initialize_ada_exp): Add declaration.
15921 * ada-lang.c (_initialize_ada_language): Add declaration.
15922 * ada-tasks.c (_initialize_tasks): Add declaration.
15923 * agent.c (_initialize_agent): Add declaration.
15924 * aix-thread.c (_initialize_aix_thread): Add declaration.
15925 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15926 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15927 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15928 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15929 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15930 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15931 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15932 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15933 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15934 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15935 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15936 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15937 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15938 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15939 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15940 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15941 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15942 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15943 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15944 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15945 * annotate.c (_initialize_annotate): Add declaration.
15946 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15947 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15948 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15949 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15950 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15951 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15952 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15953 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15954 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15955 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15956 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15957 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15958 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15959 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15960 * auto-load.c (_initialize_auto_load): Add declaration.
15961 * auxv.c (_initialize_auxv): Add declaration.
15962 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15963 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15964 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15965 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15966 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15967 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15968 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15969 * breakpoint.c (_initialize_breakpoint): Add declaration.
15970 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15971 * btrace.c (_initialize_btrace): Add declaration.
15972 * charset.c (_initialize_charset): Add declaration.
15973 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15974 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15975 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15976 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15977 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15978 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15979 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15980 * coffread.c (_initialize_coffread): Add declaration.
15981 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15982 * compile/compile.c (_initialize_compile): Add declaration.
15983 * complaints.c (_initialize_complaints): Add declaration.
15984 * completer.c (_initialize_completer): Add declaration.
15985 * copying.c (_initialize_copying): Add declaration.
15986 * corefile.c (_initialize_core): Add declaration.
15987 * corelow.c (_initialize_corelow): Add declaration.
15988 * cp-abi.c (_initialize_cp_abi): Add declaration.
15989 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15990 * cp-support.c (_initialize_cp_support): Add declaration.
15991 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15992 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15993 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15994 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15995 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15996 * ctfread.c (_initialize_ctfread): Add declaration.
15997 * d-lang.c (_initialize_d_language): Add declaration.
15998 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15999 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16000 * dbxread.c (_initialize_dbxread): Add declaration.
16001 * dcache.c (_initialize_dcache): Add declaration.
16002 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16003 * disasm.c (_initialize_disasm): Add declaration.
16004 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16005 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16006 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16007 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16008 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16009 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16010 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16011 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16012 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16013 * elfread.c (_initialize_elfread): Add declaration.
16014 * exec.c (_initialize_exec): Add declaration.
16015 * extension.c (_initialize_extension): Add declaration.
16016 * f-lang.c (_initialize_f_language): Add declaration.
16017 * f-valprint.c (_initialize_f_valprint): Add declaration.
16018 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16019 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16020 * filesystem.c (_initialize_filesystem): Add declaration.
16021 * findcmd.c (_initialize_mem_search): Add declaration.
16022 * findvar.c (_initialize_findvar): Add declaration.
16023 * fork-child.c (_initialize_fork_child): Add declaration.
16024 * frame-base.c (_initialize_frame_base): Add declaration.
16025 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16026 * frame.c (_initialize_frame): Add declaration.
16027 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16028 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16029 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16030 * gcore.c (_initialize_gcore): Add declaration.
16031 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16032 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16033 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16034 * gdbarch.c (_initialize_gdbarch): Add declaration.
16035 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16036 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16037 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16038 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16039 * go-lang.c (_initialize_go_language): Add declaration.
16040 * go32-nat.c (_initialize_go32_nat): Add declaration.
16041 * guile/guile.c (_initialize_guile): Add declaration.
16042 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16043 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16044 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16045 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16046 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16047 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16048 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16049 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16050 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16051 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16052 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16053 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16054 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16055 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16056 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16057 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16058 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16059 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16060 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16061 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16062 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16063 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16064 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16065 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16066 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16067 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16068 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16069 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16070 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16071 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16072 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16073 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16074 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16075 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16076 * infcall.c (_initialize_infcall): Add declaration.
16077 * infcmd.c (_initialize_infcmd): Add declaration.
16078 * inflow.c (_initialize_inflow): Add declaration.
16079 * infrun.c (_initialize_infrun): Add declaration.
16080 * interps.c (_initialize_interpreter): Add declaration.
16081 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16082 * jit.c (_initialize_jit): Add declaration.
16083 * language.c (_initialize_language): Add declaration.
16084 * linux-fork.c (_initialize_linux_fork): Add declaration.
16085 * linux-nat.c (_initialize_linux_nat): Add declaration.
16086 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16087 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16088 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16089 * m2-lang.c (_initialize_m2_language): Add declaration.
16090 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16091 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16092 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16093 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16094 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16095 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16096 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16097 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16098 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16099 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16100 * machoread.c (_initialize_machoread): Add declaration.
16101 * macrocmd.c (_initialize_macrocmd): Add declaration.
16102 * macroscope.c (_initialize_macroscope): Add declaration.
16103 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16104 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16105 * maint.c (_initialize_maint_cmds): Add declaration.
16106 * mdebugread.c (_initialize_mdebugread): Add declaration.
16107 * memattr.c (_initialize_mem): Add declaration.
16108 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16109 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16110 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16111 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16112 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16113 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16114 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16115 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16116 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16117 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16118 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16119 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16120 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16121 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16122 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16123 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16124 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16125 * mipsread.c (_initialize_mipsread): Add declaration.
16126 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16127 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16128 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16129 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16130 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16131 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16132 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16133 * nto-procfs.c (_initialize_procfs): Add declaration.
16134 * objc-lang.c (_initialize_objc_language): Add declaration.
16135 * observable.c (_initialize_observer): Add declaration.
16136 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16137 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16138 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16139 * osabi.c (_initialize_gdb_osabi): Add declaration.
16140 * osdata.c (_initialize_osdata): Add declaration.
16141 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16142 * parse.c (_initialize_parse): Add declaration.
16143 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16144 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16145 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16146 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16147 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16148 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16149 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16150 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16151 * printcmd.c (_initialize_printcmd): Add declaration.
16152 * probe.c (_initialize_probe): Add declaration.
16153 * proc-api.c (_initialize_proc_api): Add declaration.
16154 * proc-events.c (_initialize_proc_events): Add declaration.
16155 * proc-service.c (_initialize_proc_service): Add declaration.
16156 * procfs.c (_initialize_procfs): Add declaration.
16157 * producer.c (_initialize_producer): Add declaration.
16158 * psymtab.c (_initialize_psymtab): Add declaration.
16159 * python/python.c (_initialize_python): Add declaration.
16160 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16161 * record-btrace.c (_initialize_record_btrace): Add declaration.
16162 * record-full.c (_initialize_record_full): Add declaration.
16163 * record.c (_initialize_record): Add declaration.
16164 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16165 * regcache.c (_initialize_regcache): Add declaration.
16166 * reggroups.c (_initialize_reggroup): Add declaration.
16167 * remote-notif.c (_initialize_notif): Add declaration.
16168 * remote-sim.c (_initialize_remote_sim): Add declaration.
16169 * remote.c (_initialize_remote): Add declaration.
16170 * reverse.c (_initialize_reverse): Add declaration.
16171 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16172 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16173 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16174 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16175 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16176 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16177 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16178 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16180 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16181 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16182 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16183 * rust-exp.y (_initialize_rust_exp): Add declaration.
16184 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16185 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16186 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16187 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16188 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16189 * score-tdep.c (_initialize_score_tdep): Add declaration.
16190 * ser-go32.c (_initialize_ser_dos): Add declaration.
16191 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16192 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16193 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16194 * ser-uds.c (_initialize_ser_socket): Add declaration.
16195 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16196 * serial.c (_initialize_serial): Add declaration.
16197 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16198 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16199 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16200 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16201 * skip.c (_initialize_step_skip): Add declaration.
16202 * sol-thread.c (_initialize_sol_thread): Add declaration.
16203 * solib-aix.c (_initialize_solib_aix): Add declaration.
16204 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16205 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16206 * solib-frv.c (_initialize_frv_solib): Add declaration.
16207 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16208 * solib-target.c (_initialize_solib_target): Add declaration.
16209 * solib.c (_initialize_solib): Add declaration.
16210 * source-cache.c (_initialize_source_cache): Add declaration.
16211 * source.c (_initialize_source): Add declaration.
16212 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16213 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16214 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16215 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16216 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16217 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16218 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16219 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16220 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16221 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16222 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16223 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16224 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16225 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16226 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16227 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16228 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16229 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16230 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16231 * stabsread.c (_initialize_stabsread): Add declaration.
16232 * stack.c (_initialize_stack): Add declaration.
16233 * stap-probe.c (_initialize_stap_probe): Add declaration.
16234 * std-regs.c (_initialize_frame_reg): Add declaration.
16235 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16236 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16237 * symfile.c (_initialize_symfile): Add declaration.
16238 * symmisc.c (_initialize_symmisc): Add declaration.
16239 * symtab.c (_initialize_symtab): Add declaration.
16240 * target.c (_initialize_target): Add declaration.
16241 * target-connection.c (_initialize_target_connection): Add
16243 * target-dcache.c (_initialize_target_dcache): Add declaration.
16244 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16245 * thread.c (_initialize_thread): Add declaration.
16246 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16247 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16248 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16249 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16250 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16251 * tracectf.c (_initialize_ctf): Add declaration.
16252 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16253 * tracefile.c (_initialize_tracefile): Add declaration.
16254 * tracepoint.c (_initialize_tracepoint): Add declaration.
16255 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16256 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16257 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16258 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16259 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16260 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16261 * tui/tui.c (_initialize_tui): Add declaration.
16262 * typeprint.c (_initialize_typeprint): Add declaration.
16263 * ui-style.c (_initialize_ui_style): Add declaration.
16264 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16265 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16266 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16267 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16268 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16269 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16270 * unittests/filtered_iterator-selftests.c
16271 (_initialize_filtered_iterator_selftests): Add declaration.
16272 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16273 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16274 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16275 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16276 * unittests/main-thread-selftests.c
16277 (_initialize_main_thread_selftests): Add declaration.
16278 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16279 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16280 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16281 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16282 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16283 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16284 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16285 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16286 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16287 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16288 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16289 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16290 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16291 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16292 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16294 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16295 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16296 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16297 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16298 * user-regs.c (_initialize_user_regs): Add declaration.
16299 * utils.c (_initialize_utils): Add declaration.
16300 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16301 * valops.c (_initialize_valops): Add declaration.
16302 * valprint.c (_initialize_valprint): Add declaration.
16303 * value.c (_initialize_values): Add declaration.
16304 * varobj.c (_initialize_varobj): Add declaration.
16305 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16306 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16307 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16308 * windows-nat.c (_initialize_windows_nat): Add declaration.
16309 (_initialize_check_for_gdb_ini): Add declaration.
16310 (_initialize_loadable): Add declaration.
16311 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16312 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16313 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16314 * xcoffread.c (_initialize_xcoffread): Add declaration.
16315 * xml-support.c (_initialize_xml_support): Add declaration.
16316 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16317 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16318 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16319 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16321 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16323 * regformats/regdat.sh: Generate declaration for init function.
16325 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16327 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16329 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16330 close_one_inferior>: New methods.
16331 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16332 pass down target to find_inferior_pid.
16333 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16334 Pass down target to find_inferior_ptid.
16335 (gdbsim_target::create_inferior): Pass down target to
16337 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16338 target down to find_inferior_ptid and switch_to_thread.
16339 (gdbsim_target::close): Update to call close_one_inferior.
16340 (struct resume_data): Remove.
16341 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16342 directly, rather than through a void pointer.
16343 (gdbsim_target::resume): Update to call resume_one_inferior.
16345 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16347 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16349 2020-01-12 Pedro Alves <palves@redhat.com>
16351 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16352 directly for the current inferior instead of
16353 discard_all_inferiors.
16354 (discard_all_inferiors): Delete.
16356 2020-01-11 Tom Tromey <tom@tromey.com>
16358 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16359 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16360 deprecated_safe_get_selected_frame.
16362 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16364 * inferior.c (print_inferior): Switch inferior before printing it.
16366 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16367 Pedro Alves <palves@redhat.com>
16369 * progspace-and-thread.c (switch_to_program_space_and_thread):
16370 Assert there's an inferior for PSPACE. Use
16371 switch_to_inferior_no_thread to switch the inferior too.
16372 * progspace.c (program_space::~program_space): Call
16373 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16374 (program_space::free_all_objfiles): Don't call clear_symtab_users
16376 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16378 2020-01-10 Pedro Alves <palves@redhat.com>
16380 * NEWS: Mention multi-target debugging, "info connections", and
16381 "add-inferior -no-connection".
16383 2020-01-10 Pedro Alves <palves@redhat.com>
16385 * infrun.c: Include "target-connection.h".
16386 (check_multi_target_resumption): New.
16387 (proceed): Call it.
16388 * target-connection.c (make_target_connection_string): Make
16390 * target-connection.h (make_target_connection_string): Declare.
16392 2020-01-10 Pedro Alves <palves@redhat.com>
16394 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16395 * inferior.c (uiout_field_connection): New function.
16396 (print_inferior): Add new "connection-id" column.
16397 (add_inferior_command): Show connection number/string of added
16399 * process-stratum-target.h
16400 (process_stratum_target::connection_string): New virtual method.
16401 (process_stratum_target::connection_number): New field.
16402 * remote.c (remote_target::connection_string): New override.
16403 * target-connection.c: New file.
16404 * target-connection.h: New file.
16405 * target.c (decref_target): Remove process_stratum targets from
16406 the connection list.
16407 (target_stack::push): Add process_stratum targets to the
16410 2020-01-10 Pedro Alves <palves@redhat.com>
16413 2016-04-12 Pedro Alves <palves@redhat.com>
16414 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16415 Remove references to name.
16416 * serial.h (struct serial) <name>: Delete.
16418 2020-01-10 Pedro Alves <palves@redhat.com>
16420 * gdbarch-selftests.c (register_to_value_test): Remove "target
16421 already pushed" check.
16423 2020-01-10 Pedro Alves <palves@redhat.com>
16424 John Baldwin <jhb@FreeBSD.org>
16426 * aarch64-linux-nat.c
16427 (aarch64_linux_nat_target::thread_architecture): Adjust.
16428 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16429 (task_command_1): Likewise.
16430 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16431 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16432 (aix_thread_target::store_registers)
16433 (aix_thread_target::thread_alive): Adjust.
16434 * amd64-fbsd-tdep.c: Include "inferior.h".
16435 (amd64fbsd_get_thread_local_address): Pass down target.
16436 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16437 thread's gdbarch instead of target_gdbarch.
16438 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16439 get_last_target_status.
16440 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16441 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16443 (update_inserted_breakpoint_locations): Skip if inferiors with no
16445 (update_global_location_list): When handling moribund locations,
16446 find representative inferior for location's pspace, and use thread
16447 count of its process_stratum target.
16448 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16449 * bsd-uthread.c (bsd_uthread_target::wait): Use
16450 as_process_stratum_target and adjust thread_change_ptid and
16452 (bsd_uthread_target::update_thread_list): Use
16453 as_process_stratum_target and adjust find_thread_ptid,
16454 thread_change_ptid and add_thread calls.
16455 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16456 find_thread_ptid call.
16457 * corelow.c (add_to_thread_list): Adjust add_thread call.
16458 (core_target_open): Adjust add_thread_silent and thread_count
16460 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16461 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16462 * event-top.c (async_disconnect): Pop targets from all inferiors.
16463 * exec.c (add_target_sections): Push exec target on all inferiors
16464 sharing the program space.
16465 (remove_target_sections): Remove the exec target from all
16466 inferiors sharing the program space.
16467 (exec_on_vfork): New.
16468 * exec.h (exec_on_vfork): Declare.
16469 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16471 (fbsd_nat_target::update_thread_list): Adjust.
16472 (fbsd_nat_target::resume): Adjust.
16473 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16475 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16476 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16477 get_thread_arch_regcache call.
16478 * fork-child.c (gdb_startup_inferior): Pass target down to
16479 startup_inferior and set_executing.
16480 * gdbthread.h (struct process_stratum_target): Forward declare.
16481 (add_thread, add_thread_silent, add_thread_with_info)
16482 (in_thread_list): Add process_stratum_target parameter.
16483 (find_thread_ptid(inferior*, ptid_t)): New overload.
16484 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16486 (all_threads()): Delete overload.
16487 (all_threads, all_non_exited_threads): Add process_stratum_target
16489 (all_threads_safe): Use brace initialization.
16490 (thread_count): Add process_stratum_target parameter.
16491 (set_resumed, set_running, set_stop_requested, set_executing)
16492 (threads_are_executing, finish_thread_state): Add
16493 process_stratum_target parameter.
16494 (switch_to_thread): Use is_current_thread.
16495 * i386-fbsd-tdep.c: Include "inferior.h".
16496 (i386fbsd_get_thread_local_address): Pass down target.
16497 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16498 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16499 have_inferiors check.
16500 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16501 (inf_ptrace_target::attach): Adjust.
16502 * infcall.c (run_inferior_call): Adjust.
16503 * infcmd.c (run_command_1): Pass target to
16504 scoped_finish_thread_state.
16505 (proceed_thread_callback): Skip inferiors with no execution.
16506 (continue_command): Rename 'all_threads' local to avoid hiding
16507 'all_threads' function. Adjust get_last_target_status call.
16508 (prepare_one_step): Adjust set_running call.
16509 (signal_command): Use user_visible_resume_target. Compare thread
16510 pointers instead of inferior_ptid.
16511 (info_program_command): Adjust to pass down target.
16512 (attach_command): Mark target's 'thread_executing' flag.
16513 (stop_current_target_threads_ns): New, factored out from ...
16514 (interrupt_target_1): ... this. Switch inferior before making
16517 (struct all_inferiors_iterator, struct all_inferiors_range)
16518 (struct all_inferiors_safe_range)
16519 (struct all_non_exited_inferiors_range): Filter on
16520 process_stratum_target too. Remove explicit.
16521 * inferior.c (inferior::inferior): Push dummy target on target
16523 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16524 Add process_stratum_target parameter, and pass it down.
16525 (have_live_inferiors): Adjust.
16526 (switch_to_inferior_and_push_target): New.
16527 (add_inferior_command, clone_inferior_command): Handle
16528 "-no-connection" parameter. Use
16529 switch_to_inferior_and_push_target.
16530 (_initialize_inferior): Mention "-no-connection" option in
16531 the help of "add-inferior" and "clone-inferior" commands.
16532 * inferior.h: Include "process-stratum-target.h".
16533 (interrupt_target_1): Use bool.
16534 (struct inferior) <push_target, unpush_target, target_is_pushed,
16535 find_target_beneath, top_target, process_target, target_at,
16537 (discard_all_inferiors): Delete.
16538 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16539 (all_inferiors, all_non_exited_inferiors): Add
16540 process_stratum_target parameter.
16541 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16542 (target_last_proc_target): New global.
16543 (follow_fork_inferior): Push target on new inferior. Pass target
16544 to add_thread_silent. Call exec_on_vfork. Handle target's
16546 (follow_fork): Adjust get_last_target_status call. Also consider
16548 (follow_exec): Push target on new inferior.
16549 (struct execution_control_state) <target>: New field.
16550 (user_visible_resume_target): New.
16551 (do_target_resume): Call target_async.
16552 (resume_1): Set target's threads_executing flag. Consider resume
16554 (commit_resume_all_targets): New.
16555 (proceed): Also consider resume target. Skip threads of inferiors
16556 with no execution. Commit resumtion in all targets.
16557 (start_remote): Pass current inferior to wait_for_inferior.
16558 (infrun_thread_stop_requested): Consider target as well. Pass
16559 thread_info pointer to clear_inline_frame_state instead of ptid.
16560 (infrun_thread_thread_exit): Consider target as well.
16561 (random_pending_event_thread): New inferior parameter. Use it.
16562 (do_target_wait): Rename to ...
16563 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16565 (threads_are_resumed_pending_p, do_target_wait): New.
16566 (prepare_for_detach): Adjust calls.
16567 (wait_for_inferior): New inferior parameter. Handle it. Use
16568 do_target_wait_1 instead of do_target_wait.
16569 (fetch_inferior_event): Adjust. Switch to representative
16570 inferior. Pass target down.
16571 (set_last_target_status): Add process_stratum_target parameter.
16572 Save target in global.
16573 (get_last_target_status): Add process_stratum_target parameter and
16575 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16576 (context_switch): Check inferior_ptid == null_ptid before calling
16578 (get_inferior_stop_soon): Pass down target.
16579 (wait_one): Rename to ...
16580 (poll_one_curr_target): ... this.
16581 (struct wait_one_event): New.
16583 (stop_all_threads): Adjust.
16584 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16586 (switch_back_to_stepped_thread): Also consider target.
16587 (print_stop_event): Update.
16588 (normal_stop): Update. Also consider the resume target.
16589 * infrun.h (wait_for_inferior): Remove declaration.
16590 (user_visible_resume_target): New declaration.
16591 (get_last_target_status, set_last_target_status): New
16592 process_stratum_target parameter.
16593 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16594 process_stratum_target parameter, and use it.
16595 (clear_inline_frame_state (thread_info*)): New.
16596 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16597 process_stratum_target parameter.
16598 (clear_inline_frame_state (thread_info*)): Declare.
16599 * linux-fork.c (delete_checkpoint_command): Pass target down to
16601 (checkpoint_command): Adjust.
16602 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16603 instead of just tweaking inferior_ptid.
16604 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16605 (exit_lwp): Pass target down to find_thread_ptid.
16606 (attach_proc_task_lwp_callback): Pass target down to
16607 add_thread/set_running/set_executing.
16608 (linux_nat_target::attach): Pass target down to
16609 thread_change_ptid.
16610 (get_detach_signal): Pass target down to find_thread_ptid.
16611 Consider last target status's target.
16612 (linux_resume_one_lwp_throw, resume_lwp)
16613 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16614 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16615 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16616 (linux_nat_target::async_wait_fd): New.
16617 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16619 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16620 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16621 * linux-thread-db.c (struct thread_db_info::process_target): New
16623 (add_thread_db_info): Save target.
16624 (get_thread_db_info): New process_stratum_target parameter. Also
16626 (delete_thread_db_info): New process_stratum_target parameter.
16628 (thread_from_lwp): Adjust to pass down target.
16629 (thread_db_notice_clone): Pass down target.
16630 (check_thread_db_callback): Pass down target.
16631 (try_thread_db_load_1): Always push the thread_db target.
16632 (try_thread_db_load, record_thread): Pass target down.
16633 (thread_db_target::detach): Pass target down. Always unpush the
16635 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16636 target down. Always unpush the thread_db target.
16637 (find_new_threads_callback, thread_db_find_new_threads_2)
16638 (thread_db_target::update_thread_list): Pass target down.
16639 (thread_db_target::pid_to_str): Pass current inferior down.
16640 (thread_db_target::get_thread_local_address): Pass target down.
16641 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16643 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16644 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16645 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16646 (procfs_init_inferior): Rename to ...
16647 (procfs_target::procfs_init_inferior): ... this and adjust.
16648 (procfs_target::create_inferior, procfs_notice_thread)
16649 (procfs_do_thread_registers): Adjust.
16650 * ppc-fbsd-tdep.c: Include "inferior.h".
16651 (ppcfbsd_get_thread_local_address): Pass down target.
16652 * proc-service.c (ps_xfer_memory): Switch current inferior and
16653 program space as well.
16654 (get_ps_regcache): Pass target down.
16655 * process-stratum-target.c
16656 (process_stratum_target::thread_address_space)
16657 (process_stratum_target::thread_architecture): Pass target down.
16658 * process-stratum-target.h
16659 (process_stratum_target::threads_executing): New field.
16660 (as_process_stratum_target): New.
16661 * ravenscar-thread.c
16662 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16663 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16665 * record-btrace.c (record_btrace_target::info_record): Adjust.
16666 (record_btrace_target::record_method)
16667 (record_btrace_target::record_is_replaying)
16668 (record_btrace_target::fetch_registers)
16669 (get_thread_current_frame_id, record_btrace_target::resume)
16670 (record_btrace_target::wait, record_btrace_target::stop): Pass
16672 * record-full.c (record_full_wait_1): Switch to event thread.
16674 * regcache.c (regcache::regcache)
16675 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16676 process_stratum_target parameter and handle it.
16677 (current_thread_target): New global.
16678 (get_thread_regcache): Add process_stratum_target parameter and
16679 handle it. Switch inferior before calling target method.
16680 (get_thread_regcache): Pass target down.
16681 (get_thread_regcache_for_ptid): Pass target down.
16682 (registers_changed_ptid): Add process_stratum_target parameter and
16684 (registers_changed_thread, registers_changed): Pass target down.
16685 (test_get_thread_arch_aspace_regcache): New.
16686 (current_regcache_test): Define a couple local test_target_ops
16687 instances and use them for testing.
16688 (readwrite_regcache): Pass process_stratum_target parameter.
16689 (cooked_read_test, cooked_write_test): Pass mock_target down.
16690 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16691 (get_thread_arch_aspace_regcache): Add process_stratum_target
16693 (regcache::target): New method.
16694 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16695 (regcache::registers_changed_ptid): Add process_stratum_target
16697 (regcache::m_target): New field.
16698 (registers_changed_ptid): Add process_stratum_target parameter.
16699 * remote.c (remote_state::supports_vCont_probed): New field.
16700 (remote_target::async_wait_fd): New method.
16701 (remote_unpush_and_throw): Add remote_target parameter.
16702 (get_current_remote_target): Adjust.
16703 (remote_target::remote_add_inferior): Push target.
16704 (remote_target::remote_add_thread)
16705 (remote_target::remote_notice_new_inferior)
16706 (get_remote_thread_info): Pass target down.
16707 (remote_target::update_thread_list): Skip threads of inferiors
16708 bound to other targets. (remote_target::close): Don't discard
16709 inferiors. (remote_target::add_current_inferior_and_thread)
16710 (remote_target::process_initial_stop_replies)
16711 (remote_target::start_remote)
16712 (remote_target::remote_serial_quit_handler): Pass down target.
16713 (remote_target::remote_unpush_target): New remote_target
16714 parameter. Unpush the target from all inferiors.
16715 (remote_target::remote_unpush_and_throw): New remote_target
16716 parameter. Pass it down.
16717 (remote_target::open_1): Check whether the current inferior has
16718 execution instead of checking whether any inferior is live. Pass
16720 (remote_target::remote_detach_1): Pass down target. Use
16721 remote_unpush_target.
16722 (extended_remote_target::attach): Pass down target.
16723 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16724 (remote_target::append_resumption): Pass down target.
16725 (remote_target::append_pending_thread_resumptions)
16726 (remote_target::remote_resume_with_hc, remote_target::resume)
16727 (remote_target::commit_resume): Pass down target.
16728 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16729 (remote_target::interrupt_query)
16730 (remote_target::remove_new_fork_children)
16731 (remote_target::check_pending_events_prevent_wildcard_vcont)
16732 (remote_target::remote_parse_stop_reply)
16733 (remote_target::process_stop_reply): Pass down target.
16734 (first_remote_resumed_thread): New remote_target parameter. Pass
16736 (remote_target::wait_as): Pass down target.
16737 (unpush_and_perror): New remote_target parameter. Pass it down.
16738 (remote_target::readchar, remote_target::remote_serial_write)
16739 (remote_target::getpkt_or_notif_sane_1)
16740 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16742 (remote_target::mourn_inferior): Pass down target. Use
16743 remote_unpush_target.
16744 (remote_target::core_of_thread)
16745 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16746 (remote_target::pid_to_exec_file)
16747 (remote_target::thread_handle_to_thread_info): Pass down target.
16748 (remote_target::async_wait_fd): New.
16749 * riscv-fbsd-tdep.c: Include "inferior.h".
16750 (riscv_fbsd_get_thread_local_address): Pass down target.
16751 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16752 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16753 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16755 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16756 * solib-svr4.c (enable_break): Pass down target.
16757 * spu-multiarch.c (parse_spufs_run): Pass down target.
16758 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16759 * target-delegates.c: Regenerate.
16760 * target.c (g_target_stack): Delete.
16761 (current_top_target): Return the current inferior's top target.
16762 (target_has_execution_1): Refer to the passed-in inferior's top
16764 (target_supports_terminal_ours): Check whether the initial
16765 inferior was already created.
16766 (decref_target): New.
16767 (target_stack::push): Incref/decref the target.
16768 (push_target, push_target, unpush_target): Adjust.
16769 (target_stack::unpush): Defref target.
16770 (target_is_pushed): Return bool. Adjust to refer to the current
16771 inferior's target stack.
16772 (dispose_inferior): Delete, and inline parts ...
16773 (target_preopen): ... here. Only dispose of the current inferior.
16774 (target_detach): Hold strong target reference while detaching.
16776 (target_thread_name): Add assertion.
16777 (target_resume): Pass down target.
16778 (target_ops::beneath, find_target_at): Adjust to refer to the
16779 current inferior's target stack.
16780 (get_dummy_target): New.
16781 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16782 has a thread running.
16783 (initialize_targets): Rename to ...
16784 (_initialize_target): ... this.
16785 * target.h: Include "gdbsupport/refcounted-object.h".
16786 (struct target_ops): Inherit refcounted_object.
16787 (target_ops::shortname, target_ops::longname): Make const.
16788 (target_ops::async_wait_fd): New method.
16789 (decref_target): Declare.
16790 (struct target_ops_ref_policy): New.
16791 (target_ops_ref): New typedef.
16792 (get_dummy_target): Declare function.
16793 (target_is_pushed): Return bool.
16794 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16795 (all_matching_threads_iterator::all_matching_threads_iterator):
16796 Handle filter target.
16797 * thread-iter.h (struct all_matching_threads_iterator, struct
16798 all_matching_threads_range, class all_non_exited_threads_range):
16799 Filter by target too. Remove explicit.
16800 * thread.c (threads_executing): Delete.
16801 (inferior_thread): Pass down current inferior.
16802 (clear_thread_inferior_resources): Pass down thread pointer
16804 (add_thread_silent, add_thread_with_info, add_thread): Add
16805 process_stratum_target parameter. Use it for thread and inferior
16807 (is_current_thread): New.
16808 (thread_info::deletable): Use it.
16809 (find_thread_ptid, thread_count, in_thread_list)
16810 (thread_change_ptid, set_resumed, set_running): New
16811 process_stratum_target parameter. Pass it down.
16812 (set_executing): New process_stratum_target parameter. Pass it
16813 down. Adjust reference to 'threads_executing'.
16814 (threads_are_executing): New process_stratum_target parameter.
16815 Adjust reference to 'threads_executing'.
16816 (set_stop_requested, finish_thread_state): New
16817 process_stratum_target parameter. Pass it down.
16818 (switch_to_thread): Also match inferior.
16819 (switch_to_thread): New process_stratum_target parameter. Pass it
16821 (update_threads_executing): Reimplement.
16822 * top.c (quit_force): Pop targets from all inferior.
16823 (gdb_init): Don't call initialize_targets.
16824 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16826 (windows_add_thread, windows_delete_thread): Adjust.
16827 (get_windows_debug_event): Rename to ...
16828 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16829 * tracefile-tfile.c (tfile_target_open): Pass down target.
16830 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16832 (switch_to_thread): Add process_stratum_target parameter.
16833 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16835 (mi_on_resume): Pass target down.
16836 * nat/fork-inferior.c (startup_inferior): Add
16837 process_stratum_target parameter. Pass it down.
16838 * nat/fork-inferior.h (startup_inferior): Add
16839 process_stratum_target parameter.
16840 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16842 2020-01-10 Pedro Alves <palves@redhat.com>
16844 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16845 directly. Instead find the first thread in the thread list and
16846 use switch_to_thread.
16848 2020-01-10 Pedro Alves <palves@redhat.com>
16850 * remote.c (remote_target::remote_add_inferior): Don't bind a
16851 process to the current inferior if the current inferior is already
16852 bound to a process.
16854 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16855 Pedro Alves <palves@redhat.com>
16857 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16858 If no process is specified, return null_ptid instead of
16860 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16861 TARGET_WAITKIND_SIGNALLED with no pid.
16863 2020-01-10 Pedro Alves <palves@redhat.com>
16865 * remote.c (first_remote_resumed_thread): New.
16866 (remote_target::wait_as): Use it as default event_ptid instead of
16869 2020-01-10 Pedro Alves <palves@redhat.com>
16871 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16873 2020-01-10 Pedro Alves <palves@redhat.com>
16875 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16878 2020-01-10 Pedro Alves <palves@redhat.com>
16880 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16881 ptid to get_last_target_status.
16882 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16883 ptid to get_last_target_status.
16884 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16885 get_last_target_status.
16886 (info_program_command): Don't pass a target_waitstatus to
16887 get_last_target_status.
16888 * infrun.c (init_wait_for_inferior): Use
16889 nullify_last_target_wait_ptid.
16890 (get_last_target_status): Handle nullptr arguments.
16891 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16892 (print_stop_event): Don't pass a ptid to get_last_target_status.
16893 (normal_stop): Don't pass a ptid to get_last_target_status.
16894 * infrun.h (get_last_target_status, set_last_target_status): Move
16895 comments here and update.
16896 (nullify_last_target_wait_ptid): Declare.
16897 * linux-fork.c (fork_load_infrun_state): Remove local extern
16898 declaration of nullify_last_target_wait_ptid.
16899 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16900 to get_last_target_status.
16902 2020-01-10 Pedro Alves <palves@redhat.com>
16904 * gdbthread.h (scoped_restore_current_thread)
16905 <dont_restore, restore, m_dont_restore>: Declare.
16906 * thread.c (thread_alive): Add assertion. Return bool.
16907 (switch_to_thread_if_alive): New.
16908 (prune_threads): Switch inferior/thread.
16909 (print_thread_info_1): Switch thread before calling target methods.
16910 (scoped_restore_current_thread::restore): New, factored out from
16912 (scoped_restore_current_thread::~scoped_restore_current_thread):
16914 (scoped_restore_current_thread::scoped_restore_current_thread):
16916 (thread_apply_all_command, thread_select): Use
16917 switch_to_thread_if_alive.
16918 * infrun.c (proceed, restart_threads, handle_signal_stop)
16919 (switch_back_to_stepped_thread): Switch current thread before
16920 calling target methods.
16922 2020-01-10 Pedro Alves <palves@redhat.com>
16924 * inferior.c (switch_to_inferior_no_thread): New function,
16925 factored out from ...
16926 (inferior_command): ... here.
16927 * inferior.h (switch_to_inferior_no_thread): Declare.
16928 * mi/mi-main.c (run_one_inferior): Use
16929 switch_to_inferior_no_thread.
16931 2020-01-10 Pedro Alves <palves@redhat.com>
16933 * infcmd.c (kill_command): Remove dead code.
16935 2020-01-10 Pedro Alves <palves@redhat.com>
16937 * remote.c (remote_target::mourn_inferior): No longer check
16938 whether the target is running.
16940 2020-01-10 Pedro Alves <palves@redhat.com>
16942 * corelow.c (core_target::has_execution): Change parameter type to
16944 * inferior.c (number_of_live_inferiors): Use
16945 inferior::has_execution instead of target_has_execution_1.
16946 * inferior.h (inferior::has_execution): New.
16947 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16948 inferior::has_execution instead of target_has_execution_1.
16949 * process-stratum-target.c
16950 (process_stratum_target::has_execution): Change parameter type to
16951 inferior pointer. Check the inferior's PID instead of
16953 * process-stratum-target.h
16954 (process_stratum_target::has_execution): Change parameter type to
16956 * record-full.c (record_full_core_target::has_execution): Change
16957 parameter type to inferior pointer.
16958 * target.c (target_has_execution_1): Change parameter type to
16960 (target_has_execution_current): Adjust.
16961 * target.h (target_ops::has_execution): Change parameter type to
16963 (target_has_execution_1): Change parameter type to inferior
16964 pointer. Change return type to bool.
16965 * tracefile.h (tracefile_target::has_execution): Change parameter
16966 type to inferior pointer.
16968 2020-01-10 Pedro Alves <palves@redhat.com>
16970 * exceptions.c (print_flush): Remove current_top_target() check.
16972 2020-01-10 Pedro Alves <palves@redhat.com>
16974 * remote.c (show_remote_exec_file): Show the current inferior's
16975 exec-file instead of the command variable's value.
16977 2020-01-10 Pedro Alves <palves@redhat.com>
16979 * record-full.c (record_full_resume_ptid): New global.
16980 (record_full_target::resume): Set it.
16981 (record_full_wait_1): Use record_full_resume_ptid instead of
16984 2020-01-10 Pedro Alves <palves@redhat.com>
16986 * gdbthread.h (scoped_restore_current_thread)
16987 <dont_restore, restore, m_dont_restore>: Declare.
16988 * thread.c (thread_alive): Add assertion. Return bool.
16989 (switch_to_thread_if_alive): New.
16990 (prune_threads): Switch inferior/thread.
16991 (print_thread_info_1): Switch thread before calling target methods.
16992 (scoped_restore_current_thread::restore): New, factored out from
16994 (scoped_restore_current_thread::~scoped_restore_current_thread):
16996 (scoped_restore_current_thread::scoped_restore_current_thread):
16998 (thread_apply_all_command, thread_select): Use
16999 switch_to_thread_if_alive.
17001 2020-01-10 George Barrett <bob@bob131.so>
17003 * stap-probe.c (stap_modify_semaphore): Don't check for null
17005 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17006 for null semaphores.
17008 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17010 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17011 all source windows, and maintain horizontal scroll status while
17014 2020-01-09 Tom Tromey <tom@tromey.com>
17017 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17018 update_source_window, not print_source_lines.
17020 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17022 * tui/tui.c (tui_enable): Register tui hooks after calling
17025 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17027 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17029 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17031 * thread.c (print_thread_info_1): Fix indentation.
17033 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17035 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17036 unique_xmalloc_ptr outside the if to always free the demangled name.
17038 2020-01-08 Tom Tromey <tromey@adacore.com>
17040 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17041 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17042 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17043 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17045 (section_offsets): New typedef.
17046 * symtab.c (fixup_section, get_msymbol_address): Update.
17047 * symmisc.c (dump_msymbols): Update.
17048 * symfile.h (relative_addr_info_to_section_offsets)
17049 (symfile_map_offsets_to_segments): Update.
17050 * symfile.c (build_section_addr_info_from_objfile)
17051 (init_objfile_sect_indices): Update.
17052 (struct place_section_arg): Change type of "offsets".
17053 (place_section): Update.
17054 (relative_addr_info_to_section_offsets): Change type of
17055 "section_offsets". Remove "num_sections" parameter.
17056 (default_symfile_offsets, syms_from_objfile_1)
17057 (set_objfile_default_section_offset): Update.
17058 (reread_symbols): No need to preserve section offsets by hand.
17059 (symfile_map_offsets_to_segments): Change type of "offsets".
17060 * stap-probe.c (relocate_address): Update.
17061 * stabsread.h (process_one_symbol): Update.
17062 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17063 (solib_target_relocate_section_addresses): Update.
17064 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17066 * solib-frv.c (frv_relocate_main_executable): Update.
17067 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17068 * solib-aix.c (solib_aix_get_section_offsets): Change return
17070 (solib_aix_solib_create_inferior_hook): Update.
17071 * remote.c (remote_target::get_offsets): Update.
17072 * psymtab.c (find_pc_sect_psymtab): Update.
17073 * psympriv.h (struct partial_symbol) <address, text_low,
17074 text_high>: Update.
17075 * objfiles.h (obj_section_offset): Update.
17076 (struct objfile) <section_offsets>: Change type.
17077 <num_sections>: Remove.
17078 (objfile_relocate): Update.
17079 * objfiles.c (entry_point_address_query): Update
17080 (relocate_one_symbol): Change type of "section_offsets".
17081 (objfile_relocate1, objfile_relocate1): Change type of
17083 (objfile_rebase1): Update.
17084 * mipsread.c (mipscoff_symfile_read): Update.
17085 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17087 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17088 (parse_external, psymtab_to_symtab_1): Update.
17089 * machoread.c (macho_symfile_offsets): Update.
17090 * ia64-tdep.c (ia64_find_unwind_table): Update.
17091 * hppa-tdep.c (read_unwind_info): Update.
17092 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17093 * dwarf2read.c (create_addrmap_from_index)
17094 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17095 (process_psymtab_comp_unit_reader, add_partial_symbol)
17096 (add_partial_subprogram, process_full_comp_unit)
17097 (read_file_scope, read_func_scope, read_lexical_block_scope)
17098 (read_call_site_scope, dwarf2_rnglists_process)
17099 (dwarf2_ranges_process, dwarf2_ranges_read)
17100 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17101 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17103 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17105 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17106 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17107 (process_one_symbol): Change type of "section_offsets".
17108 * ctfread.c (get_objfile_text_range): Update.
17109 * coffread.c (coff_symtab_read, enter_linenos)
17110 (process_coff_symbol): Update.
17111 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17112 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17114 2020-01-08 Tom Tromey <tromey@adacore.com>
17116 * dwarf2read.c (parse_macro_definition): Use std::string.
17117 (parse_macro_definition): Likewise.
17119 2020-01-08 Tom Tromey <tromey@adacore.com>
17121 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17122 (ATTR_ALLOC_CHUNK): Remove.
17124 2020-01-08 Tom Tromey <tromey@adacore.com>
17126 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17128 2020-01-08 Tom Tromey <tromey@adacore.com>
17130 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17131 (dwarf2_compute_name, open_dwo_file): Likewise.
17132 (process_enumeration_scope): Use std::vector.
17133 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17134 (partial_die_info::fixup, dwarf2_start_subfile)
17135 (guess_full_die_structure_name, dwarf2_name): Likewise.
17136 (determine_prefix): Update.
17137 (guess_full_die_structure_name): Make return type const.
17138 (partial_die_full_name): Return unique_xmalloc_ptr.
17139 (DW_FIELD_ALLOC_CHUNK): Remove.
17141 2020-01-07 Tom Tromey <tromey@adacore.com>
17144 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17146 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17148 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17150 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17152 * stack.c (print_frame_info): Move disassemble_next_line code
17153 inside source_print block.
17155 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17157 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17158 gdb/signals.h, as we are now using native signal symbols.
17160 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17162 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17163 overflow by an early check of content vs threshold.
17164 * tui/tui-source.c (tui_source_window::line_is_displayed):
17167 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17169 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17171 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17173 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17174 export table if no section contains it's RVA.
17176 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17178 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17180 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17182 * source.c (print_source_lines_base): Set last_line_listed.
17184 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17186 * tui/tui-disasm.c: Remove trailing spaces.
17188 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17189 Pedro Alves <palves@redhat.com>
17191 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17192 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17193 (windows_gdb_signal_to_target): New function, uses the above
17194 enumeration to convert GDB internal signal codes to equivalent
17196 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17197 * windows-nat.c: Include "gdb_wait.h".
17198 (get_windows_debug_event): Extract the fatal exception from the
17199 exit status and convert to the equivalent Posix signal number.
17200 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17201 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17202 * gdbsupport/gdb_wait.c: New file, implements
17203 windows_status_to_termsig.
17204 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17205 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17207 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17209 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17212 2020-01-05 Luis Machado <luis.machado@linaro.org>
17214 * aarch64-linux-nat.c
17215 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17216 and bfd_mach_aarch64.
17218 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17220 * ui-file.c (stdio_file::can_emit_style_escape)
17221 (tee_file::can_emit_style_escape): Ensure style is used also on
17222 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17224 * main.c (set_gdb_data_directory): Use file style to output the
17225 warning that the given pathname is not a directory.
17226 * top.c (show_history_filename, gdb_safe_append_history)
17227 (show_gdb_datadir): Use file style.
17229 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17231 * solib-target.c (struct lm_info_target):
17232 Change offsets to be a unique_xmalloc_ptr.
17233 (solib_target_relocate_section_addresses): Update.
17235 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17237 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17239 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17241 * MAINTAINERS (Write After Approval): Add myself.
17243 2020-01-02 Luis Machado <luis.machado@linaro.org>
17245 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17246 Cell BE architecture.
17247 * target.h (struct target_ops) <thread_architecture>: Likewise.
17249 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17251 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17253 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17255 * MAINTAINERS (Write After Approval): Add myself.
17257 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17259 * gdbarch.sh: Update copyright year range of generated files.
17261 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17263 Update copyright year range in all GDB files.
17265 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17267 * copyright.py: Convert to Python 3.
17269 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17271 * copyright.py: Adapt after move of gnulib directory from gdb
17272 directory to toplevel directory.
17274 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17276 * copyright.py (main): Exit if run from the wrong directory.
17278 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17280 * top.c (print_gdb_version): Change copyright year to 2020.
17282 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17284 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17286 For older changes see ChangeLog-2019.
17292 version-control: never