1 2020-12-04 Tom Tromey <tromey@adacore.com>
3 * linespec.c (struct linespec_token): Rename; remove typedef.
4 * guile/scm-block.c (struct block_smob): Remove typedef.
5 (struct block_syms_progress_smob): Likewise.
6 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
7 * guile/scm-symtab.c (symtab_smob): Remove typedef.
8 (struct sal_smob): Remove typedef.
9 * guile/scm-param.c (struct param_smob): Remove typedef.
10 * guile/scm-progspace.c (struct pspace_smob): Rename.
11 * guile/scm-objfile.c (struct objfile_smob): Rename.
12 * guile/scm-iterator.c (struct iterator_smob): Rename.
13 * guile/scm-frame.c (struct frame_smob): Rename.
14 * guile/scm-arch.c (struct arch_smob): Rename.
15 * guile/scm-type.c (struct field_smob): Remove typedef.
16 (struct type_smob): Rename.
17 * guile/scm-cmd.c (struct command_smob): Remove typedef.
18 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
19 * guile/scm-value.c (struct value_smob): Remove typedef.
20 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
21 * guile/guile-internal.h (struct scheme_variable)
22 (struct scheme_function, struct scheme_integer_constant)
23 (struct gdb_smob, struct chained_gdb_smob)
24 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
25 (objfile_smob, pspace_smob, type_smob): Remove typedef.
26 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
27 (struct pretty_printer_worker_smob): Remove typedef.
28 * guile/scm-exception.c (struct exception_smob): Remove typedef.
29 * python/py-block.c (struct block_object): Remove typedef.
30 (block_syms_iterator_object): Update.
32 (block_syms_iterator_object): Remove typedef.
33 * python/py-inferior.c (struct membuf_object): Remove typedef.
34 * python/py-symtab.c (struct symtab_object): Remove typedef.
36 (sal_object): Remove typedef.
38 * python/py-frame.c (frame_object): Remove typedef.
39 * python/py-record-btrace.c (struct btpy_list_object): Remove
41 * python/py-arch.c (struct arch_object): Remove typedef.
42 * python/py-linetable.c (struct linetable_entry_object)
43 (linetable_object, struct ltpy_iterator_object): Remove typedef.
44 * python/py-events.h (eventregistry_object): Remove typedef.
45 (struct events_object): Remove typedef.
46 * python/python-internal.h (gdbpy_breakpoint_object): Remove
48 (thread_object): Remove typedef.
49 * python/py-progspace.c (pspace_object): Remove typedef.
50 * python/py-value.c (struct value_object): Remove typedef.
51 * python/py-record.h (recpy_record_object): Remove typedef.
52 (struct recpy_element_object): Remove typedef.
53 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
54 * python/py-objfile.c (objfile_object): Remove typedef.
55 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
56 * python/py-type.c (type_object): Remove typedef.
57 (typy_iterator_object): Update.
59 (field_object): Remove typedef.
60 (typy_iterator_object): Remove typedef.
61 * python/py-registers.c (register_descriptor_iterator_object):
63 (struct register_descriptor_object)
64 (struct reggroup_iterator_object, struct reggroup_object): Remove
66 * python/py-record.c (recpy_gap_object): Remove typedef.
67 * python/py-symbol.c (symbol_object): Remove typedef.
69 * python/py-event.h (event_object): Remove typedef.
70 * python/py-param.c (parmpy_object): Remove typedef.
71 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
72 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
73 (unwind_info_object, struct cached_frame_info): Likewise.
75 2020-12-04 Tom Tromey <tromey@adacore.com>
77 * value.c (value_internal_function_name): Make return type const.
78 * value.h (value_internal_function_name): Make return type const.
80 2020-12-04 Luis Machado <luis.machado@linaro.org>
82 * aarch64-tdep.c (submask, bit, bits): Remove.
83 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
84 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
85 (aarch64_decode_cb, aarch64_decode_tb)
86 (aarch64_decode_ldr_literal): Use sbits to extract a signed
88 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
90 2020-12-04 Tom de Vries <tdevries@suse.de>
93 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
95 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
98 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
99 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
101 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
103 * arch/riscv.c: Include 'rv32e-xregs.c'.
104 (riscv_create_target_description): Update to handle rv32e.
105 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
107 <operator==>: Update to account for new field.
109 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
110 * features/riscv/rv32e-xregs.c: Generated.
111 * features/riscv/rv32e-xregs.xml: New file.
112 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
114 (riscv_debug_infcall): Likewise.
115 (riscv_debug_unwinder): Likewise.
116 (riscv_debug_gdbarch): Likewise.
117 (enum riscv_register_required_status): Delete.
118 (struct riscv_register_feature): Add constructor, delete default
119 constructor, copy, and assign constructors.
120 (struct riscv_register_feature::register_info) <required>: Delete.
121 <check>: Update comment and arguments.
122 (struct riscv_register_feature) <name>: Change to member function.
123 <prefer_first_name>: Delete.
124 <tdesc_feature>: New member function.
125 <registers>: Rename to...
126 <m_registers>: ...this.
127 <m_feature_name>: New member variable.
128 (riscv_register_feature::register_info::check): Update arguments.
129 (riscv_xreg_feature): Rewrite as class, create a single static
130 instance of the class.
131 (riscv_freg_feature): Likewise.
132 (riscv_virtual_feature): Likewise.
133 (riscv_csr_feature): Likewise.
134 (riscv_create_csr_aliases): Has become a member function inside
135 riscv_csr_feature class.
136 (riscv_abi_embedded): New function definition.
137 (riscv_register_name): Adjust to use new feature objects.
138 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
139 and adjust available argument registers.
140 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
141 (riscv_check_tdesc_feature): Delete.
142 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
143 (riscv_gdbarch_init): Delete target description checking code, and
144 instead call to the new feature objects to perform the checks.
145 Reorder handling of no abi information case, allows small code
147 (_initialize_riscv_tdep): Remove call, this is now done in the
148 riscv_csr_feature constructor.
149 * riscv-tdep.h (riscv_abi_embedded): Declare.
151 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
153 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
156 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
158 * riscv-tdep.c (riscv_is_unknown_csr): New function,
159 implementation moved from riscv_register_reggroup_p.
160 (riscv_register_reggroup_p): Update group handling for unknown
163 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
165 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
166 (dwarf2_get_dwz_file): Convert 'filename' to a
167 std::string. Use dwz_search_other_debugdirs to search for DWZ
168 files in the debug-file-directories provided by the user as well.
170 2020-12-01 Tom Tromey <tom@tromey.com>
172 * parse.c (expr_builder::expr_builder): Initialize expout.
173 (expr_builder::release): Use expression::resize.
174 (expression::expression, expression::~expression)
175 (expression::resize): New methods.
176 (write_exp_elt): Use expression::resize.
177 (prefixify_expression): Update.
178 (increase_expout_size): Use expression::resize.
179 * expression.h (struct expression): Add constructor, destructor.
180 <resize>: New method.
181 (expression_up): Change type.
183 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
184 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
185 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
188 2020-11-30 Tom de Vries <tdevries@suse.de>
191 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
192 is_reference parameter.
193 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
195 2020-11-30 Tom Tromey <tom@tromey.com>
197 * rust-lang.c (rust_op_name): Remove.
198 (exp_descriptor_rust): Update.
199 * parser-defs.h (op_name_standard): Don't declare.
200 (struct exp_descriptor) <op_name>: Remove.
201 * parse.c (exp_descriptor_standard): Update.
202 * opencl-lang.c (exp_descriptor_opencl): Update.
203 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
204 * f-lang.c (op_name_f): Remove.
205 (f_language::exp_descriptor_tab): Update.
206 * expression.h (op_name): Update.
207 * expprint.c (op_name): Rewrite.
208 (op_name_standard): Remove.
209 (dump_raw_expression, dump_subexp): Update.
210 * c-lang.c (exp_descriptor_c): Update.
211 * ax-gdb.c (gen_expr): Update.
212 * ada-lang.c (ada_op_name): Remove.
213 (ada_exp_descriptor): Update.
215 2020-11-30 Tom Tromey <tom@tromey.com>
217 * eval.c (init_array_element): Remove.
218 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
220 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
223 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
224 static locator win info.
226 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
228 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
231 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
233 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
234 is always initialized.
236 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
237 * MAINTAINERS (Write After Approval): Add myself.
239 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
241 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
242 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
244 2020-11-25 Tom Tromey <tom@tromey.com>
246 * eval.c (evaluate_subexp_standard): Remove unnecessary
249 2020-11-25 Tom Tromey <tom@tromey.com>
251 * d-lang.c: Include parser-defs.h.
252 * rust-lang.c: Include parser-defs.h.
253 * c-lang.h: Do not include parser-defs.h.
255 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
257 * regcache.h (struct cached_reg): Remove typedef.
259 2020-11-24 Joel Brobecker <brobecker@adacore.com>
261 * README: Fix the URL of the MPFR library.
263 2020-11-24 Joel Brobecker <brobecker@adacore.com>
265 * README: Document the --with-libgmp-prefix configure option.
267 2020-11-24 Joel Brobecker <brobecker@adacore.com>
269 * NEWS: Add entry documenting support for DWARF-based fixed
272 2020-11-24 Joel Brobecker <brobecker@adacore.com>
274 * NEWS: Document that building GDB now requires GMP.
276 2020-11-24 Joel Brobecker <brobecker@adacore.com>
278 * typeprint.c (print_type_scalar): Add handling of
279 TYPE_CODE_FIXED_POINT.
281 2020-11-24 Joel Brobecker <brobecker@adacore.com>
283 * valarith.c (fixed_point_binop): Replace the
284 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
287 2020-11-24 Joel Brobecker <brobecker@adacore.com>
289 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
290 replacing fixed_point_scaling_factor. All callers updated
291 throughout this project.
292 (fixed_point_scaling_factor): Delete declaration.
293 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
294 fixed_point_scaling_factor. Adjust implementation accordingly.
296 2020-11-24 Joel Brobecker <brobecker@adacore.com>
298 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
299 replacing the fixed_point_type_base_type function. All callers
300 updated throughout this project.
301 (fixed_point_type_base_type): Remove declaration.
302 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
303 fixed_point_type_base_type. Adjust implementation accordingly.
305 2020-11-24 Joel Brobecker <brobecker@adacore.com>
307 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
309 (INIT_FIXED_POINT_SPECIFIC): Adjust.
310 (TYPE_FIXED_POINT_INFO): Delete macro.
311 (allocate_fixed_point_type_info): Change return type to void.
312 * gdbtypes.c (copy_type_recursive): Replace the use of
313 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
314 (fixed_point_scaling_factor): Likewise.
315 (allocate_fixed_point_type_info): Change return type to void.
316 Adjust implementation accordingly.
317 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
318 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
320 2020-11-24 Joel Brobecker <brobecker@adacore.com>
322 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
323 into one single gdb::array_view parameter.
324 (gdb_mpz::write): Likewise.
325 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
326 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
327 into one single gdb::array_view parameter.
328 Adjust implementation accordingly.
329 (gdb_mpz::write): Likewise.
330 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
331 * unittests/gmp-utils-selftests.c: Adapt following changes above.
332 * valarith.c, valops.c, valprint.c, value.c: Likewise.
334 2020-11-24 Joel Brobecker <brobecker@adacore.com>
336 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
337 Change return type to std::string. Update all callers.
338 * gmp-utils.c (gmp_string_printf): Likewise.
340 2020-11-24 Joel Brobecker <brobecker@adacore.com>
342 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
343 instead of mpq_set_ui to initialize our GMP rational.
345 2020-11-23 Tom de Vries <tdevries@suse.de>
347 * debuginfod-support.c (debuginfod_source_query)
348 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
350 2020-11-21 Tom Tromey <tom@tromey.com>
352 * breakpoint.c (watchpoint_exp_is_const): Return bool.
354 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
356 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
358 (gdb_mpz_write_all_from_small): Likewise.
360 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
362 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
365 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
367 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
368 ctf_arc_open_by_name.
370 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
372 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
373 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
375 2020-11-20 Pedro Alves <pedro@palves.net>
377 * language.c (language_arch_info::lookup_primitive_type): Use
378 gdb::function_view instead of gdb::function.
379 (template language_lookup_primitive_type): Rename to ...
380 (language_lookup_primitive_type_1): ... this, and make static.
381 (language_lookup_primitive_type(const struct language_defn *,
382 struct gdbarch *, const char *): Make non-template.
383 (language_lookup_primitive_type(const struct language_defn *,
384 struct gdbarch *, std::function<bool (struct type *)>): Make
385 non-template and use gdb::function_view.
386 * language.h (language_arch_info::lookup_primitive_type): Use
387 gdb::function_view instead of std::function.
388 (language_lookup_primitive_type): No longer template.
389 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
390 lambda instead of a std::function.
392 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
395 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
398 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
400 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
402 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
404 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
405 in `loop_cb` parameter.
406 * gdbarch.c: Re-generate.
407 * gdbarch.h: Re-generate.
408 * arch-utils.c (default_read_core_file_mappings): Remove `other`
410 * arch-utils.h (default_read_core_file_mappings): Likewise.
411 * corelow.c (core_target::build_file_mappings): Likewise.
412 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
413 (linux_core_info_proc_mappings): Likewise.
415 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
417 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
418 * NEWS: Mention new options.
419 * f-array-walker.h: New file.
420 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
421 (repack_array_slices): New static global.
422 (show_repack_array_slices): New function.
423 (fortran_array_slicing_debug): New static global.
424 (show_fortran_array_slicing_debug): New function.
425 (value_f90_subarray): Delete.
426 (skip_undetermined_arglist): Delete.
427 (class fortran_array_repacker_base_impl): New class.
428 (class fortran_lazy_array_repacker_impl): New class.
429 (class fortran_array_repacker_impl): New class.
430 (fortran_value_subarray): Complete rewrite.
431 (set_fortran_list): New static global.
432 (show_fortran_list): Likewise.
433 (_initialize_f_language): Register new commands.
434 (fortran_adjust_dynamic_array_base_address_hack): New function.
435 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
437 * f-valprint.c: Include 'f-array-walker.h'.
438 (class fortran_array_printer_impl): New class.
439 (f77_print_array_1): Delete.
440 (f77_print_array): Delete.
441 (fortran_print_array): New.
442 (f_value_print_inner): Update to call fortran_print_array.
443 * gdbtypes.c: Include 'f-lang.h'.
444 (resolve_dynamic_type_internal): Call
445 fortran_adjust_dynamic_array_base_address_hack.
447 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
449 * breakpoint.c (struct watch_options): New struct.
450 (watch_option_defs): New static global.
451 (make_watch_options_def_group): New function.
452 (watch_maybe_just_location): Convert option parsing.
453 (watch_command_completer): New function.
454 (_initialize_breakpoint): Build help text using options mechanism.
456 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
458 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
459 (watch_command_1): Update parameter types. Convert locals to
461 (watch_command_wrapper): Change parameter type.
462 (watch_maybe_just_location): Change locals to bool.
463 (rwatch_command_wrapper): Update parameter type.
464 (awatch_command_wrapper): Update parameter type.
465 * breakpoint.h (watch_command_wrapper): Change parameter type.
466 (rwatch_command_wrapper): Update parameter type.
467 (awatch_command_wrapper): Update parameter type.
468 * eval.c (fetch_subexp_value): Change parameter type.
469 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
471 * value.h (fetch_subexp_value): Change parameter type in
474 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
476 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
479 2020-11-18 Keith Seitz <keiths@redhat.com>
481 * linux-tdep.c (dump_note_entry_p): Return true instead of
484 2020-11-18 Tom de Vries <tdevries@suse.de>
486 * debuginfod-support.c (debuginfod_source_query)
487 (debuginfod_debuginfo_query): Also do early exit if
488 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
490 2020-11-18 Tom de Vries <tdevries@suse.de>
492 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
495 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
497 * gdbtypes.h (get_array_bounds): Return bool, adjust some
498 callers. Move doc here.
499 * gdbtypes.c (get_array_bounds): Return bool
501 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
503 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
505 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
506 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
509 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
511 * printcmd.c: Include 'safe-ctype.c'.
512 (skip_over_slash_fmt): New function.
513 (print_command_completer): Call skip_over_slash_fmt.
514 (display_and_x_command_completer): New function.
515 (_initialize_printcmd): Add command completion for 'x' and
518 2020-11-16 Pedro Alves <pedro@palves.net>
520 * frame.c (get_prev_frame): Move get_frame_id call from here ...
521 (get_prev_frame_always_1): ... to here.
522 * inline-frame.c (inline_frame_this_id): Mention
523 get_prev_frame_always_1 in comment.
525 2020-11-15 Joel Brobecker <brobecker@adacore.com>
527 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
529 (value_less): Add fixed-point handling.
531 2020-11-15 Joel Brobecker <brobecker@adacore.com>
533 * eval.c (binop_promote): Add fixed-point type handling.
534 * valarith.c (fixed_point_binop): New function.
535 (scalar_binop): Add fixed-point type handling.
536 (value_neg): Add fixed-point type handling.
537 * valops.c (value_cast_to_fixed_point): New function.
538 (value_cast): Add fixed-point type handling.
540 2020-11-15 Joel Brobecker <brobecker@adacore.com>
542 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
544 * c-typeprint.c (c_type_print_varspec_prefix)
545 (c_type_print_varspec_suffix, c_type_print_base_1): Add
546 TYPE_CODE_FIXED_POINT handling.
547 * p-typeprint.c (pascal_type_print_varspec_prefix)
548 (pascal_type_print_varspec_suffix): Likewise.
549 * typeprint.c (print_type_fixed_point): New function.
550 * typeprint.h (print_type_fixed_point): Add declaration.
552 2020-11-15 Joel Brobecker <brobecker@adacore.com>
554 * printcmd.c (print_scalar_formatted): Add fixed-point type
555 handling when options->format is set.
557 2020-11-15 Joel Brobecker <brobecker@adacore.com>
559 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
560 * dwarf2/read.c (get_dwarf2_rational_constant)
561 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
562 (has_zero_over_zero_small_attribute): New functions.
563 read_base_type, set_die_type): Add fixed-point type handling.
564 * gdb-gdb.py.in: Add fixed-point type handling.
565 * gdbtypes.c: #include "gmp-utils.h".
566 (create_range_type, set_type_code): Add fixed-point type handling.
567 (init_fixed_point_type): New function.
568 (is_integral_type, is_scalar_type): Add fixed-point type handling.
569 (print_fixed_point_type_info): New function.
570 (recursive_dump_type, copy_type_recursive): Add fixed-point type
572 (fixed_point_type_storage): New typedef.
573 (fixed_point_objfile_key): New static global.
574 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
575 (fixed_point_type_base_type, fixed_point_scaling_factor): New
577 * gdbtypes.h: #include "gmp-utils.h".
578 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
579 (union type_specific) <fixed_point_info>: New field.
580 (struct fixed_point_type_info): New struct.
581 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
582 (init_fixed_point_type, is_fixed_point_type)
583 (fixed_point_type_base_type, fixed_point_scaling_factor)
584 (allocate_fixed_point_type_info): Add declarations.
585 * valprint.c (generic_val_print_fixed_point): New function.
586 (generic_value_print): Add fixed-point type handling.
587 * value.c (value_as_address, unpack_long): Add fixed-point type
590 2020-11-15 Joel Brobecker <brobecker@adacore.com>
592 * utils.h (uinteger_pow): Add declaration.
593 * utils.c (uinteger_pow): Moved here (without changes)...
594 * valarith.c (uinteger_pow): ... from here.
596 2020-11-15 Joel Brobecker <brobecker@adacore.com>
598 * gmp-utils.h, gmp-utils.c: New file.
599 * unittests/gmp-utils-selftests.c: New file.
600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
601 unittests/gmp-utils-selftests.c.
602 (COMMON_SFILES) Add gmp-utils.c.
603 (HFILES_NO_SRCDIR): Add gmp-utils.h.
605 2020-11-15 Joel Brobecker <brobecker@adacore.com>
607 * configure.ac: Generate an error if a usable GMP library
609 * configure: Regenerate.
611 2020-11-15 Joel Brobecker <brobecker@adacore.com>
613 * configure.ac: Add support for --with-libgmp-prefix.
614 * Makefile.in (LIBGMP): New variable.
615 (CLIBS): Include $(LIBGMP).
616 * configure, config.in: Regenerate
618 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
621 * f-exp.y (COMPLETE): New token.
622 (exp): Two new rules for tab-completion.
623 (saw_name_at_eof): New static global.
624 (last_was_structop): Likewise.
625 (yylex): Set new variables, and return COMPLETE token at the end
626 of the input stream in some cases.
628 2020-11-14 Tom Tromey <tom@tromey.com>
630 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
632 2020-11-14 Tom Tromey <tom@tromey.com>
634 * opencl-lang.c (opencl_component_ref): Make "comps" const.
636 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
638 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
640 2020-11-13 Tom Tromey <tom@tromey.com>
642 * c-lang.c (convert_ucn, convert_octal, convert_hex)
643 (convert_escape, parse_one_string): Constify.
645 2020-11-13 Keith Seitz <keiths@redhat.com>
647 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
648 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
649 outside of ELF segments" warning for debugin
651 2020-11-13 Keith Seitz <keiths@redhat.com>
654 * elfread.c (elf_symfile_segments): Output a BFD file name
655 for the "Loadable section ... outside of ELF segments" warning.
657 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
660 * arm-tdep.c (class arm_instruction_reader): New.
661 (target_arm_instruction_reader): New.
662 (arm_analyze_prologue): Add instruction reader parameter and use
663 it. Use arm_expand_immediate.
664 (class target_arm_instruction_reader): Adjust.
665 (arm_skip_prologue): Adjust.
666 (arm_expand_immediate): New.
667 (arm_scan_prologue): Adjust.
668 (arm_analyze_prologue_test): New.
669 (class test_arm_instruction_reader): New.
671 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
673 * f-lang.c (fortran_argument_convert): Add declaration. Add
674 header comment, taken from f-lang.h. Make static.
675 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
676 (fortran_argument_convert): Delete declaration.
678 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
680 * ada-exp.y (find_primitive_type): Make parameter const.
681 * ada-lang.c (enum ada_primitive_types): Delete.
682 (ada_language::language_arch_info): Update.
683 * c-lang.c (enum c_primitive_types): Delete.
684 (c_language_arch_info): Update.
685 (enum cplus_primitive_types): Delete.
686 (cplus_language::language_arch_info): Update.
687 * d-lang.c (enum d_primitive_types): Delete.
688 (d_language::language_arch_info): Update.
689 * f-lang.c (enum f_primitive_types): Delete.
690 (f_language::language_arch_info): Update.
691 * go-lang.c (enum go_primitive_types): Delete.
692 (go_language::language_arch_info): Update.
693 * language.c (auto_or_unknown_language::language_arch_info):
695 (language_gdbarch_post_init): Use obstack_new, use array indexing.
696 (language_string_char_type): Add header comment, call function in
698 (language_bool_type): Likewise
699 (language_arch_info::bool_type): Define.
700 (language_lookup_primitive_type_1): Delete.
701 (language_lookup_primitive_type): Rewrite as a templated function
702 to call function in language_arch_info, then instantiate twice.
703 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
704 (language_arch_info::lookup_primitive_type_and_symbol): Define.
705 (language_arch_info::lookup_primitive_type): Define twice with
706 different signatures.
707 (language_arch_info::lookup_primitive_type_as_symbol): Define.
708 (language_lookup_primitive_type_as_symbol): Rewrite to call a
709 member function in language_arch_info.
710 * language.h (language_arch_info): Complete rewrite.
711 (language_lookup_primitive_type): Make templated.
712 * m2-lang.c (enum m2_primitive_types): Delete.
713 (m2_language::language_arch_info): Update.
714 * opencl-lang.c (OCL_P_TYPE): Delete.
715 (enum opencl_primitive_types): Delete.
716 (opencl_type_data): Delete.
717 (builtin_opencl_type): Delete.
718 (lookup_opencl_vector_type): Update.
719 (opencl_language::language_arch_info): Update, lots of content
721 (build_opencl_types): ...here. This function is now deleted.
722 (_initialize_opencl_language): Delete.
723 * p-lang.c (enum pascal_primitive_types): Delete.
724 (pascal_language::language_arch_info): Update.
725 * rust-lang.c (enum rust_primitive_types): Delete.
726 (rust_language::language_arch_info): Update.
728 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
730 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
733 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
735 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
738 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
740 * dwarf2/read.c (dwarf_read_debug_printf,
741 dwarf_read_debug_printf_v): New macros, use throughout the file.
743 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
746 * arc-linux-tdep.c (collect_register): Populate "eret" by
747 "pc" value from the regcache when asked for "pc" value.
749 2020-11-12 Tom Tromey <tom@tromey.com>
752 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
755 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
757 * features/Makefile (XMLTOC): Add rx.xml.
758 (FEATURE_XMLFILES): Remove rx.xml.
759 (FEATURE_CFILES rule): Pass '-single-feature' flag.
760 * features/rx.c: Regenerate.
761 * features/rx.xml: Wrap in `target` tags, and reindent.
762 * target-descriptions.c (struct maint_print_c_tdesc_options): New
764 (maint_print_c_tdesc_opt_def): New typedef.
765 (maint_print_c_tdesc_opt_defs): New static global.
766 (make_maint_print_c_tdesc_options_def_group): New function.
767 (maint_print_c_tdesc_cmd): Make use of command line flags, only
768 print single feature C file for target descriptions containing a
770 (maint_print_c_tdesc_cmd_completer): New function.
771 (_initialize_target_descriptions): Update call to register command
772 completer, and include command line flag in help text.
774 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
776 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
778 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
781 2020-11-10 Tom Tromey <tom@tromey.com>
783 * value.h (internalvar_name): Update.
784 * value.c (internalvar_name): Make return type const.
786 2020-11-10 Tom Tromey <tom@tromey.com>
788 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
789 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
792 2020-11-10 Tom Tromey <tom@tromey.com>
794 * objc-lang.h (value_nsstring): Update.
795 * objc-lang.c (value_nsstring): Make "ptr" const.
797 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
799 * expprint.c (print_subexp_funcall): Increment expression position
800 after reading argument count.
801 * f-lang.c (print_subexp_f): Skip over opcode before calling
803 (dump_subexp_body_f): Likewise.
805 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
808 * configure: Regenerate.
809 * configure.ac: Check for python modules ctypes instead of
812 2020-11-06 Pedro Alves <pedro@palves.net>
814 * macroexp.c (struct macro_buffer): Split in two classes. Add
816 (struct shared_macro_buffer): New, factored out from struct
818 (struct growable_macro_buffer): New, factored out from struct
820 (set_token, get_comment, get_identifier, get_pp_number)
821 (get_character_constant, get_string_literal, get_punctuator)
822 (get_next_token_for_substitution): Constify parameters.
823 (substitute_args): Constify locals.
825 2020-11-05 Tom Tromey <tom@tromey.com>
827 * dwarf2/read.c (read_cutu_die_from_dwo)
828 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
829 (build_type_psymtabs_1): Update.
830 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
832 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
833 Don't read section. Add assert.
835 2020-11-04 Tom Tromey <tromey@adacore.com>
837 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
839 2020-11-04 Tom Tromey <tromey@adacore.com>
841 * ada-typeprint.c (ada_print_type): Handle __T types.
843 2020-11-04 Tom Tromey <tromey@adacore.com>
845 * dwarf2/read.c (add_partial_symbol, process_die):
846 Handle DW_TAG_array_type.
847 (is_type_tag_for_partial): Add "lang" parameter.
848 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
850 2020-11-04 Tom Tromey <tromey@adacore.com>
852 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
854 2020-11-04 Tom Tromey <tromey@adacore.com>
856 * dwarf2/read.c (read_array_type): Only apply stride to innermost
859 2020-11-04 Tom Tromey <tromey@adacore.com>
861 * gdbtypes.c (update_static_array_size): Handle bit stride.
863 2020-11-04 Tom Tromey <tromey@adacore.com>
865 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
867 2020-11-04 Tom Tromey <tromey@adacore.com>
869 * ada-lang.c (ada_is_any_packed_array_type): New function.
870 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
872 2020-11-04 Tom Tromey <tromey@adacore.com>
874 * dwarf2/read.c (recognize_bound_expression)
875 (quirk_ada_thick_pointer): New functions.
876 (read_array_type): Call quirk_ada_thick_pointer.
877 (set_die_type): Add "skip_data_location" parameter.
878 (quirk_ada_thick_pointer): New function.
879 (process_structure_scope): Call quirk_ada_thick_pointer.
880 * ada-lang.c (ada_is_unconstrained_packed_array_type)
881 (decode_packed_array_bitsize): Handle thick pointers without
883 (ada_is_gnat_encoded_packed_array_type): Rename from
884 ada_is_packed_array_type.
885 (ada_is_constrained_packed_array_type): Update.
886 * ada-valprint.c (ada_val_print_gnat_array): Remove.
887 (ada_value_print_1): Use ada_get_decoded_value.
889 2020-11-04 Tom Tromey <tromey@adacore.com>
891 * ada-lang.c (recursively_update_array_bitsize): New function.
892 (decode_constrained_packed_array_type): Call it.
894 2020-11-04 Tom Tromey <tromey@adacore.com>
896 * ada-lang.c (to_fixed_array_type): Error if
897 decode_constrained_packed_array_type returns NULL.
899 2020-11-04 Tom Tromey <tromey@adacore.com>
901 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
903 2020-11-02 Tom Tromey <tromey@adacore.com>
905 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
906 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
907 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
908 * amd64-ravenscar-thread.c: New file.
909 * amd64-ravenscar-thread.h: New file.
910 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
911 * configure.tgt (amd64_tobjs): Add ravenscar objects.
913 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
915 * main.c (execute_cmdargs): New function.
916 (captured_main_1): Make use of execute_cmdargs.
918 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
920 * NEWS: Mention changes to config file search path.
923 2020-11-02 Tom Tromey <tromey@adacore.com>
925 * python/python.c: Consolidate two HAVE_PYTHON blocks.
926 (python_GdbModuleDef): Move earlier. Now static.
927 (do_start_initialization): Consolidate some IS_PY3K blocks.
929 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
931 * aarch64-linux-tdep.c: Fix indentation.
932 * aarch64-ravenscar-thread.c: Fix indentation.
933 * aarch64-tdep.c: Fix indentation.
934 * aarch64-tdep.h: Fix indentation.
935 * ada-lang.c: Fix indentation.
936 * ada-lang.h: Fix indentation.
937 * ada-tasks.c: Fix indentation.
938 * ada-typeprint.c: Fix indentation.
939 * ada-valprint.c: Fix indentation.
940 * ada-varobj.c: Fix indentation.
941 * addrmap.c: Fix indentation.
942 * addrmap.h: Fix indentation.
943 * agent.c: Fix indentation.
944 * aix-thread.c: Fix indentation.
945 * alpha-bsd-nat.c: Fix indentation.
946 * alpha-linux-tdep.c: Fix indentation.
947 * alpha-mdebug-tdep.c: Fix indentation.
948 * alpha-nbsd-tdep.c: Fix indentation.
949 * alpha-obsd-tdep.c: Fix indentation.
950 * alpha-tdep.c: Fix indentation.
951 * amd64-bsd-nat.c: Fix indentation.
952 * amd64-darwin-tdep.c: Fix indentation.
953 * amd64-linux-nat.c: Fix indentation.
954 * amd64-linux-tdep.c: Fix indentation.
955 * amd64-nat.c: Fix indentation.
956 * amd64-obsd-tdep.c: Fix indentation.
957 * amd64-tdep.c: Fix indentation.
958 * amd64-windows-tdep.c: Fix indentation.
959 * annotate.c: Fix indentation.
960 * arc-tdep.c: Fix indentation.
961 * arch-utils.c: Fix indentation.
962 * arch/arm-get-next-pcs.c: Fix indentation.
963 * arch/arm.c: Fix indentation.
964 * arm-linux-nat.c: Fix indentation.
965 * arm-linux-tdep.c: Fix indentation.
966 * arm-nbsd-tdep.c: Fix indentation.
967 * arm-pikeos-tdep.c: Fix indentation.
968 * arm-tdep.c: Fix indentation.
969 * arm-tdep.h: Fix indentation.
970 * arm-wince-tdep.c: Fix indentation.
971 * auto-load.c: Fix indentation.
972 * auxv.c: Fix indentation.
973 * avr-tdep.c: Fix indentation.
974 * ax-gdb.c: Fix indentation.
975 * ax-general.c: Fix indentation.
976 * bfin-linux-tdep.c: Fix indentation.
977 * block.c: Fix indentation.
978 * block.h: Fix indentation.
979 * blockframe.c: Fix indentation.
980 * bpf-tdep.c: Fix indentation.
981 * break-catch-sig.c: Fix indentation.
982 * break-catch-syscall.c: Fix indentation.
983 * break-catch-throw.c: Fix indentation.
984 * breakpoint.c: Fix indentation.
985 * breakpoint.h: Fix indentation.
986 * bsd-uthread.c: Fix indentation.
987 * btrace.c: Fix indentation.
988 * build-id.c: Fix indentation.
989 * buildsym-legacy.h: Fix indentation.
990 * buildsym.c: Fix indentation.
991 * c-typeprint.c: Fix indentation.
992 * c-valprint.c: Fix indentation.
993 * c-varobj.c: Fix indentation.
994 * charset.c: Fix indentation.
995 * cli/cli-cmds.c: Fix indentation.
996 * cli/cli-decode.c: Fix indentation.
997 * cli/cli-decode.h: Fix indentation.
998 * cli/cli-script.c: Fix indentation.
999 * cli/cli-setshow.c: Fix indentation.
1000 * coff-pe-read.c: Fix indentation.
1001 * coffread.c: Fix indentation.
1002 * compile/compile-cplus-types.c: Fix indentation.
1003 * compile/compile-object-load.c: Fix indentation.
1004 * compile/compile-object-run.c: Fix indentation.
1005 * completer.c: Fix indentation.
1006 * corefile.c: Fix indentation.
1007 * corelow.c: Fix indentation.
1008 * cp-abi.h: Fix indentation.
1009 * cp-namespace.c: Fix indentation.
1010 * cp-support.c: Fix indentation.
1011 * cp-valprint.c: Fix indentation.
1012 * cris-linux-tdep.c: Fix indentation.
1013 * cris-tdep.c: Fix indentation.
1014 * darwin-nat-info.c: Fix indentation.
1015 * darwin-nat.c: Fix indentation.
1016 * darwin-nat.h: Fix indentation.
1017 * dbxread.c: Fix indentation.
1018 * dcache.c: Fix indentation.
1019 * disasm.c: Fix indentation.
1020 * dtrace-probe.c: Fix indentation.
1021 * dwarf2/abbrev.c: Fix indentation.
1022 * dwarf2/attribute.c: Fix indentation.
1023 * dwarf2/expr.c: Fix indentation.
1024 * dwarf2/frame.c: Fix indentation.
1025 * dwarf2/index-cache.c: Fix indentation.
1026 * dwarf2/index-write.c: Fix indentation.
1027 * dwarf2/line-header.c: Fix indentation.
1028 * dwarf2/loc.c: Fix indentation.
1029 * dwarf2/macro.c: Fix indentation.
1030 * dwarf2/read.c: Fix indentation.
1031 * dwarf2/read.h: Fix indentation.
1032 * elfread.c: Fix indentation.
1033 * eval.c: Fix indentation.
1034 * event-top.c: Fix indentation.
1035 * exec.c: Fix indentation.
1036 * exec.h: Fix indentation.
1037 * expprint.c: Fix indentation.
1038 * f-lang.c: Fix indentation.
1039 * f-typeprint.c: Fix indentation.
1040 * f-valprint.c: Fix indentation.
1041 * fbsd-nat.c: Fix indentation.
1042 * fbsd-tdep.c: Fix indentation.
1043 * findvar.c: Fix indentation.
1044 * fork-child.c: Fix indentation.
1045 * frame-unwind.c: Fix indentation.
1046 * frame-unwind.h: Fix indentation.
1047 * frame.c: Fix indentation.
1048 * frv-linux-tdep.c: Fix indentation.
1049 * frv-tdep.c: Fix indentation.
1050 * frv-tdep.h: Fix indentation.
1051 * ft32-tdep.c: Fix indentation.
1052 * gcore.c: Fix indentation.
1053 * gdb_bfd.c: Fix indentation.
1054 * gdbarch.sh: Fix indentation.
1055 * gdbarch.c: Re-generate
1056 * gdbarch.h: Re-generate.
1057 * gdbcore.h: Fix indentation.
1058 * gdbthread.h: Fix indentation.
1059 * gdbtypes.c: Fix indentation.
1060 * gdbtypes.h: Fix indentation.
1061 * glibc-tdep.c: Fix indentation.
1062 * gnu-nat.c: Fix indentation.
1063 * gnu-nat.h: Fix indentation.
1064 * gnu-v2-abi.c: Fix indentation.
1065 * gnu-v3-abi.c: Fix indentation.
1066 * go32-nat.c: Fix indentation.
1067 * guile/guile-internal.h: Fix indentation.
1068 * guile/scm-cmd.c: Fix indentation.
1069 * guile/scm-frame.c: Fix indentation.
1070 * guile/scm-iterator.c: Fix indentation.
1071 * guile/scm-math.c: Fix indentation.
1072 * guile/scm-ports.c: Fix indentation.
1073 * guile/scm-pretty-print.c: Fix indentation.
1074 * guile/scm-value.c: Fix indentation.
1075 * h8300-tdep.c: Fix indentation.
1076 * hppa-linux-nat.c: Fix indentation.
1077 * hppa-linux-tdep.c: Fix indentation.
1078 * hppa-nbsd-nat.c: Fix indentation.
1079 * hppa-nbsd-tdep.c: Fix indentation.
1080 * hppa-obsd-nat.c: Fix indentation.
1081 * hppa-tdep.c: Fix indentation.
1082 * hppa-tdep.h: Fix indentation.
1083 * i386-bsd-nat.c: Fix indentation.
1084 * i386-darwin-nat.c: Fix indentation.
1085 * i386-darwin-tdep.c: Fix indentation.
1086 * i386-dicos-tdep.c: Fix indentation.
1087 * i386-gnu-nat.c: Fix indentation.
1088 * i386-linux-nat.c: Fix indentation.
1089 * i386-linux-tdep.c: Fix indentation.
1090 * i386-nto-tdep.c: Fix indentation.
1091 * i386-obsd-tdep.c: Fix indentation.
1092 * i386-sol2-nat.c: Fix indentation.
1093 * i386-tdep.c: Fix indentation.
1094 * i386-tdep.h: Fix indentation.
1095 * i386-windows-tdep.c: Fix indentation.
1096 * i387-tdep.c: Fix indentation.
1097 * i387-tdep.h: Fix indentation.
1098 * ia64-libunwind-tdep.c: Fix indentation.
1099 * ia64-libunwind-tdep.h: Fix indentation.
1100 * ia64-linux-nat.c: Fix indentation.
1101 * ia64-linux-tdep.c: Fix indentation.
1102 * ia64-tdep.c: Fix indentation.
1103 * ia64-tdep.h: Fix indentation.
1104 * ia64-vms-tdep.c: Fix indentation.
1105 * infcall.c: Fix indentation.
1106 * infcmd.c: Fix indentation.
1107 * inferior.c: Fix indentation.
1108 * infrun.c: Fix indentation.
1109 * iq2000-tdep.c: Fix indentation.
1110 * language.c: Fix indentation.
1111 * linespec.c: Fix indentation.
1112 * linux-fork.c: Fix indentation.
1113 * linux-nat.c: Fix indentation.
1114 * linux-tdep.c: Fix indentation.
1115 * linux-thread-db.c: Fix indentation.
1116 * lm32-tdep.c: Fix indentation.
1117 * m2-lang.c: Fix indentation.
1118 * m2-typeprint.c: Fix indentation.
1119 * m2-valprint.c: Fix indentation.
1120 * m32c-tdep.c: Fix indentation.
1121 * m32r-linux-tdep.c: Fix indentation.
1122 * m32r-tdep.c: Fix indentation.
1123 * m68hc11-tdep.c: Fix indentation.
1124 * m68k-bsd-nat.c: Fix indentation.
1125 * m68k-linux-nat.c: Fix indentation.
1126 * m68k-linux-tdep.c: Fix indentation.
1127 * m68k-tdep.c: Fix indentation.
1128 * machoread.c: Fix indentation.
1129 * macrocmd.c: Fix indentation.
1130 * macroexp.c: Fix indentation.
1131 * macroscope.c: Fix indentation.
1132 * macrotab.c: Fix indentation.
1133 * macrotab.h: Fix indentation.
1134 * main.c: Fix indentation.
1135 * mdebugread.c: Fix indentation.
1136 * mep-tdep.c: Fix indentation.
1137 * mi/mi-cmd-catch.c: Fix indentation.
1138 * mi/mi-cmd-disas.c: Fix indentation.
1139 * mi/mi-cmd-env.c: Fix indentation.
1140 * mi/mi-cmd-stack.c: Fix indentation.
1141 * mi/mi-cmd-var.c: Fix indentation.
1142 * mi/mi-cmds.c: Fix indentation.
1143 * mi/mi-main.c: Fix indentation.
1144 * mi/mi-parse.c: Fix indentation.
1145 * microblaze-tdep.c: Fix indentation.
1146 * minidebug.c: Fix indentation.
1147 * minsyms.c: Fix indentation.
1148 * mips-linux-nat.c: Fix indentation.
1149 * mips-linux-tdep.c: Fix indentation.
1150 * mips-nbsd-tdep.c: Fix indentation.
1151 * mips-tdep.c: Fix indentation.
1152 * mn10300-linux-tdep.c: Fix indentation.
1153 * mn10300-tdep.c: Fix indentation.
1154 * moxie-tdep.c: Fix indentation.
1155 * msp430-tdep.c: Fix indentation.
1156 * namespace.h: Fix indentation.
1157 * nat/fork-inferior.c: Fix indentation.
1158 * nat/gdb_ptrace.h: Fix indentation.
1159 * nat/linux-namespaces.c: Fix indentation.
1160 * nat/linux-osdata.c: Fix indentation.
1161 * nat/netbsd-nat.c: Fix indentation.
1162 * nat/x86-dregs.c: Fix indentation.
1163 * nbsd-nat.c: Fix indentation.
1164 * nbsd-tdep.c: Fix indentation.
1165 * nios2-linux-tdep.c: Fix indentation.
1166 * nios2-tdep.c: Fix indentation.
1167 * nto-procfs.c: Fix indentation.
1168 * nto-tdep.c: Fix indentation.
1169 * objfiles.c: Fix indentation.
1170 * objfiles.h: Fix indentation.
1171 * opencl-lang.c: Fix indentation.
1172 * or1k-tdep.c: Fix indentation.
1173 * osabi.c: Fix indentation.
1174 * osabi.h: Fix indentation.
1175 * osdata.c: Fix indentation.
1176 * p-lang.c: Fix indentation.
1177 * p-typeprint.c: Fix indentation.
1178 * p-valprint.c: Fix indentation.
1179 * parse.c: Fix indentation.
1180 * ppc-linux-nat.c: Fix indentation.
1181 * ppc-linux-tdep.c: Fix indentation.
1182 * ppc-nbsd-nat.c: Fix indentation.
1183 * ppc-nbsd-tdep.c: Fix indentation.
1184 * ppc-obsd-nat.c: Fix indentation.
1185 * ppc-ravenscar-thread.c: Fix indentation.
1186 * ppc-sysv-tdep.c: Fix indentation.
1187 * ppc64-tdep.c: Fix indentation.
1188 * printcmd.c: Fix indentation.
1189 * proc-api.c: Fix indentation.
1190 * producer.c: Fix indentation.
1191 * producer.h: Fix indentation.
1192 * prologue-value.c: Fix indentation.
1193 * prologue-value.h: Fix indentation.
1194 * psymtab.c: Fix indentation.
1195 * python/py-arch.c: Fix indentation.
1196 * python/py-bpevent.c: Fix indentation.
1197 * python/py-event.c: Fix indentation.
1198 * python/py-event.h: Fix indentation.
1199 * python/py-finishbreakpoint.c: Fix indentation.
1200 * python/py-frame.c: Fix indentation.
1201 * python/py-framefilter.c: Fix indentation.
1202 * python/py-inferior.c: Fix indentation.
1203 * python/py-infthread.c: Fix indentation.
1204 * python/py-objfile.c: Fix indentation.
1205 * python/py-prettyprint.c: Fix indentation.
1206 * python/py-registers.c: Fix indentation.
1207 * python/py-signalevent.c: Fix indentation.
1208 * python/py-stopevent.c: Fix indentation.
1209 * python/py-stopevent.h: Fix indentation.
1210 * python/py-threadevent.c: Fix indentation.
1211 * python/py-tui.c: Fix indentation.
1212 * python/py-unwind.c: Fix indentation.
1213 * python/py-value.c: Fix indentation.
1214 * python/py-xmethods.c: Fix indentation.
1215 * python/python-internal.h: Fix indentation.
1216 * python/python.c: Fix indentation.
1217 * ravenscar-thread.c: Fix indentation.
1218 * record-btrace.c: Fix indentation.
1219 * record-full.c: Fix indentation.
1220 * record.c: Fix indentation.
1221 * reggroups.c: Fix indentation.
1222 * regset.h: Fix indentation.
1223 * remote-fileio.c: Fix indentation.
1224 * remote.c: Fix indentation.
1225 * reverse.c: Fix indentation.
1226 * riscv-linux-tdep.c: Fix indentation.
1227 * riscv-ravenscar-thread.c: Fix indentation.
1228 * riscv-tdep.c: Fix indentation.
1229 * rl78-tdep.c: Fix indentation.
1230 * rs6000-aix-tdep.c: Fix indentation.
1231 * rs6000-lynx178-tdep.c: Fix indentation.
1232 * rs6000-nat.c: Fix indentation.
1233 * rs6000-tdep.c: Fix indentation.
1234 * rust-lang.c: Fix indentation.
1235 * rx-tdep.c: Fix indentation.
1236 * s12z-tdep.c: Fix indentation.
1237 * s390-linux-tdep.c: Fix indentation.
1238 * score-tdep.c: Fix indentation.
1239 * ser-base.c: Fix indentation.
1240 * ser-mingw.c: Fix indentation.
1241 * ser-uds.c: Fix indentation.
1242 * ser-unix.c: Fix indentation.
1243 * serial.c: Fix indentation.
1244 * sh-linux-tdep.c: Fix indentation.
1245 * sh-nbsd-tdep.c: Fix indentation.
1246 * sh-tdep.c: Fix indentation.
1247 * skip.c: Fix indentation.
1248 * sol-thread.c: Fix indentation.
1249 * solib-aix.c: Fix indentation.
1250 * solib-darwin.c: Fix indentation.
1251 * solib-frv.c: Fix indentation.
1252 * solib-svr4.c: Fix indentation.
1253 * solib.c: Fix indentation.
1254 * source.c: Fix indentation.
1255 * sparc-linux-tdep.c: Fix indentation.
1256 * sparc-nbsd-tdep.c: Fix indentation.
1257 * sparc-obsd-tdep.c: Fix indentation.
1258 * sparc-ravenscar-thread.c: Fix indentation.
1259 * sparc-tdep.c: Fix indentation.
1260 * sparc64-linux-tdep.c: Fix indentation.
1261 * sparc64-nbsd-tdep.c: Fix indentation.
1262 * sparc64-obsd-tdep.c: Fix indentation.
1263 * sparc64-tdep.c: Fix indentation.
1264 * stabsread.c: Fix indentation.
1265 * stack.c: Fix indentation.
1266 * stap-probe.c: Fix indentation.
1267 * stubs/ia64vms-stub.c: Fix indentation.
1268 * stubs/m32r-stub.c: Fix indentation.
1269 * stubs/m68k-stub.c: Fix indentation.
1270 * stubs/sh-stub.c: Fix indentation.
1271 * stubs/sparc-stub.c: Fix indentation.
1272 * symfile-mem.c: Fix indentation.
1273 * symfile.c: Fix indentation.
1274 * symfile.h: Fix indentation.
1275 * symmisc.c: Fix indentation.
1276 * symtab.c: Fix indentation.
1277 * symtab.h: Fix indentation.
1278 * target-float.c: Fix indentation.
1279 * target.c: Fix indentation.
1280 * target.h: Fix indentation.
1281 * tic6x-tdep.c: Fix indentation.
1282 * tilegx-linux-tdep.c: Fix indentation.
1283 * tilegx-tdep.c: Fix indentation.
1284 * top.c: Fix indentation.
1285 * tracefile-tfile.c: Fix indentation.
1286 * tracepoint.c: Fix indentation.
1287 * tui/tui-disasm.c: Fix indentation.
1288 * tui/tui-io.c: Fix indentation.
1289 * tui/tui-regs.c: Fix indentation.
1290 * tui/tui-stack.c: Fix indentation.
1291 * tui/tui-win.c: Fix indentation.
1292 * tui/tui-winsource.c: Fix indentation.
1293 * tui/tui.c: Fix indentation.
1294 * typeprint.c: Fix indentation.
1295 * ui-out.h: Fix indentation.
1296 * unittests/copy_bitwise-selftests.c: Fix indentation.
1297 * unittests/memory-map-selftests.c: Fix indentation.
1298 * utils.c: Fix indentation.
1299 * v850-tdep.c: Fix indentation.
1300 * valarith.c: Fix indentation.
1301 * valops.c: Fix indentation.
1302 * valprint.c: Fix indentation.
1303 * valprint.h: Fix indentation.
1304 * value.c: Fix indentation.
1305 * value.h: Fix indentation.
1306 * varobj.c: Fix indentation.
1307 * vax-tdep.c: Fix indentation.
1308 * windows-nat.c: Fix indentation.
1309 * windows-tdep.c: Fix indentation.
1310 * xcoffread.c: Fix indentation.
1311 * xml-syscall.c: Fix indentation.
1312 * xml-tdesc.c: Fix indentation.
1313 * xstormy16-tdep.c: Fix indentation.
1314 * xtensa-config.c: Fix indentation.
1315 * xtensa-linux-nat.c: Fix indentation.
1316 * xtensa-linux-tdep.c: Fix indentation.
1317 * xtensa-tdep.c: Fix indentation.
1319 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1320 Craig Blackmore <craig.blackmore@embecosm.com>
1322 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1323 as an unsigned value.
1325 2020-11-01 Tom Tromey <tom@tromey.com>
1327 * dbxread.c (dbx_end_psymtab): Update.
1328 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1329 (build_type_psymtabs_reader): Update.
1330 * xcoffread.c (xcoff_end_psymtab): Update.
1331 * ctfread.c (scan_partial_symbols): Update.
1332 * psymtab.c (sort_pst_symbols): Remove.
1333 (partial_symtab::end): Rename from end_psymtab_common. Inline
1335 * psympriv.h (struct partial_symtab) <end>: New method.
1336 (end_psymtab_common): Don't declare.
1338 2020-11-01 Tom Tromey <tom@tromey.com>
1340 * symmisc.c (count_psyms): New function.
1341 (print_objfile_statistics): Use it.
1342 * psymtab.c (append_psymbol_to_list): Remove.
1343 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1344 * objfiles.h (struct objstats) <n_psyms>: Remove.
1346 2020-11-01 Tom Tromey <tom@tromey.com>
1348 * dbxread.c (dbx_end_psymtab): Update.
1349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1350 (build_type_psymtabs_reader): Update.
1351 * xcoffread.c (xcoff_end_psymtab): Update.
1352 * ctfread.c (scan_partial_symbols): Update.
1353 * psympriv.h (end_psymtab_common): Update.
1354 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1355 (sort_pst_symbols): Likewise.
1357 2020-11-01 Tom Tromey <tom@tromey.com>
1359 * dbxread.c (dbx_symfile_read): Update.
1360 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1361 * xcoffread.c (xcoff_initial_scan): Update.
1362 * psympriv.h (init_psymbol_list): Don't declare.
1363 * psymtab.c (init_psymbol_list): Remove.
1365 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1367 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1368 gnat_encoded_fixed_type_info. Update all callers.
1370 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1372 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1375 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1377 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1378 cast_from_fixed. Update all callers.
1379 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1381 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1383 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1385 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1386 to print_gnat_encoded_fixed_point_type.
1387 * ada-valprint.c: Likewise.
1389 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1392 (debug_prefixed_printf): Add check of debug_displaced flag.
1393 * linux-nat.c (linux_nat_debug_printf): Add check of
1394 debug_linux_nat flag.
1396 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1398 * infrun.c (infrun_debug_printf_1): Remove.
1399 (displaced_debug_printf_1): Remove.
1400 (stop_all_threads): Use debug_prefixed_printf.
1401 * infrun.h (infrun_debug_printf_1): Remove.
1402 (infrun_debug_printf): Use debug_prefixed_printf.
1403 (displaced_debug_printf_1): Remove.
1404 (displaced_debug_printf): Use debug_prefixed_printf.
1405 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1406 (linux_nat_debug_printf): Use debug_prefixed_printf.
1408 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1410 * configure: Re-generate.
1411 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1414 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1416 * configure: Re-generate.
1418 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1420 * configure: Re-generate.
1422 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1424 * configure: Re-generate.
1426 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1428 * configure: Re-generate.
1430 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1432 * acinclude.m4: Modernize.
1433 * configure: Re-generate.
1435 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1437 * configure.ac: Modernize.
1438 * configure: Re-generate.
1440 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1442 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1443 * configure: Re-generate.
1444 * configure.ac: Remove AM_PROG_CC_STDC.
1446 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1448 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1449 AC_CANONICAL_SYSTEM.
1450 * configure: Re-generate.
1452 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1454 * infrun.h (displaced_debug_printf): New macro. Replace
1455 displaced debug prints throughout to use it.
1456 (displaced_debug_printf_1): New declaration.
1457 (displaced_step_dump_bytes): Return string, remove ui_file
1458 parameter, update all callers.
1459 * infrun.c (displaced_debug_printf_1): New function.
1460 (displaced_step_dump_bytes): Return string, remove ui_file
1463 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1465 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1467 2020-10-30 Tom Tromey <tromey@adacore.com>
1469 * Makefile.in (stamp-init): Depend on config.status.
1471 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1475 2020-10-30 Pedro Alves <pedro@palves.net>
1477 * thread.c (lookup_selected_frame): Move ...
1478 * frame.c (lookup_selected_frame): ... here.
1480 2020-10-30 Pedro Alves <pedro@palves.net>
1482 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1484 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1485 Use save_selected_frame. Save language as well.
1486 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1487 Use restore_selected_frame, and restore language as well.
1488 (selected_frame_id, selected_frame_level): New.
1489 (selected_frame): Update comments.
1490 (save_selected_frame, restore_selected_frame): New.
1491 (get_selected_frame): Use lookup_selected_frame.
1492 (get_selected_frame_if_set): Delete.
1493 (select_frame): Record selected_frame_level and selected_frame_id.
1494 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1496 (get_selected_frame): Make 'message' parameter optional.
1497 (get_selected_frame_if_set): Delete declaration.
1498 (select_frame): Update comments.
1499 (save_selected_frame, restore_selected_frame)
1500 (lookup_selected_frame): Declare.
1501 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1502 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1504 (save_infcall_control_state): Use save_selected_frame.
1505 (restore_selected_frame): Delete.
1506 (restore_infcall_control_state): Use restore_selected_frame.
1507 * stack.c (select_frame_command_core, frame_command_core): Use
1509 * thread.c (restore_selected_frame): Rename to ...
1510 (lookup_selected_frame): ... this and make extern. Select the
1511 current frame if the frame level is -1.
1512 (scoped_restore_current_thread::restore): Also restore the
1514 (scoped_restore_current_thread::~scoped_restore_current_thread):
1516 (scoped_restore_current_thread::scoped_restore_current_thread):
1517 Save the language as well. Use save_selected_frame.
1519 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1521 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1523 * gdbarch.h: Re-generate.
1525 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1527 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1529 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1531 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1533 * arch-utils.c (default_displaced_step_hw_singlestep):
1535 * arch-utils.h (default_displaced_step_hw_singlestep):
1537 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1539 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1541 * gdbarch.c: Re-generate.
1542 * gdbarch.h: Re-generate.
1543 * infrun.c (resume_1): Adjust.
1545 2020-10-29 Tom Tromey <tom@tromey.com>
1547 * progspace.c (program_space::~program_space): Don't call
1550 2020-10-29 Tom Tromey <tom@tromey.com>
1552 * exec.c (exec_target::close): Don't change current program
1555 2020-10-29 Tom Tromey <tom@tromey.com>
1557 * symfile.c (add_symbol_file_command): Update.
1558 * exec.c (program_space::add_target_sections): Rename.
1559 * symfile-mem.c (symbol_file_add_from_memory): Update.
1560 * progspace.h (struct program_space) <add_target_sections>:
1561 Declare new overload.
1562 * exec.h (add_target_sections_of_objfile): Don't declare.
1564 2020-10-29 Tom Tromey <tom@tromey.com>
1566 * solib.c (solib_map_sections): Update.
1567 * exec.c (program_space::add_target_sections): Now a method.
1568 (exec_file_attach): Update.
1569 * exec.h (add_target_sections): Don't declare.
1570 * progspace.h (struct program_space) <add_target_sections>:
1573 2020-10-29 Tom Tromey <tom@tromey.com>
1575 * progspace.h (struct program_space) <remove_target_sections>:
1577 * exec.c (program_space::remove_target_sections): Now a method.
1578 * exec.h (remove_target_sections): Don't declare.
1580 2020-10-29 Tom Tromey <tom@tromey.com>
1582 * inferior.c (delete_inferior): Update.
1583 * progspace.c (program_space::empty): Rename from
1584 program_space_empty_p. Return bool.
1585 * progspace.h (struct program_space) <empty>: New method.
1586 (program_space_empty_p): Don't declare.
1588 2020-10-29 Tom Tromey <tom@tromey.com>
1590 * progspace.c (program_space::~program_space): Don't call
1591 clear_program_space_solib_cache.
1592 (program_space::clear_solib_cache): Rename from
1594 * solib.c (handle_solib_event): Update.
1595 * progspace.h (struct program_space) <clear_solib_cache>: New
1597 (clear_program_space_solib_cache): Don't declare.
1599 2020-10-29 Tom Tromey <tom@tromey.com>
1601 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1602 * target.c (info_target_command): Update.
1603 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1604 (symbol_file_clear, reread_symbols): Update.
1605 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1606 * stabsread.c (scan_file_globals): Update.
1607 * solib.c (update_solib_list): Update.
1608 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1609 (svr4_fetch_objfile_link_map, enable_break)
1610 (svr4_relocate_main_executable)
1611 (svr4_iterate_over_objfiles_in_search_order): Update.
1612 * solib-frv.c (lm_base, enable_break)
1613 (frv_relocate_main_executable): Update.
1614 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1615 (frv_fetch_objfile_link_map): Update.
1616 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1617 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1618 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1619 * remote.c (remote_target::get_offsets): Update.
1620 (remote_target::start_remote)
1621 (extended_remote_target::post_attach): Update.
1622 * objfiles.c (entry_point_address_query): Update.
1623 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1624 * minsyms.c (get_symbol_leading_char): Update.
1625 * frame.c (inside_main_func): Update.
1626 * progspace.h (symfile_objfile): Remove macro.
1628 2020-10-29 Tom Tromey <tom@tromey.com>
1630 * exec.c (exec_file_attach): Update.
1631 * progspace.c (program_space::exec_close): Update.
1632 * progspace.h (struct program_space) <ebfd>: Now a
1634 <set_exec_bfd>: Change argument type.
1637 2020-10-29 Tom Tromey <tom@tromey.com>
1639 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1640 * symfile.c (reread_symbols): Update.
1641 * symfile-mem.c (add_symbol_file_from_memory_command)
1642 (add_vsyscall_page): Update.
1643 * source-cache.c (source_cache::get_plain_source_lines): Update.
1644 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1645 (svr4_current_sos_direct, svr4_exec_displacement)
1646 (svr4_relocate_main_executable): Update.
1647 (svr4_iterate_over_objfiles_in_search_order): Update.
1648 * solib-frv.c (enable_break2, enable_break): Update.
1649 * solib-dsbt.c (lm_base, enable_break): Update.
1650 * solib-darwin.c (find_program_interpreter)
1651 (darwin_solib_create_inferior_hook): Update.
1652 * sol-thread.c (rw_common, ps_pdmodel): Update.
1653 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1654 * remote.c (compare_sections_command)
1655 (remote_target::trace_set_readonly_regions): Update.
1656 * remote-sim.c (get_sim_inferior_data)
1657 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1658 (gdbsim_target_open, gdbsim_target::files_info): Update.
1659 * exec.h (exec_bfd): Remove macro.
1660 * progspace.c (initialize_progspace): Update.
1661 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1663 * nto-procfs.c (nto_procfs_target::post_attach)
1664 (nto_procfs_target::create_inferior): Update.
1665 * maint.c (maintenance_info_sections): Update.
1666 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1668 * infcmd.c (post_create_inferior): Update.
1669 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1670 (objfile_find_memory_regions): Update.
1671 * exec.c (validate_exec_file, exec_file_attach)
1672 (exec_read_partial_read_only, print_section_info): Update.
1673 * corelow.c (core_target_open): Update.
1674 * corefile.c (reopen_exec_file, validate_files): Update.
1675 * arm-tdep.c (gdb_print_insn_arm): Update.
1676 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1677 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1680 2020-10-29 Tom Tromey <tom@tromey.com>
1682 * progspace.h (current_target_sections): Remove macro.
1683 * solib-svr4.c (scan_dyntag): Update.
1684 * solib-dsbt.c (scan_dyntag): Update.
1685 * exec.c (exec_target::close): Update.
1686 (add_target_sections, add_target_sections_of_objfile)
1687 (remove_target_sections, exec_target::get_section_table)
1688 (exec_target::files_info, set_section_command)
1689 (exec_set_section_address, exec_target::has_memory)
1690 (exec_target::has_memory): Update.
1692 2020-10-29 Tom Tromey <tom@tromey.com>
1694 * source-cache.c (source_cache::get_plain_source_lines): Use
1695 current_program_space.
1696 * corefile.c (reopen_exec_file): Use current_program_space.
1697 * exec.c (exec_file_attach): Use current_program_space.
1698 * exec.h (exec_bfd_mtime): Remove.
1700 2020-10-29 Tom Tromey <tom@tromey.com>
1702 * gcore.c (default_gcore_mach): Remove.
1703 (create_gcore_bfd): Update.
1705 2020-10-29 Tom Tromey <tom@tromey.com>
1707 * progspace.c (program_space::exec_close): New method, from
1708 exec_close in exec.c.
1709 * exec.c (exec_close): Move to progspace.c.
1710 (exec_target::close, exec_file_attach): Update.
1711 * progspace.h (struct program_space) <exec_close>: Declare
1714 2020-10-29 Tom Tromey <tom@tromey.com>
1716 * progspace.h (struct program_space) <exec_filename>: Rename from
1717 pspace_exec_filename. Now a unique_xmalloc_ptr.
1718 * inferior.c (print_selected_inferior): Update.
1719 (print_inferior): Update.
1720 * mi/mi-main.c (print_one_inferior): Update.
1721 * exec.h (exec_filename): Remove macro.
1722 * corefile.c (get_exec_file): Update.
1723 * exec.c (exec_close): Update.
1724 (exec_file_attach): Update.
1725 * progspace.c (clone_program_space): Update.
1726 (print_program_space): Update.
1728 2020-10-29 Tom Tromey <tom@tromey.com>
1730 * target-section.h (struct target_section): Add constructor.
1731 * exec.c (build_section_table, add_target_sections_of_objfile):
1733 * corelow.c (core_target::build_file_mappings): Update.
1735 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738 * inferior.c (detach_inferior_command): Restore the current thread.
1739 (kill_inferior_command): Ditto.
1741 2020-10-28 Tom de Vries <tdevries@suse.de>
1744 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1745 map, check it in the "best match" loop.
1747 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1749 * m32c-tdep.c: Remove unused includes.
1751 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1753 * xtensa-tdep.c: Remove includes.
1755 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757 * breakpoint.c (struct condition_command_opts): New struct.
1758 (condition_command_option_defs): New static global.
1759 (make_condition_command_options_def_group): New function.
1760 (condition_completer): Update to consider the '-force' flag.
1761 (condition_command): Use gdb::option for the '-force' flag.
1763 2020-10-27 Tom de Vries <tdevries@suse.de>
1765 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1766 symbols in section check.
1768 2020-10-27 Tom de Vries <tdevries@suse.de>
1770 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1772 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1774 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1775 * breakpoint.c: Update the help text of the 'condition' and 'break'
1777 (set_breakpoint_condition): Take a new bool parameter
1778 to control whether condition definition should be forced even when
1779 the condition expression is invalid in all of the current locations.
1780 (condition_command): Update the call to 'set_breakpoint_condition'.
1781 (find_condition_and_thread): Take the "-force-condition" flag into
1783 * linespec.c (linespec_keywords): Add "-force-condition" as an
1785 (FORCE_KEYWORD_INDEX): New #define.
1786 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1788 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1789 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1790 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1791 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1793 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1795 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1796 * breakpoint.c (set_breakpoint_location_condition): New function.
1797 (set_breakpoint_condition): Disable a breakpoint location if parsing
1798 the condition string gives an error.
1799 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1800 (build_target_condition_list): Ditto.
1801 (build_target_command_list): Ditto.
1802 (build_bpstat_chain): Ditto.
1803 (print_one_breakpoint_location): Ditto.
1804 (print_one_breakpoint): Ditto.
1805 (breakpoint_1): Ditto.
1806 (bp_location::bp_location): Ditto.
1807 (locations_are_equal): Ditto.
1808 (update_breakpoint_locations): Ditto.
1809 (enable_disable_bp_num_loc): Ditto.
1810 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1811 (find_condition_and_thread_for_sals): New static function.
1812 (create_breakpoint): Call find_condition_and_thread_for_sals.
1813 (location_to_sals): Call find_condition_and_thread_for_sals instead
1814 of find_condition_and_thread.
1816 2020-10-26 Tom de Vries <tdevries@suse.de>
1818 * dwarf2/read.c (process_full_comp_unit): Call
1819 dwarf2_find_base_address.
1821 2020-10-26 Tom Tromey <tromey@adacore.com>
1823 * gdbtypes.c (create_range_type): Revert previous patch. Add
1826 2020-10-26 Pedro Alves <pedro@palves.net>
1828 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1829 (my_waitpid): Use gdb::handle_eintr.
1831 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1833 * acinclude.m4: Update ptrace.m4 path.
1834 * ptrace.m4: Moved to gdbsupport.
1836 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1838 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1839 instead of target_gdbarch.
1841 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1843 * jit.c (jit_reader_load_command): Pass current inferior.
1844 (jit_inferior_init): Change parameter type to inferior, use it.
1845 (jit_inferior_created): Remove.
1846 (jit_inferior_created_hook): Pass inferior parameter down.
1847 (_initialize_jit): Use jit_inferior_created_hook instead of
1848 jit_inferior_created.
1849 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1850 * infrun.c (follow_exec): Pass inferior to
1851 jit_inferior_created_hook.
1853 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1855 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1856 parameter and use it.
1857 (thread_db_inferior_created): Pass inferior argument.
1859 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1861 * aix-thread.c (aix_thread_inferior_created): Add inferior
1863 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1864 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1865 * jit.c (jit_inferior_created): Likewise.
1866 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1867 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1868 * observable.h (inferior_created): Likewise.
1869 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1870 * symfile-mem.c (add_vsyscall_page): Likewise.
1871 * infcmd.c (post_create_inferior): Pass inferior argument.
1873 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1877 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1879 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1880 to ada_check_typedef.
1882 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1884 * f-exp.y (f_parse): Rename to...
1885 (f_language::parser): ...this.
1886 * f-lang.c (f_get_encoding): Rename to...
1887 (f_language::get_encoding): ...this.
1888 (f_op_print_tab): Rename to...
1889 (f_language::op_print_tab): ...this.
1890 (exp_descriptor_f): Rename to...
1891 (f_language::exp_descriptor_tab): ...this.
1892 (class f_language): Moved to f-lang.h.
1893 (f_language::language_arch_info): New function, moved out of class
1895 (f_language::search_name_hash): Likewise.
1896 (f_language::lookup_symbol_nonlocal): Likewise.
1897 (f_language::get_symbol_name_matcher_inner): Likewise.
1898 * f-lang.h: Add 'valprint.h' include.
1899 (class f_language): Moved here from f-lang.c.
1900 * f-typeprint.c (f_type_print_args): Delete commented out
1902 (f_print_typedef): Rename to...
1903 (f_language::print_typedef): ...this.
1904 (f_print_type): Rename to...
1905 (f_language::print_type): ...this.
1906 (f_type_print_varspec_prefix): Delete declaration and rename to...
1907 (f_language::f_type_print_varspec_prefix): ...this.
1908 (f_type_print_varspec_suffix): Delete declaration and rename to...
1909 (f_language::f_type_print_varspec_suffix): ...this.
1910 (f_type_print_base): Delete declaration and rename to...
1911 (f_language::f_type_print_base): ...this.
1912 * f-valprint.c (f_value_print_inner): Rename to...
1913 (f_language::value_print_inner): ...this.
1914 * parse.c: Delete 'f-lang.h' include.
1916 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * language.h (language_defn::print_type): Add variable names in
1919 declaration, and update header comment.
1921 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1923 * ada-lang.c (ada_language::demangle): Rename to...
1924 (ada_language::demangle_symbol): ...this.
1925 * c-lang.c (cplus_language::demangle): Rename to...
1926 (cplus_language::demangle_symbol): ...this.
1927 * d-lang.c (d_language::demangle): Rename to...
1928 (d_language::demangle_symbol): ...this.
1929 * f-lang.c (f_language::demangle): Rename to...
1930 (f_language::demangle_symbol): ...this.
1931 * go-lang.c (go_language::demangle): Rename to...
1932 (go_language::demangle_symbol): ...this.
1933 * language.c (language_demangle): Update call to demangle_symbol.
1934 (auto_or_unknown_language::demangle): Rename to...
1935 (auto_or_unknown_language::demangle_symbol): ...this.
1936 * language.h (language_defn::demangle): Rename to...
1937 (language_defn::demangle_symbol): ...this.
1938 * objc-lang.c (objc_language::demangle): Rename to...
1939 (objc_language::demangle_symbol): ...this.
1940 * rust-lang.c (rust_language::demangle): Rename to...
1941 (rust_language::demangle_symbol): ...this.
1943 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1945 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1946 (iterate_over_file_blocks): Replace use of macro with the macros
1949 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1951 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1952 * valprint.c (maybe_print_array_index): Replace use of macro with
1953 the macros definition.
1955 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1957 * ada-lang.c (ada_language::print_array_index): Call value_print
1959 * language.c (language_defn::print_array_index): Likewise.
1960 * language.h (LA_VALUE_PRINT): Delete.
1961 * valprint.c (value_print): Call value_print on the
1962 current_language directly.
1964 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1966 * language.h (LA_PRINT_TYPEDEF): Delete.
1967 * typeprint.c (typedef_print): Call print_typedef directly on the
1968 current_language object.
1970 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1972 * m2-exp.y (m2_parse): Rename to...
1973 (m2_language::parser): ...this. Update function signature.
1974 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1975 (m2_op_print): Rename to...
1976 (m2_language::op_print_tab): ...this, and make const.
1977 (exp_descriptor_modula2): Rename to...
1978 (m2_language::exp_descriptor_modula2): ...this.
1979 (class m2_language): Move to m2-lang.h.
1980 (m2_language::language_arch_info): New function, moved out of
1982 (m2_language::printchar): New function, body from m2_printchar.
1983 (m2_language::printstr): New function, moved out of class
1985 (m2_language::emitchar): Likewise.
1986 * m2-lang.h (m2_parse): Delete declaration.
1987 (m2_print_typedef): Delete declaration.
1988 (m2_value_print_inner): Delete declaration.
1989 (class m2_language): Class declaration moved from m2-lang.c,
1990 larger functions are left in m2-lang.c.
1991 * m2-typeprint.c (m2_print_typedef): Rename to...
1992 (m2_language::print_typedef): ...this, and update function
1994 * m2-valprint.c (m2_value_print_inner): Rename to...
1995 (m2_language::value_print_inner): ...this, replace use of
1996 LA_PRINT_STRING with a direct call to printstr member function,
1997 and update recursive call.
1999 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2001 * language.c (default_is_string_type_p): Delete, implementation
2002 moved into auto_or_unknown_language::is_string_type_p.
2003 (unk_op_print_tab): Moved into
2004 auto_or_unknown_language::opcode_print_table.
2005 (unknown_language_arch_info): Delete, implementation moved into
2006 auto_or_unknown_language::language_arch_info.
2007 (class auto_or_unknown_language): New class, member functions
2008 copied from unknown_language class, with some updates.
2009 (class unknown_language): Most member functions moved into
2010 auto_or_unknown_language class. Inherit from
2011 auto_or_unknown_language class.
2012 (class auto_language): Inherit from auto_or_unknown_language.
2013 Delete most member functions.
2015 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2017 * stabsread.c (read_member_functions): Remove gdb_assert.
2019 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2021 * gdbtypes.c (init_complex_type): Check target type name.
2023 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2025 * target-debug.h (target_debug_print_struct_target_ops_p):
2027 (target_debug_print_async_callback_ftype_p): Remove.
2028 (target_debug_print_struct_trace_state_variable_p): Remove.
2029 (target_debug_print_struct_traceframe_info_p): Remove.
2030 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2031 (target_debug_print_enum_btrace_format): Remove.
2032 (target_debug_print_enum_info_proc_what): Remove.
2033 (target_debug_print_thread_info_pp): Remove.
2035 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2037 * target.h (struct target_ops) <make_corefile_notes>:
2038 Change return type to unique pointer.
2039 * target.c (dummy_make_corefile_notes): Likewise.
2040 * exec.c (struct exec_target) <make_corefile_notes>:
2042 (exec_target::make_corefile_notes): Likewise.
2043 * procfs.c (class procfs_target) <make_corefile_notes>:
2045 (procfs_do_thread_registers): Adjust to unique pointer.
2046 (struct procfs_corefile_thread_data): Add constructor.
2047 <note_data>: Change type to unique pointer.
2048 (procfs_corefile_thread_callback): Adjust to unique pointer.
2049 (procfs_target::make_corefile_notes): Change return type to
2051 * target-delegates.c: Re-generate.
2052 * gcore.c (write_gcore_file_1): Adjust.
2053 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2056 2020-10-22 Tom de Vries <tdevries@suse.de>
2058 * block.c (find_block_in_blockvector): Make sure the returned block
2061 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2064 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2066 (load_cu): Pass existing CU.
2067 (process_imported_unit_die): Likewise.
2068 (follow_die_offset): Likewise.
2070 2020-10-22 Luis Machado <luis.machado@linaro.org>
2072 * corelow.c (core_target::xfer_partial): Also check for an empty
2073 m_core_unavailable_mappings vector.
2075 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2077 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2078 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2079 * f-exp.y (arglist): Allow for a series of subranges.
2080 (subrange): Add cases for subranges with strides.
2081 * f-lang.c (value_f90_subarray): Catch use of array strides and
2083 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2085 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2087 * expprint.c (print_subexp_standard): Change enum range_type to
2088 range_flag and rename variables to match.
2089 (dump_subexp_body_standard): Likewise.
2090 * expression.h (enum range_type): Rename to...
2091 (enum range_flag): ...this.
2092 (range_types): Rename to...
2093 (range_flags): ...this.
2094 * f-lang.c (value_f90_subarray): Change enum range_type to
2095 range_flag and rename variables to match.
2096 * parse.c (operator_length_standard): Likewise.
2097 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2098 range_type to range_flag.
2099 * rust-lang.c (rust_evaluate_funcall): Likewise.
2100 (rust_range): Likewise.
2101 (rust_compute_range): Likewise.
2102 (rust_subscript): Likewise.
2104 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2106 * expprint.c (print_subexp_standard): Update to reflect changes to
2108 (dump_subexp_body_standard): Likewise.
2109 * expression.h (enum range_type): Convert to a bit field enum, and
2110 make the enum unsigned.
2111 * f-exp.y (subrange): Update to reflect changes to enum
2113 * f-lang.c (value_f90_subarray): Likewise.
2114 * parse.c (operator_length_standard): Likewise.
2115 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2116 * rust-lang.c (rust_range): Likewise.
2117 (rust_compute_range): Likewise.
2118 (rust_subscript): Likewise.
2120 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2122 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2123 (displaced_step_in_progress): Fix comment.
2125 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2127 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2128 * gdbarch.c: Re-generate.
2129 * gdbarch.h: Re-generate.
2130 * gcore.c (write_gcore_file_1): Adjust.
2131 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2133 <note_data>: Change type to unique pointer.
2134 <abort_iteration>: Change type to bool.
2135 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2136 (fbsd_collect_thread_registers): Return void, adjust.
2137 (struct fbsd_corefile_thread_data): Add construtor.
2138 <note_data>: Change type to unique pointer.
2139 (fbsd_corefile_thread): Adjust.
2140 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2141 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2142 to unique pointer, adjust.
2143 (struct linux_collect_regset_section_cb_data): Add constructor.
2144 <note_data>: Change type to unique pointer.
2145 <abort_iteration>: Change type to bool.
2146 (linux_collect_thread_registers): Return void, adjust.
2147 (struct linux_corefile_thread_data): Add constructor.
2148 <note_data>: Change type to unique pointer.
2149 (linux_corefile_thread): Adjust.
2150 (linux_make_corefile_notes): Return unique pointer, adjust.
2152 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2154 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2155 * gdbarch.c: Re-generate.
2156 * gdbarch.h: Re-generate.
2157 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2159 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2161 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2162 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2163 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2164 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2166 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2168 * gdbarch.sh: Make generated predicates return bool.
2169 * gdbarch.c: Re-generate.
2170 * gdbarch.h: Re-generate.
2172 2020-10-20 Tom Tromey <tom@tromey.com>
2174 * varobj-iter.h (struct varobj_item): Remove typedef.
2176 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2178 * infrun.c (currently_stepping): Change int to bool
2179 (maybe_software_singlestep): Likewise.
2180 (show_stop_on_solib_events): Likewise.
2181 (stepping_past_nonsteppable_watchpoint): Likewise.
2182 (displaced_step_in_progress_any_inferior): Likewise.
2183 (displaced_step_in_progress_thread): Likewise.
2184 (keep_going_stepped_thread): Likewise.
2185 (thread_still_needs_step_over): Likewise.
2186 (start_step_over): Likewise.
2187 (do_target_resume): Likewise.
2188 (resume_1): Likewise.
2189 (clear_proceed_status): Likewise.
2190 (thread_still_needs_step_over_bp): Likewise.
2191 (proceed): Likewise.
2192 (switch_back_to_stepped_thread): Likewise.
2193 (adjust_pc_after_break): Likewise.
2194 (stepped_in_from): Likewise.
2195 (handle_stop_requested): Likewise.
2196 (handle_syscall_event): Likewise.
2197 (handle_no_resumed): Likewise.
2198 (handle_inferior_event): Likewise.
2199 (finish_step_over): Likewise.
2200 (handle_signal_stop): Likewise.
2201 (process_event_stop_test): Likewise.
2203 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2205 * infrun.c (get_displaced_stepping_state): Fix comment.
2207 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2209 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2211 2020-10-19 Tom Tromey <tromey@adacore.com>
2214 * tui/tui-winsource.h (struct tui_source_window_base)
2215 <refresh_window>: Rename from refresh_pad.
2216 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2217 Rename from refresh_pad.
2218 (tui_source_window_base::show_source_content)
2219 (tui_source_window_base::do_scroll_horizontal): Update.
2221 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2223 * thread.c (_initialize_thread): Fine-tune the help text of
2226 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2228 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2230 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2232 * breakpoint.c (handle_jit_event): Add an argument, change how
2233 `jit_event_handler` is called.
2235 2020-10-17 Tom Tromey <tom@tromey.com>
2237 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2238 (scan_xcoff_symtab): Update.
2239 * psymtab.h (class psymtab_storage) <global_psymbols,
2240 static_psymbols, current_global_psymbols,
2241 current_static_psymbols>: Remove.
2242 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2243 (match_partial_symbol, lookup_partial_symbol): Update.
2244 (print_partial_symbols): Change parameters.
2245 (dump_psymtab, recursively_search_psymtabs)
2246 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2247 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2249 (end_psymtab_common): Simplify.
2250 (append_psymbol_to_list): Change parameters.
2251 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2252 (init_psymbol_list): Simplify.
2253 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2254 * psympriv.h (struct partial_symtab) <empty>: New method.
2255 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2257 <global_psymbols, static_psymbols>: New members.
2258 <add_psymbol>: New methods.
2259 (add_psymbol_to_list): Don't declare.
2260 (psymbol_placement): Move earlier.
2261 * mdebugread.c (parse_partial_symbols): Update.
2262 (handle_psymbol_enumerators): Change parameters.
2263 (mdebug_expand_psymtab): Update.
2264 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2265 (add_partial_symbol): Update.
2266 * dwarf2/index-write.c (write_psymbols): Change parameters.
2267 (write_one_signatured_type): Update.
2268 (recursively_count_psymbols): Update.
2269 (recursively_write_psymbols): Update.
2270 (class debug_names) <recursively_write_psymbols>: Update.
2271 <write_psymbols>: Change parameters.
2272 <write_one_signatured_type>: Update.
2273 * dbxread.c (read_dbx_symtab): Update.
2274 (dbx_end_psymtab): Use partial_symtab::empty.
2275 * ctfread.c (struct ctf_context) <pst>: New member.
2276 (create_partial_symtab): Set it.
2277 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2278 (scan_partial_symbols): Use the psymtab's context. Update.
2280 2020-10-17 Tom Tromey <tom@tromey.com>
2282 * valprint.c (generic_value_print): Remove comment.
2283 * m2-valprint.c (m2_value_print_inner): Remove comment.
2284 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2287 2020-10-17 Tom de Vries <tdevries@suse.de>
2290 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2293 2020-10-14 Tom de Vries <tdevries@suse.de>
2296 * solib.c (solib_contains_address_p): Handle
2297 'solib->sections == nullptr'.
2299 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2302 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2303 target can't do async.
2304 * target.c (target_wait): Assert that we don't pass
2305 TARGET_WNOHANG to a target that can't async.
2307 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2309 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2310 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2311 * alpha-bsd-nat.c: Adjust include.
2312 * alpha-bsd-tdep.h: Adjust comment.
2313 * alpha-nbsd-tdep.c: Rename to ...
2314 * alpha-netbsd-tdep.c: ... this, adjust include.
2315 * amd64-nbsd-nat.c: Rename to ...
2316 * amd64-netbsd-nat.c: ... this, adjust include.
2317 * amd64-nbsd-tdep.c: Rename to ...
2318 * amd64-netbsd-tdep.c: ... this, adjust include.
2319 * amd64-tdep.h: Adjust include.
2320 * arm-nbsd-nat.c: Rename to ...
2321 * arm-netbsd-nat.c: ... this, adjust include.
2322 * arm-nbsd-tdep.c: Rename to ...
2323 * arm-netbsd-tdep.c: ... this, adjust include.
2324 * arm-nbsd-tdep.h: Rename to ...
2325 * arm-netbsd-tdep.h: ... this, adjust include.
2326 * configure.nat: Adjust file lists.
2327 * configure.tgt: Likewise.
2328 * hppa-nbsd-nat.c: Rename to ...
2329 * hppa-netbsd-nat.c: ... this, adjust include.
2330 * hppa-nbsd-tdep.c: Rename to ...
2331 * hppa-netbsd-tdep.c: ... this, adjust include.
2332 * i386-nbsd-nat.c: Rename to ...
2333 * i386-netbsd-nat.c: ... this, adjust include.
2334 * i386-nbsd-tdep.c: Rename to ...
2335 * i386-netbsd-tdep.c: ... this, adjust include.
2336 * m68k-bsd-nat.c: Adjust include.
2337 * mips-nbsd-nat.c: Rename to ...
2338 * mips-netbsd-nat.c: ... this, adjust include.
2339 * mips-nbsd-tdep.c: Rename to ...
2340 * mips-netbsd-tdep.c: ... this, adjust include.
2341 * mips-nbsd-tdep.h: Rename to ...
2342 * mips-netbsd-tdep.h: ... this.
2343 * nbsd-nat.c: Rename to ...
2344 * netbsd-nat.c: ... this, adjust include.
2345 * nbsd-nat.h: Rename to ...
2346 * netbsd-nat.h: ... this, adjust include.
2347 * nbsd-tdep.c: Rename to ...
2348 * netbsd-tdep.c: ... this, adjust include.
2349 * nbsd-tdep.h: Rename to ...
2350 * netbsd-tdep.h: ... this.
2351 * ppc-nbsd-nat.c: Rename to ...
2352 * ppc-netbsd-nat.c: ... this, adjust include.
2353 * ppc-nbsd-tdep.c: Rename to ...
2354 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2355 * ppc-nbsd-tdep.h: Rename to ...
2356 * ppc-netbsd-tdep.h: ... this.
2357 * sh-nbsd-nat.c: Rename to ...
2358 * sh-netbsd-nat.c: ... this, adjust include.
2359 * sh-nbsd-tdep.c: Rename to ...
2360 * sh-netbsd-tdep.c: ... this, adjust include.
2361 * sparc-nbsd-nat.c: Rename to ...
2362 * sparc-netbsd-nat.c: ... this.
2363 * sparc-nbsd-tdep.c: Rename to ...
2364 * sparc-netbsd-tdep.c: ... this, adjust include.
2365 * sparc64-nbsd-nat.c: Rename to ...
2366 * sparc64-netbsd-nat.c: ... this.
2367 * sparc64-nbsd-tdep.c: Rename to ...
2368 * sparc64-netbsd-tdep.c: ... this, adjust include.
2369 * sparc64-tdep.h: Adjust comment.
2370 * vax-bsd-nat.c: Adjust include.
2371 * vax-nbsd-tdep.c: Rename to ...
2372 * vax-netbsd-tdep.c: ... this, adjust include.
2374 2020-10-12 Tom Tromey <tom@tromey.com>
2376 * target.h (struct target_ops) <get_section_table>: Update.
2377 (target_get_section_table): Update.
2378 * target.c (target_get_section_table, target_section_by_addr)
2379 (memory_xfer_partial_1): Update.
2380 * target-section.h (target_section_table): Now an alias.
2381 * target-delegates.c: Rebuild.
2382 * target-debug.h (target_debug_print_target_section_table_p):
2383 Rename from target_debug_print_struct_target_section_table_p.
2384 * symfile.c (build_section_addr_info_from_section_table): Update.
2385 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2386 * solib-svr4.c (scan_dyntag): Update.
2387 * solib-dsbt.c (scan_dyntag): Update.
2388 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2390 * record-full.c (record_full_core_target::xfer_partial): Update.
2391 * progspace.h (struct program_space) <target_sections>: Update.
2392 * exec.h (print_section_info): Update.
2393 * exec.c (exec_target::close, build_section_table)
2394 (add_target_sections, add_target_sections_of_objfile)
2395 (remove_target_sections, exec_on_vfork)
2396 (section_table_available_memory)
2397 (section_table_xfer_memory_partial)
2398 (exec_target::get_section_table, exec_target::xfer_partial)
2399 (print_section_info, set_section_command)
2400 (exec_set_section_address, exec_target::has_memory): Update.
2401 * corelow.c (core_target::build_file_mappings)
2402 (core_target::xfer_partial, core_target::info_proc_mappings)
2403 (core_target::info_proc_mappings): Update.
2404 * bfd-target.c (class target_bfd): Update
2406 2020-10-12 Tom Tromey <tom@tromey.com>
2408 * progspace.c (program_space::~program_space): Don't call
2409 clear_section_table.
2410 * exec.h (clear_section_table): Don't declare.
2411 * exec.c (exec_target::close): Update.
2412 (clear_section_table): Remove.
2414 2020-10-12 Tom Tromey <tom@tromey.com>
2416 * exec.c (add_target_sections_of_objfile): Simplify.
2418 2020-10-12 Tom Tromey <tom@tromey.com>
2420 * solib.c (solib_map_sections): Update.
2421 * record-full.c (record_full_core_open_1): Update.
2422 * exec.h (build_section_table): Return a target_section_table.
2423 * exec.c (exec_file_attach): Update.
2424 (build_section_table): Return a target_section_table.
2425 * corelow.c (core_target::core_target): Update.
2426 * bfd-target.c (target_bfd::target_bfd): Update.
2428 2020-10-12 Tom Tromey <tom@tromey.com>
2430 * target.c (target_section_by_addr, memory_xfer_partial_1):
2432 * target-section.h (struct target_section_table): Use
2434 * symfile.h (build_section_addr_info_from_section_table): Take a
2435 target_section_table.
2436 * symfile.c (build_section_addr_info_from_section_table): Take a
2437 target_section_table.
2438 * solist.h (struct so_list) <sections>: Change type.
2439 <sections_end>: Remove.
2440 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2441 (solib_contains_address_p): Update.
2442 * solib-svr4.c (scan_dyntag): Update.
2443 * solib-dsbt.c (scan_dyntag): Update.
2444 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2446 * record-full.c (record_full_core_start, record_full_core_end):
2448 (record_full_core_sections): New global.
2449 (record_full_core_open_1, record_full_core_target::xfer_partial):
2451 * exec.h (build_section_table, section_table_xfer_memory_partial)
2452 (add_target_sections): Take a target_section_table.
2453 * exec.c (exec_file_attach, clear_section_table): Update.
2454 (resize_section_table): Remove.
2455 (build_section_table, add_target_sections): Take a
2456 target_section_table.
2457 (add_target_sections_of_objfile, remove_target_sections)
2458 (exec_on_vfork): Update.
2459 (section_table_available_memory): Take a target_section_table.
2460 (section_table_read_available_memory): Update.
2461 (section_table_xfer_memory_partial): Take a target_section_table.
2462 (print_section_info, set_section_command)
2463 (exec_set_section_address, exec_target::has_memory): Update.
2464 * corelow.c (class core_target) <m_core_section_table,
2465 m_core_file_mappings>: Remove braces.
2466 <~core_target>: Remove.
2467 (core_target::core_target): Update.
2468 (core_target::~core_target): Remove.
2469 (core_target::build_file_mappings)
2470 (core_target::xfer_memory_via_mappings)
2471 (core_target::xfer_partial, core_target::info_proc_mappings):
2473 * bfd-target.c (target_bfd::xfer_partial): Update.
2474 (target_bfd::target_bfd): Update.
2475 (target_bfd::~target_bfd): Remove.
2477 2020-10-12 Tom Tromey <tom@tromey.com>
2479 * target.h (struct target_section, struct target_section_table):
2480 Move to target-section.h.
2481 * target-section.h: New file.
2483 2020-10-12 Pedro Alves <pedro@palves.net>
2486 * valops.c (struct struct_field_searcher): New.
2487 (update_search_result): Rename to ...
2488 (struct_field_searcher::update_result): ... this. Simplify
2489 prototype. Record all found fields.
2490 (do_search_struct_field): Rename to ...
2491 (struct_field_searcher::search): ... this. Simplify prototype.
2492 Maintain stack of visited baseclass path. Call update_result for
2493 fields too. Keep searching fields in baseclasses instead of
2494 stopping at the first found field.
2495 (search_struct_field): Use struct_field_searcher. When looking
2496 for fields, report ambiguous access attempts.
2498 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2500 * frame.c (inside_main_func): Check full symbols as well as
2503 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2505 * ada-lang.c (advance_wild_match): Rewrite the function's
2506 description. Change the type of target0, t0 and t1 to char.
2508 2020-10-09 Tom Tromey <tromey@adacore.com>
2510 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2512 2020-10-09 Tom Tromey <tromey@adacore.com>
2514 * ada-lang.h (ada_encode): Return std::string.
2515 * ada-lang.c (ada_encode_1): Return std::string.
2516 (ada_encode): Likewise.
2517 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2519 * ada-exp.y (block_lookup, write_var_or_type): Update.
2521 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2524 * printcmd.c (print_formatted): Handle void results as
2527 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2529 * arch/aarch32.c (aarch32_create_target_description): Release the
2530 target_desc_up as late as possible.
2531 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2532 * arch/amd64.c (amd64_create_target_description): Likewise.
2533 * arch/arc.c (arc_create_target_description): Return a
2534 target_desc_up, don't release it.
2535 * arch/arc.h (arc_create_target_description): Update declaration.
2536 (arc_lookup_target_description): Move target_desc_up into the
2537 cache, and return a borrowed pointer.
2538 * arch/arm.c (arm_create_target_description): Release the
2539 target_desc_up as late as possible.
2540 * arch/i386.c (i386_create_target_description): Likewise.
2541 * arch/riscv.h (riscv_create_target_description): Update
2542 declaration to match definition.
2543 * arch/tic6x.c (tic6x_create_target_description): Release the
2544 target_desc_up as late as possible.
2546 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2548 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2549 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2551 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2553 * source.c (directory_command): Notify observers that "directories"
2554 parameter has changed.
2556 2020-10-08 Tom Tromey <tom@tromey.com>
2558 * cli/cli-cmds.c (print_disassembly): Style function name and
2559 addresses. Add _() wrappers.
2561 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2563 * NEWS: Mention ARC support in GDBserver.
2565 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2567 * arch/aarch32.c (aarch32_create_target_description): Release
2568 unique_ptr returned from allocate_target_description.
2569 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2570 * arch/amd64.c (amd64_create_target_description): Likewise.
2571 * arch/arc.c (arc_create_target_description): Likewise.
2572 * arch/arm.c (arm_create_target_description): Likewise.
2573 * arch/i386.c (i386_create_target_description): Likewise.
2574 * arch/riscv.c (riscv_create_target_description): Update return
2575 type. Handle allocate_target_description returning a unique_ptr.
2576 (riscv_lookup_target_description): Update to handle unique_ptr.
2577 * arch/tic6x.c (tic6x_create_target_description): Release
2578 unique_ptr returned from allocate_target_description.
2579 * features/microblaze-with-stack-protect.c: Regenerate.
2580 * features/microblaze.c: Regenerate.
2581 * features/mips-dsp-linux.c: Regenerate.
2582 * features/mips-linux.c: Regenerate.
2583 * features/mips64-dsp-linux.c: Regenerate.
2584 * features/mips64-linux.c: Regenerate.
2585 * features/nds32.c: Regenerate.
2586 * features/nios2.c: Regenerate.
2587 * features/or1k.c: Regenerate.
2588 * features/rs6000/powerpc-32.c: Regenerate.
2589 * features/rs6000/powerpc-32l.c: Regenerate.
2590 * features/rs6000/powerpc-403.c: Regenerate.
2591 * features/rs6000/powerpc-403gc.c: Regenerate.
2592 * features/rs6000/powerpc-405.c: Regenerate.
2593 * features/rs6000/powerpc-505.c: Regenerate.
2594 * features/rs6000/powerpc-601.c: Regenerate.
2595 * features/rs6000/powerpc-602.c: Regenerate.
2596 * features/rs6000/powerpc-603.c: Regenerate.
2597 * features/rs6000/powerpc-604.c: Regenerate.
2598 * features/rs6000/powerpc-64.c: Regenerate.
2599 * features/rs6000/powerpc-64l.c: Regenerate.
2600 * features/rs6000/powerpc-7400.c: Regenerate.
2601 * features/rs6000/powerpc-750.c: Regenerate.
2602 * features/rs6000/powerpc-860.c: Regenerate.
2603 * features/rs6000/powerpc-altivec32.c: Regenerate.
2604 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2605 * features/rs6000/powerpc-altivec64.c: Regenerate.
2606 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2607 * features/rs6000/powerpc-e500.c: Regenerate.
2608 * features/rs6000/powerpc-e500l.c: Regenerate.
2609 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2610 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2611 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2612 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2613 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2614 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2615 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2616 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2617 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2618 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2619 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2620 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2621 * features/rs6000/powerpc-vsx32.c: Regenerate.
2622 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2623 * features/rs6000/powerpc-vsx64.c: Regenerate.
2624 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2625 * features/rs6000/rs6000.c: Regenerate.
2626 * features/rx.c: Regenerate.
2627 * features/s390-gs-linux64.c: Regenerate.
2628 * features/s390-linux32.c: Regenerate.
2629 * features/s390-linux32v1.c: Regenerate.
2630 * features/s390-linux32v2.c: Regenerate.
2631 * features/s390-linux64.c: Regenerate.
2632 * features/s390-linux64v1.c: Regenerate.
2633 * features/s390-linux64v2.c: Regenerate.
2634 * features/s390-te-linux64.c: Regenerate.
2635 * features/s390-tevx-linux64.c: Regenerate.
2636 * features/s390-vx-linux64.c: Regenerate.
2637 * features/s390x-gs-linux64.c: Regenerate.
2638 * features/s390x-linux64.c: Regenerate.
2639 * features/s390x-linux64v1.c: Regenerate.
2640 * features/s390x-linux64v2.c: Regenerate.
2641 * features/s390x-te-linux64.c: Regenerate.
2642 * features/s390x-tevx-linux64.c: Regenerate.
2643 * features/s390x-vx-linux64.c: Regenerate.
2644 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2645 from allocate_target_description.
2646 * target-descriptions.c (allocate_target_description): Update
2648 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2649 allocate_target_description.
2651 2020-10-07 Tom Tromey <tromey@adacore.com>
2653 * unittests/search-memory-selftests.c: New file.
2654 * Makefile.in (SELFTESTS_SRCS): Add
2655 unittests/search-memory-selftests.c.
2657 2020-10-07 Tom Tromey <tromey@adacore.com>
2660 * findcmd.c (_initialize_mem_search): Mention that the range is
2663 2020-10-07 Tom Tromey <tromey@adacore.com>
2665 * target.h (simple_search_memory): Don't declare.
2666 * target.c (simple_search_memory): Move to gdbsupport.
2667 (default_search_memory): Update.
2668 * remote.c (remote_target::search_memory): Update.
2670 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2672 * Makefile.in (COMPILE): Add CXXFLAGS.
2673 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2674 (check-headers): Add CXXFLAGS.
2676 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2678 * arc-linux-tdep.h: New file.
2679 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2680 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2681 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2682 arc_linux_gregset, arc_linux_v2_regset,
2683 arc_linux_iterate_over_regset_sections,
2684 arc_linux_core_read_description): Implement.
2685 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2686 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2687 (arc_gdbarch_features_create): Add.
2688 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2690 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2692 * arch/arc.h: Rename "arc_gdbarch_features" to
2693 "arc_arch_features".
2694 * arc-tdep.h: Likewise.
2695 * arc-tdep.c: Likewise.
2697 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2699 * infcmd.c (attach_command): Remove the redundant call to
2700 `clear_proceed_status`.
2702 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2704 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2706 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2708 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2709 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2710 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2712 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2714 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2715 (_initialize_break_catch_sig): Don't allocate array.
2717 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2719 * symtab.c (find_pc_line): Return unmapped addresses when the
2720 requested address is also unmapped.
2722 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2724 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2727 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2729 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2730 type::is_vector instead of TYPE_VECTOR.
2732 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2734 * auto-load.c (auto_load_objfile_script_1): Don't use
2735 debugfile_holder as temporary variable when stripping drive
2738 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2740 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2741 Add TYPE_CODE_COMPLEX.
2742 (amd64_windows_return_value): Fix types returned via XMM0.
2744 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2746 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2747 AArch64/ARM maintainers.
2749 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2751 * NEWS: Mention set/show debug event-loop.
2753 2020-10-02 Tom Tromey <tromey@adacore.com>
2755 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2758 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2760 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2761 * procfs.c (procfs_inferior_created): Remove.
2762 (_initialize_procfs): Don't register procfs_inferior_created.
2764 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2766 * async-event.c (invoke_async_signal_handlers): Add debug
2768 (check_async_event_handlers): Likewise.
2769 * event-top.c (show_debug_event_loop): New function.
2770 (_initialize_event_top): Register "set debug event-loop"
2773 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2775 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2777 * infrun.c: Include gdbsupport/common-debug.h.
2778 * linux-nat.c: Likewise.
2780 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2782 * async-event.h (create_async_signal_handler): Add name
2784 (create_async_event_handler): Likewise.
2785 * async-event.c (struct async_signal_handler) <name>: New field.
2786 (struct async_event_handler) <name>: New field.
2787 (create_async_signal_handler): Assign name.
2788 (create_async_event_handler): Assign name.
2789 * event-top.c (async_init_signals): Pass name when creating
2791 * infrun.c (_initialize_infrun): Likewise.
2792 * record-btrace.c (record_btrace_push_target): Likewise.
2793 * record-full.c (record_full_open): Likewise.
2794 * remote-notif.c (remote_notif_state_allocate): Likewise.
2795 * remote.c (remote_target::open_1): Likewise.
2796 * tui/tui-win.c (tui_initialize_win): Likewise.
2798 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2800 * async-event.c (initialize_async_signal_handlers): Pass name to
2802 * event-top.c (ui_register_input_event_handler): Likewise.
2803 * linux-nat.c (linux_nat_target::async): Likewise.
2804 * run-on-main-thread.c (_initialize_run_on_main_thread):
2806 * ser-base.c (reschedule): Likewise.
2807 (ser_base_async): Likewise.
2808 * tui/tui-io.c: Likewise.
2809 * top.h (struct ui) <num>: New field.
2810 * top.c (highest_ui_num): New variable.
2811 (ui::ui): Initialize num.
2813 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2815 * observable.h <inferior_created>: Remove parameters. Update all
2817 * inferior.h (post_create_inferior): Remove target parameter.
2820 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2822 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2823 and DW_MACRO_undef_strx.
2824 (dwarf_decode_macros): Likewise
2825 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2826 which is the value of DW_AT_str_offsets_base.
2827 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2830 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2832 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2834 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2836 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2837 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2839 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2841 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2843 2020-09-30 Tom de Vries <tdevries@suse.de>
2846 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2848 2020-09-30 Tom Tromey <tromey@adacore.com>
2850 * dwarf2/read.c (handle_variant): Use constant_value.
2852 2020-09-29 Tom Tromey <tom@tromey.com>
2854 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2855 (read_file_scope, dwarf2_get_pc_bounds)
2856 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2857 (read_structure_type, handle_struct_member_die)
2858 (read_enumeration_type, read_array_type, read_set_type)
2859 (read_tag_pointer_type, read_tag_reference_type)
2860 (read_subroutine_type, read_base_type, read_subrange_type)
2861 (read_full_die_1, partial_die_info::read)
2862 (partial_die_info::read, by, new_symbol)
2863 (dwarf2_const_value_data, dwarf2_const_value_attr)
2864 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2865 (prepare_one_comp_unit): Update.
2866 * dwarf2/attribute.h (DW_UNSND): Remove.
2868 2020-09-29 Tom Tromey <tom@tromey.com>
2870 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2871 (read_subroutine_type, partial_die_info::read)
2872 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2873 (dwarf2_add_member_fn): Update.
2874 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2875 * dwarf2/attribute.c (attribute::as_boolean): New method.
2877 2020-09-29 Tom Tromey <tom@tromey.com>
2879 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2880 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2882 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2884 2020-09-29 Tom Tromey <tom@tromey.com>
2886 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2887 the attribute's form.
2889 2020-09-29 Tom Tromey <tom@tromey.com>
2891 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2892 (dwarf2_add_member_fn): Update.
2893 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2894 * dwarf2/attribute.c (attribute::defaulted): New method, from
2895 is_valid_DW_AT_defaulted.
2897 2020-09-29 Tom Tromey <tom@tromey.com>
2899 * dwarf2/read.c (dw2_get_file_names_reader)
2900 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2901 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2902 (dwarf2_symbol_mark_computed): Use as_unsigned.
2903 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2905 <form_is_section_offset>: Update comment.
2907 2020-09-29 Tom Tromey <tom@tromey.com>
2909 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2910 dwarf2_default_access_attribute. Look up attribute.
2911 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2914 2020-09-29 Tom Tromey <tom@tromey.com>
2916 * dwarf2/read.c (skip_one_die): Update.
2917 (read_full_die_1): Change how reprocessing is done.
2918 (partial_die_info::read): Update.
2919 (read_attribute_value): Remove need_reprocess parameter.
2920 (read_attribute): Likewise.
2921 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2924 2020-09-29 Tom Tromey <tom@tromey.com>
2926 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2927 (dwarf2_const_value_attr, dump_die_shallow)
2928 (dwarf2_fetch_constant_bytes): Update.
2929 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2931 <set_address>: New method.
2933 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2934 (attribute::as_string, attribute::as_address): Add assert.
2936 2020-09-29 Tom Tromey <tom@tromey.com>
2938 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2939 (read_attribute_reprocess, read_attribute_value): Update.
2940 (read_attribute): Clear requires_reprocessing.
2941 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2942 form_requires_reprocessing>: New methods.
2943 <string_init>: Clear requires_reprocessing.
2944 <set_unsigned_reprocess>: New method.
2945 <name>: Shrink by one bit.
2946 <requires_reprocessing>: New member.
2947 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2950 2020-09-29 Tom Tromey <tom@tromey.com>
2952 * dwarf2/read.c (read_attribute_value): Update.
2953 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2954 set_unsigned>: New methods.
2955 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2957 2020-09-29 Tom Tromey <tom@tromey.com>
2959 * dwarf2/read.c (get_alignment, read_array_order)
2960 (read_attribute_value, dwarf2_const_value_attr)
2961 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2962 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2966 2020-09-29 Tom Tromey <tom@tromey.com>
2968 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2969 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2971 * dwarf2/attribute.h (struct attribute) <as_signature,
2972 set_signature>: New methods.
2973 (DW_SIGNATURE): Remove.
2975 2020-09-29 Tom Tromey <tom@tromey.com>
2977 * dwarf2/read.c (read_call_site_scope)
2978 (handle_data_member_location, dwarf2_add_member_fn)
2979 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2980 (partial_die_info::read, read_attribute_value)
2981 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2982 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2983 (dwarf2_symbol_mark_computed): Update.
2984 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2987 * dwarf2/attribute.c (attribute::form_is_block): Add
2990 2020-09-29 Tom Tromey <tom@tromey.com>
2992 * dwarf2/read.c (read_cutu_die_from_dwo)
2993 (read_attribute_reprocess, read_attribute_value, read_attribute)
2994 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2995 (dwarf2_fetch_constant_bytes): Update.
2996 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2997 <set_string_noncanonical, set_string_canonical>: New methods.
2998 <string_is_canonical>: Update comment.
2999 <canonical_string_p>: Add assert.
3000 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3001 * dwarf2/attribute.c (attribute::form_is_string): New method.
3002 (attribute::string): Use it.
3004 2020-09-29 Tom Tromey <tom@tromey.com>
3006 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3007 (dump_die_shallow): Use canonical_string_p.
3008 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3011 2020-09-29 Tom Tromey <tom@tromey.com>
3013 * dwarf2/read.c (partial_die_info::read)
3014 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3015 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3016 attribute::as_string.
3018 2020-09-29 Tom Tromey <tom@tromey.com>
3020 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3022 (attribute::string): Don't use DW_STRING.
3023 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3024 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3026 2020-09-29 Tom Tromey <tom@tromey.com>
3028 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3029 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3030 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3031 * dwarf2/attribute.h (struct attribute): Rename methods.
3032 * dwarf2/attribute.c (attribute::as_address): Rename from
3034 (attribute::as_string): Rename from value_as_string.
3036 2020-09-29 Tom Tromey <tom@tromey.com>
3038 * dwarf2/read.c (partial_die_info::read) <case
3039 DW_AT_linkage_name>: Use value_as_string.
3040 (dwarf2_string_attr): Use value_as_string.
3041 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3043 * dwarf2/attribute.c (attribute::value_as_string): New method.
3045 2020-09-29 Pedro Alves <pedro@palves.net>
3047 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3048 defined before using '#pragma GCC diagnostic' instead of checking
3051 2020-09-28 Tom Tromey <tom@tromey.com>
3053 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3054 (handle_signal_stop): Update.
3055 * procfs.c (procfs_target::insert_watchpoint): Update.
3056 * target.h (target_have_steppable_watchpoint): Now a function.
3058 2020-09-28 Tom Tromey <tom@tromey.com>
3060 * infrun.c (set_schedlock_func): Update.
3061 * target.h (target_can_lock_scheduler): Now a function.
3063 2020-09-28 Tom Tromey <tom@tromey.com>
3065 * inferior.h (class inferior) <has_execution>: Update.
3066 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3067 * valops.c (find_function_in_inferior)
3068 (value_allocate_space_in_inferior): Update.
3069 * top.c (kill_or_detach): Update.
3070 * target.c (target_preopen, set_target_permissions): Update.
3071 (target_has_execution_current): Remove.
3072 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3074 * solib.c (update_solib_list, reload_shared_libraries): Update.
3075 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3076 * solib-dsbt.c (enable_break): Update.
3077 * score-tdep.c (score7_fetch_inst): Update.
3078 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3080 * remote.c (remote_target::start_remote)
3081 (remote_target::remote_check_symbols, remote_target::open_1)
3082 (remote_target::remote_detach_1, remote_target::verify_memory)
3083 (remote_target::xfer_partial, remote_target::read_description)
3084 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3085 * record-full.c (record_full_open_1): Update.
3086 * record-btrace.c (record_btrace_target_open): Update.
3087 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3088 (value_nsstring): Update.
3089 * linux-thread-db.c (add_thread_db_info)
3090 (thread_db_find_new_threads_silently, check_thread_db_callback)
3091 (try_thread_db_load_1, record_thread): Update.
3092 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3094 * linux-fork.c (checkpoint_command): Update.
3095 * infrun.c (set_non_stop, set_observer_mode)
3096 (check_multi_target_resumption, for_each_just_stopped_thread)
3097 (maybe_remove_breakpoints, normal_stop)
3098 (class infcall_suspend_state): Update.
3099 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3100 (info_program_command, attach_command): Update.
3101 * infcall.c (call_function_by_hand_dummy): Update.
3102 * inf-loop.c (inferior_event_handler): Update.
3103 * gcore.c (gcore_command, derive_heap_segment): Update.
3104 * exec.c (exec_file_command): Update.
3105 * eval.c (evaluate_subexp): Update.
3106 * compile/compile.c (compile_to_object): Update.
3107 * cli/cli-dump.c (restore_command): Update.
3108 * breakpoint.c (update_watchpoint)
3109 (update_inserted_breakpoint_locations)
3110 (insert_breakpoint_locations, get_bpstat_thread): Update.
3111 * target.h (target_has_execution): Remove macro.
3112 (target_has_execution_current): Don't declare.
3113 (target_has_execution): Rename from target_has_execution_1. Add
3116 2020-09-28 Tom Tromey <tom@tromey.com>
3118 * mi/mi-main.c (exec_reverse_continue)
3119 (mi_cmd_list_target_features): Update.
3120 * infrun.c (set_exec_direction_func): Update.
3121 * target.c (default_execution_direction): Update.
3122 * reverse.c (exec_reverse_once): Update.
3123 * target.h (target_can_execute_reverse): Now a function.
3125 2020-09-28 Tom Tromey <tom@tromey.com>
3127 * tui/tui-regs.c (tui_get_register)
3128 (tui_data_window::show_registers): Update.
3129 * thread.c (scoped_restore_current_thread::restore)
3130 (scoped_restore_current_thread::scoped_restore_current_thread):
3132 * regcache-dump.c (regcache_print): Update.
3133 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3135 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3136 * mep-tdep.c (current_me_module, current_options): Update.
3137 * linux-thread-db.c (thread_db_load): Update.
3138 * infcmd.c (registers_info, info_vector_command)
3139 (info_float_command): Update.
3140 * ia64-tdep.c (ia64_frame_prev_register)
3141 (ia64_sigtramp_frame_prev_register): Update.
3142 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3143 * gcore.c (derive_stack_segment): Update.
3144 * frame.c (get_current_frame, has_stack_frames): Update.
3145 * findvar.c (language_defn::read_var_value): Update.
3146 * arm-tdep.c (arm_pc_is_thumb): Update.
3147 * target.c (target_has_registers): Rename from
3148 target_has_registers_1.
3149 * target.h (target_has_registers): Remove macro.
3150 (target_has_registers): Rename from target_has_registers_1.
3152 2020-09-28 Tom Tromey <tom@tromey.com>
3154 * windows-tdep.c (tlb_make_value): Update.
3155 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3156 * thread.c (scoped_restore_current_thread::restore)
3157 (scoped_restore_current_thread::scoped_restore_current_thread)
3158 (thread_command): Update.
3159 * stack.c (backtrace_command_1, frame_apply_level_command)
3160 (frame_apply_all_command, frame_apply_command): Update.
3161 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3163 * gcore.c (derive_stack_segment): Update.
3164 * frame.c (get_current_frame, has_stack_frames): Update.
3165 * auxv.c (info_auxv_command): Update.
3166 * ada-tasks.c (ada_build_task_list): Update.
3167 * target.c (target_has_stack): Rename from target_has_stack_1.
3168 * target.h (target_has_stack): Remove macro.
3169 (target_has_stack): Rename from target_has_stack_1.
3171 2020-09-28 Tom Tromey <tom@tromey.com>
3173 * target.c (target_has_memory): Rename from target_has_memory_1.
3174 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3175 * thread.c (scoped_restore_current_thread::restore)
3176 (scoped_restore_current_thread::scoped_restore_current_thread):
3178 * frame.c (get_current_frame, has_stack_frames): Update.
3179 * target.h (target_has_memory): Remove macro.
3180 (target_has_memory): Rename from target_has_memory_1.
3182 2020-09-28 Tom Tromey <tom@tromey.com>
3184 * target.c (target_has_all_memory_1): Remove.
3185 * target.h (target_has_all_memory): Remove define.
3186 (target_has_all_memory_1): Don't declare.
3188 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3190 * ser-base.c: Adjust comments formatting.
3192 2020-09-27 Tom Tromey <tom@tromey.com>
3195 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3197 2020-09-27 Tom Tromey <tom@tromey.com>
3200 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3202 2020-09-27 Tom Tromey <tom@tromey.com>
3204 * unittests/tui-selftests.c: Update.
3205 * tui/tui-winsource.h (struct tui_source_window_base)
3206 <extra_margin, show_line_number, refresh_pad>: New methods.
3207 <m_max_length, m_pad>: New members.
3208 (tui_copy_source_line): Update.
3209 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3210 first_col, line_width, ndigits parameters. Add length.
3211 (tui_source_window_base::show_source_line): Write to pad. Line
3213 (tui_source_window_base::refresh_pad): New method.
3214 (tui_source_window_base::show_source_content): Write to pad. Call
3216 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3218 (tui_source_window_base::update_exec_info): Call
3220 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3222 <m_digits>: New member.
3223 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3225 (tui_source_window::show_line_number): New method.
3226 * tui/tui-io.h (tui_puts): Fix comment.
3227 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3230 2020-09-27 Tom Tromey <tom@tromey.com>
3232 * tui/tui-winsource.c
3233 (tui_source_window_base::set_is_exec_point_at): Don't call
3236 2020-09-27 Tom Tromey <tom@tromey.com>
3238 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3241 <cursor_x, cursor_y>: Remove.
3242 <m_inner_window>: New member.
3243 (tui_py_window::rerender): Create inner window.
3244 (tui_py_window::output): Write to inner window.
3246 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3249 * cli/cli-script.c (execute_control_commands): don't set
3250 instream to nullptr here as this breaks the from_tty argument
3251 to gdb.execute in Python.
3252 (execute_user_command): set instream to nullptr here instead.
3254 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3256 * infrun.h (infrun_debug_printf): Fix formatting.
3257 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3259 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3261 * compile/compile-object-load.h (struct munmap_list): Add
3262 explicitly-defined move constructor.
3264 2020-09-24 Tom Tromey <tromey@adacore.com>
3267 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3269 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3270 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3271 (tui_prev_win): Rewrite.
3273 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3275 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3276 in WOW64 processes as SIGINT.
3277 * nat/windows-nat.h: Make wow64_process a shared variable.
3278 * windows-nat.c: Remove static wow64_process variable.
3280 2020-09-23 Tom Tromey <tom@tromey.com>
3283 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3284 offset and bit size.
3285 * printcmd.c (print_scalar_formatted): Handle zero-length
3287 (print_scalar_formatted): Use bit_size_differs_p.
3288 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3290 (union type_specific): <int_stuff>: New member.
3291 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3293 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3294 TYPE_SPECIFIC_FIELD.
3295 (recursive_dump_type, copy_type_recursive): Update.
3296 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3297 DW_AT_data_bit_offset.
3299 2020-09-23 Tom Tromey <tom@tromey.com>
3301 * utils.h (class gdb_argv): Add move operators.
3302 <append>: New methods.
3303 * compile/compile.c (build_argc_argv): Remove.
3304 (compile_args_argc): Remove.
3305 (compile_args_argv): Change type.
3306 (set_compile_args): Simplify.
3307 (append_args): Remove.
3308 (filter_args): Remove argcp parameter.
3309 (get_args): Return gdb_argv. Simplify.
3310 (compile_to_object): Update.
3312 2020-09-23 Tom Tromey <tom@tromey.com>
3314 * compile/compile-object-run.c (do_module_cleanup)
3315 <~do_module_cleanup> :Remove.
3316 (do_module_cleanup): Update.
3317 * compile/compile-object-load.h (struct munmap_list): Add move
3318 assignment operator.
3319 <source_file>: Now a std::string.
3320 <munmap_list>: Rename. No longer a pointer.
3321 * compile/compile-object-load.c (struct setup_sections_data): Add
3323 <setup_one_section>: Declare.
3324 <munmap_list>: Move earlier.
3325 <m_bfd>: New member.
3326 <m_last_size, m_last_section_first, m_last_prot,
3327 m_last_max_alignment>: Rename, add initializers where needed.
3328 (setup_sections_data::setup_one_section): Rename from
3329 setup_sections. Update.
3330 (compile_object_load): Update. Don't use bfd_map_over_sections.
3332 2020-09-23 Tom Tromey <tom@tromey.com>
3334 * compile/compile-object-run.c (struct do_module_cleanup): Add
3335 parameters to constructor. Update destructor.
3336 <source_file, scope, scope_data, out_value_type, out_value_addr,
3337 munmap_list_head, objfile_name_string>: Remove.
3338 <module>: New member.
3339 (do_module_cleanup): Update.
3340 (compile_object_run): Update.
3342 2020-09-23 Tom Tromey <tom@tromey.com>
3344 * compile/compile.c (eval_compile_command): Update.
3345 * compile/compile-object-run.h (compile_object_run): Take a
3347 * compile/compile-object-run.c (compile_object_run): Take a
3349 * compile/compile-object-load.h (struct compile_module): Add
3350 constructor, destructor.
3351 (compile_module_up): New typedef.
3352 (compile_object_load): Return compile_object_up.
3353 * compile/compile-object-load.c (compile_object_load): Return
3356 2020-09-23 Tom Tromey <tom@tromey.com>
3358 * compile/compile-object-run.c (struct do_module_cleanup): Add
3359 constructor, destructor.
3360 <objfile_name_string>: Don't use struct hack.
3361 (do_module_cleanup): Use delete.
3362 (compile_object_run): Use new.
3364 2020-09-23 Tom Tromey <tom@tromey.com>
3366 * compile/compile-cplus-types.c
3367 (compile_cplus_convert_struct_or_union): Use std::vector.
3368 (compile_cplus_convert_func): Likewise.
3369 * compile/compile-c-types.c (convert_func): Use std::vector.
3371 2020-09-21 Tom Tromey <tromey@adacore.com>
3373 * sparc-tdep.c (sparc32_skip_prologue): Use
3374 skip_prologue_using_sal.
3376 2020-09-19 Tom Tromey <tom@tromey.com>
3378 * symfile.c (add_section_size_callback): Remove.
3379 (load_one_section): Rename from load_section_callback. Change
3381 (generic_load): Use foreach.
3383 2020-09-19 Tom Tromey <tom@tromey.com>
3385 * exec.c (add_to_section_table): Remove.
3386 (build_section_table): Use foreach.
3388 2020-09-19 Tom Tromey <tom@tromey.com>
3390 * elfread.c (elf_locate_sections): Change parameters.
3391 (elf_symfile_read): Use foreach.
3393 2020-09-19 Tom Tromey <tom@tromey.com>
3395 * cli/cli-dump.c (struct callback_data): Remove.
3396 (restore_one_section): Rename from restore_section_callback.
3398 (restore_binary_file): Change parameters.
3399 (restore_command): Use foreach.
3401 2020-09-19 Tom Tromey <tom@tromey.com>
3403 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3404 (gcore_copy_callback): Likewise.
3405 (gcore_memory_sections): Use foreach.
3407 2020-09-19 Tom Tromey <tom@tromey.com>
3409 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3410 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3412 (generic_elf_osabi_sniffer): Use foreach.
3413 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3414 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3416 2020-09-19 Tom Tromey <tom@tromey.com>
3418 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3419 (dwarf2_get_dwz_file): Use foreach.
3420 (dwarf2_locate_dwo_sections): Change parameters.
3421 (open_and_init_dwo_file): Use foreach.
3422 (dwarf2_locate_common_dwp_sections): Change parameters.
3423 (open_and_init_dwp_file): Use foreach.
3425 2020-09-19 Tom Tromey <tom@tromey.com>
3427 * symfile.h: (find_lowest_section): Don't declare.
3428 * symfile.c (find_lowest_section): Now static. Change
3430 (struct place_section_arg): Remove.
3431 (place_section): Change parameters.
3432 (addr_info_make_relative): Use foreach.
3433 (symfile_dummy_outputs): Remove.
3434 (default_symfile_relocate): Use foreach.
3436 2020-09-19 Tom Tromey <tom@tromey.com>
3438 * objfiles.c (add_to_objfile_sections): Rename from
3439 add_to_objfile_sections_full.
3440 (add_to_objfile_sections): Remove.
3441 (build_objfile_section_table): Use foreach.
3443 2020-09-19 Tom Tromey <tom@tromey.com>
3445 * stap-probe.c (get_stap_base_address_1): Remove.
3446 (get_stap_base_address): Use foreach.
3448 2020-09-19 Tom Tromey <tom@tromey.com>
3450 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3452 (gdb_bfd_close_or_warn): Use foreach.
3454 2020-09-19 Tom Tromey <tom@tromey.com>
3456 * corelow.c (add_to_thread_list): Change parameters.
3457 (core_target_open): Use foreach.
3459 2020-09-19 Tom Tromey <tom@tromey.com>
3461 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3464 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3466 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3469 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3471 * eval.c: Remove 'f-lang.h' include.
3472 (value_f90_subarray): Moved to f-lang.c.
3473 (eval_call): Renamed to...
3474 (evaluate_subexp_do_call): ...this, is no longer static, header
3475 comment moved into header file.
3476 (evaluate_funcall): Update call to eval_call.
3477 (skip_undetermined_arglist): Moved to f-lang.c.
3478 (fortran_value_subarray): Likewise.
3479 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3480 moved to evaluate_subexp_f.
3481 (calc_f77_array_dims): Moved to f-lang.c
3482 * expprint.c (print_subexp_funcall): New function.
3483 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3484 moved to print_subexp_f, OP_FUNCALL uses new function.
3485 (dump_subexp_body_funcall): New function.
3486 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3487 moved to dump_subexp_f, OP_FUNCALL uses new function.
3488 * expression.h (evaluate_subexp_do_call): Declare.
3489 * f-lang.c (value_f90_subarray): Moved from eval.c.
3490 (skip_undetermined_arglist): Likewise.
3491 (calc_f77_array_dims): Likewise.
3492 (fortran_value_subarray): Likewise.
3493 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3494 (operator_length_f): Likewise.
3495 (print_subexp_f): Likewise.
3496 (dump_subexp_body_f): Likewise.
3497 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3498 declaration of this operation to here.
3499 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3500 support moved to operator_length_f.
3501 * parser-defs.h (dump_subexp_body_funcall): Declare.
3502 (print_subexp_funcall): Declare.
3503 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3504 fortran-operator.def.
3506 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3508 * eval.c (fortran_value_subarray): New function, content is taken
3510 (evaluate_subexp_standard): ...here, in two places. Now arrays
3511 and strings both call the new function.
3512 (calc_f77_array_dims): Add header comment, handle strings.
3514 2020-09-18 Victor Collod <vcollod@nvidia.com>
3517 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3518 (i386_analyze_prologue): Call i386_skip_endbr.
3520 2020-09-18 Tom Tromey <tromey@adacore.com>
3522 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3523 (windows_nat_target::wait): Update.
3524 * target/wait.h (enum target_wait_flag): New. Use
3525 DEF_ENUM_FLAGS_TYPE.
3526 * target/target.h (target_wait): Change type of options.
3527 * target.h (target_options_to_string, default_target_wait):
3529 (struct target_ops) <wait>: Change type of options.
3530 * target.c (target_wait, default_target_wait, do_option): Change
3532 (target_options_to_string): Likewise.
3533 * target-delegates.c: Rebuild.
3534 * target-debug.h (target_debug_print_target_wait_flags): Rename
3535 from target_debug_print_options.
3536 * sol-thread.c (class sol_thread_target) <wait>: Update.
3537 (sol_thread_target::wait): Update.
3538 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3539 (rs6000_nat_target::wait): Update.
3540 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3542 (remote_target::wait_ns, remote_target::wait_as): Change type of
3544 (remote_target::wait): Update.
3545 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3546 (gdbsim_target::wait): Update.
3547 * record-full.c (class record_full_base_target) <wait>: Update.
3548 (record_full_wait_1): Change type of "options".
3549 (record_full_base_target::wait): Update.
3550 * record-btrace.c (class record_btrace_target) <wait>: Update.
3551 (record_btrace_target::wait): Update.
3552 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3554 (ravenscar_thread_target::wait): Update.
3555 * procfs.c (class procfs_target) <wait>: Update.
3556 (procfs_target::wait): Update.
3557 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3558 * obsd-nat.c (obsd_nat_target::wait): Update.
3559 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3560 (nto_procfs_target::wait): Update.
3561 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3562 * nbsd-nat.c (nbsd_wait): Change type of "options".
3563 (nbsd_nat_target::wait): Update.
3564 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3565 (thread_db_target::wait): Update.
3566 * linux-nat.h (class linux_nat_target) <wait>: Update.
3567 * linux-nat.c (linux_nat_target::wait): Update.
3568 (linux_nat_wait_1): Update.
3569 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3571 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3572 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3573 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3574 (go32_nat_target::wait): Update.
3575 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3576 * gnu-nat.c (gnu_nat_target::wait): Update.
3577 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3578 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3579 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3580 * darwin-nat.c (darwin_nat_target::wait): Update.
3581 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3582 (bsd_uthread_target::wait): Update.
3583 * aix-thread.c (class aix_thread_target) <wait>: Update.
3584 (aix_thread_target::wait): Update.
3586 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3588 * compile/compile-object-run.c (create_copied_type_recursive): New
3590 (compile_object_run): Use new function.
3592 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3594 * NEWS: Mention x86_64 Cygwin core file support.
3596 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3598 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3599 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3601 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3603 * windows-tdep.h: Add prototypes.
3604 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3605 (i386_windows_core_pid_to_str): Move and rename ...
3606 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3607 (windows_core_pid_to_str): ... and here.
3608 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3610 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3611 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3612 (amd64_windows_init_abi_common): ... and register.
3614 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3616 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3617 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3619 2020-09-18 Pedro Alves <pedro@palves.net>
3622 * thread.c (thread_find_command): Switch inferior before calling
3625 2020-09-17 Tom Tromey <tromey@adacore.com>
3627 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3628 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3629 (tdesc_arch_data_up): New typedef.
3630 (tdesc_use_registers, tdesc_data_alloc): Update.
3631 (tdesc_data_cleanup): Don't declare.
3632 * target-descriptions.c (tdesc_data_alloc): Return a
3634 (tdesc_arch_data_deleter::operator()): Rename from
3635 tdesc_data_cleanup. Change argument type.
3636 (tdesc_use_registers): Change early_data to an rvalue reference.
3637 (tdesc_use_registers): Don't use delete.
3638 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3639 * s390-tdep.c (s390_gdbarch_init): Update.
3640 * rx-tdep.c (rx_gdbarch_init): Update.
3641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3642 * riscv-tdep.c (riscv_gdbarch_init): Update.
3643 * or1k-tdep.c (or1k_gdbarch_init): Update.
3644 * nios2-tdep.c (nios2_gdbarch_init): Update.
3645 * nds32-tdep.c (nds32_gdbarch_init): Update.
3646 * mips-tdep.c (mips_gdbarch_init): Update.
3647 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3648 * m68k-tdep.c (m68k_gdbarch_init): Update.
3649 * i386-tdep.c (i386_gdbarch_init): Update.
3650 * arm-tdep.c (arm_gdbarch_init): Update.
3651 * arc-tdep.c (arc_tdesc_init): Update.
3652 (arc_gdbarch_init): Update.
3653 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3655 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3657 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3658 for WOW64 processes.
3660 2020-09-17 Tom Tromey <tom@tromey.com>
3662 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3664 2020-09-17 Tom Tromey <tom@tromey.com>
3666 * value.c (preserve_values): Update.
3667 * python/py-type.c (save_objfile_types): Update.
3668 * guile/scm-type.c (save_objfile_types): Update.
3669 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3670 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3671 * compile/compile-object-run.c (compile_object_run): Update.
3673 2020-09-17 Tom Tromey <tom@tromey.com>
3675 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3677 <m_table>: Now htab_up.
3678 * typeprint.c (typedef_hash_table::recursively_update)
3679 (typedef_hash_table::add_template_parameters)
3680 (typedef_hash_table::typedef_hash_table): Update.
3681 (typedef_hash_table::~typedef_hash_table): Remove.
3682 (typedef_hash_table::typedef_hash_table)
3683 (typedef_hash_table::find_global_typedef)
3684 (typedef_hash_table::find_typedef): Update.
3686 2020-09-17 Tom Tromey <tom@tromey.com>
3688 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3690 2020-09-17 Tom Tromey <tom@tromey.com>
3692 * linespec.c (class decode_compound_collector)
3693 <~decode_compound_collector>: Remove.
3694 <m_unique_syms>: Now htab_up.
3695 (decode_compound_collector::operator ()): Update.
3696 (class symtab_collector) <~symtab_collector>: Remove.
3697 <m_symtab_table>: Now htab_up.
3698 (symtab_collector::operator ()): Update.
3700 2020-09-17 Tom Tromey <tom@tromey.com>
3702 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3703 (filename_seen_cache::clear): Update.
3704 (~filename_seen_cache): Remove.
3705 (filename_seen_cache::seen): Update.
3706 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3708 <~filename_seen_cache>: Remove.
3711 2020-09-17 Tom Tromey <tom@tromey.com>
3713 * completer.c (completion_tracker::discard_completions)
3714 (completion_tracker::~completion_tracker)
3715 (completion_tracker::maybe_add_completion)
3716 (completion_tracker::remove_completion)
3717 (completion_tracker::recompute_lowest_common_denominator)
3718 (completion_tracker::build_completion_result): Update.
3719 * completer.h (class completion_tracker) <have_completions>:
3721 <m_entries_hash>: Now htab_up.
3723 2020-09-17 Tom Tromey <tom@tromey.com>
3725 * breakpoint.c (ambiguous_names_p): Use htab_up.
3727 2020-09-17 Tom Tromey <tom@tromey.com>
3729 * auto-load.c (struct auto_load_pspace_info)
3730 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3731 <loaded_script_files, loaded_script_texts>: Change type to
3733 (~auto_load_pspace_info) Remove.
3734 (init_loaded_scripts_info, maybe_add_script_file)
3735 (maybe_add_script_text, auto_load_info_scripts): Update.
3737 2020-09-17 Tom Tromey <tromey@adacore.com>
3739 * c-exp.y (name_obstack): Now static.
3741 2020-09-17 Chungyi Chi <demonic@csie.io>
3743 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3745 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3747 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3748 (add_solib_catchpoint): Likewise.
3749 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3751 (add_solib_catchpoint): Change int parameter/variable to bool.
3752 (catch_load_or_unload): Likewise.
3753 (init_catchpoint): Likewise.
3754 (create_fork_vfork_event_catchpoint): Likewise.
3755 (catch_fork_command_1): Likewise.
3756 (catch_exec_command_1): Likewise.
3758 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3760 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3761 Change instance_flags to m_instance_flags.
3763 2020-09-16 Tom Tromey <tromey@adacore.com>
3766 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3768 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3770 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3772 (fbsd_nat_target::insert_exec_catchpoint)
3773 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3774 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3775 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3777 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3779 * configure.ac: Remove check for kinfo_getvmmap().
3780 * configure, config.in: Regenerate.
3781 * fbsd-nat.c (fbsd_read_mapping): Remove
3782 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3783 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3784 kinfo_get_vmmap() are always present.
3786 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3788 * fbsd-nat.c: Always include support for
3789 TARGET_OBJECT_SIGNAL_INFO.
3791 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3793 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3794 sysctl and remove procfs fallback.
3796 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3798 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3799 * fbsd-nat.h: Likewise.
3801 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3803 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3806 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3808 * ada-lang.c (ada_language_data): Delete.
3809 (ada_language): Remove references to ada_language_data.
3810 * c-lang.c (c_language_data): Delete.
3811 (c_language): Remove references to c_language_data.
3812 (cplus_language_data): Delete.
3813 (cplus_language): Remove references to cplus_language_data.
3814 (asm_language_data): Delete.
3815 (asm_language): Remove references to asm_language_data.
3816 (minimal_language_data): Delete.
3817 (minimal_language): Remove references to minimal_language_data.
3818 * d-lang.c (d_language_data): Delete.
3819 (d_language): Remove references to d_language_data.
3820 * f-lang.c (f_language_data): Delete.
3821 (f_language): Remove references to f_language_data.
3822 * go-lang.c (go_language_data): Delete.
3823 (go_language): Remove references to go_language_data.
3824 * language.c (unknown_language_data): Delete.
3825 (unknown_language): Remove references to unknown_language_data.
3826 (auto_language_data): Delete.
3827 (auto_language): Remove references to auto_language_data.
3828 * language.h (language_data): Delete struct.
3829 (language_defn): No longer inherit from language_data.
3830 * m2-lang.c (m2_language_data): Delete.
3831 (m2_language): Remove references to m2_language_data.
3832 * objc-lang.c (objc_language_data): Delete.
3833 (objc_language): Remove references to objc_language_data.
3834 * opencl-lang.c (opencl_language_data): Delete.
3835 (opencl_language): Remove references to opencl_language_data.
3836 * p-lang.c (pascal_language_data): Delete.
3837 (pascal_language): Remove references to pascal_language_data.
3838 * rust-lang.c (rust_language_data): Delete.
3839 (rust_language): Remove references to rust_language_data.
3841 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3843 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3845 (ada_language::opcode_print_table): New member function.
3846 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3847 (c_language::opcode_print_table): New member function.
3848 (cplus_language_data): Remove la_op_print_tab initializer.
3849 (cplus_language::opcode_print_table): New member function.
3850 (asm_language_data): Remove la_op_print_tab initializer.
3851 (asm_language::opcode_print_table): New member function.
3852 (minimal_language_data): Remove la_op_print_tab initializer.
3853 (minimal_language::opcode_print_table): New member function.
3854 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3855 (d_language::opcode_print_table): New member function.
3856 * expprint.c (print_subexp_standard): Update call to
3858 (op_string): Likewise.
3859 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3860 (f_language::opcode_print_table): New member function.
3861 * go-lang.c (go_language_data): Remove la_op_print_tab
3863 (go_language::opcode_print_table): New member function.
3864 * language.c (unknown_language_data): Remove la_op_print_tab
3866 (unknown_language::opcode_print_table): New member function.
3867 (auto_language_data): Remove la_op_print_tab initializer.
3868 (auto_language::opcode_print_table): New member function.
3869 * language.h (language_data): Remove la_op_print_tab field.
3870 (language_defn::opcode_print_table): Declare new member function.
3871 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3873 (m2_language::opcode_print_table): New member function.
3874 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3876 (objc_language::opcode_print_table): New member function.
3877 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3879 (opencl_language::opcode_print_table): New member function.
3880 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3882 (pascal_language::opcode_print_table): New member function.
3883 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3885 (rust_language::opcode_print_table): New member function.
3887 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3889 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3890 (ada_language::expression_ops): New member function.
3891 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3892 (c_language::expression_ops): New member function.
3893 (cplus_language_data): Remove la_exp_desc initializer.
3894 (cplus_language::expression_ops): New member function.
3895 (asm_language_data): Remove la_exp_desc initializer.
3896 (asm_language::expression_ops): New member function.
3897 (minimal_language_data): Remove la_exp_desc initializer.
3898 (minimal_language::expression_ops): New member function.
3899 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3900 (d_language::expression_ops): New member function.
3901 * eval.c (evaluate_subexp): Update call to expression_ops.
3902 * expprint.c (print_subexp): Likewise.
3903 (op_name): Likewise.
3904 (dump_subexp_body): Likewise.
3905 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3906 (f_language::expression_ops): New member function.
3907 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3908 (go_language::expression_ops): New member function.
3909 * language.c (language_defn::expression_ops): New function.
3910 (unknown_language_data): Remove la_exp_desc initializer.
3911 (auto_language_data): Likewise.
3912 * language.h (language_data): Remove la_exp_desc field.
3913 (language_defn::expression_ops): Declare new member function.
3914 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3915 (m2_language::expression_ops): New member function.
3916 * objc-lang.c (objc_language_data): Remove la_exp_desc
3918 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3920 (opencl_language::expression_ops): New member function.
3921 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3922 * parse.c (operator_length): Update call to expression_ops.
3923 (exp_iterate): Likewise.
3924 * rust-lang.c (rust_language_data): Remove la_exp_desc
3926 (ruse_language::expression_ops): New member function.
3928 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3930 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3932 (ada_language::varobj_ops): New member function.
3933 * c-lang.c (c_language_data): Remove la_varobj_ops
3935 (cplus_language_data): Likewise.
3936 (cplus_language::varobj_ops): New member function.
3937 (asm_language_data): Remove la_varobj_ops initializer.
3938 (minimal_language_data): Likewise.
3939 * d-lang.c (d_language_data): Likewise.
3940 * f-lang.c (f_language_data): Likewise.
3941 * go-lang.c (go_language_data): Likewise.
3942 * language.c (language_defn::varobj_ops): New function.
3943 (unknown_language_data): Remove la_varobj_ops
3945 (auto_language_data): Likewise.
3946 * language.h (language_data): Remove la_varobj_ops field.
3947 (language_defn::varobj_ops): Declare new member function.
3948 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3949 * objc-lang.c (objc_language_data): Likewise.
3950 * opencl-lang.c (opencl_language_data): Likewise.
3951 * p-lang.c (pascal_language_data): Likewise.
3952 * rust-lang.c (rust_language_data): Likewise.
3953 * varobj.c (varobj_create): Update call to varobj_ops.
3954 * varobj.h (default_varobj_ops): Delete define.
3956 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3958 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3960 * c-lang.c (c_language_data): Likewise.
3961 (c_language::macro_expansion): New member function.
3962 (cplus_language_data): Likewise.
3963 (cplus_language::macro_expansion): New member function.
3964 (asm_language_data): Likewise.
3965 (asm_language::macro_expansion): New member function.
3966 (minimal_language_data): Likewise.
3967 (minimal_language::macro_expansion): New member function.
3968 * d-lang.c (d_language_data): Remove la_macro_expansion
3970 * f-lang.c (f_language_data): Likewise.
3971 * go-lang.c (go_language_data): Likewise.
3972 * language.c (unknown_language_data): Likewise.
3973 (auto_language_data): Likewise.
3974 * language.h (language_data): Remove la_macro_expansion field.
3975 (language_defn::macro_expansion): New member function.
3976 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3978 * objc-lang.c (objc_language_data): Likewise.
3979 (objc_language::macro_expansion): New member function.
3980 * opencl-lang.c (opencl_language_data): Likewise.
3981 (opencl_language::macro_expansion): New member function.
3982 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3984 * rust-lang.c (rust_language_data): Likewise.
3985 * symtab.c (default_collect_symbol_completion_matches_break_on):
3986 Update call to macro_expansion.
3988 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3990 * ada-lang.c (ada_language_data): Remove la_array_ordering
3992 * c-lang.c (c_language_data): Likewise.
3993 (cplus_language_data): Likewise.
3994 (asm_language_data): Likewise.
3995 (minimal_language_data): Likewise.
3996 * d-lang.c (d_language_data): Likewise.
3997 * dwarf2/read.c (read_array_order): Update for call to
3999 * f-lang.c (f_language_data): Remove la_array_ordering
4001 (f_language::array_ordering): New member function.
4002 * go-lang.c (go_language_data): Remove la_array_ordering
4004 * language.c (unknown_language_data): Likewise.
4005 (auto_language_data): Likewise.
4006 * language.h (language_data): Delete la_array_ordering field.
4007 (language_defn::array_ordering): New member function.
4008 * m2-lang.c (m2_language_data): Remove la_array_ordering
4010 * objc-lang.c (objc_language_data): Likewise.
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_language_data): Likewise.
4013 * rust-lang.c (rust_language_data): Likewise.
4015 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4017 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4019 * c-lang.c (c_language_data): Likewise.
4020 (cplus_language_data): Likewise.
4021 (asm_language_data): Likewise.
4022 (minimal_language_data): Likewise.
4023 * d-lang.c (d_language_data): Likewise.
4024 * f-lang.c (f_language_data): Likewise.
4025 (f_language::case_sensitivity): New member function.
4026 * go-lang.c (go_language_data): Remove la_case_sensitivity
4028 * language.c (enum case_mode): Moved here from language.h.
4029 (case_mode): Make static.
4030 (show_case_command): Update for case_sensitivity being a method.
4031 (set_case_command): Likewise.
4032 (set_range_case): Likewise.
4033 (unknown_language_data): Remove la_case_sensitivity initializer.
4034 (auto_language_data): Likewise.
4035 * language.h (case_mode): Delete, move enum declaration to
4037 (language_data): Delete la_case_sensitivity field.
4038 (language_defn::case_sensitivity): New member function.
4039 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4041 * objc-lang.c (objc_language_data): Likewise.
4042 * opencl-lang.c (opencl_language_data): Likewise.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 * rust-lang.c (rust_language_data): Likewise.
4046 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4048 * ada-lang.c (ada_language_data): Remove la_range_check
4050 * c-lang.c (c_language_data): Likewise.
4051 (cplus_language_data): Likewise.
4052 (asm_language_data): Likewise.
4053 (minimal_language_data): Likewise.
4054 * d-lang.c (d_language_data): Likewise.
4055 * f-lang.c (f_language_data): Likewise.
4056 (f_language::range_checking_on_by_default): New member function.
4057 * go-lang.c (go_language_data): Remove la_range_check initializer.
4058 * language.c (enum range_mode): Moved here from language.h.
4059 (range_mode): Made static.
4060 (show_range_command): Update to use
4061 range_checking_on_by_default.
4062 (set_range_command): Likewise.
4063 (set_range_case): Likewise.
4064 (unknown_language_data): Remove la_range_check initializer.
4065 (auto_language_data): Likewise.
4066 * language.h (range_mode): Delete. Enum definition moved to
4068 (language_data): Remove la_range_check field.
4069 (language_defn::range_checking_on_by_default): New member
4071 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4072 (m2_language::range_checking_on_by_default): New member function.
4073 * objc-lang.c (objc_language_data): Remove la_range_check
4075 * opencl-lang.c (opencl_language_data): Likewise.
4076 * p-lang.c (pascal_language_data): Likewise.
4077 (pascal_language::range_checking_on_by_default): New member
4079 * rust-lang.c (rust_language_data): Remove la_range_check
4081 (rust_language::range_checking_on_by_default): New member
4084 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4086 * dwarf2/read.c (dwarf2_physname): Remove special case for
4088 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4091 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4093 * ada-lang.c (ada_language_data): Remove
4094 la_store_sym_names_in_linkage_form_p initializer.
4095 (ada_language::store_sym_names_in_linkage_form_p): New member
4097 * c-lang.c (c_language_data): Remove
4098 la_store_sym_names_in_linkage_form_p initializer.
4099 (c_language::store_sym_names_in_linkage_form_p): New member
4101 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4103 (asm_language_data): Likewise.
4104 (asm_language::store_sym_names_in_linkage_form_p): New member
4106 (minimal_language_data): Remove
4107 la_store_sym_names_in_linkage_form_p initializer.
4108 (minimal_language::store_sym_names_in_linkage_form_p): New member
4110 * d-lang.c (d_language_data): Remove
4111 la_store_sym_names_in_linkage_form_p initializer.
4112 * dwarf2/read.c (dwarf2_physname): Update call to
4113 store_sym_names_in_linkage_form_p.
4114 * f-lang.c (f_language_data): Remove
4115 la_store_sym_names_in_linkage_form_p initializer.
4116 * go-lang.c (go_language_data): Remove
4117 la_store_sym_names_in_linkage_form_p initializer.
4118 * language.c (unknown_language_data): Remove
4119 la_store_sym_names_in_linkage_form_p initializer.
4120 (unknown_language::store_sym_names_in_linkage_form_p): New member
4122 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4124 (auto_language::store_sym_names_in_linkage_form_p): New member
4126 * language.h (language_data): Remove
4127 la_store_sym_names_in_linkage_form_p member variable.
4128 (language_defn::store_sym_names_in_linkage_form_p): New member
4130 * m2-lang.c (m2_language_data): Remove
4131 la_store_sym_names_in_linkage_form_p initializer.
4132 * objc-lang.c (objc_language_data): Likewise.
4133 * opencl-lang.c (opencl_language_data): Likewise.
4134 * p-lang.c (pascal_language_data): Likewise.
4135 * rust-lang.c (rust_language_data): Likewise.
4137 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4139 * ada-lang.c (ada_language_data): Remove string_lower_bound
4141 * c-lang.c (c_language_data): Likewise.
4142 (cplus_language_data): Likewise.
4143 (asm_language_data): Likewise.
4144 (minimal_language_data): Likewise.
4145 * d-lang.c (d_language_data): Likewise.
4146 * f-lang.c (f_language_data): Likewise.
4147 * go-lang.c (go_language_data): Likewise.
4148 * language.c (unknown_language_data): Likewise.
4149 (auto_language_data): Likewise.
4150 * language.h (language_data): Remove string_lower_bound field.
4151 (language_defn::string_lower_bound): New member function.
4152 * m2-lang.c (m2_language_data): Remove string_lower_bound
4154 (m2_language::string_lower_bound): New member function.
4155 * objc-lang.c (objc_language_data): Remove string_lower_bound
4157 * opencl-lang.c (opencl_language_data): Likewise.
4158 * p-lang.c (pascal_language_data): Likewise.
4159 * rust-lang.c (rust_language_data): Likewise.
4160 * valops.c (value_cstring): Update call to string_lower_bound.
4161 (value_string): Likewise.
4162 * value.c (allocate_repeated_value): Likewise.
4164 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4166 * valops.c (value_repeat): Fix incorrect argument name in comment.
4168 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4170 * ada-lang.c (ada_language_data): Remove c_style_arrays
4172 (ada_language::c_style_arrays_p): New member fuction.
4173 * c-lang.c (c_language_data): Remove c_style_arrays
4175 (cplus_language_data): Likewise.
4176 (asm_language_data): Likewise.
4177 (minimal_language_data): Likewise.
4178 * d-lang.c (d_language_data): Likewise.
4179 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4180 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4181 (f_language::c_style_arrays_p): New member function.
4182 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4183 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4184 * language.c (unknown_language_data): Remove c_style_arrays
4186 (auto_language_data): Likewise.
4187 * language.h (language_data): Remove c_style_arrays field.
4188 (language_defn::c_style_arrays_p): New member function.
4189 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4190 (m2_language::c_style_arrays_p): New member function.
4191 * objc-lang.c (objc_language_data): Remove c_style_arrays
4193 * opencl-lang.c (opencl_language_data): Likewise.
4194 * p-lang.c (pascal_language_data): Likewise.
4195 * rust-lang.c (rust_language_data): Likewise.
4196 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4197 and update local variable to a bool.
4198 * valops.c (value_cast): Update call to c_style_arrays_p.
4199 (value_array): Likewise.
4200 * value.c (coerce_array): Likewise.
4202 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4204 * ada-lang.c (ada_language_data): Remove la_language initializer.
4205 * c-lang.c (c_language_data): Likewise.
4206 (cplus_language_data): Likewise.
4207 (asm_language_data): Likewise.
4208 (minimal_language_data): Likewise.
4209 * d-lang.c (d_language_data): Likewise.
4210 * f-lang.c (f_language_data): Likewise.
4211 * go-lang.c (go_language_data): Likewise.
4212 * language.c (unknown_language_data): Likewise.
4213 (auto_language_data): Likewise.
4214 * language.h (language_data): Remove la_language field.
4215 (language_defn::language_defn): Initialise la_language field.
4216 (language_defn::la_language): New member variable.
4217 * m2-lang.c (m2_language_data): Remove la_language field.
4218 * objc-lang.c (objc_language_data): Likewise.
4219 * opencl-lang.c (opencl_language_data): Likewise.
4220 * p-lang.c (pascal_language_data): Likewise.
4221 * rust-lang.c (rust_language_data): Likewise.
4223 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4225 * ada-lang.c (ada_extensions): Delete, moved into
4226 ada_language::filename_extensions.
4227 (ada_language_data): Remove la_filename_extensions initializer.
4228 (ada_language::filename_extensions): New member function.
4229 * c-lang.c (c_extensions): Delete, moved into
4230 c_language::filename_extensions.
4231 (c_language_data): Remove la_filename_extensions initializer.
4232 (c_language::filename_extensions): New member function.
4233 (cplus_extensions): Delete, moved into
4234 cplus_language::filename_extensions.
4235 (cplus_language_data): Remove la_filename_extensions initializer.
4236 (cplus_language::filename_extensions): New member function.
4237 (asm_extensions): Delete, moved into
4238 asm_language::filename_extensions.
4239 (asm_language_data): Remove la_filename_extensions initializer.
4240 (asm_language::filename_extensions): New member function.
4241 (minimal_language_data): Remove la_filename_extensions
4243 * d-lang.c (d_extensions): Delete, moved into
4244 d_language::filename_extensions.
4245 (d_language_data): Remove la_filename_extensions initializer.
4246 (d_language::filename_extensions): New member function.
4247 * f-lang.c (f_extensions): Delete, moved into
4248 f_language::filename_extensions.
4249 (f_language_data): Remove la_filename_extensions initializer.
4250 (f_language::filename_extensions): New member function.
4251 * go-lang.c (go_language_data): Remove la_filename_extensions
4253 * language.c (add_set_language_command): Update now that
4254 filename_extensions returns a vector.
4255 (unknown_language_data): Remove la_filename_extensions
4257 (auto_language_data): Likewise.
4258 * language.h (language_data): Remove la_filename_extensions field.
4259 (language_defn::filename_extensions): New member function.
4260 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4262 * objc-lang.c (objc_extensions): Delete, moved into
4263 objc_language::filename_extensions.
4264 (objc_language_data): Remove la_filename_extensions initializer.
4265 (objc_language::filename_extensions): New member function.
4266 * opencl-lang.c (opencl_language_data): Remove
4267 la_filename_extensions initializer.
4268 * p-lang.c (pascal_extensions): Delete, moved into
4269 pascal_language::filename_extensions.
4270 (pascal_language_data): Remove la_filename_extensions initializer.
4271 (pascal_language::filename_extensions): New member function.
4272 * rust-lang.c (rust_extensions): Delete, moved into
4273 rust_language::filename_extensions.
4274 (rust_language_data): Remove la_filename_extensions initializer.
4275 (rust_language::filename_extensions): New member function.
4276 * symfile.c (add_filename_language): Add new assert.
4278 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4280 * ada-lang.c (ada_language_data): Remove la_name and
4281 la_natural_name initializers.
4282 (ada_language::name): New member function.
4283 (ada_language::natural_name): New member function.
4284 * c-lang.c (c_language_data): Remove la_name and
4285 la_natural_name initializers.
4286 (c_language::name): New member function.
4287 (c_language::natural_name): New member function.
4288 (cplus_language_data): Remove la_name and
4289 la_natural_name initializers.
4290 (cplus_language::name): New member function.
4291 (cplus_language::natural_name): New member function.
4292 (asm_language_data): Remove la_name and
4293 la_natural_name initializers.
4294 (asm_language::name): New member function.
4295 (asm_language::natural_name): New member function.
4296 (minimal_language_data): Remove la_name and
4297 la_natural_name initializers.
4298 (minimal_language::name): New member function.
4299 (minimal_language::natural_name): New member function.
4300 * compile/compile.c (compile_to_object): Update call to
4301 lanugage_defn::name.
4302 * d-lang.c (d_language_data): Remove la_name and
4303 la_natural_name initializers.
4304 (d_language::name): New member function.
4305 (d_language::natural_name): New member function.
4306 * expprint.c (print_subexp_standard): Update call to
4307 language_defn::name.
4308 (dump_raw_expression): Likewise
4309 (dump_prefix_expression): Likewise.
4310 * f-lang.c (f_language_data): Remove la_name and
4311 la_natural_name initializers.
4312 (f_language::name): New member function.
4313 (f_language::natural_name): New member function.
4314 * go-lang.c (go_language_data): Remove la_name and
4315 la_natural_name initializers.
4316 (go_language::name): New member function.
4317 (go_language::natural_name): New member function.
4318 * language.c (show_language_command): Update call to
4319 language_defn::name.
4320 (set_language_command): Likewise.
4321 (language_enum): Likewise.
4322 (language_str): Likewise.
4323 (add_set_language_command): Likewise, use
4324 language_defn::natural_name in the doc string.
4325 (unknown_language_data): Remove la_name and
4326 la_natural_name initializers.
4327 (unknown_language::name): New member function.
4328 (unknown_language::natural_name): New member function.
4329 (auto_language_data): Remove la_name and
4330 la_natural_name initializers.
4331 (auto_language::name): New member function.
4332 (auto_language::natural_name): New member function.
4333 (language_lookup_primitive_type_as_symbol): Update call to
4334 language_defn::name.
4335 * language.h (language_data): Remove la_name and la_natural_name
4337 (language_defn::name): New member function.
4338 (language_defn::natural_name): New member function.
4339 * m2-lang.c (m2_language_data): Remove la_name and
4340 la_natural_name initializers.
4341 (m2_language::name): New member function.
4342 (m2_language::natural_name): New member function.
4343 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4344 language_defn::natural_name.
4345 * objc-lang.c (objc_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (objc_language::name): New member function.
4348 (objc_language::natural_name): New member function.
4349 * opencl-lang.c (opencl_language_data): Remove la_name and
4350 la_natural_name initializers.
4351 (opencl_language::name): New member function.
4352 (opencl_language::natural_name): New member function.
4353 * p-lang.c (pascal_language_data): Remove la_name and
4354 la_natural_name initializers.
4355 (pascal_language::name): New member function.
4356 (pascal_language::natural_name): New member function.
4357 * rust-lang.c (rust_language_data): Remove la_name and
4358 la_natural_name initializers.
4359 (rust_language::name): New member function.
4360 (rust_language::natural_name): New member function.
4361 * symtab.c (lookup_language_this): Update call to
4362 language_defn::name.
4364 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4366 * ada-lang.c (ada_language_data): Remove la_name_of_this
4368 * ax-gdb.c (gen_expr): Update call to name_of_this.
4369 * c-exp.y (classify_name): Likewise.
4370 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4371 (cplus_language_data): Likewise.
4372 (cplus_language::name_of_this): New member function.
4373 (asm_language_data): Remove la_name_of_this initializer.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 (d_language::name_of_this): New member function.
4377 * expprint.c (print_subexp_standard): Update call to name_of_this.
4378 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4379 * go-lang.c (go_language_data): Likewise.
4380 * language.c (unknown_language_data): Likewise.
4381 (unknown_language::name_of_this): New member function.
4382 (auto_language_data): Remove la_name_of_this initializer.
4383 (auto_language::name_of_this): New member function.
4384 * language.h (language_data): Delete la_name_of_this member
4386 (language_defn::name_of_this): New member function.
4387 * m2-lang.c (m2_language_data): Remove la_name_of_this
4389 * objc-lang.c (objc_language_data): Likewise.
4390 (objc_language::name_of_this): New member function.
4391 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4393 * p-lang.c (pascal_language_data): Likewise.
4394 (pascal_language::name_of_this): New member function.
4395 * rust-lang.c (rust_language_data): Remove la_name_of_this
4397 * symtab.c (lookup_language_this): Update call to name_of_this.
4398 (lookup_symbol_aux): Likewise.
4399 * valops.c (value_of_this): Likewise.
4401 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4403 * ada-lang.c (ada_language_data): Remove
4404 la_struct_too_deep_ellipsis initializer.
4405 (ada_language::struct_too_deep_ellipsis): New member function.
4406 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4408 (cplus_language_data): Likewise.
4409 (asm_language_data): Likewise.
4410 (minimal_language_data): Likewise.
4411 * cp-valprint.c (cp_print_value): Update call to
4412 struct_too_deep_ellipsis.
4413 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4415 * f-lang.c (f_language_data): Likewise.
4416 (f_language::struct_too_deep_ellipsis): New member function.
4417 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4419 * language.c (unknown_language_data): Likewise.
4420 (auto_language_data): Likewise.
4421 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4423 (language_defn::struct_too_deep_ellipsis): New member function.
4424 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4426 * objc-lang.c (objc_language_data): Likewise.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Likewise.
4429 * rust-lang.c (rust_language_data): Likewise.
4430 * valprint.c (val_print_check_max_depth): Update call to
4431 struct_too_deep_ellipsis.
4433 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4435 * MAINTAINERS (Write After Approval): Add myself.
4437 2020-09-15 Tom Tromey <tom@tromey.com>
4439 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4442 2020-09-15 Tom Tromey <tom@tromey.com>
4444 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4445 and TYPE_CODE_METHODPTR cases.
4446 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4447 (c_value_print_inner): Update.
4448 * valprint.c (generic_value_print_memberptr): New function, from
4449 c_value_print_memberptr.
4450 (generic_value_print): Use it. Call cplus_print_method_ptr.
4452 2020-09-15 Tom Tromey <tromey@adacore.com>
4454 * python/python-internal.h (PyInt_FromLong): Remove define.
4455 * python/py-value.c (convert_value_from_python): Use
4456 gdb_py_object_from_longest.
4457 * python/py-type.c (typy_get_code): Use
4458 gdb_py_object_from_longest.
4459 * python/py-symtab.c (salpy_get_line): Use
4460 gdb_py_object_from_longest.
4461 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4462 gdb_py_object_from_longest.
4463 * python/py-record.c (recpy_gap_reason_code): Use
4464 gdb_py_object_from_longest.
4465 * python/py-record-btrace.c (recpy_bt_insn_size)
4466 (recpy_bt_func_level, btpy_list_count): Use
4467 gdb_py_object_from_longest.
4468 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4469 gdb_py_object_from_longest. Fix error handling.
4470 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4471 gdb_py_object_from_longest.
4472 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4473 gdb_py_object_from_longest.
4474 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4475 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4476 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4478 2020-09-15 Tom Tromey <tromey@adacore.com>
4480 * python/python.c (gdbpy_parameter_value): Use
4481 gdb_py_object_from_ulongest.
4483 2020-09-15 Tom Tromey <tromey@adacore.com>
4485 * python/py-infevents.c (create_register_changed_event_object):
4486 Use gdb_py_object_from_longest.
4487 * python/py-exitedevent.c (create_exited_event_object): Use
4488 gdb_py_object_from_longest.
4490 2020-09-15 Tom Tromey <tromey@adacore.com>
4492 * python/python.c (gdbpy_parameter_value): Use
4493 gdb_py_object_from_longest.
4494 * python/py-type.c (convert_field, typy_range): Use
4495 gdb_py_object_from_longest.
4496 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4497 gdb_py_object_from_longest.
4498 * python/py-lazy-string.c (stpy_get_length): Use
4499 gdb_py_object_from_longest.
4500 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4501 gdb_py_object_from_longest.
4502 * python/py-infevents.c (create_memory_changed_event_object): Use
4503 gdb_py_object_from_longest.
4504 * python/py-inferior.c (infpy_get_num): Use
4505 gdb_py_object_from_longest.
4506 (infpy_get_pid): Likewise.
4508 2020-09-15 Tom Tromey <tromey@adacore.com>
4510 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4512 * python/py-value.c (valpy_long): Use
4513 gdb_py_object_from_ulongest.
4514 * python/py-symtab.c (salpy_get_pc): Use
4515 gdb_py_object_from_ulongest.
4516 (salpy_get_last): Likewise.
4517 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4518 gdb_py_object_from_ulongest.
4519 * python/py-lazy-string.c (stpy_get_address): Use
4520 gdb_py_object_from_ulongest.
4521 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4522 * python/py-arch.c (archpy_disassemble): Use
4523 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4526 2020-09-15 Tom Tromey <tromey@adacore.com>
4528 * python/python-internal.h (gdb_py_long_from_longest): Remove
4530 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4531 * python/py-type.c (convert_field, typy_get_sizeof): Use
4532 gdb_py_object_from_longest.
4533 * python/py-record-btrace.c (btpy_list_index): Use
4534 gdb_py_object_from_longest.
4536 2020-09-15 Tom Tromey <tromey@adacore.com>
4538 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4539 * python/py-record.c (recpy_element_number): Use
4540 gdb_py_object_from_longest.
4541 (recpy_gap_number): Likewise.
4543 2020-09-15 Tom Tromey <tromey@adacore.com>
4545 * top.c (ui::ui): Update.
4546 (highest_ui_num): Remove.
4547 * top.h (struct ui) <num>: Remove.
4549 2020-09-15 Tom Tromey <tromey@adacore.com>
4551 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4552 * ui-style.c (ansi_regex_text): Now array.
4553 * rust-exp.y (number_regex_text): Now array.
4554 * linespec.c (linespec_quote_characters): Now array.
4555 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4558 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4560 * debuginfod-support.c (debuginfod_client_deleter): New.
4561 (debuginfod_client_up): New.
4562 (debuginfod_init): Return debuginfod_client_up.
4563 (debuginfod_source_query): Adjust.
4564 (debuginfod_debuginfo_query): Adjust.
4566 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4568 * debuginfod-support.c (debuginfod_source_query): Use
4569 make_unique_xstrdup.
4571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4573 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4574 with `type::instance_flags`.
4576 2020-09-14 Michael Mullin <masmullin@gmail.com>
4578 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4579 Remove baton parameter.
4581 2020-09-14 Pedro Alves <pedro@palves.net>
4583 * Makefile.in (SELFTESTS_SRCS): Add
4584 unittests/enum-flags-selftests.c.
4585 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4586 btrace_function_flags instead of enum btrace_function_flag.
4587 * compile/compile-c-types.c (convert_qualified): Use
4589 * compile/compile-cplus-symbols.c (convert_one_symbol)
4590 (convert_symbol_bmsym):
4591 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4592 (compile_cplus_convert_struct_or_union_methods)
4593 (compile_cplus_instance::convert_qualified_base):
4594 * go-exp.y (parse_string_or_char): Add cast to int.
4595 * unittests/enum-flags-selftests.c: New file.
4596 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4597 type to btrace_thread_flags from btrace_thread_flag.
4598 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4599 local's type to btrace_thread_flags from btrace_thread_flag. Add
4602 2020-09-14 Pedro Alves <pedro@palves.net>
4604 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4605 * gdbtypes.c (address_space_name_to_int): Rename to ...
4606 (address_space_name_to_type_instance_flags): ... this.
4607 (address_space_int_to_name): Rename to ...
4608 (address_space_type_instance_flags_to_name): ... this.
4609 * gdbtypes.h (address_space_name_to_int): Rename to ...
4610 (address_space_name_to_type_instance_flags): ... this.
4611 (address_space_int_to_name): Rename to ...
4612 (address_space_type_instance_flags_to_name): ... this.
4613 * type-stack.c (type_stack::insert): Adjust to rename.
4614 * type-stack.h (type_stack::insert): Likewise.
4616 2020-09-14 Pedro Alves <pedro@palves.net>
4617 Andrew Burgess <andrew.burgess@embecosm.com>
4619 * avr-tdep.c (avr_address_class_type_flags): Return
4620 type_instance_flags.
4621 (avr_address_class_type_flags_to_name): Take a
4622 type_instance_flags.
4623 (avr_address_class_name_to_type_flags): Return bool and take a
4624 type_instance_flags.
4625 * d-lang.c (build_d_types): Use type::set_instance_flags.
4626 * ft32-tdep.c (ft32_address_class_type_flags): Return
4627 type_instance_flags.
4628 (ft32_address_class_type_flags_to_name): Take a
4629 type_instance_flags.
4630 (ft32_address_class_name_to_type_flags): Return bool and take a
4631 type_instance_flags.
4632 (ft32_gdbarch_init): Use type::set_instance_flags.
4633 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4634 * gdbarch.h, gdbarch.c: Regenerate.
4635 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4636 (address_class_name_to_type_flags): Use type_instance_flags and
4638 * gdbtypes.c (address_space_name_to_int)
4639 (address_space_int_to_name, make_qualified_type): Use
4640 type_instance_flags.
4641 (make_qualified_type): Use type_instance_flags and
4642 type::set_instance_flags.
4643 (make_type_with_address_space, make_cv_type, make_vector_type)
4644 (check_typedef): Use type_instance_flags.
4645 (recursive_dump_type): Cast type_instance_flags to unsigned for
4647 (copy_type_recursive): Use type::set_instance_flags.
4648 (gdbtypes_post_init): Use type::set_instance_flags.
4649 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4650 <m_instance_flags>: ... this.
4651 <instance_flags, set_instance_flags>: New methods.
4652 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4653 (SET_TYPE_INSTANCE_FLAGS): New.
4654 (address_space_name_to_int, address_space_int_to_name)
4655 (make_type_with_address_space): Pass flags using
4656 type_instance_flags instead of int.
4657 * stabsread.c (cleanup_undefined_types_noname): Use
4658 type::set_instance_flags.
4659 * s390-tdep.c (s390_address_class_type_flags): Return
4660 type_instance_flags.
4661 (s390_address_class_type_flags_to_name): Take a
4662 type_instance_flags.
4663 (s390_address_class_name_to_type_flags): Return bool and take a
4664 type_instance_flags.
4665 * type-stack.c (type_stack::follow_types): Use
4666 type_instance_flags.
4667 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4669 2020-09-14 Tom Tromey <tromey@adacore.com>
4671 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4672 * x86-tdep.c (x86_is_thunk_register_name)
4673 (x86_in_indirect_branch_thunk): Update.
4674 * sparc64-tdep.c (sparc64_fpu_register_names)
4675 (sparc64_cp0_register_names, sparc64_register_names)
4676 (sparc64_pseudo_register_names): Now const.
4677 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4678 cp0_registers_num>: Now const.
4679 * sparc-tdep.c (sparc_core_register_names)
4680 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4681 (sparc32_pseudo_register_names): Now const.
4682 (validate_tdesc_registers): Update.
4683 * rust-lang.c (rust_extensions): Now const.
4684 * p-lang.c (p_extensions): Now const.
4685 * objc-lang.c (objc_extensions): Now const.
4686 * nto-tdep.c (nto_thread_state_str): Now const.
4687 * moxie-tdep.c (moxie_register_names): Now const.
4688 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4690 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4691 (mips_linux_reg_names): Now const.
4692 (mips_gdbarch_init): Update.
4693 * microblaze-tdep.c (microblaze_register_names): Now const.
4694 * m68k-tdep.c (m68k_register_names): Now const.
4695 * m32r-tdep.c (m32r_register_names): Now const.
4696 * ia64-tdep.c (ia64_register_names): Now const.
4697 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4698 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4699 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4700 ymm_avx512_register_names, pkeys_register_names>: Now const.
4701 * i386-tdep.c (i386_register_names, i386_zmm_names)
4702 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4703 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4704 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4705 * f-lang.c (f_extensions): Now const.
4706 * d-lang.c (d_extensions): Now const.
4707 * csky-tdep.c (csky_register_names): Now const.
4708 * charset.c (default_charset_names, charset_enum): Now const.
4709 (_initialize_charset): Update.
4710 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4712 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4713 (bsd_uthread_solib_loaded): Update.
4714 (bsd_uthread_state): Now const.
4715 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4716 (amd64_ymm_avx512_names, amd64_ymmh_names)
4717 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4718 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4719 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4720 (amd64_dword_names): Now const.
4721 * agent.c (can_use_agent_enum): Now const.
4722 * ada-tasks.c (task_states, long_task_states): Now const.
4723 * ada-lang.c (known_runtime_file_name_patterns)
4724 (known_auxiliary_function_name_patterns, attribute_names)
4725 (standard_exc, ada_extensions): Now const.
4727 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4729 * bcache.h (struct bcache) <bcache>: Remove constructor.
4730 <m_hash_function, m_compare_function>: Remove.
4731 <~bcache>: Make virtual.
4732 <compare>: Remove static method, introduce virtual method.
4733 <default_hash>: Remove.
4734 <hash>: New virtual method.
4735 * bcache.c (bcache::expand_hash_table): Update.
4736 (bcache::insert): Update.
4737 (bcache::hash): New.
4738 (bcache::compare): Update comment and parameter names.
4739 * gdbtypes.c (types_deeply_equal): Update.
4740 * psymtab.h (struct psymbol_bcache): New struct.
4741 (class psymtab_storage) <psymtab_storage>: Make default.
4742 <psymbol_cache>: Change type to psymbol_bcache.
4743 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4744 (psymbol_hash): Change to...
4745 (psymbol_bcache::hash): ... this.
4746 (psymbol_compare): Change to...
4747 (psymbol_bcache::compare): ... this.
4749 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4751 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4752 checking for initial lwp.
4754 2020-09-14 Tom Tromey <tromey@adacore.com>
4756 * m68k-tdep.c (m68k_extract_return_value): Use
4757 pointer_result_regnum.
4758 (m68k_store_return_value): Likewise.
4759 (m68k_reg_struct_return_p): Handle vectors and arrays.
4760 (m68k_return_value): Handle arrays.
4761 (m68k_svr4_return_value): Fix single-element aggregate handling.
4762 Handle long double. Adjust for embedded ABI.
4763 (m68k_svr4_init_abi): Set pointer_result_regnum.
4764 (m68k_embedded_init_abi): New function.
4765 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4766 (m68k_osabi_sniffer): New function.
4767 (_initialize_m68k_tdep): Register osabi sniffer.
4768 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4771 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4773 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4774 with gdb::unique_xmalloc_ptr<char>.
4776 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4778 * xml-support.h (xml_fetch_another): Change type to be a
4780 (xml_process_xincludes): Remove baton parameter.
4781 (xml_fetch_content_from_file): Change baton parameter to
4783 * xml-support.c (struct xinclude_parsing_data)
4784 <xinclude_parsing_data>: Remove baton parameter.
4785 <fetcher_baton>: Remove.
4786 (xinclude_start_include): Adjust.
4787 (xml_process_xincludes): Adjust.
4788 (xml_fetch_content_from_file): Replace baton parameter with
4790 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4791 (xml_init_syscalls_info): Use a lambda.
4792 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4793 (file_read_description_xml): Use a lambda.
4794 (fetch_available_features_from_target): Change baton parameter
4796 (target_read_description_xml): Use a lambda.
4797 (target_fetch_description_xml): Use a lambda.
4798 (string_read_description_xml): Update.
4800 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4802 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4803 uses with type::endianity_is_not_default.
4805 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4807 * gdbtypes.h (struct type) <endianity_is_not_default,
4808 set_endianity_is_not_default>: New methods.
4809 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4810 type::endianity_is_not_default, change all write call sites to
4811 use type::set_endianity_is_not_default.
4813 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4815 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4816 uses with type::is_fixed_instance.
4818 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4820 * gdbtypes.h (struct type) <is_fixed_instance,
4821 set_is_fixed_instance>: New methods.
4822 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4823 write call sites to use type::set_is_fixed_instance.
4825 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4827 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4828 uses with type::is_gnu_ifunc.
4830 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4832 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4833 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4834 use type::set_is_gnu_ifunc.
4836 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4838 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4839 uses with type::stub_is_supported.
4841 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4843 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4844 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4845 use type::set_stub_is_supported.
4847 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4849 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4850 uses with type::is_vector.
4852 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4854 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4855 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4856 use type::set_is_vector.
4858 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4860 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4861 uses with type::has_varargs.
4863 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4865 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4866 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4867 use type::set_has_varargs.
4869 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4871 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4872 uses with type::is_prototyped.
4874 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4876 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4878 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4879 call sites to use type::set_is_prototyped.
4881 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4883 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4884 uses with type::target_is_stub.
4886 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4888 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4890 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4891 sites to use type::set_target_is_stub.
4893 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4895 * gdbtypes.h (TYPE_STUB): Remove, replace all
4896 uses with type::is_stub.
4898 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4900 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4901 (TYPE_STUB): Use type::is_stub, change all write call sites to
4902 use type::set_is_stub.
4904 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4906 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4907 type::has_no_signedness.
4909 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4911 * gdbtypes.h (struct type) <has_no_signedness,
4912 set_has_no_signedness>: New methods.
4913 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4914 call sites to use type::set_has_no_signedness.
4916 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4918 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4921 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4923 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4925 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4926 sites to use type::set_is_unsigned.
4928 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4929 Adam Renquinha <arenquinha@cimeq.qc.ca>
4931 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4932 pointer and stack frame offset when unwinding.
4934 2020-09-13 Pedro Alves <pedro@palves.net>
4936 * NEWS: Document "-break-insert --qualified".
4937 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4939 2020-09-13 Pedro Alves <pedro@palves.net>
4941 * linespec.c (classify_mtype, compare_msyms): Delete.
4942 (search_minsyms_for_name): Remove classification logic. Instead
4943 filter out trampoline symbols if we also found an external
4944 function of the same name.
4946 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4948 * NEWS: Create a new section for the next release branch.
4949 Rename the section of the current branch, now that it has
4952 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4954 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4955 * version.in: Bump version to 11.0.50.DATE-git.
4957 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4959 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4961 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4962 Felix Willgerodt <Felix.Willgerodt@intel.com>
4964 * gdbarch.sh: Added bfloat16 type.
4965 * gdbarch.c: Regenerated.
4966 * gdbarch.h: Regenerated.
4967 * gdbtypes.c (floatformats_bfloat16): New struct.
4968 (gdbtypes_post_init): Add builtin_bfloat16.
4969 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4970 (floatformats_bfloat16): New struct.
4971 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4972 (i386_ymm_type): Add field "v16_bfloat16"
4973 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4974 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4975 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4976 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4977 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4978 * features/i386/64bit-avx512.c: Regenerated.
4979 * features/i386/64bit-sse.xml: Add bfloat16 type.
4980 * features/i386/64bit-sse.c: Regenerated.
4982 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4984 * i386-tdep.c (i386_zmm_type): Fix field names.
4985 (i386_ymm_type): Fix field names.
4987 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4989 * breakpoint.c: Fix typo in the help message of the
4990 "set breakpoint condition-evaluation" command.
4992 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4994 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4995 * (nbsd_nat_target::pid_to_exec_file)
4996 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4997 (nbsd_nat_target::post_startup_inferior)
4998 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4999 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5000 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5001 * (nbsd_thread_lister): Remove.
5003 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5005 * fork-inferior.c (startup_inferior): Avoid double free.
5007 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5009 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5010 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5012 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5014 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5015 * netbsd-nat.c: Include <sys/ptrace.h>.
5016 * (netbsd_nat::enable_proc_events): Add.
5018 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5020 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5021 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5022 (netbsd_nat::for_each_thread): Add.
5023 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5024 "gdbsupport/common-debug.h".
5025 * (netbsd_nat::netbsd_thread_lister)
5026 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5027 (netbsd_nat::for_each_thread): Add.
5029 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5031 * netbsd-nat.h: Include <unistd.h>.
5032 * (netbsd_nat::pid_to_exec_file): Add.
5033 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5034 * (netbsd_nat::pid_to_exec_file) Add.
5036 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5038 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5040 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5042 * netbsd-nat.h: New file.
5043 * netbsd-nat.c: Likewise.
5045 2020-09-09 Tom Tromey <tromey@adacore.com>
5047 * ada-lang.c (remove_extra_symbols): Do not increment when
5050 2020-09-08 Tom Tromey <tromey@adacore.com>
5052 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5054 2020-09-08 Tom Tromey <tromey@adacore.com>
5057 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5058 (gdb_bfd_init_data): New function.
5059 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5061 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5063 * infrun.c (fetch_inferior_event): Use
5064 `switch_to_target_no_thread` to switch the target.
5066 2020-09-06 Tom Tromey <tom@tromey.com>
5068 * symfile.h (dwarf2_free_objfile): Don't declare.
5070 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5072 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5073 to match 16 byte real/complex type generated by Flang compiler.
5075 2020-09-03 Tom de Vries <tdevries@suse.de>
5078 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5079 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5081 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5083 * maint.c (index_digits): New function.
5084 (struct maint_print_section_data): Remove.
5085 (print_bfd_section_info): Remove print_data parameter, add arg
5087 (print_objfile_section_info): Likewise.
5088 (print_bfd_section_info_maybe_relocated): Likewise (plus
5090 (maintenance_info_sections): Adjust calls.
5092 2020-09-02 Tom Tromey <tromey@adacore.com>
5094 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5096 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5098 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5100 * bcache.h (struct bcache) <insert>: Change type of `added` to
5102 * bcache.c (bcache::insert): Likewise.
5103 * gdbtypes.c (check_types_worklist): Adjust.
5104 * psymtab.c (add_psymbol_to_bcache): Adjust.
5106 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5108 * corelow.c (unordered_set): Include.
5109 (class core_target): Add field 'm_core_unavailable_mappings'.
5110 (core_target::build_file_mappings): Print only one warning
5111 per inaccessible file. Add unavailable/broken mappings
5112 to m_core_unavailable_mappings.
5113 (core_target::xfer_partial): Call...
5114 (core_target::xfer_memory_via_mappings): New method.
5116 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5118 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5121 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5123 * dwarf2/read.c (struct field_info): Fix indentation.
5125 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5127 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5128 ordering in comment.
5129 * frame.c (frame_id_eq): Fix indentation.
5131 2020-08-31 Scott Linder <scott@scottlinder.com>
5132 Simon Marchi <simon.marchi@efficios.com>
5134 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5135 inline frame ids in outer frame.
5137 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5139 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5140 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5141 (outer_frame_id): Use FID_STACK_OUTER instead of
5143 (frame_id_p): Don't check for outer_frame_id.
5145 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5147 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5148 regnum/frame in value. Call allocate_value_lazy.
5149 * frame.c (frame_unwind_register_value): Use
5150 val_print_not_saved.
5152 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5154 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5156 2020-08-29 Pedro Alves <pedro@palves.net>
5158 * progspace.c (print_program_space): Use all_inferiors. Switch to
5159 the inferior before calling target_pid_to_str.
5161 2020-08-28 Tom Tromey <tom@tromey.com>
5163 * xcoffread.c (xcoff_end_psymtab): Update comment.
5164 * dbxread.c (dbx_end_psymtab): Update comment.
5166 2020-08-28 Tom de Vries <tdevries@suse.de>
5169 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5171 (create_breakpoint): Same.
5172 (base_breakpoint_decode_location): Same.
5173 (bkpt_create_sals_from_location): Same.
5174 (bkpt_decode_location): Same.
5175 (bkpt_probe_create_sals_from_location): Same.
5176 (bkpt_probe_decode_location): Same.
5177 (tracepoint_create_sals_from_location): Same.
5178 (tracepoint_decode_location): Same.
5179 (tracepoint_probe_decode_location): Same.
5180 (strace_marker_create_sals_from_location): Same.
5181 (strace_marker_decode_location): Same.
5182 (create_sals_from_location_default): Same.
5183 (decode_location_default): Same.
5184 * breakpoint.h (struct breakpoint_ops): Same.
5185 (create_breakpoint): Same.
5186 * linespec.h (decode_line_full): Same.
5187 * linespec.c (decode_line_full): Same. Throw error if
5188 result.size () == 0.
5190 2020-08-27 Pedro Alves <pedro@palves.net>
5193 * breakpoint.c (until_break_fsm) <location_breakpoint,
5194 caller_breakpoint>: Delete fields.
5195 <breakpoints>: New field.
5196 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5197 two individual breakpoints.
5198 (until_break_fsm::should_stop): Loop over breakpoints in the
5200 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5202 (until_break_command): Handle location expanding into multiple
5205 2020-08-27 Pedro Alves <pedro@palves.net>
5208 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5209 bp_until breakpoints user-specified locations. Update intro
5212 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5214 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5215 gdb_bfd_sections): New.
5216 * maint.c (print_bfd_section_info): Change param type to
5217 maint_print_section_data.
5218 (print_objfile_section_info): Likewise.
5219 (print_bfd_section_info_maybe_relocated): Likewise.
5220 (maintenance_info_sections): Use gdb_bfd_sections.
5222 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5224 * MAINTAINERS: Add ARC target and maintainer.
5226 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5228 * configure.tgt: ARC support for GNU/Linux.
5229 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5230 * arc-linux-tdep.c: New file.
5231 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5232 * arc-tdep.c (arc_write_pc): Use it.
5234 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5236 * arc-tdep.c (arc_check_for_hardware_loop): New.
5237 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5239 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5241 * arc-tdep.h: Include "gdbarch.h".
5243 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5246 (arc_gdbarch_features): New class to stir the selection of target XML.
5247 (arc_create_target_description): Use FEATURES to choose XML target.
5248 (arc_lookup_target_description): Use arc_create_target_description
5249 to create _new_ target descriptions or return the already created
5250 ones if the FEATURES is the same.
5251 * arch/arc.c: Implementation of prototypes described above.
5252 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5253 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5254 * arc-tdep.c (*_feature_name): Make feature names consistent.
5255 (arc_register_feature): A new struct to hold information about
5256 registers of a particular target/feature.
5257 (arc_check_tdesc_feature): Check if XML provides registers in
5258 compliance with ARC_REGISTER_FEATURE structs.
5259 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5260 (determine_*_reg_feature_set): Which feature name to look for.
5261 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5262 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5263 to expected ISA enums to be used in arc_gdbarch_features structs.
5264 * features/Makefile (FEATURE_XMLFILES): Add new files.
5265 * gdb/features/arc/v1-aux.c: New file.
5266 * gdb/features/arc/v1-aux.xml: Likewise.
5267 * gdb/features/arc/v1-core.c: Likewise.
5268 * gdb/features/arc/v1-core.xml: Likewise.
5269 * gdb/features/arc/v2-aux.c: Likewise.
5270 * gdb/features/arc/v2-aux.xml: Likewise.
5271 * gdb/features/arc/v2-core.c: Likewise.
5272 * gdb/features/arc/v2-core.xml: Likewise.
5273 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5275 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5276 Andrew Burgess <andrew.burgess@embecosm.com>
5279 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5280 an assert. Remove single element array indexing pattern as the
5281 MULTI_SUBSCRIPT support will handle this case too.
5283 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5285 * value.h (valprint_check_validity): Move declaration from
5287 * valprint.h (valprint_check_validity): ... to here.
5289 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5291 * debug.h: New file.
5292 * debug.c (debug_prefixed_vprintf): New function.
5293 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5294 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5296 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5298 * infrun.h (infrun_debug_printf_1): New function declaration.
5299 (infrun_debug_printf): New macro.
5300 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5302 (infrun_debug_printf): New function.
5303 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5304 (handle_jit_event): Likewise.
5306 2020-08-21 Mark Wielaard <mark@klomp.org>
5308 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5310 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5312 * frame.c (enum class frame_id_status): New.
5313 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5314 (fprintf_frame): Update.
5315 (compute_frame_id): Set frame id status to "computing" on entry.
5316 Set it back to "not_computed" on failure and to "computed" on
5318 (get_frame_id): Assert the frame id is not being computed.
5319 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5320 (create_new_frame): Likewise.
5321 (frame_cleanup_after_sniffer): Update assert.
5323 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5325 * regcache.c (pid_ptid_regcache_map): New type.
5326 (target_ptid_regcache_map): Remove.
5327 (target_pid_ptid_regcache_map): New type.
5328 (regcaches): Change type to target_pid_ptid_regcache_map.
5329 (get_thread_arch_aspace_regcache): Update.
5330 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5332 (regcaches_size): Update.
5333 (regcache_count): Update.
5334 (registers_changed_ptid_target_pid_test): New.
5335 (_initialize_regcache): Register new test.
5337 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5339 * regcache.c (regcache_count): New.
5340 (struct regcache_test_data): New.
5341 (regcache_test_data_up): New.
5342 (populate_regcaches_for_test): New.
5343 (regcaches_test): Remove.
5344 (get_thread_arch_aspace_regcache_test): New.
5345 (registers_changed_ptid_all_test): New.
5346 (registers_changed_ptid_target_test): New.
5347 (registers_changed_ptid_target_ptid_test): New.
5348 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5349 (_initialize_regcache): Register new tests.
5351 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5353 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5354 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5355 gdbarch and aspace parameter. Use current inferior's aspace.
5356 Validate regcache's arch value.
5357 (regcaches_test): Update.
5359 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5361 * regcache.c (regcaches_test): Call registers_changed.
5363 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5365 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5367 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5369 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5370 to find the end of prologue for flang compiled binaries.
5371 * arm-tdep.c (arm_skip_prologue): Likewise.
5372 * i386-tdep.c (i386_skip_prologue): Likewise.
5373 * producer.c (producer_is_llvm): New function.
5374 (producer_parsing_tests): Added new tests for clang/flang.
5375 * producer.h (producer_is_llvm): New declaration.
5377 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5379 * linux-nat.c (linux_nat_debug_printf): New function.
5380 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5382 2020-08-18 Aaron Merey <amerey@redhat.com>
5384 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5385 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5386 (CLIBS): Add DEBUGINFOD_LIBS.
5388 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5390 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5393 2020-08-17 Tom Tromey <tromey@adacore.com>
5395 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5396 ada_get_decoded_value returns NULL.
5398 2020-08-17 Tom Tromey <tromey@adacore.com>
5400 * python/py-inferior.c (infpy_search_memory): Use
5401 gdb_py_object_from_ulongest.
5402 * python/py-infevents.c (create_inferior_call_event_object)
5403 (create_memory_changed_event_object): Use
5404 gdb_py_object_from_ulongest.
5405 * python/py-linetable.c (ltpy_entry_get_pc): Use
5406 gdb_py_object_from_ulongest.
5408 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5410 * loc.c (class symbol_needs_eval_context): Fix indentation.
5412 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5414 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5417 2020-08-17 Tom de Vries <tdevries@suse.de>
5420 * gdbtypes.c (dump_dynamic_prop): New function.
5421 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5423 2020-08-15 Tom de Vries <tdevries@suse.de>
5426 * stack.c (print_frame_args): Temporarily set the selected
5427 frame to FRAME while printing the frame's arguments.
5429 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5431 PR breakpoints/26385
5432 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5433 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5435 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5437 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5438 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5439 and >= to check return value instead of == -1 and != -1.
5441 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5443 * utils.h (class gdb_argv) <as_array_view>: New method.
5444 * utils.c (gdb_argv_as_array_view_test): New.
5445 (_initialize_utils): Register selftest.
5446 * maint.c (maintenance_selftest): Use the new method.
5448 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5450 * target.h (supports_dumpcore, dumpcore): New
5451 function declarations.
5452 * target.c (supports_dumpcore, dumpcore): New
5454 * target-delegates.c: Rebuild.
5455 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5456 and target_dumpcore ().
5458 2020-08-13 Aaron Merey <amerey@redhat.com>
5460 * debuginfod-support.c: Replace global variables with user_data.
5462 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5464 * maint.c (maintenance_selftest): Split args and pass array_view
5467 2020-08-12 Luis Machado <luis.machado@linaro.org>
5469 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5471 Use %s and pulongest to print the length.
5473 2020-08-12 Pedro Alves <palves@redhat.com>
5475 * NEWS: Move "Multi-target debugging support" item to the
5476 "Changes since GDB 9" section.
5478 2020-08-12 Pedro Alves <palves@redhat.com>
5481 * progspace.c (program_space::remove_objfile): Invalidate the
5484 2020-08-11 Tom de Vries <tdevries@suse.de>
5486 * MAINTAINERS: Mark ms1 as deleted.
5488 2020-08-10 Luis Machado <luis.machado@linaro.org>
5492 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5494 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5495 movz/str/stur/stp skipping behavior.
5497 2020-08-10 Luis Machado <luis.machado@linaro.org>
5499 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5500 struct user_sve_header instead of struct sve_context.
5502 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5504 * read.h (dwarf2_fetch_die_loc_sect_off,
5505 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5506 `void *` parameter with function_view.
5507 * read.c (dwarf2_fetch_die_loc_sect_off,
5508 dwarf2_fetch_die_loc_cu_off): Likewise.
5509 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5510 (per_cu_dwarf_call): Adjust.
5511 (get_frame_address_in_block_wrapper): Remove.
5512 (indirect_synthetic_pointer): Adjust.
5513 (get_ax_pc): Remove.
5514 (dwarf2_compile_expr_to_ax): Adjust.
5516 2020-08-08 Tom de Vries <tdevries@suse.de>
5519 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5521 * regcache.c (get_thread_arch_aspace_regcache): Same.
5523 2020-08-07 Tom Tromey <tromey@adacore.com>
5525 * ravenscar-thread.c
5526 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5528 (ravenscar_thread_target::wait): Check
5529 runtime_initialized.
5530 (ravenscar_thread_target::prepare_to_store)
5531 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5532 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5533 (ravenscar_thread_target::stopped_by_watchpoint)
5534 (ravenscar_thread_target::stopped_data_address)
5535 (ravenscar_thread_target::core_of_thread): Use
5536 scoped_restore_current_thread and
5537 set_base_thread_from_ravenscar_task.
5539 2020-08-07 Tom Tromey <tromey@adacore.com>
5541 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5543 2020-08-07 Tom Tromey <tromey@adacore.com>
5545 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5546 update_inferior_ptid before update_thread_list.
5547 (temporarily_change_regcache_ptid): New class.
5548 (ravenscar_thread_target::fetch_registers)
5549 (ravenscar_thread_target::store_registers)
5550 (ravenscar_thread_target::prepare_to_store): Use base thread when
5551 forwarding operation.
5553 2020-08-07 Tom Tromey <tromey@adacore.com>
5555 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5558 2020-08-07 Tom Tromey <tromey@adacore.com>
5560 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5562 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5564 (ravenscar_thread_target::add_thread): Rename from
5565 ravenscar_add_thread.
5566 (ravenscar_thread_target::update_thread_list): Use a lambda.
5567 (ravenscar_thread_target::xfer_partial): New method.
5569 2020-08-07 Tom Tromey <tromey@adacore.com>
5571 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5573 (iterate_over_live_ada_tasks): Change type of argument.
5574 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5577 2020-08-07 Tom Tromey <tromey@adacore.com>
5579 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5581 (ravenscar_thread_target::extra_thread_info): Remove.
5582 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5583 defer to target beneath for non-Ravenscar threads.
5585 2020-08-07 Tom Tromey <tromey@adacore.com>
5587 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5588 get_base_thread_from_ravenscar_task>: Now methods.
5589 <m_cpu_map>: New member.
5590 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5591 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5592 (ravenscar_thread_target::task_is_currently_active): Update.
5593 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5595 (ravenscar_thread_target::add_active_thread): Put initial thread
5598 2020-08-07 Tom Tromey <tromey@adacore.com>
5600 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5603 2020-08-07 Tom Tromey <tromey@adacore.com>
5605 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5606 runtime_initialized.
5608 2020-08-07 Tom Tromey <tromey@adacore.com>
5610 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5612 (ravenscar_thread_target::add_active_thread): Now public.
5613 (ravenscar_inferior_created): Call add_active_thread after pushing
5616 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5618 * regcache.c (ptid_regcache_map): New type.
5619 (target_ptid_regcache_map): New type.
5620 (regcaches): Change type to target_ptid_regcache_map.
5621 (get_thread_arch_aspace_regcache): Update to regcaches' new
5623 (regcache_thread_ptid_changed): Likewise.
5624 (registers_changed_ptid): Likewise.
5625 (regcaches_size): Likewise.
5626 (regcaches_test): Update.
5627 (regcache_thread_ptid_changed): Update.
5628 * regcache.h (regcache_up): New type.
5629 * gdbsupport/ptid.h (hash_ptid): New struct.
5631 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5633 * observable.h (thread_ptid_changed): Add parameter
5634 `process_stratum_target *`.
5635 * infrun.c (infrun_thread_ptid_changed): Add parameter
5636 `process_stratum_target *` and use it.
5637 (selftests): New namespace.
5638 (infrun_thread_ptid_changed): New function.
5639 (_initialize_infrun): Register selftest.
5640 * regcache.c (regcache_thread_ptid_changed): Add parameter
5641 `process_stratum_target *` and use it.
5642 (regcache_thread_ptid_changed): New function.
5643 (_initialize_regcache): Register selftest.
5644 * thread.c (thread_change_ptid): Pass target to
5645 thread_ptid_changed observable.
5647 2020-08-06 Caroline Tice <cmtice@google.com>
5649 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5650 (struct dwp_sections): Update field comments. Add loclists and
5652 (struct virtual_v2_dwo_sections): Rename struct to
5653 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5654 size & offset fields for loclists and rnglists.
5655 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5656 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5657 skipping dummy type units.
5658 (create_dwp_hash_table): Update the large comment above the function to
5659 discuss Version 5 DWP files as well, with references. Update all the
5660 version checks in the function to check for version 5 as well. Add new
5661 section at the end to create dwp hash table for version 5.
5662 (create_dwp_v2_section): Rename function to
5663 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5664 Add V5 to error message text.
5665 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5666 into calls to create_dwp_v2_or_v5_section.
5667 (create_dwo_unit_in_dwp_v5): New function.
5668 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5669 check for version2; add else clause to handle version 5.
5670 (open_and_init_dwo_file): Add code to check dwarf version & only call
5671 create_debug_types_hash_table (with sections.types) if version is not 5;
5672 else call create_debug_type_hash_table, with sections.info.
5673 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5675 (dwarf2_locate_v5_dwp_sections): New function.
5676 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5677 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5679 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5681 * regcache.h (class regcache): Remove friend
5682 registers_changed_ptid.
5683 <regcache_thread_ptid_changed>: Remove.
5684 <regcaches>: Remove.
5685 * regcache.c (regcache::regcaches): Rename to...
5686 (regcaches): ... this. Make static.
5687 (get_thread_arch_aspace_regcache): Update.
5688 (regcache::regcache_thread_ptid_changed): Rename to...
5689 (regcache_thread_ptid_changed): ... this. Update.
5690 (class regcache_access): Remove.
5691 (regcaches_test): Update.
5692 (_initialize_regcache): Update.
5693 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5696 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5698 * regcache.h (class regcache) <current_regcache>: Rename to...
5699 <regcaches>: ... this. Move doc here.
5700 * regcache.c (regcache::current_regcache) Rename to...
5701 (regcache::regcaches): ... this. Move doc to header.
5702 (get_thread_arch_aspace_regcache): Update.
5703 (regcache::regcache_thread_ptid_changed): Update.
5704 (registers_changed_ptid): Update.
5705 (class regcache_access) <current_regcache_size>: Rename to...
5706 <regcaches_size>: ... this.
5707 (current_regcache_test): Rename to...
5708 (regcaches_test): ... this.
5709 (_initialize_regcache): Update.
5711 2020-08-06 Victor Collod <vcollod@nvidia.com>
5713 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5715 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5717 * corelow.c (core_target::build_file_mappings): Don't output
5718 null pathname in warning.
5720 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5722 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5723 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5724 gdb.dwarf2/dw2-single-line-discriminators.exp,
5725 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5727 2020-08-05 Tom Tromey <tromey@adacore.com>
5730 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5731 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5732 Fix off-by-one and type size errors in ordinary case.
5734 2020-08-05 Tom de Vries <tdevries@suse.de>
5736 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5737 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5739 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5741 * frame.h (frame_id_p): Return bool.
5742 (frame_id_artificial_p): Return bool.
5743 (frame_id_eq): Return bool.
5744 (has_stack_frames): Return bool.
5745 (get_selected_frame): Fix typo in comment.
5746 (get_frame_pc_if_available): Return bool.
5747 (get_frame_address_in_block_if_available): Return bool.
5748 (get_frame_func_if_available): Return bool.
5749 (read_frame_register_unsigned): Return bool.
5750 (get_frame_register_bytes): Return bool.
5751 (safe_frame_unwind_memory): Return bool.
5752 (deprecated_frame_register_read): Return bool.
5753 (frame_unwinder_is): Return bool.
5754 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5756 <this_id::p>: Likewise.
5758 (frame_stash_add): Return bool.
5759 (get_frame_id): Use bool.
5760 (frame_id_build_special) Use bool.
5761 (frame_id_build_unavailable_stack): Use bool.
5762 (frame_id_build): Use bool.
5763 (frame_id_p): Return bool, use true/false instead of 1/0.
5764 (frame_id_artificial_p): Likewise.
5765 (frame_id_eq): Likewise.
5766 (frame_id_inner): Likewise.
5767 (get_frame_func_if_available): Likewise.
5768 (read_frame_register_unsigned): Likewise.
5769 (deprecated_frame_register_read): Likewise.
5770 (get_frame_register_bytes): Likewise.
5771 (has_stack_frames): Likewise.
5772 (inside_main_func): Likewise.
5773 (inside_entry_func): Likewise.
5774 (get_frame_pc_if_available): Likewise.
5775 (get_frame_address_in_block_if_available): Likewise.
5776 (frame_unwinder_is): Likewise.
5777 (safe_frame_unwind_memory): Likewise.
5778 (frame_unwind_arch): Likewise.
5780 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5782 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5783 type to cached_copy_status.
5784 (fprintf_frame): Adjust.
5785 (get_frame_func_if_available): Adjust.
5786 (frame_cleanup_after_sniffer): Adjust.
5788 2020-08-04 Mark Wielaard <mark@klomp.org>
5790 * MAINTAINERS (Write After Approval): Update email address.
5792 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5794 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5795 dynamic_prop::const_val.
5797 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5799 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5802 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5804 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5806 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5808 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5810 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5811 Jose E. Marchesi <jose.marchesi@oracle.com>
5813 * configure.tgt: Add entry for bpf-*-*.
5814 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5815 (ALLDEPFILES): Add bpf-tdep.c.
5816 * bpf-tdep.c: New file.
5817 * MAINTAINERS: Add bpf target and maintainer.
5818 * NEWS: Mention the support for the new target.
5820 2020-08-04 Tom de Vries <tdevries@suse.de>
5823 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5826 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5828 * syscalls/freebsd.xml: Regenerate.
5830 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5832 * syscalls/update-freebsd.sh: Fix usage and year range.
5834 2020-08-03 Tom de Vries <tdevries@suse.de>
5837 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5838 DW_LNE_lo_user/DW_LNE_hi_user range.
5840 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5843 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5846 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5848 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5850 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5852 * breakpoint.c (set_breakpoint_condition): Update the condition
5853 expressions after checking that the input condition string parses
5854 successfully and does not contain junk at the end.
5856 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5858 * breakpoint.c (set_breakpoint_condition): Update the
5859 condition string after parsing the new condition successfully.
5861 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5863 * proc-api.c (_STRUCTURED_PROC): Don't define.
5864 * proc-events.c: Likewise.
5865 * proc-flags.c: Likewise.
5866 * proc-why.c: Likewise.
5867 * procfs.c: Likewise.
5869 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5870 * configure, config.in: Regenerate.
5872 2020-07-30 Tom de Vries <tdevries@suse.de>
5875 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5876 m_red/m_green/m_blue in a union.
5878 2020-07-29 Tom de Vries <tdevries@suse.de>
5881 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5883 2020-07-28 Tom Tromey <tromey@adacore.com>
5886 * symtab.h (find_pc_partial_function_sym): Declare.
5887 * cli/cli-cmds.c (disassemble_command): Use
5888 find_pc_partial_function_sym. Check asm_demangle.
5889 * blockframe.c (cache_pc_function_sym): New global.
5890 (cache_pc_function_name): Remove.
5891 (clear_pc_function_cache): Update.
5892 (find_pc_partial_function_sym): New function, from
5893 find_pc_partial_function.
5894 (find_pc_partial_function): Rewrite using
5895 find_pc_partial_function_sym.
5897 2020-07-28 Tom Tromey <tromey@adacore.com>
5899 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5902 2020-07-28 Tom Tromey <tromey@adacore.com>
5904 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5905 <DW_OP_GNU_variable_value>: Cast to address type.
5907 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5909 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5910 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5911 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5912 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5913 (nbsd_get_siginfo_type): New.
5914 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5915 (_initialize_nbsd_tdep): New.
5917 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5920 * configure: Regenerated.
5922 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5925 * configure: Regenerated.
5927 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5929 * python/py-frame.c: Remove 'user-regs.h' include.
5930 (frapy_read_register): Rewrite to make use of
5931 gdbpy_parse_register_id.
5932 * python/py-registers.c (gdbpy_parse_register_id): New function,
5933 moved here from python/py-unwind.c. Updated the return type, and
5934 also accepts register descriptor objects.
5935 * python/py-unwind.c: Remove 'user-regs.h' include.
5936 (pyuw_parse_register_id): Moved to python/py-registers.c.
5937 (unwind_infopy_add_saved_register): Update to use
5938 gdbpy_parse_register_id.
5939 (pending_framepy_read_register): Likewise.
5940 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5942 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5944 * python/py-registers.c: Add 'user-regs.h' include.
5945 (register_descriptor_iter_find): New function.
5946 (register_descriptor_iterator_object_methods): New static global
5948 (register_descriptor_iterator_object_type): Add pointer to methods
5951 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5953 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5954 for all architectures on FreeBSD 11.3 and later.
5956 2020-07-27 Tom Tromey <tromey@adacore.com>
5958 * gcore.h (load_corefile): Don't declare.
5960 2020-07-27 Tom de Vries <tdevries@suse.de>
5962 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5963 * config.in: Regenerate.
5964 * configure: Regenerate.
5966 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5968 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5969 ws2tcpip.h. When checking whether socklen_t type is defined, use
5970 ws2tcpip.h if it is available and sys/socket.h isn't.
5971 * configure: Regenerate.
5972 * config.in: Regenerate.
5974 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5978 * valops.c (value_ind): Pass address to
5979 readjust_indirect_value_type.
5980 * value.c (readjust_indirect_value_type): Make parameter
5981 non-const, and add extra address parameter. Resolve original type
5983 * value.h (readjust_indirect_value_type): Update function
5984 signature and comment.
5986 2020-07-25 Tom de Vries <tdevries@suse.de>
5989 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5992 2020-07-24 Aaron Merey <amerey@redhat.com>
5994 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5995 * configure: Rebuild.
5997 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6000 * corelow.c (_initialize_corelow): Add period to help text
6001 for "maintenance print core-file-backed-mappings".
6003 2020-07-23 Pedro Alves <pedro@palves.net>
6005 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6006 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6008 * frame.c (frame_cache_generation, get_frame_cache_generation):
6010 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6011 (get_prev_frame_if_no_cycle): On exception, don't touch
6012 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6013 * frame.h (get_frame_cache_generation): Declare.
6015 2020-07-23 Tom de Vries <tdevries@suse.de>
6018 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6019 New default constructor.
6021 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6023 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6024 exclude non-statement entries.
6026 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6028 * NEWS (New commands): Mention new command
6029 "maintenance print core-file-backed-mappings".
6031 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6033 * corelow.c (gdbcmd.h): Include.
6034 (core_target::info_proc_mappings): New method.
6035 (get_current_core_target): New function.
6036 (maintenance_print_core_file_backed_mappings): New function.
6037 (_initialize_corelow): Add core-file-backed-mappings to
6038 "maint print" commands.
6040 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6042 * linux-tdep.c (dump_note_entry_p): New function.
6043 (linux_dump_mapping_p_ftype): New typedef.
6044 (linux_find_memory_regions_full): Add new parameter,
6045 should_dump_mapping_p.
6046 (linux_find_memory_regions): Adjust call to
6047 linux_find_memory_regions_full.
6048 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6049 call to linux_find_memory_regions_full.
6051 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6053 * corelow.c (solist.h, unordered_map): Include.
6054 (class core_target): Add field m_core_file_mappings and
6055 method build_file_mappings.
6056 (core_target::core_target): Call build_file_mappings.
6057 (core_target::~core_target): Free memory associated with
6058 m_core_file_mappings.
6059 (core_target::build_file_mappings): New method.
6060 (core_target::xfer_partial): Use m_core_file_mappings
6061 for memory transfers.
6062 * linux-tdep.c (linux_read_core_file_mappings): New
6064 (linux_core_info_proc_mappings): Rewrite to use
6065 linux_read_core_file_mappings.
6066 (linux_init_abi): Register linux_read_core_file_mappings.
6068 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6070 * arch-utils.c (default_read_core_file_mappings): New function.
6071 * arch-utils.c (default_read_core_file_mappings): Declare.
6072 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6073 * gdbarch.h, gdbarch.c: Regenerate.
6075 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6078 * corelow.c (core_target:xfer_partial): Revise
6079 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6080 case after first checking the stratum beneath the core
6082 (has_all_memory): Return true.
6083 * target.c (raw_memory_xfer_partial): Revise comment
6084 regarding use of has_all_memory.
6086 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6088 * exec.h (section_table_xfer_memory): Revise declaration,
6089 replacing section name parameter with an optional callback
6091 * exec.c (section_table_xfer_memory): Likewise.
6092 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6093 of section_table_xfer_memory.
6095 2020-07-22 Tom Tromey <tromey@adacore.com>
6097 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6098 lookup_symbol_search_name.
6100 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6102 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6103 redundant local variable.
6104 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6105 reference, not pointer, update code accordingly.
6107 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6108 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6110 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6111 * jit.c (jit_breakpoint_re_set_internal): Use the
6112 `skip_jit_symbol_lookup` field.
6114 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6115 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6117 * jit.c (jit_read_descriptor): Define the descriptor address once,
6119 (jit_breakpoint_deleted): Move the declaration of the loop variable
6120 `iter` into the loop header.
6121 (jit_breakpoint_re_set_internal): Move the declaration of the local
6122 variable `objf_data` to the first point of definition.
6123 (jit_event_handler): Move the declaration of local variables
6124 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6125 Rename `objf` to `jited`.
6127 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6129 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6131 * jit.c (get_jiter_objfile_data): Update.
6133 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6134 Simon Marchi <simon.marchi@polymtl.ca>
6136 * jit.c (struct jit_program_space_data): Remove.
6137 (jit_program_space_key): Remove.
6138 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6140 (get_jit_program_space_data): Remove.
6141 (jit_breakpoint_deleted): Iterate on all of the program space's
6143 (jit_inferior_init): Likewise.
6144 (jit_breakpoint_re_set_internal): Likewise. Also change return
6146 (jit_breakpoint_re_set): Pass current_program_space to
6147 jit_breakpoint_re_set_internal.
6149 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6151 * jit.h (struct jiter_objfile_data) <cached_code_address,
6152 jit_breakpoint>: Move to here from ...
6153 * jit.c (jit_program_space_data): ... here.
6154 (jiter_objfile_data::~jiter_objfile_data): Update.
6155 (jit_breakpoint_deleted): Update.
6156 (jit_breakpoint_re_set_internal): Update.
6158 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6160 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6162 (jit_read_descriptor): Remove NULL check.
6163 (jit_event_handler): Add an assertion.
6165 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6167 * jit.h (struct jit_objfile_data): Split into...
6168 (struct jiter_objfile_data): ... this ...
6169 (struct jited_objfile_data): ... and this.
6170 * objfiles.h (struct objfile) <jit_data>: Remove.
6171 <jiter_data, jited_data>: New fields.
6172 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6173 (jiter_objfile_data::~jiter_objfile_data): ... this.
6174 (get_jit_objfile_data): Rename to ...
6175 (get_jiter_objfile_data): ... this.
6176 (add_objfile_entry): Update.
6177 (jit_read_descriptor): Use get_jiter_objfile_data.
6178 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6179 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6180 (jit_inferior_exit_hook): Use objfile's jited_data field.
6182 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6184 * jit.h: Forward-declare `struct minimal_symbol`.
6185 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6186 constructor, destructor, and an objfile* field.
6187 * jit.c (jit_objfile_data): Remove.
6188 (struct jit_objfile_data): Migrate from here to jit.h.
6189 (jit_objfile_data::~jit_objfile_data): New destructor
6190 implementation with code moved from free_objfile_data.
6191 (free_objfile_data): Delete.
6192 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6193 (jit_find_objf_with_entry_addr): Ditto.
6194 (jit_inferior_exit_hook): Ditto.
6195 (_initialize_jit): Remove the call to
6196 register_objfile_data_with_cleanup.
6197 * objfiles.h (struct objfile) <jit_data>: New field.
6199 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6201 * jit.h: Forward-declare `struct objfile`.
6202 (jit_event_handler): Add a second parameter, the JITer objfile.
6203 * jit.c (jit_read_descriptor): Change the signature to take the
6204 JITer objfile as an argument instead of the jit_program_space_data.
6205 (jit_inferior_init): Update the call to jit_read_descriptor.
6206 (jit_event_handler): Use the new JITer objfile argument when calling
6207 jit_read_descriptor.
6208 * breakpoint.c (handle_jit_event): Update the call to
6209 jit_event_handler to pass the JITer objfile.
6211 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6213 * gdbarch.c: Regenerate.
6214 * gdbarch.h: Regenerate.
6215 * gdbarch.sh (handle_segmentation_fault): Remove method.
6216 * infrun.c (handle_segmentation_fault): Remove.
6217 (print_signal_received_reason): Remove call to
6218 handle_segmentation_fault.
6220 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6222 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6223 Rename to sparc64_linux_report_signal_info and add siggnal
6225 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6226 instead of sparc64_linux_handle_segmentation_fault.
6228 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6230 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6231 i386_linux_report_signal_info instead of
6232 i386_linux_handle_segmentation_fault.
6233 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6234 to i386_linux_report_signal_info and add siggnal argument.
6235 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6236 of i386_linux_handle_segmentation_fault.
6237 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6238 to i386_linux_report_signal_info and add siggnal argument.
6240 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6242 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6245 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6247 * gdbarch.c: Regenerate.
6248 * gdbarch.h: Regenerate.
6249 * gdbarch.sh (report_signal_info): New method.
6250 * infrun.c (print_signal_received_reason): Invoke gdbarch
6251 report_signal_info hook if present.
6253 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6255 * python/py-registers.c : Add 'unordered_map' include.
6256 (gdbpy_new_reggroup): Renamed to...
6257 (gdbpy_get_reggroup): ...this. Update to only create register
6258 group descriptors when needed.
6259 (gdbpy_reggroup_iter_next): Update.
6261 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6263 * python/py-registers.c (gdbpy_register_object_data): New static
6265 (gdbpy_register_object_data_init): New function.
6266 (gdbpy_new_register_descriptor): Renamed to...
6267 (gdbpy_get_register_descriptor): ...this, and update to reuse
6268 existing register descriptors where possible.
6269 (gdbpy_register_descriptor_iter_next): Update.
6270 (gdbpy_initialize_registers): Register new gdbarch data.
6272 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6274 * linux-nat.c (stopped_pids): Make static.
6276 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6279 * gdbtypes.c (ada_discrete_type_low_bound,
6280 ada_discrete_type_high_bound): Handle undefined bounds.
6282 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6284 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6286 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6289 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6291 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6292 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6293 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6294 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6295 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6298 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6300 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6301 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6302 which are deprecated in Guile 3.0.
6303 * configure.ac (try_guile_versions): Add "guile-3.0".
6304 * configure (try_guile_versions): Regenerate.
6305 * NEWS: Update entry.
6307 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6308 Doug Evans <dje@google.com>
6311 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6312 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6313 USING_GUILE_BEFORE_2_2.
6314 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6315 Change type to 'scm_t_port_type *'.
6316 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6317 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6318 parameter and honor it. Update callers.
6319 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6320 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6322 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6323 USING_GUILE_BEFORE_2_2.
6324 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6325 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6326 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6327 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6328 and 'SCM_PORT_TYPE'.
6329 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6330 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6331 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6332 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6333 [!USING_GUILE_BEFORE_2_2]: New functions.
6334 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6335 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6336 'gdbscm_memory_port_read'.
6337 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6338 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6339 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6341 (ioscm_init_memory_port): Remove.
6342 (ioscm_init_memory_port_stream): New function
6343 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6345 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6346 Return scm_from_uint (0).
6347 (gdbscm_set_memory_port_read_buffer_size_x)
6348 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6349 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6350 Return scm_from_uint (0).
6351 (gdbscm_set_memory_port_write_buffer_size_x)
6352 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6353 * configure.ac (try_guile_versions): Add "guile-2.2".
6354 * configure: Regenerate.
6357 2020-07-18 Tom Tromey <tom@tromey.com>
6359 * linux-nat.c (linux_multi_process): Remove.
6360 (linux_nat_target::supports_multi_process): Return true.
6362 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6364 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6365 (riscv_lookup_target_description): Return pointer out of
6367 * target-descriptions.c (allocate_target_description): Add
6369 (target_desc_deleter::operator()): Likewise.
6370 * target-descriptions.h (struct target_desc_deleter): Moved to
6372 (target_desc_up): Likewise.
6374 2020-07-17 Tom Tromey <tromey@adacore.com>
6376 * linux-nat.c (linux_nat_target::supports_non_stop)
6377 (linux_nat_target::always_non_stop_p): Use "true".
6378 (linux_nat_target::supports_disable_randomization): Use "true" and
6381 2020-07-16 Caroline Tice <cmtice@google.com>
6383 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6384 (RNGLIST_HEADER_SIZE64): New constant definition.
6385 (struct dwop_section_names): Add rnglists_dwo.
6386 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6387 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6388 (struct dwo_sections): Add rnglists field.
6389 (read_attribut_reprocess): Add tag parameter.
6390 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6391 (cu_debug_rnglists_section): New function (decl & definition).
6392 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6393 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6394 die whose range is being checked; get rnglist section from
6395 cu_debug_rnglists_section, to get from either objfile or dwo file as
6396 appropriate. Add cases for DW_RLE_base_addressx,
6397 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6398 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6399 test inside if-condition and updating complaint message.
6400 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6401 dwarf2_rnglists_process.
6402 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6403 dwarf2_ranges_process.
6404 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6405 need_ranges_base and update comment appropriately. Also pass die tag
6406 to dwarf2_ranges_read.
6407 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6408 need_ranges_base and update comment appropriately. Also pass die tag
6409 to dwarf2_ranges_process.
6410 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6411 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6412 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6413 need_ranges_base and update comment appropriately. Also pass die tag
6414 to read_attribute_reprocess and dwarf2_ranges_read.
6415 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6416 and update function comment appropriately.
6417 (read_loclist_index): Call read_loclists_rnglists_header instead of
6418 read_loclist_header.
6419 (read_rnglist_index): New function.
6420 (read_attribute_reprocess): Add tag parameter. Add code for
6421 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6422 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6424 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6426 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6429 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6431 * arch-utils.c (show_architecture): Update formatting of messages.
6433 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6435 * gdbtypes.h (struct type) <bounds>: Handle array and string
6437 * ada-lang.c (assign_aggregate): Use type::bounds on
6439 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6440 * c-varobj.c (c_number_of_children): Likewise.
6441 (c_describe_child): Likewise.
6442 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6443 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6444 (f_type_print_base): Likewise.
6445 * f-valprint.c (f77_array_offset_tbl): Likewise.
6446 (f77_get_upperbound): Likewise.
6447 (f77_print_array_1): Likewise.
6448 * guile/scm-type.c (gdbscm_type_range): Likewise.
6449 * m2-typeprint.c (m2_array): Likewise.
6450 (m2_is_long_set_of_type): Likewise.
6451 * m2-valprint.c (get_long_set_bounds): Likewise.
6452 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6453 * python/py-type.c (typy_range): Likewise.
6454 * rust-lang.c (rust_internal_print_type): Likewise.
6455 * type-stack.c (type_stack::follow_types): Likewise.
6456 * valarith.c (value_subscripted_rvalue): Likewise.
6457 * valops.c (value_cast): Likewise.
6459 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6461 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6462 callers to use the equivalent accessor methods.
6464 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6466 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6467 (struct type) <bit_stride>: New method.
6468 (TYPE_BIT_STRIDE): Remove.
6469 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6471 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6473 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6474 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6475 callers to use the equivalent accessor methods instead.
6477 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6479 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6480 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6481 callers to use the equivalent accessor methods instead.
6483 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6485 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6486 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6487 to use dynamic_prop::kind.
6489 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6491 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6492 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6493 to get the bound property's kind and check against
6496 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6498 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6499 all callers to use type::range_bounds followed by
6500 dynamic_prop::{low,high}.
6502 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6504 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6505 const_val, set_const_val, baton, set_locexpr, set_loclist,
6506 set_addr_offset, variant_parts, set_variant_parts,
6507 original_type, set_original_type>: New methods.
6508 <kind>: Rename to...
6509 <m_kind>: ... this. Update all users to use the new methods
6511 <data>: Rename to...
6512 <m_data>: ... this. Update all users to use the new methods
6515 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6517 * gdbtypes.c (get_discrete_bounds): Return failure if
6518 the range type's bounds are not both defined and constant
6520 (get_array_bounds): Update comment. Remove undefined bound check.
6522 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6524 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6525 the type::bounds method directly.
6527 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6529 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6530 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6531 are used to set the range type's bounds to use set_bounds.
6533 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6537 2020-07-10 Pedro Alves <pedro@palves.net>
6539 * gdbthread.h (inferior_ref): Define.
6540 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6541 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6543 (scoped_restore_current_thread::restore):
6544 Adjust to gdb::ref_ptr.
6545 (scoped_restore_current_thread::~scoped_restore_current_thread):
6546 Remove manual decref handling.
6547 (scoped_restore_current_thread::scoped_restore_current_thread):
6549 inferior_ref::new_reference/thread_info_ref::new_reference.
6550 Incref the thread before calling get_frame_id instead of after.
6551 Let TARGET_CLOSE_ERROR propagate.
6553 2020-07-10 Pedro Alves <pedro@palves.net>
6555 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6556 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6557 NOT_AVAILABLE_ERROR.
6558 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6559 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6561 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6562 Pedro Alves <pedro@palves.net>
6565 * infrun.c (threads_are_resumed_pending_p): Delete.
6566 (do_target_wait): Remove threads_are_executing and
6567 threads_are_resumed_pending_p checks from the inferior_matches
6568 lambda. Update comments.
6570 2020-07-10 Pedro Alves <pedro@palves.net>
6573 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6576 2020-07-10 Pedro Alves <pedro@palves.net>
6579 * infrun.c (handle_no_resumed): Handle multiple targets.
6581 2020-07-10 Pedro Alves <pedro@palves.net>
6584 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6587 2020-07-10 Pedro Alves <pedro@palves.net>
6590 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6591 threads, not all threads.
6593 2020-07-10 Pedro Alves <pedro@palves.net>
6596 * remote.c (remote_target::open_1): Pass remote target pointer as
6597 data to create_async_event_handler.
6598 (remote_async_inferior_event_handler): Mark async event handler
6599 before returning if the remote target still has either pending
6600 events or unacknowledged notifications.
6602 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6604 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6606 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6609 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6611 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6614 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6616 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6617 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6618 AT_FREEBSD_PS_STRINGS.
6620 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6622 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6623 of debugfile path on Windows.
6625 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6627 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6630 2020-07-08 Tom Tromey <tromey@adacore.com>
6632 * ada-lang.c (ada_exception_message_1): Use read_memory.
6634 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6637 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6638 special handling for inline frames.
6639 * findvar.c (value_of_register_lazy): Skip inline frames when
6640 creating lazy register values.
6641 * frame.c (frame_id_computed_p): Delete definition.
6642 * frame.h (frame_id_computed_p): Delete declaration.
6644 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6646 * NEWS: Mention additions to Python API.
6647 * python/py-arch.c (archpy_register_groups): New function.
6648 (arch_object_methods): Add 'register_groups' method.
6649 * python/py-registers.c (reggroup_iterator_object): New struct.
6650 (reggroup_object): New struct.
6651 (gdbpy_new_reggroup): New function.
6652 (gdbpy_reggroup_to_string): New function.
6653 (gdbpy_reggroup_name): New function.
6654 (gdbpy_reggroup_iter): New function.
6655 (gdbpy_reggroup_iter_next): New function.
6656 (gdbpy_new_reggroup_iterator): New function
6657 (gdbpy_initialize_registers): Register new types.
6658 (reggroup_iterator_object_type): Define new Python type.
6659 (gdbpy_reggroup_getset): New static global.
6660 (reggroup_object_type): Define new Python type.
6661 * python/python-internal.h
6663 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6665 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6666 * python/py-arch.c (archpy_registers): New function.
6667 (arch_object_methods): Add 'registers' method.
6668 * python/py-registers.c: New file.
6669 * python/python-internal.h
6670 (gdbpy_new_register_descriptor_iterator): Declare.
6671 (gdbpy_initialize_registers): Declare.
6672 * python/python.c (do_start_initialization): Call
6673 gdbpy_initialize_registers.
6674 * NEWS: Mention additions to the Python API.
6676 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6678 * NEWS: Mention new Python API method.
6679 * python/py-unwind.c (pending_framepy_architecture): New function.
6680 (pending_frame_object_methods): Add architecture method.
6682 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6684 * gdbarch.c: Regenerate.
6685 * gdbarch.h: Regenerate.
6686 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6687 (gdbarch_data): Use internal_error for the case where
6688 deprecated_set_gdbarch_data was originally needed.
6689 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6690 and use passed in obstack.
6691 (libunwind_frame_set_descr): Should no longer get back NULL from
6693 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6695 * user-regs.c (user_regs_init): Update parameters, and use passed
6697 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6698 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6700 2020-07-06 Tom de Vries <tdevries@suse.de>
6702 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6703 End-Of-Sequence in lte_is_less_than.
6704 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6705 "gdb: Don't reorder line table entries too much when sorting".
6707 2020-07-06 Tom de Vries <tdevries@suse.de>
6710 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6712 2020-07-05 Tom de Vries <tdevries@suse.de>
6715 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6716 std::uncaught_exceptions instead of deprecated
6717 std::uncaught_exception.
6719 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6721 * macroexp.h (macro_stringify): Return
6722 gdb::unique_xmalloc_ptr<char>.
6723 * macroexp.c (macro_stringify): Likewise.
6724 * macrotab.c (fixup_definition): Update.
6726 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6728 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6729 (lex_one_token): Update.
6730 * macroexp.c (struct macro_buffer) <release>: Return
6731 gdb::unique_xmalloc_ptr<char>.
6732 (macro_stringify): Update.
6733 (macro_expand): Update.
6734 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6735 * macroexp.h (macro_expand_next): Likewise.
6737 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6739 * macroexp.h (macro_lookup_ftype): Remove.
6740 (macro_expand, macro_expand_once, macro_expand_next): Remove
6741 lookup function parameters, add scope parameter.
6742 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6743 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6744 * macroscope.h (standard_macro_lookup): Change parameter type
6746 * macroscope.c (standard_macro_lookup): Likewise.
6747 * c-exp.y (lex_one_token): Update.
6748 * macrocmd.c (macro_expand_command): Likewise.
6749 (macro_expand_once_command): Likewise.
6751 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6753 * inf-loop.c (inferior_event_handler): Remove client_data param.
6754 * inf-loop.h (inferior_event_handler): Likewise.
6755 * infcmd.c (step_1): Adjust.
6756 * infrun.c (proceed): Adjust.
6757 (fetch_inferior_event): Remove client_data param.
6758 (infrun_async_inferior_event_handler): Adjust.
6759 * infrun.h (fetch_inferior_event): Remove `void *` param.
6760 * linux-nat.c (handle_target_event): Adjust.
6761 * record-btrace.c (record_btrace_handle_async_inferior_event):
6763 * record-full.c (record_full_async_inferior_event_handler):
6765 * remote.c (remote_async_inferior_event_handler): Adjust.
6767 2020-07-01 Tom Tromey <tom@tromey.com>
6769 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6770 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6772 2020-07-01 Tom Tromey <tom@tromey.com>
6774 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6776 (tui_win_info::make_window): Merge with
6777 tui_gen_win_info::make_window.
6778 (tui_win_info::make_visible): Move from tui_gen_win_info.
6779 * tui/tui-win.c (tui_win_info::max_width): Move from
6781 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6783 <window_factory>: Likewise.
6784 * tui/tui-layout.c (tui_win_info::resize): Move from
6786 (make_standard_window): Change return type.
6787 (get_locator_window, tui_get_window_by_name): Likewise.
6788 (tui_layout_window::apply): Remove a cast.
6789 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6790 (struct tui_win_info): Merge with tui_gen_win_info.
6791 (struct tui_gen_win_info): Remove.
6793 2020-07-01 Tom Tromey <tom@tromey.com>
6795 * tui/tui-stack.h (struct tui_locator_window): Derive from
6797 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6798 <can_box>: New method.
6800 2020-07-01 Tom Tromey <tom@tromey.com>
6802 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6804 2020-07-01 Tom Tromey <tom@tromey.com>
6806 * tui/tui-regs.c (tui_data_window::display_registers_from)
6807 (tui_data_window::display_registers_from)
6808 (tui_data_window::first_data_item_displayed)
6809 (tui_data_window::delete_data_content_windows): Update.
6810 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6812 (tui_data_window::check_register_values): Update.
6813 (tui_data_item_window::rerender): Add parameters. Update.
6814 (tui_data_item_window::refresh_window): Remove.
6815 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6817 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6819 <refresh_window, max_height, min_height>: Remove.
6820 <rerender>: Add parameters.
6821 <x, y, visible>: New members.
6822 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6823 <m_item_width>: New member.
6825 2020-07-01 Tom Tromey <tom@tromey.com>
6827 * tui/tui-regs.c (tui_data_window::show_register_group)
6828 (tui_data_window::check_register_values): Update.
6829 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6832 2020-07-01 Tom Tromey <tom@tromey.com>
6834 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6837 2020-07-01 Tom Tromey <tom@tromey.com>
6839 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6840 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6842 2020-07-01 Tom Tromey <tom@tromey.com>
6844 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6845 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6846 (struct tui_line_or_address): Move from tui-data.h.
6847 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6848 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6849 (tui_cmd_window, tui_source_window_base, tui_source_window)
6850 (tui_disasm_window): Don't declare.
6851 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6853 (SINGLE_KEY): Move to tui-stack.c.
6855 2020-07-01 Tom Tromey <tom@tromey.com>
6857 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6859 * tui/tui-regs.c (class tab_expansion_file): New.
6860 (tab_expansion_file::write): New method.
6861 (tui_register_format): Change return type. Use
6863 (tui_get_register, tui_data_window::display_registers_from)
6864 (tui_data_item_window::rerender): Update.
6865 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6866 * tui/tui-io.c (tui_expand_tabs): Remove.
6868 2020-07-01 Tom Tromey <tom@tromey.com>
6870 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6872 2020-07-01 Fangrui Song <maskray@google.com>
6874 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6876 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6878 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6879 forms for DW_AT_associated and DW_AT_allocated attributes,
6880 which is already checked in function attr_to_dynamic_prop.
6882 2020-06-30 Tom Tromey <tromey@adacore.com>
6884 * dwarf2/read.c (quirk_rust_enum): Correctly call
6885 alloc_rust_variant for default-less enum.
6887 2020-06-30 Tom Tromey <tromey@adacore.com>
6890 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6893 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6895 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6896 * gdbarch.h: Re-generate.
6898 2020-06-28 Tom Tromey <tom@tromey.com>
6900 * command.h (cmd_types): Remove.
6901 (cmd_type): Don't declare.
6902 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6904 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6905 * cli/cli-decode.c (cmd_type): Remove.
6907 2020-06-27 Pedro Alves <palves@redhat.com>
6909 * fork-child.c (prefork_hook): Adjust.
6910 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6912 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6913 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6914 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6915 Remove declarations.
6916 (struct inferior) <set_tty, tty>: New methods.
6917 (struct inferior) <terminal>: Rename to ...
6918 (struct inferior) <m_terminal>: ... this and make private.
6919 * main.c (captured_main_1): Adjust.
6920 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6921 (mi_cmd_inferior_tty_show): Adjust.
6922 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6923 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6925 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6927 * configure.ac: Add --enable-libctf: handle --disable-static
6929 * acinclude.m4: sinclude ../config/enable.m4.
6930 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6931 (LIBCTF): Substitute in.
6932 (CTF_DEPS): New, likewise.
6933 (CLIBS): libctf needs symbols from libbfd: move earlier.
6934 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6936 * ctfread.c: Surround in ENABLE_LIBCTF.
6937 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6938 * configure: Regenerate.
6939 * config.in: Likewise.
6941 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6943 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6945 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6947 * inferior.h (struct inferior) <terminal>: Change type to
6948 gdb::unique_xmalloc_ptr<char>.
6949 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6950 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6951 field, adjust to unique pointer.
6952 (get_inferior_io_terminal): Adjust to unique pointer.
6954 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6956 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6957 registers, not just the known core set of registers.
6959 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6961 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6962 fflags, frm, and fcsr registers.
6963 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6965 (riscv_tdesc_unknown_reg): New function.
6966 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6967 tdesc_use_registers.
6968 * riscv-tdep.h (struct gdbarch_tdep): Add
6969 unknown_csrs_first_regnum, unknown_csrs_count,
6970 duplicate_fflags_regnum, duplicate_frm_regnum, and
6971 duplicate_fcsr_regnum fields.
6973 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6975 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6976 callback, use the callback (when not null) to help number unknown
6978 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6979 (tdesc_use_registers): Add extra parameter to declaration.
6981 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6983 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6985 (class riscv_pending_register_alias): Likewise.
6986 (riscv_register_feature::register_info): Change 'required_p' field
6987 to 'required', and change its type. Add 'check' member function.
6988 (riscv_register_feature::register_info::check): Define new member
6990 (riscv_xreg_feature): Change initialisation of 'required' field.
6991 (riscv_freg_feature): Likewise.
6992 (riscv_virtual_feature): Likewise.
6993 (riscv_csr_feature): Likewise.
6994 (riscv_check_tdesc_feature): Take extra parameter, the csr
6995 tdesc_feature, rewrite the function to use the new
6996 riscv_register_feature::register_info::check function.
6997 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6999 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7001 * features/Makefile: Remove all references to the deleted files
7003 * features/riscv/32bit-csr.c: Deleted.
7004 * features/riscv/32bit-csr.xml: Deleted.
7005 * features/riscv/64bit-csr.c: Deleted.
7006 * features/riscv/64bit-csr.xml: Deleted.
7007 * features/riscv/rebuild-csr-xml.sh: Deleted.
7009 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7011 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7012 whitespace error for declaration of names member variable.
7013 (struct riscv_register_feature): Add new prefer_first_name member
7014 variable, and fix whitespace error in declaration of registers.
7015 (riscv_xreg_feature): Initialize prefer_first_name field.
7016 (riscv_freg_feature): Likewise.
7017 (riscv_virtual_feature): Likewise.
7018 (riscv_csr_feature): Likewise.
7019 (riscv_register_name): Expand on comments. Remove register name
7020 modifications for CSR and virtual registers.
7022 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7024 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7027 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7029 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7031 (class riscv_pending_register_alias): New class.
7032 (riscv_check_tdesc_feature): Take vector of pending aliases and
7033 populate it as appropriate.
7034 (riscv_setup_register_aliases): Delete.
7035 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7036 to riscv_check_tdesc_feature in all cases. Use the vector to
7037 create the register aliases.
7039 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7041 * sol2-tdep.c (sol2_static_transform_name): Remove.
7042 (sol2_init_abi): Don't register it.
7043 * gdbarch.sh (static_transform_name): Remove.
7044 * gdbarch.c, gdbarch.h: Regenerate.
7046 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7047 gdbarch_static_transform_name.
7048 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7049 * stabsread.c (define_symbol) <'X'>: Remove.
7050 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7053 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7054 <'S'>: Remove call to gdbarch_static_transform_name.
7056 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7058 * procfs.c (procfs_pre_trace): New function.
7059 (procfs_target::create_inferior): Pass it to fork_inferior.
7061 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7063 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7064 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7065 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7066 sol2-tdep.o, sparc-sol2-tdep.o.
7067 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7068 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7069 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7070 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7072 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7074 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7075 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7077 Remove calls to set_gdbarch_skip_solib_resolver,
7078 set_gdbarch_core_pid_to_str.
7079 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7080 (i386_sol2_static_transform_name): Remove.
7081 (i386_sol2_init_abi): Call sol2_init_abi.
7082 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7083 set_gdbarch_static_transform_name,
7084 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7085 Use sol2_sigtramp_p.
7086 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7087 (sol2_sigtramp_p): New function.
7088 (sol2_static_transform_name): New function.
7089 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7090 (sol2_init_abi): New function.
7091 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7092 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7093 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7094 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7095 (sparc_sol2_static_transform_name): Remove.
7096 (sparc32_sol2_init_abi): Call sol2_init_abi.
7097 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7098 set_gdbarch_static_transform_name,
7099 set_gdbarch_skip_solib_resolver,
7100 set_gdbarch_core_pid_to_str.
7101 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7102 (sparc_sol2_static_transform_name): Remove
7103 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7104 call sol2_sigtramp_p.
7105 (sparc64_sol2_init_abi): Call sol2_init_abi.
7106 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7107 set_gdbarch_static_transform_name,
7108 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7110 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7112 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7113 * exec.c (validate_exec_file): If from_tty, set both
7114 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7115 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7116 and from_tty, unconditionally ask a confirmation.
7118 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7120 * target-descriptions.c (tdesc_architecture_name): Protect against
7121 NULL pointer dereference.
7122 (maint_print_xml_tdesc_cmd): New function.
7123 (_initialize_target_descriptions): Register new 'maint print
7124 xml-tdesc' command and give it the filename completer.
7125 * NEWS: Mention new 'maint print xml-tdesc' command.
7127 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7129 * target-descriptions.c (class tdesc_compatible_info): New class.
7130 (struct target_desc): Change type of compatible vector.
7131 (tdesc_compatible_p): Update for change in type of
7132 target_desc::compatible.
7133 (tdesc_compatible_info_list): New function.
7134 (tdesc_compatible_info_arch_name): New function.
7135 (tdesc_add_compatible): Update for change in type of
7136 target_desc::compatible.
7137 (print_c_tdesc::visit_pre): Likewise.
7139 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7141 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7142 whitespace to underscore.
7143 (maint_print_c_tdesc_cmd): Use fake filename for target
7144 descriptions that came from the target.
7145 (_initialize_target_descriptions): Add filename command completion
7146 for 'maint print c-tdesc'.
7148 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7150 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7153 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7155 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7157 (dwarf2_find_location_expression): Likewise.
7158 (call_site_parameter_matches): Likewise.
7159 (dwarf2_compile_expr_to_ax): Likewise.
7160 (disassemble_dwarf_expression): Likewise.
7161 (loclist_describe_location): Likewise.
7163 2020-06-23 Pedro Alves <palves@redhat.com>
7165 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7166 progspace-and-thread.h. Include scoped-mock-context.h instead.
7167 (register_to_value_test): Use scoped_mock_context.
7168 * regcache.c: Include "scoped-mock-context.h".
7169 (cooked_read_test): Don't error out if a target is already pushed.
7170 Use scoped_mock_context. Adjust.
7171 * scoped-mock-context.h: New file.
7173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7175 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7177 (ada_language::is_string_type_p): New member function.
7178 * c-lang.c (c_language_data): Delete la_is_string_type_p
7180 (cplus_language_data): Likewise.
7181 (asm_language_data): Likewise.
7182 (minimal_language_data): Likewise.
7183 * d-lang.c (d_language_data): Likewise.
7184 * f-lang.c (f_is_string_type_p): Delete function, implementation
7185 moved to f_language::is_string_type_p.
7186 (f_language_data): Delete la_is_string_type_p initializer.
7187 (f_language::is_string_type_p): New member function,
7188 implementation from f_is_string_type_p.
7189 * go-lang.c (go_is_string_type_p): Delete function, implementation
7190 moved to go_language::is_string_type_p.
7191 (go_language_data): Delete la_is_string_type_p initializer.
7192 (go_language::is_string_type_p): New member function,
7193 implementation from go_is_string_type_p.
7194 * language.c (language_defn::is_string_type_p): Define new member
7196 (default_is_string_type_p): Make static, add comment copied from
7198 (unknown_language_data): Delete la_is_string_type_p initializer.
7199 (unknown_language::is_string_type_p): New member function.
7200 (auto_language_data): Delete la_is_string_type_p initializer.
7201 (auto_language::is_string_type_p): New member function.
7202 * language.h (language_data): Delete la_is_string_type_p field.
7203 (language_defn::is_string_type_p): Declare new function.
7204 (default_is_string_type_p): Delete desclaration, move comment to
7206 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7207 moved to m2_language::is_string_type_p.
7208 (m2_language_data): Delete la_is_string_type_p initializer.
7209 (m2_language::is_string_type_p): New member function,
7210 implementation from m2_is_string_type_p.
7211 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7213 * opencl-lang.c (opencl_language_data): Likewise.
7214 * p-lang.c (pascal_is_string_type_p): Delete function,
7215 implementation moved to pascal_language::is_string_type_p.
7216 (pascal_language_data): Delete la_is_string_type_p initializer.
7217 (pascal_language::is_string_type_p): New member function,
7218 implementation from pascal_is_string_type_p.
7219 * rust-lang.c (rust_is_string_type_p): Delete function,
7220 implementation moved to rust_language::is_string_type_p.
7221 (rust_language_data): Delete la_is_string_type_p initializer.
7222 (rust_language::is_string_type_p): New member function,
7223 implementation from rust_is_string_type_p.
7224 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7227 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7229 * ada-lang.c (ada_language_data): Delete la_print_typedef
7231 (ada_language::print_typedef): New member function.
7232 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7233 (cplus_language_data): Likewise.
7234 (asm_language_data): Likewise.
7235 (minimal_language_data): Likewise.
7236 * d-lang.c (d_language_data): Likewise.
7237 * f-lang.c (f_language_data): Likewise.
7238 (f_language::print_typedef): New member function.
7239 * go-lang.c (go_language_data): Delete la_print_typedef
7241 * language.c (language_defn::print_typedef): Define member
7243 (unknown_language_data): Delete la_print_typedef initializer.
7244 (unknown_language::print_typedef): New member function.
7245 (auto_language_data): Delete la_print_typedef initializer.
7246 (auto_language::print_typedef): New member function.
7247 * language.h (language_data): Delete la_print_typedef field.
7248 (language_defn::print_typedef): Declare new member function.
7249 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7250 (default_print_typedef): Delete declaration.
7251 * m2-lang.c (m2_language_data): Delete la_print_typedef
7253 (m2_language::print_typedef): New member function.
7254 * objc-lang.c (objc_language_data): Delete la_print_typedef
7256 * opencl-lang.c (opencl_language_data): Likewise.
7257 * p-lang.c (pascal_language_data): Likewise.
7258 (pascal_language::print_typedef): New member function.
7259 * rust-lang.c (rust_print_typedef): Delete function,
7260 implementation moved to rust_language::print_typedef.
7261 (rust_language): Delete la_print_typedef initializer.
7262 (rust_language::print_typedef): New member function,
7263 implementation from rust_print_typedef.
7264 * typeprint.c (default_print_typedef): Delete.
7266 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7268 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7269 (ada_language::printstr): New member function.
7270 * c-lang.c (c_language_data): Delete la_printstr initializer.
7271 (cplus_language_data): Likewise.
7272 (asm_language_data): Likewise.
7273 (minimal_language_data): Likewise.
7274 * d-lang.c (d_language_data): Likewise.
7275 * f-lang.c (f_printstr): Rename to f_language::printstr.
7276 (f_language_data): Delete la_printstr initializer.
7277 (f_language::printstr): New member function, implementation from
7279 * go-lang.c (go_language_data): Delete la_printstr initializer.
7280 * language.c (language_defn::printstr): Define new member
7282 (unk_lang_printstr): Delete.
7283 (unknown_language_data): Delete la_printstr initializer.
7284 (unknown_language::printstr): New member function.
7285 (auto_language_data): Delete la_printstr initializer.
7286 (auto_language::printstr): New member function.
7287 * language.h (language_data): Delete la_printstr field.
7288 (language_defn::printstr): Declare new member function.
7289 (LA_PRINT_STRING): Update call to printstr.
7290 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7291 (m2_language_data): Delete la_printstr initializer.
7292 (m2_language::printstr): New member function, implementation from
7294 * objc-lang.c (objc_language_data): Delete la_printstr
7296 * opencl-lang.c (opencl_language_data): Likewise.
7297 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7298 (pascal_language_data): Delete la_printstr initializer.
7299 (pascal_language::printstr): New member function, implementation
7300 from pascal_printstr.
7301 * p-lang.h (pascal_printstr): Delete declaration.
7302 * rust-lang.c (rust_printstr): Update header comment.
7303 (rust_language_data): Delete la_printstr initializer.
7304 (rust_language::printstr): New member function.
7306 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7308 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7309 (ada_language::printchar): New member function.
7310 * c-lang.c (c_language_data): Delete la_printchar initializer.
7311 (cplus_language_data): Likewise.
7312 (asm_language_data): Likewise.
7313 (minimal_language_data): Likewise.
7314 * d-lang.c (d_language_data): Likewise.
7315 * f-lang.c (f_printchar): Rename to f_language::printchar.
7316 (f_language_data): Delete la_printchar initializer.
7317 (f_language::printchar): New member function, implementation from
7319 * go-lang.c (go_language_data): Delete la_printchar initializer.
7320 * language.c (unk_lang_printchar): Delete.
7321 (language_defn::printchar): Define new member function.
7322 (unknown_language_data): Delete la_printchar initializer.
7323 (unknown_language::printchar): New member function.
7324 (auto_language_data): Delete la_printchar initializer.
7325 (auto_language::printchar): New member function.
7326 * language.h (language_data): Delete la_printchar field.
7327 (language_defn::printchar): Declare new member function.
7328 (LA_PRINT_CHAR): Update call to printchar.
7329 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7330 (m2_language::printchar): New member function.
7331 * objc-lang.c (objc_language_data): Delete la_printchar
7333 * opencl-lang.c (opencl_language_data): Likewise.
7334 * p-lang.c (pascal_language_data): Delete la_printchar
7336 (pascal_language::printchar): New member function.
7337 * rust-lang.c (rust_printchar): Rename to
7338 rust_language::printchar.
7339 (rust_language_data): Delete la_printchar initializer.
7340 (rust_language::printchar): New member function, implementation
7341 from rust_printchar.
7343 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7345 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7346 (ada_language_data): Delete la_emitchar initializer.
7347 (ada_language::emitchar): New member function, implementation from
7349 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7350 (cplus_language_data): Likewise.
7351 (asm_language_data): Likewise.
7352 (minimal_language_data): Likewise.
7353 * d-lang.c (d_language_data): Likewise.
7354 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7355 (f_language_data): Delete la_emitchar initializer.
7356 (f_language::emitchar): New member function, implementation from
7358 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7359 * language.c (unk_lang_emit_char): Delete.
7360 (language_defn::emitchar): New member function definition.
7361 (unknown_language_data): Delete la_emitchar initializer.
7362 (unknown_language::emitchar): New member function.
7363 (auto_language_data): Delete la_emitchar initializer.
7364 (auto_language::emitchar): New member function.
7365 * language.h (language_data): Delete la_emitchar field.
7366 (language_defn::emitchar): New member field declaration.
7367 (LA_EMIT_CHAR): Update call to emitchar.
7368 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7369 (m2_language_data): Delete la_emitchar initializer.
7370 (m2_language::emitchar): New member function, implementation from
7372 * objc-lang.c (objc_language_data): Delete la_emitchar
7374 * opencl-lang.c (opencl_language_data): Likewise.
7375 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7376 (pascal_language_data): Delete la_emitchar initializer.
7377 (pascal_language::emitchar): New member function, implementation
7378 from pascal_emit_char.
7379 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7380 (rust_language_data): Delete la_emitchar initializer.
7381 (rust_language::emitchar): New member function, implementation
7384 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7386 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7387 (ada_language_data): Delete la_post_parser initializer.
7388 (ada_language::post_parser): New member function.
7389 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7390 (cplus_language_data): Likewise.
7391 (asm_language_data): Likewise.
7392 (minimal_language_data): Likewise.
7393 * d-lang.c (d_language_data): Likewise.
7394 * f-lang.c (f_language_data): Likewise.
7395 * go-lang.c (go_language_data): Likewise.
7396 * language.c (unknown_language_data): Likewise.
7397 (auto_language_data): Likewise.
7398 * language.h (language_data): Delete la_post_parser field.
7399 (language_defn::post_parser): New member function.
7400 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7401 * objc-lang.c (objc_language_data): Likewise.
7402 * opencl-lang.c (opencl_language_data): Likewise.
7403 * p-lang.c (pascal_language_data): Likewise.
7404 * parse.c (parse_exp_in_context): Update call to post_parser.
7405 (null_post_parser): Delete definition.
7406 * parser-defs.h (null_post_parser): Delete declaration.
7407 * rust-lang.c (rust_language_data): Delete la_post_parser
7410 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7412 * ada-lang.c (parse): Rename to ada_language::parser.
7413 (ada_language_data): Delete la_parser initializer.
7414 (ada_language::parser): New member function, implementation from
7416 * c-lang.c (c_language_data): Delete la_parser initializer.
7417 (cplus_language_data): Likewise.
7418 (asm_language_data): Likewise.
7419 (minimal_language_data): Likewise.
7420 * d-lang.c (d_language_data): Likewise.
7421 (d_language::parser): New member function.
7422 * f-lang.c (f_language_data): Delete la_parser initializer.
7423 (f_language::parser): New member function.
7424 * go-lang.c (go_language_data): Delete la_parser initializer.
7425 (go_language::parser): New member function.
7426 * language.c (unk_lang_parser): Delete.
7427 (language_defn::parser): Define new member function.
7428 (unknown_language_data): Delete la_parser initializer.
7429 (unknown_language::parser): New member function.
7430 (auto_language_data): Delete la_parser initializer.
7431 (auto_language::parser): New member function.
7432 * language.h (language_data): Delete la_parser field.
7433 (language_defn::parser): Declare new member function.
7434 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7435 (m2_language::parser): New member function.
7436 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7437 * opencl-lang.c (opencl_language_data): Likewise.
7438 * p-lang.c (pascal_language_data): Likewise.
7439 (pascal_language::parser): New member function.
7440 * parse.c (parse_exp_in_context): Update call to parser.
7441 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7442 (rust_language::parser): New member function.
7444 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7446 * top.c (print_gdb_configuration): Print --with-python-libdir
7447 configuration value.
7449 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7451 * NEWS: Mention change to the alias command.
7453 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7455 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7456 (alias_command_completer)
7457 (make_alias_options_def_group): New functions.
7458 (alias_opts, alias_option_defs): New struct and array.
7459 (alias_usage_error): Update usage.
7460 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7461 Use option framework.
7462 (_initialize_cli_cmds): Update alias command help.
7463 Update aliases command help.
7465 Add NULL for new default_args lookup_cmd argument.
7466 (valid_command_p): Rename to validate_aliased_command.
7467 Add NULL for new default_args lookup_cmd argument. Verify that the
7468 aliased_command has no default args.
7469 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7470 (lookup_cmd_1, lookup_cmd): New argument default_args.
7472 Add NULL for new default_args lookup_cmd argument.
7473 (print_help_for_command): Show default args under the layout
7474 alias some_alias = some_aliased_cmd some_alias_default_arg.
7475 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7476 xfree default_args in destructor.
7477 * cli/cli-script.c (process_next_line, do_define_command):
7478 Add NULL for new default_args lookup_cmd argument.
7479 * command.h: Declare new default_args argument in lookup_cmd
7481 * completer.c (complete_line_internal_1):
7482 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7483 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7484 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7486 * infcmd.c (_initialize_infcmd): Likewise.
7487 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7488 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7489 * python/py-param.c (add_setshow_generic): Likewise.
7490 * remote.c (_initialize_remote): Likewise.
7491 * top.c (execute_command): Prepend default_args if command has some.
7493 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7494 * tracepoint.c (validate_actionline, encode_actions_1):
7495 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7497 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7499 * jit.c (jit_read_descriptor): Use bool as the return type.
7500 (jit_breakpoint_re_set_internal): Use bool as the return type.
7501 Invert the return value logic; return true if the jit breakpoint
7502 has been successfully initialized.
7503 (jit_inferior_init): Update the call to
7504 jit_breakpoint_re_set_internal.
7506 2020-06-22 Pedro Alves <palves@redhat.com>
7509 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7510 Use the current inferior instead. Don't return
7511 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7513 * sol-thread.c (sol_thread_target::wait): Don't reference
7515 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7516 (sol_update_thread_list_callback): Use the current inferior's pid
7517 instead of inferior_ptid.
7519 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7521 * procfs.c: Cleanup many comments.
7523 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7524 (AFTER_WATCHFLAG): Replace by value.
7526 (MAIN_PROC_NAME_FORMAT): Inline ...
7527 (create_procinfo): ... here.
7529 (procfs_debug_inferior): Remove SYS_exec handling.
7530 (syscall_is_exec): Likewise.
7531 (procfs_set_exec_trap): Likewise.
7533 (syscall_is_lwp_exit): Inline in callers.
7534 (syscall_is_exit): Likewise.
7535 (syscall_is_exec): Likewise.
7536 (syscall_is_lwp_create): Likewise.
7538 (invalidate_cache): Remove #if 0 code.
7540 (make_signal_thread_runnable): Remove.
7541 (procfs_target::resume): Remove #if 0 code.
7543 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7546 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7548 (procfs_target::create_inferior): ... here.
7550 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7552 * exec.c (validate_exec_file): Ensure the build-id is up to
7553 date by calling reopen_exec_file (that checks file timestamp
7554 to decide to re-read the file).
7556 2020-06-18 Pedro Alves <palves@redhat.com>
7559 * gdbthread.h (delete_thread, delete_thread_silent)
7560 (find_thread_ptid): Update comments.
7561 * thread.c (current_thread_): New global.
7562 (is_current_thread): Move higher, and reimplement.
7563 (inferior_thread): Reimplement.
7564 (set_thread_exited): Use bool. Add assertions.
7565 (add_thread_silent): Simplify thread-reuse handling by always
7566 calling delete_thread.
7567 (delete_thread): Remove intro comment.
7568 (find_thread_ptid): Skip exited threads.
7569 (switch_to_thread_no_regs): Write to current_thread_.
7570 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7571 INFERIOR_PTID. Clear current_thread_.
7573 2020-06-18 Pedro Alves <palves@redhat.com>
7575 * aix-thread.c (pd_update): Use switch_to_thread.
7577 2020-06-18 Pedro Alves <palves@redhat.com>
7579 * ravenscar-thread.c (ravenscar_thread_target): Update.
7580 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7581 (ravenscar_thread_target::add_active_thread): ... this. Don't
7582 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7583 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7585 2020-06-18 Pedro Alves <palves@redhat.com>
7587 * nat/windows-nat.c (current_windows_thread): Remove.
7588 * nat/windows-nat.h (current_windows_thread): Remove.
7589 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7591 (display_selectors): Adjust to fetch the current
7592 windows_thread_info based on inferior_ptid.
7593 (fake_create_process): No longer write to current_windows_thread.
7594 (windows_nat_target::get_windows_debug_event):
7595 Don't set inferior_ptid or current_windows_thread.
7596 (windows_nat_target::wait): Adjust to not rely on
7597 current_windows_thread.
7598 (do_initial_windows_stuff): Now a method of windows_nat_target.
7599 Switch to the last_ptid thread.
7600 (windows_nat_target::attach): Adjust.
7601 (windows_nat_target::detach): Use switch_to_no_thread instead of
7602 writing to inferior_ptid directly.
7603 (windows_nat_target::create_inferior): Adjust.
7605 2020-06-18 Pedro Alves <palves@redhat.com>
7607 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7609 2020-06-18 Pedro Alves <palves@redhat.com>
7611 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7612 after creating it, instead of writing to inferior_ptid. Don't
7613 write to inferior_ptid.
7615 2020-06-18 Pedro Alves <palves@redhat.com>
7617 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7619 2020-06-18 Pedro Alves <palves@redhat.com>
7621 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7622 it, instead of writing to inferior_ptid.
7624 2020-06-18 Pedro Alves <palves@redhat.com>
7626 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7629 2020-06-18 Pedro Alves <palves@redhat.com>
7631 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7632 instead of writing to inferior_ptid directly.
7634 2020-06-18 Pedro Alves <palves@redhat.com>
7636 * corelow.c (core_target::close): Use switch_to_no_thread instead
7637 of writing to inferior_ptid directly.
7638 (add_to_thread_list, core_target_open): Use switch_to_thread
7639 instead of writing to inferior_ptid directly.
7641 2020-06-18 Pedro Alves <palves@redhat.com>
7643 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7645 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7647 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7648 inferior_ptid directly.
7649 (darwin_nat_target::init_thread_list): Switch to thread, instead
7650 of writing to inferior_ptid.
7651 (darwin_nat_target::attach): Don't write to inferior_ptid.
7652 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7654 2020-06-18 Pedro Alves <palves@redhat.com>
7656 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7658 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7659 Instead use switch_to_thread.
7660 (gnu_nat_target::detach): Use switch_to_no_thread
7661 instead of writing to inferior_ptid directly. Used passed-in
7662 inferior instead of looking up the inferior by pid.
7664 2020-06-18 Pedro Alves <palves@redhat.com>
7666 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7669 2020-06-18 Pedro Alves <palves@redhat.com>
7671 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7673 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7675 (nto_procfs_target::detach): Avoid referencing
7676 inferior_ptid. Use switch_to_no_thread instead of writing to
7677 inferior_ptid directly.
7678 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7679 instead of writing to inferior_ptid directly.
7680 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7683 2020-06-18 Pedro Alves <palves@redhat.com>
7685 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7686 after creating it, instead of writing to inferior_ptid.
7687 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7688 to inferior_ptid directly.
7689 (gdbsim_target::wait): Don't write to inferior_ptid.
7691 2020-06-18 Pedro Alves <palves@redhat.com>
7693 * remote.c (remote_target::remote_notice_new_inferior): Use
7694 switch_to_thread instead of writing to inferior_ptid directly.
7695 (remote_target::add_current_inferior_and_thread): Use
7696 switch_to_no_thread instead of writing to inferior_ptid directly.
7697 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7698 and switch_to_thread instead of using set_current_inferior or
7699 writing to inferior_ptid directly.
7701 2020-06-18 Pedro Alves <palves@redhat.com>
7703 * tracectf.c (ctf_target_open): Switch to added thread instead of
7704 writing to inferior_ptid directly.
7705 (ctf_target::close): Use switch_to_no_thread instead of writing to
7706 inferior_ptid directly.
7708 2020-06-18 Pedro Alves <palves@redhat.com>
7710 * tracefile-tfile.c (tfile_target_open): Don't write to
7711 inferior_ptid directly, instead switch to added thread.
7712 (tfile_target::close): Use switch_to_no_thread instead of writing
7713 to inferior_ptid directly.
7715 2020-06-18 Pedro Alves <palves@redhat.com>
7717 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7718 (procfs_target::detach): Use switch_to_no_thread
7719 instead of writing to inferior_ptid directly.
7720 (do_attach): Change return type to void. Switch to the added
7722 (procfs_target::create_inferior): Switch to the added thread.
7723 (procfs_do_thread_registers): Don't write to inferior_ptid.
7725 2020-06-18 Pedro Alves <palves@redhat.com>
7727 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7728 of writing to inferior_ptid.
7729 (scoped_restore_exited_inferior): Delete.
7730 (handle_vfork_child_exec_or_exit): Simplify using
7731 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7732 instead of writing to inferior_ptid.
7733 (THREAD_STOPPED_BY): Delete.
7734 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7735 (thread_stopped_by_hw_breakpoint): Delete.
7736 (save_waitstatus): Use
7737 scoped_restore_current_thread+switch_to_thread, and call
7738 target_stopped_by_watchpoint instead of
7739 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7740 instead of thread_stopped_by_sw_breakpoint, and
7741 target_stopped_by_hw_breakpoint instead of
7742 thread_stopped_by_hw_breakpoint.
7743 (handle_inferior_event)
7744 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7745 inferior_ptid directly, nor
7746 set_current_inferior/set_current_program_space. Use
7747 switch_to_thread / switch_to_inferior_no_thread instead.
7749 2020-06-18 Pedro Alves <palves@redhat.com>
7751 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7752 instead of writing to inferior_ptid.
7754 2020-06-18 Pedro Alves <palves@redhat.com>
7756 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7758 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7759 to the added thread.
7760 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7761 instead of writing to inferior_ptid.
7763 2020-06-18 Pedro Alves <palves@redhat.com>
7765 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7766 (register_to_value_test): Mock a program_space too. Heap-allocate
7767 the address space. Don't write to inferior_ptid. Use
7768 switch_to_thread instead.
7770 2020-06-18 Pedro Alves <palves@redhat.com>
7772 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7774 (find_signalled_thread()): New, factored out from
7775 linux_make_corefile_notes and adjusted to handle exited threads.
7776 (linux_make_corefile_notes): Adjust to use the new
7777 find_signalled_thread.
7779 2020-06-18 Pedro Alves <palves@redhat.com>
7781 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7782 of saving/restoring inferior_ptid.
7784 2020-06-17 Tom Tromey <tom@tromey.com>
7786 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7787 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7789 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7791 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7793 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7796 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7798 * regformats/reg-arm.dat: Remove.
7799 * regformats/reg-bfin.dat: Remove.
7800 * regformats/reg-cris.dat: Remove.
7801 * regformats/reg-crisv32.dat: Remove.
7802 * regformats/reg-m32r.dat: Remove.
7803 * regformats/reg-tilegx.dat: Remove.
7804 * regformats/reg-tilegx32.dat: Remove.
7806 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7808 * features/Makefile (WHICH): Remove arm files.
7809 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7810 * regformats/arm/arm-with-neon.dat: Remove.
7811 * regformats/arm/arm-with-vfpv2.dat: Remove.
7812 * regformats/arm/arm-with-vfpv3.dat: Remove.
7814 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7816 * features/Makefile (XMLTOC): Remove rx.xml.
7818 2020-06-17 Pedro Alves <palves@redhat.com>
7820 * gdbthread.h (thread_control_state) <trap_expected> Update
7823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7825 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7826 ada_language::lookup_symbol_nonlocal.
7827 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7828 (ada_language::lookup_symbol_nonlocal): New member function,
7829 implementation from ada_lookup_symbol_nonlocal.
7830 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7832 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7834 (cplus_language::lookup_symbol_nonlocal): New member function.
7835 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7836 (minimal_language_data) Likewise.
7837 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7838 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7840 (d_language::lookup_symbol_nonlocal): New member function.
7841 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7843 (f_language::lookup_symbol_nonlocal): New member function.
7844 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7846 * language.c (unknown_language_data): Likewise.
7847 (auto_language_data): Likewise.
7848 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7850 (language_defn::lookup_symbol_nonlocal): New member function.
7851 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7853 * objc-lang.c (objc_language_data): Likewise.
7854 * opencl-lang.c (opencl_language_data): Likewise.
7855 * p-lang.c (pascal_language_data): Likewise.
7856 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7857 rust_language::lookup_symbol_nonlocal.
7858 (rust_language_data): Delete la_lookup_symbol_nonlocal
7860 (rust_language::lookup_symbol_nonlocal): New member function,
7861 implementation from rust_lookup_symbol_nonlocal.
7862 * symtab.c (lookup_symbol_aux): Update call to
7863 lookup_symbol_nonlocal.
7864 (basic_lookup_symbol_nonlocal): Rename to...
7865 (language_defn::lookup_symbol_nonlocal): ...this, and update
7866 header comment. Remove language_defn parameter, and replace with
7868 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7870 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7872 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7874 (ada_language::value_print_inner): New member function.
7875 * c-lang.c (c_language_data): Delete la_value_print_inner
7877 (cplus_language_data): Likewise.
7878 (asm_language_data): Likewise.
7879 (minimal_language_data): Likewise.
7880 * d-lang.c (d_language_data): Likewise.
7881 (d_language::value_print_inner): New member function.
7882 * f-lang.c (f_language_data): Delete la_value_print_inner
7884 (f_language::value_print_inner): New member function.
7885 * f-lang.h (f_value_print_innner): Rename to...
7886 (f_value_print_inner): ...this (note spelling of 'inner').
7887 * f-valprint.c (f_value_print_innner): Rename to...
7888 (f_value_print_inner): ...this (note spelling of 'inner').
7889 * go-lang.c (go_language_data): Delete la_value_print_inner
7891 (go_language::value_print_inner): New member function.
7892 * language.c (language_defn::value_print_inner): Define new member
7894 (unk_lang_value_print_inner): Delete.
7895 (unknown_language_data): Delete la_value_print_inner initializer.
7896 (unknown_language::value_print_inner): New member function.
7897 (auto_language_data): Delete la_value_print_inner initializer.
7898 (auto_language::value_print_inner): New member function.
7899 * language.h (language_data): Delete la_value_print_inner field.
7900 (language_defn::value_print_inner): Delcare new member function.
7901 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7903 (m2_language::value_print_inner): New member function.
7904 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7906 * opencl-lang.c (opencl_language_data): Likewise.
7907 * p-lang.c (pascal_language_data): Likewise.
7908 (pascal_language::value_print_inner): New member function.
7909 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7911 (rust_language::value_print_inner): New member function.
7912 * valprint.c (do_val_print): Update call to value_print_inner.
7914 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7916 * ada-lang.c (ada_language_data): Delete la_value_print
7918 (ada_language::value_print): New member function.
7919 * c-lang.c (c_language_data): Delete la_value_print initializer.
7920 (cplus_language_data): Likewise.
7921 (asm_language_data): Likewise.
7922 (minimal_language_data): Likewise.
7923 * d-lang.c (d_language_data): Likewise.
7924 * f-lang.c (f_language_data): Likewise.
7925 * go-lang.c (go_language_data): Likewise.
7926 * language.c (unk_lang_value_print): Delete.
7927 (language_defn::value_print): Define new member function.
7928 (unknown_language_data): Delete la_value_print initializer.
7929 (unknown_language::value_print): New member function.
7930 (auto_language_data): Delete la_value_print initializer.
7931 (auto_language::value_print): New member function.
7932 * language.h (language_data): Delete la_value_print field.
7933 (language_defn::value_print): Declare new member function.
7934 (LA_VALUE_PRINT): Update call to value_print.
7935 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7936 * objc-lang.c (objc_language_data): Likewise.
7937 * opencl-lang.c (opencl_language_data): Likewise.
7938 * p-lang.c (pascal_language_data): Likewise.
7939 (pascal_language::value_print): New member function.
7940 * rust-lang.c (rust_language_data): Delete la_value_print
7943 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7945 * ada-lang.c (ada_watch_location_expression): Rename to
7946 ada_language::watch_location_expression.
7947 (ada_language_data): Delete la_watch_location_expression
7949 (ada_language::watch_location_expression): New member function,
7950 implementation from ada_watch_location_expression.
7951 * breakpoint.c (watch_command_1): Update call to
7952 watch_location_expression.
7953 * c-lang.c (c_watch_location_expression): Rename to
7954 language_defn::watch_location_expression.
7955 (c_language_data): Delete la_watch_location_expression
7957 (cplus_language_data): Likewise.
7958 (asm_language_data): Likewise.
7959 (minimal_language_data): Likewise.
7960 * c-lang.h (c_watch_location_expression): Delete declaration.
7961 * d-lang.c (d_language_data): Delete la_watch_location_expression
7963 * f-lang.c (f_language_data): Likewise.
7964 * go-lang.c (go_language_data): Likewise.
7965 * language.c (language_defn::watch_location_expression): Member
7966 function implementation from c_watch_location_expression.
7967 (unknown_language_data): Delete la_watch_location_expression
7969 (auto_language_data): Likewise.
7970 * language.h (language_data): Delete la_watch_location_expression
7972 (language_defn::watch_location_expression): Declare new member
7974 * m2-lang.c (m2_language_data): Delete
7975 la_watch_location_expression initializer.
7976 * objc-lang.c (objc_language_data): Likewise.
7977 * opencl-lang.c (opencl_language_data): Likewise.
7978 * p-lang.c (pascal_language_data): Likewise.
7979 * rust-lang.c (rust_watch_location_expression): Rename to
7980 rust_language::watch_location_expression.
7981 (rust_language_data): Delete la_watch_location_expression
7983 (rust_language::watch_location_expression): New member function,
7984 implementation from rust_watch_location_expression.
7986 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7988 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7989 ada_language::collect_symbol_completion_matches.
7990 (ada_language_data): Delete la_collect_symbol_completion_matches
7992 (ada_language::collect_symbol_completion_matches): New member
7993 function, implementation from
7994 ada_collect_symbol_completion_matches.
7995 * c-lang.c (c_language_data): Delete
7996 la_collect_symbol_completion_matches initializer.
7997 (cplus_language_data): Likewise.
7998 (asm_language_data): Likewise.
7999 (minimal_language_data): Likewise.
8000 * d-lang.c (d_language_data): Likewise.
8001 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8002 f_language::collect_symbol_completion_matches.
8003 (f_language_data): Delete la_collect_symbol_completion_matches
8005 (f_language::collect_symbol_completion_matches) New member
8006 function, implementation from f_collect_symbol_completion_matches.
8007 * go-lang.c (go_language_data): Delete
8008 la_collect_symbol_completion_matches initializer.
8009 * language.c (unknown_language_data): Likewise.
8010 (auto_language_data): Likewise.
8011 * language.h (language_data): Delete
8012 la_collect_symbol_completion_matches field.
8013 (language_defn::collect_symbol_completion_matches): New member
8015 * m2-lang.c (m2_language_data): Delete
8016 la_collect_symbol_completion_matches initializer.
8017 * objc-lang.c (objc_language_data): Likewise.
8018 * opencl-lang.c (opencl_language_data): Likewise.
8019 * p-lang.c (pascal_language_data): Likewise.
8020 * rust-lang.c (rust_language_data): Likewise.
8021 * symtab.c (default_collect_symbol_completion_matches): Delete.
8022 (collect_symbol_completion_matches): Update call to
8023 collect_symbol_completion_matches.
8024 (collect_symbol_completion_matches_type): Likewise.
8025 * symtab.h (default_collect_symbol_completion_matches): Delete
8028 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8030 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8031 (ada_language_data): Delete la_word_break_characters initializer.
8032 (ada_language::word_break_characters): New member function.
8033 * c-lang.c (c_language_data): Delete la_word_break_characters
8035 (cplus_language_data): Likewise.
8036 (asm_language_data): Likewise.
8037 (minimal_language_data): Likewise.
8038 * completer.c: Update global comment.
8039 (advance_to_expression_complete_word_point): Update call to
8040 word_break_characters.
8041 (complete_files_symbols): Likewise.
8042 (complete_line_internal_1): Likewise.
8043 (default_completer_handle_brkchars): Likewise.
8044 (skip_quoted_chars): Likewise.
8045 * d-lang.c (d_language_data): Delete la_word_break_characters
8047 * f-lang.c (f_word_break_characters): Delete.
8048 (f_language_data): Delete la_word_break_characters initializer.
8049 (f_language::word_break_characters): New member function.
8050 * go-lang.c (go_language_data): Delete la_word_break_characters
8052 * language.c (unknown_language_data): Likewise.
8053 (auto_language_data): Likewise.
8054 * language.h (default_word_break_characters): Move declaration to
8055 earlier in the file.
8056 (language_data): Delete la_word_break_characters field.
8057 (language_defn::word_break_characters): New member function.
8058 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8060 * objc-lang.c (objc_language_data): Likewise.
8061 * opencl-lang.c (opencl_language_data): Likewise.
8062 * p-lang.c (pascal_language_data): Likewise.
8063 * rust-lang.c (rust_language_data): Likewise.
8065 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8067 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8068 (ada_language_data): Delete la_get_symbol_name_matcher
8070 (language_defn::get_symbol_name_matcher_inner): New member
8072 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8074 (cplus_language_data): Likewise.
8075 (cplus_language::get_symbol_name_matcher_inner): New member
8077 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8078 (minimal_language_data): Likewise.
8079 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8080 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8082 * dictionary.c (iter_match_first_hashed): Update call to
8083 get_symbol_name_matcher.
8084 (iter_match_next_hashed): Likewise.
8085 (iter_match_next_linear): Likewise.
8086 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8087 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8089 (f_language::get_symbol_name_matcher_inner): New member function.
8090 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8092 * language.c (default_symbol_name_matcher): Update header comment,
8094 (language_defn::get_symbol_name_matcher): New definition.
8095 (language_defn::get_symbol_name_matcher_inner): Likewise.
8096 (get_symbol_name_matcher): Delete.
8097 (unknown_language_data): Delete la_get_symbol_name_matcher
8099 (auto_language_data): Likewise.
8100 * language.h (language_data): Delete la_get_symbol_name_matcher
8102 (language_defn::get_symbol_name_matcher): New member function.
8103 (language_defn::get_symbol_name_matcher_inner): Likewise.
8104 (default_symbol_name_matcher): Delete declaration.
8105 * linespec.c (find_methods): Update call to
8106 get_symbol_name_matcher.
8107 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8109 * minsyms.c (lookup_minimal_symbol): Update call to
8110 get_symbol_name_matcher.
8111 (iterate_over_minimal_symbols): Likewise.
8112 * objc-lang.c (objc_language_data): Delete
8113 la_get_symbol_name_matcher initializer.
8114 * opencl-lang.c (opencl_language_data): Likewise.
8115 * p-lang.c (pascal_language_data): Likewise.
8116 * psymtab.c (psymbol_name_matches): Update call to
8117 get_symbol_name_matcher.
8118 * rust-lang.c (rust_language_data): Delete
8119 la_get_symbol_name_matcher initializer.
8120 * symtab.c (symbol_matches_search_name): Update call to
8121 get_symbol_name_matcher.
8122 (compare_symbol_name): Likewise.
8124 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8126 * ada-lang.c (ada_language_data): Delete la_compute_program
8128 * c-lang.c (c_language_data): Likewise.
8129 (c_language::compute_program): New member function.
8130 (cplus_language_data): Delete la_compute_program initializer.
8131 (cplus_language::compute_program): New member function.
8132 (asm_language_data): Delete la_compute_program initializer.
8133 (minimal_language_data): Likewise.
8134 * c-lang.h (c_compute_program): Update comment.
8135 (cplus_compute_program): Likewise.
8136 * compile/compile-c-support.c (c_compute_program): Likewise.
8137 (cplus_compute_program): Likewise.
8138 * compile/compile.c (compile_to_object): Update call to
8140 * d-lang.c (d_language_data): Delete la_compute_program
8142 * f-lang.c (f_language_data): Likewise.
8143 * go-lang.c (go_language_data): Likewise.
8144 * language.c (unknown_language_data): Likewise.
8145 (auto_language_data): Likewise.
8146 * language.h (language_data): Delete la_compute_program field.
8147 (language_defn::compute_program): New member function.
8148 * m2-lang.c (m2_language_data): Delete la_compute_program
8150 * objc-lang.c (objc_language_data): Likewise.
8151 * opencl-lang.c (opencl_language_data): Likewise.
8152 * p-lang.c (pascal_language_data): Likewise.
8153 * rust-lang.c (rust_language_data): Likewise.
8155 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8157 * ada-lang.c (ada_language_data) Delete
8158 la_class_name_from_physname initializer.
8159 * c-lang.c (c_language_data): Likewise.
8160 (cplus_language_data): Likewise.
8161 (cplus_language::class_name_from_physname): New member function.
8162 (asm_language_data): Delete la_class_name_from_physname
8164 (minimal_language_data): Likewise.
8165 * d-lang.c (d_language_data): Likewise.
8166 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8167 method on language_defn class.
8168 (guess_full_die_structure_name): Likewise.
8169 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8171 * go-lang.c (go_language_data): Likewise.
8172 * language.c (language_class_name_from_physname): Delete.
8173 (unk_lang_class_name): Delete.
8174 (unknown_language_data): Delete la_class_name_from_physname
8176 (auto_language_data): Likewise.
8177 * language.h (language_data): Delete la_class_name_from_physname
8179 (language_defn::class_name_from_physname): New function.
8180 (language_class_name_from_physname): Delete declaration.
8181 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8183 * objc-lang.c (objc_language_data): Likewise.
8184 * opencl-lang.c (opencl_language_data): Likewise.
8185 * p-lang.c (pascal_language_data): Likewise.
8186 * rust-lang.c (rust_language_data): Likewise.
8188 2020-06-16 Tom Tromey <tom@tromey.com>
8190 * tui/tui-data.h (STATUS_NAME): New macro.
8191 * tui/tui-layout.c (tui_remove_some_windows)
8192 (initialize_known_windows, tui_register_window)
8193 (tui_layout_split::remove_windows, initialize_layouts)
8194 (tui_new_layout_command): Don't use hard-coded window names.
8196 2020-06-16 Tom Tromey <tom@tromey.com>
8199 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8200 tui_initialize_readline. Only run once. Call rl_initialize.
8201 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8202 tui_initialize_readline.
8203 * tui/tui-io.c (tui_setup_io): Call
8204 tui_ensure_readline_initialized.
8205 * tui/tui-interp.c (tui_interp::init): Update.
8207 2020-06-16 Tom Tromey <tom@tromey.com>
8209 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8210 Also preserve the status window.
8212 2020-06-16 Tom Tromey <tom@tromey.com>
8214 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8215 where m_window==nullptr.
8217 2020-06-15 Tom Tromey <tromey@adacore.com>
8219 * windows-nat.c (windows_nat::handle_output_debug_string):
8221 (windows_nat::handle_ms_vc_exception): Update.
8222 * target.h (target_read_string): Change API.
8223 * target.c (target_read_string): Change API.
8224 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8226 * solib-frv.c (frv_current_sos): Update.
8227 * solib-dsbt.c (dsbt_current_sos): Update.
8228 * solib-darwin.c (darwin_current_sos): Update.
8229 * linux-thread-db.c (inferior_has_bug): Update.
8230 * expprint.c (print_subexp_standard): Update.
8231 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8232 (ada_exception_message_1): Update.
8234 2020-06-15 Tom Tromey <tromey@adacore.com>
8236 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8238 2020-06-15 Tom Tromey <tromey@adacore.com>
8240 * valprint.c (read_string): Update comment.
8241 * target.c (MIN): Remove.
8242 (target_read_string): Rewrite.
8244 2020-06-15 Tom Tromey <tromey@adacore.com>
8246 * corefile.c (read_memory_string): Remove.
8247 * ada-valprint.c (ada_value_print_ptr): Update.
8248 * ada-lang.h (ada_tag_name): Change return type.
8249 * ada-lang.c (type_from_tag): Update.
8250 (ada_tag_name_from_tsd): Change return type. Use
8252 (ada_tag_name): Likewise.
8253 * gdbcore.h (read_memory_string): Don't declare.
8255 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8257 * symtab.c (rbreak_command): Ignore Windows drive colon.
8259 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8261 * NEWS: Mention removed GDBserver host support.
8263 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8265 * features/riscv/rebuild-csr-xml.sh: Updated.
8267 2020-06-11 Tom Tromey <tom@tromey.com>
8270 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8272 2020-06-09 Jonny Grant <jg@jguk.org>
8273 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8275 * main.c (captured_main_1): Don't print new line after help.
8276 (print_gdb_help): add mailing list and IRC channel information
8277 to --help. Add new lines between items in the footer. Remove
8278 quotes around bug url.
8280 2020-06-11 Keith Seitz <keiths@redhat.com>
8283 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8284 Resolve typedefs for type length calculations.
8286 2020-06-10 Tom de Vries <tdevries@suse.de>
8289 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8290 (write_psymbols): Enable .gdb_index for ada.
8291 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8294 2020-06-10 Tom de Vries <tdevries@suse.de>
8296 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8297 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8298 namei" instead of "const char *name" argument.
8299 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8300 dw2_symtab_iter_init.
8302 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8304 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8305 to use type::field and field::type instead.
8307 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8309 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8310 to use field::type instead.
8312 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8314 * gdbtypes.h (struct field) <type, set_type>: New methods.
8315 Rename `type` field to...
8316 <m_type>: ... this. Change references throughout to use type or
8318 (FIELD_TYPE): Use field::type. Change call sites that modify
8319 the field's type to use field::set_type instead.
8321 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8323 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8324 to use type::index_type instead.
8326 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8328 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8330 (TYPE_INDEX_TYPE): Use type::index_type.
8331 * gdbtypes.c (create_array_type_with_stride): Likewise.
8333 2020-06-07 Tom Tromey <tom@tromey.com>
8335 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8337 (generic_value_print): Update.
8339 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8341 Revert commit 982a38f60b0.
8342 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8344 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8346 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8347 avoid use after free.
8349 2020-06-05 Tom de Vries <tdevries@suse.de>
8353 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8355 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8357 (dwarf2_read_debug_names): Likewise.
8358 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8359 object when re-using a per_bfd object with an index.
8361 2020-06-03 Tom de Vries <tdevries@suse.de>
8364 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8366 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8369 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8371 * ada-lang.c (ada_language_data): Delete skip_trampoline
8373 * c-lang.c (c_language_data): Likewise.
8374 (cplus_language_data): Likewise.
8375 (cplus_language::skip_trampoline): New member function.
8376 (asm_language_data): Delete skip_trampoline initializer.
8377 (minimal_language_data): Likewise.
8378 * d-lang.c (d_language_data): Likewise.
8379 * f-lang.c (f_language_data): Likewise.
8380 * go-lang.c (go_language_data): Likewise.
8381 * language.c (unk_lang_trampoline): Delete function.
8382 (skip_language_trampoline): Update.
8383 (unknown_language_data): Delete skip_trampoline initializer.
8384 (auto_language_data): Likewise.
8385 * language.h (language_data): Delete skip_trampoline field.
8386 (language_defn::skip_trampoline): New function.
8387 * m2-lang.c (m2_language_data): Delete skip_trampoline
8389 * objc-lang.c (objc_skip_trampoline): Delete function, move
8390 implementation to objc_language::skip_trampoline.
8391 (objc_language_data): Delete skip_trampoline initializer.
8392 (objc_language::skip_trampoline): New member function with
8393 implementation from objc_skip_trampoline.
8394 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8396 * p-lang.c (pascal_language_data): Likewise.
8397 * rust-lang.c (rust_language_data): Likewise.
8399 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8401 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8402 (ada_language::demangle): New member function.
8403 * c-lang.c (c_language_data): Delete la_demangle initializer.
8404 (cplus_language_data): Delete la_demangle initializer.
8405 (cplus_language::demangle): New member function.
8406 (asm_language_data): Delete la_demangle initializer.
8407 (minimal_language_data): Delete la_demangle initializer.
8408 * d-lang.c (d_language_data): Delete la_demangle initializer.
8409 (d_language::demangle): New member function.
8410 * f-lang.c (f_language_data): Delete la_demangle initializer.
8411 (f_language::demangle): New member function.
8412 * go-lang.c (go_language_data): Delete la_demangle initializer.
8413 (go_language::demangle): New member function.
8414 * language.c (language_demangle): Update.
8415 (unk_lang_demangle): Delete.
8416 (unknown_language_data): Delete la_demangle initializer.
8417 (unknown_language::demangle): New member function.
8418 (auto_language_data): Delete la_demangle initializer.
8419 (auto_language::demangle): New member function.
8420 * language.h (language_data): Delete la_demangle field.
8421 (language_defn::demangle): New function.
8422 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8423 * objc-lang.c (objc_language_data): Delete la_demangle
8425 (objc_language::demangle): New member function.
8426 * opencl-lang.c (opencl_language_data): Delete la_demangle
8428 * p-lang.c (pascal_language_data): Likewise.
8429 * rust-lang.c (rust_language_data): Likewise.
8430 (rust_language::demangle): New member function.
8432 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8434 * ada-lang.c (ada_language_data): Delete la_print_type
8436 (ada_language::print_type): New member function.
8437 * c-lang.c (c_language_data): Delete la_print_type initializer.
8438 (c_language::print_type): New member function.
8439 (cplus_language_data): Delete la_print_type initializer.
8440 (cplus_language::print_type): New member function.
8441 (asm_language_data): Delete la_print_type initializer.
8442 (asm_language::print_type): New member function.
8443 (minimal_language_data): Delete la_print_type initializer.
8444 (minimal_language::print_type): New member function.
8445 * d-lang.c (d_language_data): Delete la_print_type initializer.
8446 (d_language::print_type): New member function.
8447 * f-lang.c (f_language_data): Delete la_print_type initializer.
8448 (f_language::print_type): New member function.
8449 * go-lang.c (go_language_data): Delete la_print_type initializer.
8450 (go_language::print_type): New member function.
8451 * language.c (unk_lang_print_type): Delete.
8452 (unknown_language_data): Delete la_print_type initializer.
8453 (unknown_language::print_type): New member function.
8454 (auto_language_data): Delete la_print_type initializer.
8455 (auto_language::print_type): New member function.
8456 * language.h (language_data): Delete la_print_type field.
8457 (language_defn::print_type): New function.
8458 (LA_PRINT_TYPE): Update.
8459 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8460 (m2_language::print_type): New member function.
8461 * objc-lang.c (objc_language_data): Delete la_print_type
8463 (objc_language::print_type): New member function.
8464 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8465 to opencl_language::print_type.
8466 (opencl_language_data): Delete la_print_type initializer.
8467 (opencl_language::print_type): New member function, implementation
8468 from opencl_print_type.
8469 * p-lang.c (pascal_language_data): Delete la_print_type
8471 (pascal_language::print_type): New member function.
8472 * rust-lang.c (rust_print_type): Delete, implementation moved to
8473 rust_language::print_type.
8474 (rust_language_data): Delete la_print_type initializer.
8475 (rust_language::print_type): New member function, implementation
8476 from rust_print_type.
8478 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8480 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8481 implementation moves to...
8482 (ada_language::sniff_from_mangled_name): ...here. Update return
8484 (ada_language_data): Delete la_sniff_from_mangled_name
8486 * c-lang.c (c_language_data): Likewise.
8487 (cplus_language_data): Likewise.
8488 (cplus_language::sniff_from_mangled_name): New member function,
8489 implementation taken from gdb_sniff_from_mangled_name.
8490 (asm_language_data): Delete la_sniff_from_mangled_name
8492 (minimal_language_data): Likewise.
8493 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8494 implementation moves to cplus_language::sniff_from_mangled_name.
8495 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8496 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8498 (d_language::sniff_from_mangled_name): ...here.
8499 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8500 * f-lang.c (f_language_data): Likewise.
8501 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8503 (go_language::sniff_from_mangled_name): ...here.
8504 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8505 * language.c (language_sniff_from_mangled_name): Delete.
8506 (unknown_language_data): Delete la_sniff_from_mangled_name
8508 (auto_language_data): Likewise.
8509 * language.h (language_data): Delete la_sniff_from_mangled_name
8511 (language_defn::sniff_from_mangled_name): New function.
8512 (language_sniff_from_mangled_name): Delete declaration.
8513 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8515 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8516 implementation moves to...
8517 (objc_language::sniff_from_mangled_name): ...here.
8518 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8519 * opencl-lang.c (opencl_language_data): Likewise.
8520 * p-lang.c (pascal_language_data): Likewise.
8521 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8522 implementation moves to...
8523 (rust_language::sniff_from_mangled_name): ...here.
8524 (rust_language_data): Delete la_sniff_from_mangled_name
8526 * symtab.c (symbol_find_demangled_name): Call
8527 sniff_from_mangled_name member function.
8529 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8531 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8533 * c-lang.c (c_language_data): Likewise.
8534 (cplus_language_data): Likewise.
8535 (cplus_language::search_name_hash): New member function.
8536 (asm_language_data): Delete la_search_name_hash initializer.
8537 (minimal_language_data): Likewise.
8538 * d-lang.c (d_language_data): Likewise.
8539 * dictionary.c (default_search_name_hash): Rename to...
8540 (language_defn::search_name_hash): ...this.
8541 * f-lang.c (f_language_data): Likewise.
8542 (f_language::search_name_hash): New member function.
8543 * go-lang.c (go_language_data): Delete la_search_name_hash
8545 * language.c (unknown_language_data): Likewise.
8546 (auto_language_data): Likewise.
8547 * language.h (struct language_data): Delete la_search_name_hash
8549 (language_defn::search_name_hash): Declare new member function.
8550 (default_search_name_hash): Delete declaration.
8551 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8553 * objc-lang.c (objc_language_data): Likewise.
8554 * opencl-lang.c (opencl_language_data): Likewise.
8555 * p-lang.c (pascal_language_data): Likewise.
8556 * rust-lang.c (rust_language_data): Likewise.
8557 * symtab.c (search_name_hash): Update call.
8559 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8561 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8563 * c-lang.c (class compile_instance): Declare.
8564 (c_language_data): Delete la_get_compile_instance initializer.
8565 (c_language::get_compile_instance): New member function.
8566 (cplus_language_data): Delete la_get_compile_instance initializer.
8567 (cplus_language::get_compile_instance): New member function.
8568 (asm_language_data): Delete la_get_compile_instance initializer.
8569 (minimal_language_data): Likewise.
8570 * c-lang.h (c_get_compile_context): Update comment.
8571 (cplus_get_compile_context): Update comment.
8572 * compile/compile.c (compile_to_object): Update calls, don't rely
8573 on function pointer being NULL.
8574 * d-lang.c (d_language_data): Delete la_get_compile_instance
8576 * f-lang.c (f_language_data): Likewise.
8577 * go-lang.c (go_language_data): Likewise.
8578 * language.c (unknown_language_data): Likewise.
8579 (auto_language_data): Likewise.
8580 * language.h (language_data): Delete la_get_compile_instance field.
8581 (language_defn::get_compile_instance): New member function.
8582 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8584 * objc-lang.c (objc_language_data): Likewise.
8585 * opencl-lang.c (opencl_language_data): Likewise.
8586 * p-lang.c (pascal_language_data): Likewise.
8587 * rust-lang.c (rust_language_data): Likewise.
8589 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8591 * ada-lang.c (ada_add_all_symbols): Update comment.
8592 (ada_iterate_over_symbols): Delete, move implementation to...
8593 (ada_language::iterate_over_symbols): ...here, a new member
8594 function, rewrite to use range based for loop.
8595 (ada_language_data): Delete la_iterate_over_symbols initializer.
8596 * c-lang.c (c_language_data): Likewise.
8597 (cplus_language_data): Likewise.
8598 (asm_language_data): Likewise.
8599 (minimal_language_data): Likewise.
8600 * d-lang.c (d_language_data): Likewise.
8601 * f-lang.c (f_language_data): Likewise.
8602 * go-lang.c (go_language_data): Likewise.
8603 * language.c (unknown_language_data): Likewise.
8604 (auto_language_data): Likewise.
8605 * language.h (language_data): Delete la_iterate_over_symbols field.
8606 (language_defn::iterate_over_symbols): New member function.
8607 (LA_ITERATE_OVER_SYMBOLS): Update.
8608 * linespec.c (iterate_over_all_matching_symtabs): Update.
8609 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8611 * objc-lang.c (objc_language_data): Likewise.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * rust-lang.c (rust_language_data): Likewise.
8616 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8618 * ada-lang.c (ada_language_data): Delete
8619 la_lookup_transparent_type initializer.
8620 * c-lang.c (c_language_data): Likewise.
8621 (cplus_language_data): Likewise.
8622 (cplus_language::lookup_transparent_type): New member function.
8623 (asm_language_data): Delete la_lookup_transparent_type
8625 (minimal_language_data): Likewise.
8626 * d-lang.c (d_language_data): Likewise.
8627 * f-lang.c (f_language_data): Likewise.
8628 * go-lang.c (go_language_data): Likewise.
8629 * language.c (unknown_language_data): Likewise.
8630 (auto_language_data): Likewise.
8631 * language.h (struct language_data): Delete
8632 la_lookup_transparent_type field.
8633 (language_defn::lookup_transparent_type): New member function.
8634 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8636 * objc-lang.c (objc_language_data): Likewise.
8637 * opencl-lang.c (opencl_language_data): Likewise.
8638 * p-lang.c (pascal_language_data): Likewise.
8639 * rust-lang.c (rust_language_data): Likewise.
8640 * symtab.c (symbol_matches_domain): Update call.
8642 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8644 * ada-lang.c (ada_language_arch_info): Delete function, move
8645 implementation to...
8646 (ada_language::language_arch_info): ...here, a new member
8648 (ada_language_data): Delete la_language_arch_info.
8649 * c-lang.c (c_language_data): Likewise.
8650 (c_language::language_arch_info): New member function.
8651 (cplus_language_arch_info): Delete function, move
8652 implementation to...
8653 (cplus_language::language_arch_info): ...here, a new member
8655 (cplus_language_data): Delete la_language_arch_info.
8656 (asm_language_data): Likewise.
8657 (asm_language::language_arch_info): New member function.
8658 (minimal_language_data): Delete la_language_arch_info.
8659 (minimal_language::language_arch_info): New member function.
8660 * d-lang.c (d_language_arch_info): Delete function, move
8661 implementation to...
8662 (d_language::language_arch_info): ...here, a new member
8664 (d_language_data): Delete la_language_arch_info.
8665 * f-lang.c (f_language_arch_info): Delete function, move
8666 implementation to...
8667 (f_language::language_arch_info): ...here, a new member
8669 (f_language_data): Delete la_language_arch_info.
8670 * go-lang.c (go_language_arch_info): Delete function, move
8671 implementation to...
8672 (go_language::language_arch_info): ...here, a new member
8674 (go_language_data): Delete la_language_arch_info.
8675 * language.c (unknown_language_data): Likewise.
8676 (unknown_language::language_arch_info): New member function.
8677 (auto_language_data): Delete la_language_arch_info.
8678 (auto_language::language_arch_info): New member function.
8679 (language_gdbarch_post_init): Update call to
8680 la_language_arch_info.
8681 * language.h (language_data): Delete la_language_arch_info
8683 (language_defn::language_arch_info): New function.
8684 * m2-lang.c (m2_language_arch_info): Delete function, move
8685 implementation to...
8686 (m2_language::language_arch_info): ...here, a new member
8688 (m2_language_data): Delete la_language_arch_info.
8689 * objc-lang.c (objc_language_arch_info): Delete function, move
8690 implementation to...
8691 (objc_language::language_arch_info): ...here, a new member
8693 (objc_language_data): Delete la_language_arch_info.
8694 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8695 implementation to...
8696 (opencl_language::language_arch_info): ...here, a new member
8698 (opencl_language_data): Delete la_language_arch_info.
8699 * p-lang.c (pascal_language_arch_info): Delete function, move
8700 implementation to...
8701 (pascal_language::language_arch_info): ...here, a new member
8703 (pascal_language_data): Delete la_language_arch_info.
8704 * rust-lang.c (rust_language_arch_info): Delete function, move
8705 implementation to...
8706 (rust_language::language_arch_info): ...here, a new member
8708 (rust_language_data): Delete la_language_arch_info.
8710 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8712 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8714 * c-lang.c (c_language_data): Likewise.
8715 (cplus_language_data): Likewise.
8716 (cplus_language::pass_by_reference_info): New method.
8717 (asm_language_data): Delete la_pass_by_reference initializer.
8718 (minimal_language_data): Likewise.
8719 * cp-abi.c (cp_pass_by_reference): Remove use of
8720 default_pass_by_reference.
8721 * d-lang.c (d_language_data): Likewise.
8722 * f-lang.c (f_language_data): Likewise.
8723 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8724 default_pass_by_reference.
8725 * go-lang.c (go_language_data): Likewise.
8726 * language.c (language_pass_by_reference): Update.
8727 (default_pass_by_reference): Delete.
8728 (unknown_language_data): Delete la_pass_by_reference
8730 (auto_language_data): Likewise.
8731 * language.h (struct language_data): Delete la_pass_by_reference
8733 (language_defn::pass_by_reference_info): New member function.
8734 (default_pass_by_reference): Delete declaration.
8735 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8737 * objc-lang.c (objc_language_data): Likewise.
8738 * opencl-lang.c (opencl_language_data): Likewise.
8739 * p-lang.c (pascal_language_data): Likewise.
8740 * rust-lang.c (rust_language_data): Likewise.
8742 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8744 * ada-lang.c (ada_read_var_value): Delete function, move
8745 implementation to...
8746 (ada_language::read_var_value): ...here.
8747 (ada_language_data): Delete la_read_var_value initializer.
8748 * c-lang.c (c_language_data): Likewise.
8749 (cplus_language_data): Likewise.
8750 (minimal_language_data): Likewise.
8751 * d-lang.c (d_language_data): Likewise.
8752 * f-lang.c (f_language_data): Likewise.
8753 * findvar.c (default_read_var_value): Rename to...
8754 (language_defn::read_var_value): ...this.
8755 * findvar.c (read_var_value): Update header comment, and change to
8756 call member function instead of function pointer.
8757 * go-lang.c (go_language_data): Likewise.
8758 * language.c (unknown_language_data): Delete la_read_var_value
8760 (auto_language_data): Likewise.
8761 * language.h (struct language_data): Delete la_read_var_value
8763 (language_defn::read_var_value): New member function.
8764 (default_read_var_value): Delete declaration.
8765 * m2-lang.c (m2_language_data): Delete la_read_var_value
8767 * objc-lang.c (objc_language_data): Likewise.
8768 * opencl-lang.c (opencl_language_data): Likewise.
8769 * p-lang.c (pascal_language_data): Likewise.
8770 * rust-lang.c (rust_language_data): Likewise.
8771 * value.h (default_read_var_value): Delete declaration.
8773 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8775 * ada-lang.c (ada_print_array_index): Delete function, move
8776 implementation to...
8777 (ada_language::print_array_index): ...here.
8778 (ada_language_data): Delete la_print_array_index initializer.
8779 * c-lang.c (c_language_data): Likewise.
8780 (cplus_language_data): Likewise.
8781 (minimal_language_data): Likewise.
8782 * d-lang.c (d_language_data): Likewise.
8783 * f-lang.c (f_language_data): Likewise.
8784 * go-lang.c (go_language_data): Likewise.
8785 * language.c (default_print_array_index): Delete function, move
8786 implementation to...
8787 (language_defn::print_array_index): ...here.
8788 (unknown_language_data): Delete la_print_array_index initializer.
8789 (auto_language_data): Likewise.
8790 * language.h (struct language_data): Delete la_print_array_index
8792 (language_defn::print_array_index): New member function.
8793 (LA_PRINT_ARRAY_INDEX): Update.
8794 (default_print_array_index): Delete declaration.
8795 * m2-lang.c (m2_language_data): Delete la_print_array_index
8797 * objc-lang.c (objc_language_data): Likewise.
8798 * opencl-lang.c (opencl_language_data): Likewise.
8799 * p-lang.c (pascal_language_data): Likewise.
8800 * rust-lang.c (rust_language_data): Likewise.
8802 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8804 * gdb/ada-lang.c (ada_language_defn): Convert to...
8805 (ada_language_data): ...this.
8806 (class ada_language): New class.
8807 (ada_language_defn): New static global.
8808 * gdb/c-lang.c (c_language_defn): Convert to...
8809 (c_language_data): ...this.
8810 (class c_language): New class.
8811 (c_language_defn): New static global.
8812 (cplus_language_defn): Convert to...
8813 (cplus_language_data): ...this.
8814 (class cplus_language): New class.
8815 (cplus_language_defn): New static global.
8816 (asm_language_defn): Convert to...
8817 (asm_language_data): ...this.
8818 (class asm_language): New class.
8819 (asm_language_defn): New static global.
8820 (minimal_language_defn): Convert to...
8821 (minimal_language_data): ...this.
8822 (class minimal_language): New class.
8823 (minimal_language_defn): New static global.
8824 * gdb/d-lang.c (d_language_defn): Convert to...
8825 (d_language_data): ...this.
8826 (class d_language): New class.
8827 (d_language_defn): New static global.
8828 * gdb/f-lang.c (f_language_defn): Convert to...
8829 (f_language_data): ...this.
8830 (class f_language): New class.
8831 (f_language_defn): New static global.
8832 * gdb/go-lang.c (go_language_defn): Convert to...
8833 (go_language_data): ...this.
8834 (class go_language): New class.
8835 (go_language_defn): New static global.
8836 * gdb/language.c (unknown_language_defn): Remove declaration.
8837 (current_language): Initialize to nullptr, real initialization is
8838 moved to _initialize_language.
8839 (languages): Delete global.
8840 (language_defn::languages): Define.
8841 (set_language_command): Use language_defn::languages.
8842 (set_language): Likewise.
8843 (range_error): Likewise.
8844 (language_enum): Likewise.
8845 (language_def): Likewise.
8846 (add_set_language_command): Use language_def::languages for the
8847 language list, and language_def to lookup language pointers.
8848 (skip_language_trampoline): Use language_defn::languages.
8849 (unknown_language_defn): Convert to...
8850 (unknown_language_data): ...this.
8851 (class unknown_language): New class.
8852 (unknown_language_defn): New static global.
8853 (auto_language_defn): Convert to...
8854 (auto_language_data): ...this.
8855 (class auto_language): New class.
8856 (auto_language_defn): New static global.
8857 (language_gdbarch_post_init): Use language_defn::languages.
8858 (_initialize_language): Initialize current_language.
8859 * gdb/language.h (struct language_defn): Rename to...
8860 (struct language_data): ...this.
8861 (struct language_defn): New.
8862 (auto_language_defn): Delete.
8863 (unknown_language_defn): Delete.
8864 (minimal_language_defn): Delete.
8865 (ada_language_defn): Delete.
8866 (asm_language_defn): Delete.
8867 (c_language_defn): Delete.
8868 (cplus_language_defn): Delete.
8869 (d_language_defn): Delete.
8870 (f_language_defn): Delete.
8871 (go_language_defn): Delete.
8872 (m2_language_defn): Delete.
8873 (objc_language_defn): Delete.
8874 (opencl_language_defn): Delete.
8875 (pascal_language_defn): Delete.
8876 (rust_language_defn): Delete.
8877 * gdb/m2-lang.c (m2_language_defn): Convert to...
8878 (m2_language_data): ...this.
8879 (class m2_language): New class.
8880 (m2_language_defn): New static global.
8881 * gdb/objc-lang.c (objc_language_defn): Convert to...
8882 (objc_language_data): ...this.
8883 (class objc_language): New class.
8884 (objc_language_defn): New static global.
8885 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8886 (opencl_language_data): ...this.
8887 (class opencl_language): New class.
8888 (opencl_language_defn): New static global.
8889 * gdb/p-lang.c (pascal_language_defn): Convert to...
8890 (pascal_language_data): ...this.
8891 (class pascal_language): New class.
8892 (pascal_language_defn): New static global.
8893 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8894 language pointer, update comment format.
8895 * gdb/rust-lang.c (rust_language_defn): Convert to...
8896 (rust_language_data): ...this.
8897 (class rust_language): New class.
8898 (rust_language_defn): New static global.
8900 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8902 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8904 <m_stmt_at_address>: New member variable.
8905 (lnp_state_machine::record_line): Don't record some lines, update
8906 tracking of is_stmt at the same address.
8907 (lnp_state_machine::lnp_state_machine): Initialise new member
8910 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8912 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8913 "-include gnu-nat-mig.h".
8914 * gnu-nat-mig.h: New file.
8915 * gnu-nat.c: Include "gnu-nat-mig.h".
8916 (exc_server, msg_reply_server, notify_server,
8917 process_reply_server): Remove declarations.
8919 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8921 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8922 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8923 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8924 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8925 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8926 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8927 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8928 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8929 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8930 to gnu_nat_target class.
8931 * gnu-nat.c: Likewise.
8932 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8933 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8934 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8936 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8937 instead of `gnu_target'.
8939 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8941 * i386-gnu-tdep.c: Include "gdbcore.h"
8942 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8943 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8944 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8945 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8946 i386_gnu_sigcontext_addr): New functions
8947 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8948 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8951 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8953 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8954 before fork_inferior call. Avoid calling it if target_is_pushed returns
8957 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8959 * gnu-nat.h (gnu_target): New variable declaration.
8960 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8962 * gnu-nat.c (gnu_target): New variable.
8963 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8964 add_thread_silent, and add_thread calls.
8965 (gnu_nat_target::create_inferior): Pass gnu_target to
8966 add_thread_silent, thread_change_ptid call.
8967 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8970 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8972 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8973 (gnu_nat_target::find_memory_regions): Remove unused
8974 `old_address' variable.
8976 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8978 * gnu-nat.c: Include "gdbarch.h".
8980 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8982 * reply_mig_hack.awk (Error return): Cast function through
8983 void *, to bypass compiler function call check.
8985 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8987 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8988 $(srcdir)/reply_mig_hack.awk.
8990 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8992 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8994 2020-05-30 Jonny Grant <jg@jguk.org>
8996 * configure.ac (ACX_BUGURL): change bug URL to https.
8998 2020-05-30 Pedro Alves <palves@redhat.com>
9000 * cp-support.c (replace_typedefs_template): New.
9001 (replace_typedefs_qualified_name): Handle
9002 DEMANGLE_COMPONENT_TEMPLATE.
9004 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9006 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9007 dwarf2/index-cache.h, dwarf2/index-write.c,
9008 dwarf2/index-write.h, dwarf2/line-header.c,
9009 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9010 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9011 variables and fields from `dwarf2_per_objfile` to just
9012 `per_objfile` throughout.
9014 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9016 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9017 <push_dwarf_reg_entry_value>: Add comment.
9019 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9020 Keith Seitz <keiths@redhat.com>
9022 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9023 instead of PyEval_ReleaseLock.
9024 (class gdbpy_gil): Move to earlier in file.
9025 (finalize_python): Set gdb_python_initialized.
9026 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9027 when not initialized.
9029 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9031 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9032 <push_dwarf_reg_entry_value>: Remove assert. Override
9033 per_objfile with caller_per_objfile.
9035 2020-05-28 Tom de Vries <tdevries@suse.de>
9037 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9038 PR gold/15646 workaround to symbol kind "type".
9040 2020-05-27 Tom Tromey <tromey@adacore.com>
9042 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9044 2020-05-27 Tom Tromey <tromey@adacore.com>
9046 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9047 Use htab_find_with_hash.
9048 <add_abbrev>: Remove "abbrev_number" parameter.
9049 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9050 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9051 (hash_abbrev): Add comment.
9052 (abbrev_table::lookup_abbrev): Move to header file.
9053 (abbrev_table::read): Update.
9055 2020-05-27 Tom Tromey <tromey@adacore.com>
9057 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9059 <canonical_name>: New member.
9060 <raw_name>: Rename from "name".
9061 (partial_die_info): Initialize canonical_name.
9062 (scan_partial_symbols): Check raw_name.
9063 (partial_die_parent_scope, partial_die_full_name)
9064 (add_partial_symbol, add_partial_subprogram)
9065 (add_partial_enumeration, load_partial_dies): Use "name" method.
9066 (partial_die_info::name): New method.
9067 (partial_die_info::read, guess_partial_die_structure_name)
9068 (partial_die_info::fixup): Update.
9070 2020-05-27 Tom Tromey <tromey@adacore.com>
9072 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9073 <get_ref_die_offset>: Inline.
9074 <get_ref_die_offset_complaint>: New method.
9075 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9076 (attribute::get_ref_die_offset_complaint): Rename from
9077 get_ref_die_offset. Just issue complaint.
9079 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9081 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9083 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9085 * exec.c (exec_file_attach): Use errno value of first openp failure.
9087 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9089 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9090 Don't close thread handle.
9092 2020-05-27 Tom Tromey <tom@tromey.com>
9093 Simon Marchi <simon.marchi@efficios.com>
9095 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9097 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9099 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9100 dwarf2_per_bfd_objfile_data_key>: New globals.
9101 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9102 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9103 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9105 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9106 short-circuit when sharing.
9107 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9108 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9110 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9112 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9114 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9115 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9117 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9119 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9120 build_name_components, find_name_components_bounds>:
9121 Add per_objfile parameter.
9122 (struct mapped_index) <symbol_name_at>: Likewise.
9123 (struct mapped_debug_names): Remove constructor.
9124 <dwarf2_per_objfile>: Remove field.
9125 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9126 (mapped_index_base::find_name_components_bounds,
9127 mapped_index_base::build_name_components,
9128 dw2_expand_symtabs_matching_symbol): Likewise.
9129 (class mock_mapped_index) <symbol_name_at>: Likewise.
9130 (check_match): Likewise.
9131 (check_find_bounds_finds): Likewise.
9132 (test_mapped_index_find_name_component_bounds): Update.
9133 (CHECK_MATCH): Update.
9134 (dw2_expand_symtabs_matching): Update.
9135 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9136 per_objfile parameter.
9137 <find_vec_in_debug_names>: Likewise.
9138 <m_per_objfile>: New field.
9139 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9141 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9142 (dw2_debug_names_iterator::next): Update.
9143 (dw2_debug_names_lookup_symbol): Update.
9144 (dw2_debug_names_expand_symtabs_for_function): Update.
9145 (dw2_debug_names_map_matching_symbols): Update.
9146 (dw2_debug_names_expand_symtabs_matching): Update.
9147 (dwarf2_read_debug_names): Update.
9149 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9152 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9153 move to dwarf2_per_objfile.
9154 <read_in_chain>: Remove.
9155 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9156 remove_all_cus, age_comp_units>: New methods.
9157 <m_dwarf2_cus>: New member.
9158 (struct dwarf2_per_cu_data) <cu>: Remove.
9159 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9160 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9161 moved to methods of dwarf2_per_objfile.
9162 (dwarf2_clear_marks): Remove.
9163 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9164 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9165 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9166 (dwarf2_per_objfile::remove_all_cus): New.
9167 (class free_cached_comp_units) <~free_cached_comp_units>:
9170 (dw2_do_instantiate_symtab): Adjust.
9171 (fill_in_sig_entry_from_dwo_entry): Adjust.
9172 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9173 (cutu_reader::cutu_reader): Likewise.
9174 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9175 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9176 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9177 and dwarf2_per_objfile::age_comp_units.
9178 (load_partial_comp_unit): Update.
9179 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9180 (process_queue): Likewise.
9181 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9183 (dwarf2_read_addr_index): Likewise.
9184 (follow_die_offset): Likewise.
9185 (dwarf2_fetch_die_loc_sect_off): Likewise.
9186 (dwarf2_fetch_constant_bytes): Likewise.
9187 (dwarf2_fetch_die_type_sect_off): Likewise.
9188 (follow_die_sig_1): Likewise.
9189 (load_full_type_unit): Likewise.
9190 (read_signatured_type): Likewise.
9191 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9192 (dwarf2_cu::~dwarf2_cu): Remove.
9193 (dwarf2_per_objfile::get_cu): New.
9194 (dwarf2_per_objfile::set_cu): New.
9195 (age_cached_comp_units): Rename to...
9196 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9197 to std::unordered_map.
9198 (free_one_cached_comp_unit): Rename to...
9199 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9200 to std::unordered_map.
9201 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9202 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9203 a dwarf2_per_objfile in data.
9204 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9205 (dwarf2_clear_marks): Remove.
9207 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9209 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9210 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9211 (init_tu_and_read_dwo_dies): Likewise.
9212 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9213 (cutu_reader::cutu_reader): Likewise.
9214 (load_partial_comp_unit): Likewise.
9215 (process_psymtab_comp_unit): Update.
9216 (build_type_psymtabs_1): Update.
9217 (process_skeletonless_type_unit): Update.
9218 (load_full_comp_unit): Update.
9219 (find_partial_die): Update.
9220 (dwarf2_read_addr_index): Update.
9221 (read_signatured_type): Update.
9223 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9225 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9226 m_header_read_in>: New fields.
9227 <get_header>: New method.
9228 * dwarf2/read.c (per_cu_header_read_in): Remove.
9229 (dwarf2_per_cu_data::get_header): New.
9230 (dwarf2_per_cu_data::addr_size): Update.
9231 (dwarf2_per_cu_data::offset_size): Update.
9232 (dwarf2_per_cu_data::ref_addr_size): Update.
9234 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9236 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9237 (dw2_do_instantiate_symtab): Update.
9238 (queue_and_load_all_dwo_tus): Change parameter from
9239 dwarf2_per_cu_data to dwarf2_cu.
9240 (dwarf2_fetch_die_loc_sect_off): Update.
9241 (dwarf2_fetch_constant_bytes): Update.
9242 (dwarf2_fetch_die_type_sect_off): Update.
9244 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9246 * dwarf2/read.c (process_full_comp_unit,
9247 process_full_type_unit): Remove per_cu, per_objfile paramters.
9248 Add dwarf2_cu parameter.
9249 (process_queue): Update.
9251 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9253 * dwarf2/read.c (create_cu_from_index_list): Replace
9254 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9255 (create_cus_from_index_list): Likewise.
9256 (create_cus_from_index): Likewise.
9257 (create_signatured_type_table_from_index): Likewise.
9258 (create_cus_from_debug_names_list): Likewise.
9259 (create_cus_from_debug_names): Likewise.
9260 (dwarf2_read_gdb_index): Update.
9261 (dwarf2_read_debug_names): Update.
9263 2020-05-27 Tom Tromey <tom@tromey.com>
9264 Simon Marchi <simon.marchi@efficios.com>
9266 * dwarf2/read.h (struct dwarf2_per_objfile)
9267 <get_type_for_signatured_type, set_type_for_signatured_type>:
9269 <m_type_map>: New member.
9270 (struct signatured_type) <type>: Remove.
9272 (dwarf2_per_objfile::get_type_for_signatured_type,
9273 dwarf2_per_objfile::set_type_for_signatured_type): New.
9274 (get_signatured_type): Use new methods.
9276 2020-05-27 Tom Tromey <tom@tromey.com>
9277 Simon Marchi <simon.marchi@efficios.com>
9279 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9280 (struct dwarf2_per_objfile) <type_units>: New member.
9281 <get_type_unit_group_unshareable>: New method.
9282 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9283 num_symtabs, symtabs>: Remove; move to
9284 type_unit_group_unshareable.
9285 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9286 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9287 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9291 * dwarf2/read.h (struct dwarf2_per_cu_data):
9292 <dwarf2_per_objfile>: Remove.
9293 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9295 (create_signatured_type_table_from_index): Likewise.
9296 (create_signatured_type_table_from_debug_names): Likewise.
9297 (create_debug_type_hash_table): Likewise.
9298 (fill_in_sig_entry_from_dwo_entry): Likewise.
9299 (create_type_unit_group): Likewise.
9300 (read_comp_units_from_section): Likewise.
9301 (create_cus_hash_table): Likewise.
9303 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9305 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9306 dwarf2_per_cu_data::dwarf2_per_objfile.
9307 (compute_compunit_symtab_includes): Likewise.
9308 (dwarf2_cu::start_symtab): Likewise.
9310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9312 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9314 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9315 (read_namespace_alias): Update.
9316 (lookup_die_type): Update.
9317 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9318 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9320 (disassemble_dwarf_expression): Update.
9322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9324 * dwarf2/read.h (struct dwarf2_queue_item): Add
9325 dwarf2_per_objfile parameter, assign new parameter.
9326 <per_objfile>: New field.
9327 * dwarf2/read.c (free_one_cached_comp_unit): Add
9328 dwarf2_per_objfile parameter.
9329 (queue_comp_unit): Likewise.
9330 (dw2_do_instantiate_symtab): Update.
9331 (process_psymtab_comp_unit): Update.
9332 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9333 (process_imported_unit_die): Update.
9334 (queue_and_load_dwo_tu): Update.
9335 (follow_die_offset): Update.
9336 (follow_die_sig_1): Update.
9338 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9340 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9341 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9342 (read_call_site_scope): Assign per_objfile.
9343 (dwarf2_per_cu_data::objfile): Remove.
9344 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9345 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9346 dwarf2_per_objfile parameter.
9347 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9348 dwarf2_per_objfile parameter.
9349 (dwarf_expr_reg_to_entry_parameter): Add output
9350 dwarf2_per_objfile parameter.
9351 (locexpr_get_frame_base): Update.
9352 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9353 <push_dwarf_reg_entry_value>: Update.
9354 <call_site_to_target_addr>: Update.
9355 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9357 (value_of_dwarf_reg_entry): Update.
9358 (rw_pieced_value): Update.
9359 (indirect_synthetic_pointer): Update.
9360 (dwarf2_evaluate_property): Update.
9361 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9363 (locexpr_read_variable): Update.
9364 (locexpr_get_symbol_read_needs): Update.
9365 (loclist_read_variable): Update.
9367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9369 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9370 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9371 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9373 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9374 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9375 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9377 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9378 sect_variable_value): Add dwarf2_per_objfile parameter.
9379 (class dwarf_evaluate_loc_desc) <dwarf_call,
9380 dwarf_variable_value>: Update.
9381 (fetch_const_value_from_synthetic_pointer): Add
9382 dwarf2_per_objfile parameter.
9383 (fetch_const_value_from_synthetic_pointer): Update.
9384 (coerced_pieced_ref): Update.
9385 (class symbol_needs_eval_context) <dwarf_call,
9386 dwarf_variable_value>: Update.
9387 (dwarf2_compile_expr_to_ax): Update.
9389 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9391 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9393 (dwarf2_evaluate_loc_desc_full): Update.
9395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9397 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9399 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9400 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9401 dwarf2_per_objfile parameter.
9402 (decode_debug_loc_dwo_addresses): Likewise.
9403 (dwarf2_find_location_expression): Update.
9404 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9405 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9407 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9409 (locexpr_describe_location_1): Likewise.
9410 (locexpr_describe_location): Update.
9412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9414 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9416 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9417 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9418 (dwarf2_compile_property_to_c): Update.
9419 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9420 use text offset from objfile.
9421 (locexpr_tracepoint_var_ref): Update.
9422 (locexpr_generate_c_location): Update.
9423 (loclist_describe_location): Update.
9424 (loclist_tracepoint_var_ref): Update.
9425 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9426 dwarf2_per_objfile parameter.
9427 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9428 use text offset from objfile.
9429 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9431 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9433 * dwarf2/expr.h (struct dwarf_expr_context)
9434 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9436 <per_objfile>: New member.
9437 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9438 dwarf2_per_objfile parameter. Don't set offset, set
9440 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9441 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9442 a dwarf2_per_objfile object instead of an offset.
9443 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9445 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9446 to dwarf2_expr_executor constructor. Don't set offset.
9447 (dwarf2_fetch_cfa_info): Update.
9448 (struct dwarf2_frame_cache) <text_offset>: Remove.
9449 <per_objfile>: New field.
9450 (dwarf2_frame_cache): Update.
9451 (dwarf2_frame_prev_register): Update.
9452 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9453 <dwarf_evaluate_loc_desc>: Add constructor.
9454 (dwarf2_evaluate_loc_desc_full): Update.
9455 (dwarf2_locexpr_baton_eval): Update.
9456 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9458 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9460 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9462 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9463 addr_sized_int_type>: Move to dwarf2_cu.
9464 <int_type>: Move to dwarf2_per_objfile.
9465 (struct dwarf2_per_objfile) <int_type>: Move here.
9466 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9467 addr_sized_int_type>: Move here.
9468 (read_func_scope): Update.
9469 (read_array_type): Update.
9470 (read_tag_string_type): Update.
9471 (attr_to_dynamic_prop): Update.
9472 (dwarf2_per_cu_data::int_type): Rename to...
9473 (dwarf2_per_objfile::int_type): ... this.
9474 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9475 (dwarf2_cu::addr_sized_int_type): ... this.
9476 (read_subrange_type): Update.
9477 (dwarf2_per_cu_data::addr_type): Rename to...
9478 (dwarf2_cu::addr_type): ... this.
9479 (set_die_type): Update.
9481 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9483 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9484 data through per_cu->cu.
9486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9488 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9489 dwarf2_per_cu_data parameter fo dwarf2_cu.
9490 (lookup_dwo_type_unit): Likewise.
9491 (read_cutu_die_from_dwo): Likewise.
9492 (lookup_dwo_unit): Likewise.
9493 (open_and_init_dwo_file): Likewise.
9494 (lookup_dwo_cutu): Likewise.
9495 (lookup_dwo_comp_unit): Likewise.
9496 (lookup_dwo_type_unit): Likewise.
9497 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9498 (cutu_reader::cutu_reader): Update.
9500 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9502 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9504 (process_full_type_unit): Likewise.
9505 (process_queue): Update.
9507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9509 * dwarf2/read.c (recursively_compute_inclusions): Add
9510 dwarf2_per_objfile parameter.
9511 (compute_compunit_symtab_includes): Likewise.
9512 (process_cu_includes): Update.
9514 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9516 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9518 (create_type_unit_group): Update.
9519 (process_psymtab_comp_unit_reader): Update.
9520 (build_type_psymtabs_reader): Update.
9522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9524 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9525 object through m_this_cu->cu.
9527 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9529 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9531 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9533 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9535 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9536 per_objfile parameter.
9537 (load_full_type_unit): Add per_objfile parameter.
9538 (read_signatured_type): Likewise.
9539 (load_full_comp_unit): Likewise.
9540 (load_cu): Likewise.
9541 (dw2_do_instantiate_symtab): Likewise.
9542 (dw2_get_file_names): Likewise.
9543 (dw2_map_symtabs_matching_filename): Update.
9544 (dw_expand_symtabs_matching_file_matcher): Update.
9545 (dw2_map_symbol_filenames): Update.
9546 (process_psymtab_comp_unit): Add per_objfile parameter.
9547 (build_type_psymtabs_1): Update.
9548 (process_skeletonless_type_unit): Update.
9549 (dwarf2_build_psymtabs_hard): Update.
9550 (load_partial_comp_unit): Add per_objfile parameter.
9551 (scan_partial_symbols): Update.
9552 (load_full_comp_unit): Add per_objfile parameter.
9553 (process_imported_unit_die): Update.
9554 (create_cus_hash_table): Update.
9555 (find_partial_die): Update.
9556 (dwarf2_read_addr_index): Update.
9557 (follow_die_offset): Update.
9558 (dwarf2_fetch_die_loc_sect_off): Update.
9559 (dwarf2_fetch_constant_bytes): Update.
9560 (dwarf2_fetch_die_type_sect_off): Update.
9561 (follow_die_sig_1): Update.
9562 (load_full_type_unit): Add per_objfile parameter.
9563 (read_signatured_type): Likewise.
9565 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9567 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9570 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9572 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9573 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9574 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9576 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9577 (create_cus_from_index): Update.
9578 (dwarf2_read_gdb_index): Update.
9579 (create_cus_from_debug_names): Update.
9580 (dwarf2_read_debug_names): Update.
9581 (get_abbrev_section_for_cu): Update.
9582 (create_all_comp_units): Update.
9583 (read_attribute_value): Update.
9584 (get_debug_line_section): Update.
9585 * dwarf2/index-cache.c (index_cache::store): Update.
9586 * dwarf2/index-write.c (save_gdb_index_command): Update.
9587 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9589 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9591 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9593 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9594 dwarf2_per_cu_data::per_bfd.
9595 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9596 (create_type_unit_group): Likewise.
9597 (queue_comp_unit): Remove reference to
9598 per_cu->dwarf2_per_objfile.
9599 (maybe_queue_comp_unit): Likewise.
9600 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9601 (create_cus_hash_table): Assign new field.
9603 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9605 * dwarf2/read.c: Replace
9606 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9607 dwarf2_cu->per_objfile throughout.
9609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9611 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9612 parameter, don't use per_cu->dwarf2_per_objfile.
9613 (dw2_instantiate_symtab): Likewise.
9614 (dw2_find_last_source_symtab): Update.
9615 (dw2_map_expand_apply): Update.
9616 (dw2_lookup_symbol): Update.
9617 (dw2_expand_symtabs_for_function): Update.
9618 (dw2_expand_all_symtabs): Update.
9619 (dw2_expand_symtabs_with_fullname): Update.
9620 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9621 don't use per_cu->dwarf2_per_objfile.
9622 (dw2_expand_marked_cus): Update.
9623 (dw2_find_pc_sect_compunit_symtab): Update.
9624 (dw2_debug_names_lookup_symbol): Update.
9625 (dw2_debug_names_expand_symtabs_for_function): Update.
9626 (dw2_debug_names_map_matching_symbols): Update.
9627 (dwarf2_psymtab::expand_psymtab): Update.
9629 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9631 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9632 <per_objfile>: New member.
9633 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9634 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9636 (cutu_reader::cutu_reader): Update.
9637 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9639 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9641 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9642 struct dwarf2_per_objfile.
9643 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9645 * dwarf2/read.c (set_die_type): Update.
9646 (get_die_type_at_offset): Update.
9648 2020-05-27 Tom Tromey <tom@tromey.com>
9649 Simon Marchi <simon.marchi@efficios.com>
9651 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9653 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9654 get_symtab, set_symtab>: New methods.
9655 <m_symtabs>: New field.
9656 (struct dwarf2_psymtab): Derive from partial_symtab.
9657 <readin_p, get_compunit_symtab>: Declare methods.
9658 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9659 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9661 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9662 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9663 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9664 (dw2_symtab_iter_next, dw2_print_stats)
9665 (dw2_expand_symtabs_with_fullname)
9666 (dw2_expand_symtabs_matching_one)
9667 (dw_expand_symtabs_matching_file_matcher)
9668 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9669 (dw2_debug_names_iterator::next)
9670 (dw2_debug_names_map_matching_symbols)
9671 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9672 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9673 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9675 (get_compunit_symtab, process_full_comp_unit)
9676 (process_full_type_unit): Update.
9677 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9679 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9681 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9682 then introduce a new dwarf2_per_objfile type.
9683 <read_line_string>: Move to the new dwarf2_per_objfile type.
9684 <objfile>: Likewise.
9685 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9686 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9687 dwarf2_per_objfile->per_bfd.
9688 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9689 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9690 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9691 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9692 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9693 (dwarf2_per_objfile::locate_sections): Rename to...
9694 (dwarf2_per_bfd::locate_sections): ... this.
9695 (dwarf2_per_objfile::get_cutu): Rename to...
9696 (dwarf2_per_bfd::get_cutu): ... this.
9697 (dwarf2_per_objfile::get_cu): Rename to...
9698 (dwarf2_per_bfd::get_cu): ... this.
9699 (dwarf2_per_objfile::get_tu): Rename to...
9700 (dwarf2_per_bfd::get_tu): ... this.
9701 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9702 (dwarf2_per_bfd::allocate_per_cu): ... this.
9703 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9704 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9705 (get_gdb_index_contents_ftype): Change parameter from
9706 dwarf2_per_objfile to dwarf2_per_bfd.
9707 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9708 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9710 2020-05-27 Tom Tromey <tom@tromey.com>
9711 Simon Marchi <simon.marchi@efficios.com>
9713 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9714 (allocate_piece_closure): Set "per_objfile" member.
9715 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9716 (locexpr_describe_location, loclist_describe_location): Use new
9718 * dwarf2/read.c (read_call_site_scope)
9719 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9720 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9721 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9722 handle_data_member_location): Set per_objfile member.
9723 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9725 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9727 2020-05-27 Tom Tromey <tom@tromey.com>
9729 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9730 allocate_signatured_type>: Declare new methods.
9731 <m_num_psymtabs>: New member.
9732 (struct dwarf2_per_cu_data) <index>: New member.
9733 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9734 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9735 (create_cu_from_index_list): Use allocate_per_cu.
9736 (create_signatured_type_table_from_index)
9737 (create_signatured_type_table_from_debug_names)
9738 (create_debug_type_hash_table, add_type_unit)
9739 (read_comp_units_from_section): Use allocate_signatured_type.
9741 2020-05-27 Tom Tromey <tom@tromey.com>
9743 * psymtab.c (partial_map_expand_apply)
9744 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9745 (psym_lookup_global_symbol_language)
9746 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9747 (psym_print_stats, psym_expand_symtabs_for_function)
9748 (psym_map_symbol_filenames, psym_map_matching_symbols)
9749 (psym_expand_symtabs_matching)
9750 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9751 (maintenance_check_psymtabs): Update.
9752 * psympriv.h (struct partial_symtab) <readin_p,
9753 get_compunit_symtab>: Add objfile parameter.
9754 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9756 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9757 get_compunit_symtab>: Likewise.
9758 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9760 2020-05-27 Tom Tromey <tom@tromey.com>
9762 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9764 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9765 (create_cu_from_index_list)
9766 (create_signatured_type_table_from_index)
9767 (create_signatured_type_table_from_debug_names)
9768 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9769 (dwarf2_create_include_psymtab)
9770 (create_debug_type_hash_table, add_type_unit)
9771 (create_type_unit_group, read_comp_units_from_section)
9772 (dwarf2_compute_name, create_cus_hash_table)
9773 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9774 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9776 (dw2_get_real_path): Likewise. Change argument to
9779 2020-05-27 Luis Machado <luis.machado@linaro.org>
9782 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9783 for ldrd (immediate).
9785 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9787 * command.h: Add comment giving the name of class_tui.
9788 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9789 create the fake command for the help for class_tui.
9791 2020-05-26 Tom Tromey <tromey@adacore.com>
9793 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9794 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9795 (val_atr): New function.
9796 (value_val_atr): Use it.
9797 * ada-valprint.c (print_optional_low_bound): Change low bound
9799 (val_print_packed_array_elements): Don't call discrete_position.
9800 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9801 discrete_position for enum types.
9802 * language.c (default_print_array_index): Change type.
9803 * language.h (struct language_defn) <la_print_array_index>: Add
9804 index_type parameter, change type of index_value.
9805 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9806 (default_print_array_index): Update.
9807 * valprint.c (maybe_print_array_index): Don't call
9808 value_from_longest. Update.
9809 (value_print_array_elements): Don't call discrete_position.
9811 2020-05-26 Tom Tromey <tromey@adacore.com>
9813 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9814 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9816 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9819 * avr-tdep.c (avr_integer_to_address): Return data or code
9820 address accordingly to the second 'type' argument of the
9823 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9825 * infcmd.c, inferior.h: (construct_inferior_arguments):
9826 Moved function from here to gdbsupport/common-inferior.{h,cc}
9828 2020-05-23 Tom Tromey <tom@tromey.com>
9830 Revert commit eca1f90c:
9831 * NEWS: Remove entry for completion styling.
9832 * completer.c (_rl_completion_prefix_display_length): Move
9834 (gdb_fnprint): Revert.
9835 (gdb_display_match_list_1): Likewise.
9836 * cli/cli-style.c (completion_prefix_style)
9837 (completion_difference_style, completion_suffix_style): Remove.
9838 (_initialize_cli_style): Revert.
9839 * cli/cli-style.h (completion_prefix_style)
9840 (completion_difference_style, completion_suffix_style): Don't
9843 2020-05-24 Pedro Alves <palves@redhat.com>
9845 * symtab.c (completion_list_add_name): Return boolean indication
9846 of whether the symbol matched.
9847 (completion_list_add_symbol): Don't try to remove C++ aliases if
9848 the symbol didn't match in the first place.
9849 * symtab.h (completion_list_add_name): Return bool.
9851 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9853 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9856 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9860 2020-05-23 Tom Tromey <tom@tromey.com>
9862 * NEWS: Add entry for completion styling.
9863 * completer.c (_rl_completion_prefix_display_length): Move
9864 declaration earlier.
9865 (gdb_fnprint): Use completion_style.
9866 (gdb_display_match_list_1): Likewise.
9867 * cli/cli-style.c (completion_prefix_style)
9868 (completion_difference_style, completion_suffix_style): New
9870 (_initialize_cli_style): Register new globals.
9871 * cli/cli-style.h (completion_prefix_style)
9872 (completion_difference_style, completion_suffix_style): Declare.
9874 2020-05-23 Pedro Alves <palves@redhat.com>
9876 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9877 (parse_escape): Use ISDIGIT instead of isdigit.
9878 (puts_debug): Use gdb_isprint instead of isprint.
9879 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9880 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9881 ISSPACE instead of isspace.
9882 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9884 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9885 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9886 instead of isxdigit and ISDIGIT instead of isdigit.
9888 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9890 * gdbtypes.h (struct type) <field>: New method.
9891 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9894 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9896 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9897 (TYPE_FIELDS): Use type::fields. Change all call sites that
9898 modify the propery to use type::set_fields instead.
9900 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9902 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9903 type::num_fields instead.
9905 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9907 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9909 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9910 that modify the number of fields to use type::set_num_fields
9913 2020-05-22 Tom Tromey <tromey@adacore.com>
9915 * compile/compile-object-load.h (munmap_list_free): Don't
9918 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9920 * annotate.c (annotate_source_line): Update return type, add call
9921 to update current symtab and line.
9922 * annotate.h (annotate_source_line): Update return type, and
9923 extend header comment.
9924 * source.c (info_line_command): Check annotation_level before
9925 calling annotate_source_line.
9926 * stack.c (print_frame_info): If calling annotate_source_line
9927 returns true, then don't print any other source line information.
9929 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9931 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9933 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9935 * coffread.c (patch_type): Remove NULL check before xfree.
9936 * corefile.c (set_gnutarget): Likewise.
9937 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9938 * exec.c (build_section_table): Likewise.
9939 * remote.c (remote_target::pass_signals): Likewise.
9940 * utils.c (n_spaces): Likewise.
9941 * cli/cli-script.c (document_command): Likewise.
9942 * i386-windows-tdep.c (core_process_module_section): Likewise.
9943 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9945 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9947 * symfile.c (reread_symbols): Clear objfile's section_offsets
9948 vector and section indices, re-compute them by calling
9951 2020-05-20 Tom Tromey <tromey@adacore.com>
9953 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9954 (desc_one_bound, desc_index_type): Compute field name.
9956 2020-05-20 Tom de Vries <tdevries@suse.de>
9959 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9961 2020-05-20 Alan Modra <amodra@gmail.com>
9964 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9966 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9967 passed to bfd_set_filename.
9968 * symfile-mem.c (add_vsyscall_page): Likewise for string
9969 passed to symbol_file_add_from_memory.
9970 (symbol_file_add_from_memory): Make name param a const char* and
9973 2020-05-20 Alan Modra <amodra@gmail.com>
9975 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9976 rather than accessing bfd->filename directly.
9977 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9978 and use bfd_section_name.
9979 * dwarf2/frame.c (decode_frame_entry): Likewise.
9980 * exec.c (exec_set_section_address): Likewise.
9981 * solib-aix.c (solib_aix_bfd_open): Likewise.
9982 * stap-probe.c (get_stap_base_address): Likewise.
9983 * symfile.c (reread_symbols): Likewise.
9985 2020-05-19 Tom Tromey <tromey@adacore.com>
9987 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9989 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9991 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9993 2020-05-19 Pedro Alves <palves@redhat.com>
9995 * NEWS (set exec-file-mismatch): Adjust entry.
9996 * exec.c: Include "build-id.h".
9997 (validate_exec_file): Try to match build IDs instead of filenames.
9998 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9999 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10000 and pass down 'warn_if_slow'.
10001 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10002 gdb_bfd_open_closure to pass it down.
10003 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10005 2020-05-19 Pedro Alves <palves@redhat.com>
10007 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10008 * target.c (target_fileio_open_1): Rename to target_fileio_open
10009 and make extern. Use bool.
10010 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10011 (target_fileio_read_alloc_1): Adjust.
10012 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10013 (target_fileio_open_warn_if_slow): Delete declaration.
10015 2020-05-19 Pedro Alves <palves@redhat.com>
10017 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10018 Adjust all callers.
10020 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10022 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10023 whether disp is negative.
10025 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10027 * symfile.h (struct symfile_segment_data)
10028 <~symfile_segment_data>: Remove.
10029 <segment_info>: Change to std::vector.
10030 * symfile.c (default_symfile_segments): Update.
10031 * elfread.c (elf_symfile_segments): Update.
10033 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10035 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10037 <segment_bases, segment_sizes>: Remove.
10038 * symfile.c (default_symfile_segments): Update.
10039 * elfread.c (elf_symfile_segments): Update.
10040 * remote.c (remote_target::get_offsets): Update.
10041 * solib-target.c (solib_target_relocate_section_addresses):
10044 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10046 * symfile.h (struct symfile_segment_data): Initialize fields.
10047 <~symfile_segment_data>: Add.
10048 (symfile_segment_data_up): New.
10049 (struct sym_fns) <sym_segments>: Return a
10050 symfile_segment_data_up.
10051 (default_symfile_segments): Return a symfile_segment_data_up.
10052 (free_symfile_segment_data): Remove.
10053 (get_symfile_segment_data): Return a symfile_segment_data_up.
10054 * symfile.c (default_symfile_segments): Likewise.
10055 (get_symfile_segment_data): Likewise.
10056 (free_symfile_segment_data): Remove.
10057 (symfile_find_segment_sections): Update.
10058 * elfread.c (elf_symfile_segments): Return a
10059 symfile_segment_data_up.
10060 * remote.c (remote_target::get_offsets): Update.
10061 * solib-target.c (solib_target_relocate_section_addresses):
10063 * symfile-debug.c (debug_sym_segments): Return a
10064 symfile_segment_data_up.
10066 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10069 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10070 Hardcode register numbers.
10073 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10074 procfs_find_LDT_entry): Remove.
10075 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10076 procfs_find_LDT_entry): Remove.
10077 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10080 2020-05-17 Pedro Alves <palves@redhat.com>
10081 Andrew Burgess <andrew.burgess@embecosm.com>
10082 Keno Fischer <keno@juliacomputing.com>
10085 * breakpoint.c (build_target_condition_list): Update comments.
10086 (build_target_command_list): Update comments and skip matching
10088 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10089 a separate function. Simplify "set breakpoint auto-hw off"
10091 (insert_breakpoints): Update comment.
10092 (tracepoint_locations_match): New parameter. For breakpoints,
10093 compare location types too, if the caller wants to.
10094 (handle_automatic_hardware_breakpoints): New functions.
10095 (bp_location_is_less_than): Also sort by location type and
10096 hardware breakpoint length.
10097 (update_global_location_list): Handle "set breakpoint auto-hw on"
10099 (update_breakpoint_locations): Ask breakpoint_locations_match to
10100 ignore location types.
10102 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10104 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10105 type::name instead.
10107 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10109 * gdbtypes.h (struct type) <name, set_name>: New methods.
10110 (TYPE_CODE): Use type::name. Change all call sites used to set
10111 the name to use type::set_name instead.
10113 2020-05-16 Tom Tromey <tom@tromey.com>
10115 * top.c (quit_force): Update.
10116 * infrun.c (handle_no_resumed): Update.
10117 * top.h (all_uis): New function.
10120 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10122 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10124 2020-05-16 Pedro Alves <palves@redhat.com>
10127 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10129 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10131 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10133 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10134 (sparc64_adi_info): Likewise.
10136 2020-05-15 Tom Tromey <tom@tromey.com>
10138 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10140 (lookup_objfile_from_block): Remove.
10141 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10142 (lookup_global_symbol): Use block_objfile.
10143 * symtab.h (lookup_objfile_from_block): Don't declare.
10144 * printcmd.c (clear_dangling_display_expressions): Use
10146 * parse.c (operator_check_standard): Use block_objfile.
10148 2020-05-15 Tom Tromey <tom@tromey.com>
10150 * language.c (language_alloc_type_symbol): Set
10152 * symtab.c (initialize_objfile_symbol): Remove.
10153 (allocate_symbol): Remove.
10154 (allocate_template_symbol): Remove.
10155 * dwarf2/read.c (fixup_go_packaging): Use "new".
10156 (new_symbol): Use "new".
10157 (read_variable): Don't call initialize_objfile_symbol. Use
10159 (read_func_scope): Use "new".
10160 * xcoffread.c (process_xcoff_symbol): Don't call
10161 initialize_objfile_symbol.
10162 (SYMBOL_DUP): Remove.
10163 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10165 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10166 (allocate_template_symbol): Don't declare.
10167 (struct symbol): Add copy constructor. Change defaults.
10168 * jit.c (finalize_symtab): Use "new".
10169 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10171 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10172 (common_block_end): Use "new".
10173 * mdebugread.c (parse_symbol): Use "new".
10174 (new_symbol): Likewise.
10176 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10178 * NEWS: Mention changes to help and apropos.
10180 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10182 * command.h (enum command_class): Improve comments, document
10183 that class_alias is for user-defined aliases, give the class
10184 name for each class, remove unused class_xdb.
10185 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10186 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10187 by a precise class.
10188 * infcmd.c (_initialize_infcmd): Likewise.
10189 * reverse.c (_initialize_reverse): Likewise.
10190 * stack.c (_initialize_stack): Likewise.
10191 * symfile.c (_initialize_symfile): Likewise.
10192 * tracepoint.c (_initialize_tracepoint): Likewise.
10194 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10196 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10197 when their aliased command is traversed.
10198 (help_cmd): Add fput_command_names_styled call to
10199 output command name and aliases when command has an alias.
10201 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10203 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10204 * cli/cli-decode.c (help_cmd_list): Declare as static,
10205 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10206 a command together with the command.
10207 (fput_command_name_styled, fput_command_names_styled): New functions.
10208 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10209 fput_command_name_styled.
10210 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10211 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10213 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10215 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10216 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10217 * command.h (cmd_show_list): Likewise.
10218 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10219 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10221 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10223 * unittests/command-def-selftests.c (traverse_command_structure):
10224 Verify all commands of a list have the same prefix command and
10225 that only the top cmdlist commands have a null prefix.
10227 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10229 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10230 as prefix, not one of its aliases.
10231 (set_cmd_prefix): Remove.
10232 (do_add_cmd): Centralize the setting of the prefix of a command, when
10233 command is defined after its full chain of prefix commands.
10234 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10235 (add_setshow_cmd_full): Likewise.
10236 (update_prefix_field_of_prefixed_commands): New function.
10237 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10238 update_prefix_field_of_prefixed_commands.
10239 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10240 addresses of remote_set_cmdlist and remote_show_cmdlist given
10241 as argument, not the address of an argument.
10242 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10243 * gdb/remote.c (_initialize_remote): Likewise.
10245 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10247 * cli/cli-cmds.c (alias_command): Check for an existing alias
10248 using lookup_cmd_composition, as valid_command_p is too strict
10249 and forbids aliases that are the prefix of an existing alias
10251 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10252 command is properly recognised as a valid command.
10254 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10256 * unittests/help-doc-selftests.c: Rename to
10257 unittests/command-def-selftests.c
10258 * unittests/command-def-selftests.c (help_doc_tests): Update some
10260 (command_structure_tests, traverse_command_structure): New namespace
10262 (command_structure_invariants_tests): New function.
10263 (_initialize_command_def_selftests) Renamed from
10264 _initialize_help_doc_selftests, register command_structure_invariants
10267 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10269 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10270 an alias of 'show'.
10272 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10274 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10275 ada_is_fixed_point_type. Update all callers.
10276 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10278 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10279 Update all callers.
10280 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10281 print_fixed_point_type. Update all callers.
10282 * ada-valprint.c (ada_value_print_num): Replace call to
10283 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10285 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10287 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10289 (cpu_supports_bts): Add CV_AMD case.
10291 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10292 Simon Marchi <simon.marchi@efficios.com>
10294 * infrun.c (stop_all_threads): Collect multiple wait events at
10297 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10299 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10300 type::code instead.
10302 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10304 * gdbtypes.h (struct type) <code, set_code>: New methods.
10305 (TYPE_CODE): Use type::code. Change all call sites used to set
10306 the code to use type::set_code instead.
10308 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10309 Tom de Vries <tdevries@suse.de>
10310 Pedro Alves <palves@redhat.com>
10313 * infrun.c (stop_all_threads): Do NOT ignore
10314 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10315 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10317 (handle_no_resumed): Remove code handling a live inferior with no
10319 * remote.c (has_single_non_exited_thread): New.
10320 (remote_target::update_thread_list): Do not delete a thread if is
10321 the last thread of the process.
10322 * thread.c (thread_select): Call delete_exited_threads instead of
10325 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10327 * infrun.c (stop_all_threads): Enable/disable thread events of all
10328 targets. Move a debug message denoting the end of the function
10329 into the SCOPED_EXIT block.
10331 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10333 * process-stratum-target.h: Include <set>.
10334 (all_non_exited_process_targets, switch_to_target_no_thread): New
10335 function declarations.
10336 * process-stratum-target.c (all_non_exited_process_targets)
10337 (switch_to_target_no_thread): New function implementations.
10339 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10341 * infrun.c (handle_inferior_event): Extract out a piece of code
10343 (mark_non_executing_threads): ...this new function.
10345 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10347 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10350 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10352 * regcache.c (regcache_read_pc_protected): New function
10353 implementation that returns 0 if the PC cannot read via
10354 'regcache_read_pc'.
10355 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10356 instead of 'regcache_read_pc'.
10357 (keep_going_pass_signal): Ditto.
10359 2020-05-13 Tom Tromey <tromey@adacore.com>
10361 * ada-lang.c (align_value): Remove.
10362 (ada_template_to_fixed_record_type_1): Use align_up.
10364 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10366 * async-event.c: Update the copyright year.
10367 * async-event.h: Update the copyright year.
10369 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10371 * objfiles.h (is_addr_in_objfile,
10372 shared_objfile_contains_address_p): Return bool.
10373 * objfile.c (is_addr_in_objfile,
10374 shared_objfile_contains_address_p): Return bool.
10376 2020-05-11 Tom Tromey <tromey@adacore.com>
10378 * cli/cli-cmds.c (info_command): Restore.
10379 (_initialize_cli_cmds): Use add_prefix_command for "info".
10380 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10382 2020-05-11 Tom Tromey <tromey@adacore.com>
10384 * ada-lang.c (ada_value_primitive_field): Now public.
10385 * ada-lang.h (ada_value_primitive_field): Declare.
10386 * ada-valprint.c (print_field_values): Use
10387 ada_value_primitive_field for wrapper fields.
10389 2020-05-11 Tom de Vries <tdevries@suse.de>
10391 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10394 2020-05-11 Tom de Vries <tdevries@suse.de>
10397 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10398 with length 0, if not gdb-produced.
10399 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10401 2020-05-09 Tom de Vries <tdevries@suse.de>
10404 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10407 2020-05-09 Tom Tromey <tom@tromey.com>
10409 * top.c (server_command): Now bool.
10410 * top.h (server_command): Now bool.
10412 2020-05-08 Tom Tromey <tromey@adacore.com>
10414 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10415 already being processed.
10417 2020-05-08 Tom Tromey <tom@tromey.com>
10419 * printcmd.c (struct display) <next>: Remove.
10420 <display>: New constructor.
10421 <exp_string>: Now a std::string.
10422 <enabled_p>: Now a bool.
10423 (display_number): Move definition earlier.
10424 (displays): Rename from display_chain. Now a std::vector.
10425 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10426 (display_command): Update.
10427 (do_one_display, disable_display)
10428 (enable_disable_display_command, do_enable_disable_display):
10430 (free_display): Remove.
10431 (clear_displays): Rewrite.
10432 (delete_display): Update.
10433 (map_display_numbers): Use function_view. Remove "data"
10435 (do_delete_display): Remove.
10436 (undisplay_command): Update.
10437 (do_one_display, do_displays, disable_display)
10438 (info_display_command): Update.
10439 (do_enable_disable_display): Remove.
10440 (enable_disable_display_command)
10441 (clear_dangling_display_expressions): Update.
10443 2020-05-08 Tom Tromey <tom@tromey.com>
10445 * symtab.c (set_symbol_cache_size)
10446 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10447 (maintenance_print_symbol_cache_statistics): Update.
10448 * symmisc.c (print_symbol_bcache_statistics)
10449 (print_objfile_statistics, maintenance_print_objfiles)
10450 (maintenance_info_symtabs, maintenance_check_symtabs)
10451 (maintenance_expand_symtabs, maintenance_info_line_tables):
10453 * symfile-debug.c (set_debug_symfile): Update.
10454 * source.c (forget_cached_source_info): Update.
10455 * python/python.c (gdbpy_progspaces): Update.
10456 * psymtab.c (maintenance_info_psymtabs): Update.
10457 * probe.c (parse_probes): Update.
10458 * linespec.c (iterate_over_all_matching_symtabs)
10459 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10460 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10461 * exec.c (exec_target::close): Update.
10462 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10463 * breakpoint.c (print_one_breakpoint_location)
10464 (create_longjmp_master_breakpoint)
10465 (create_std_terminate_master_breakpoint): Update.
10466 * progspace.c (program_spaces): Now a std::vector.
10467 (maybe_new_address_space): Update.
10468 (add_program_space): Remove.
10469 (program_space::program_space): Update.
10470 (remove_program_space): Update.
10471 (number_of_program_spaces): Remove.
10472 (print_program_space, update_address_spaces): Update.
10473 * progspace.h (program_spaces): Change type.
10474 (ALL_PSPACES): Remove.
10475 (number_of_program_spaces): Don't declare.
10476 (struct program_space) <next>: Remove.
10478 2020-05-08 Tom Tromey <tom@tromey.com>
10480 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10481 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10482 (enable_break): Update.
10483 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10484 (frv_fdpic_find_canonical_descriptor): Update.
10485 (frv_fetch_objfile_link_map): Update.
10486 * progspace.c (program_space::free_all_objfiles): Update.
10487 (program_space::solibs): New method.
10488 * progspace.h (struct program_space) <solibs>: New method.
10489 * solist.h (master_so_list): Don't declare.
10490 (ALL_SO_LIBS): Remove.
10491 * solib.h (so_list_head): Remove.
10492 (update_solib_list): Update comment.
10493 * solib.c (master_so_list): Remove.
10494 (solib_used, update_solib_list, solib_add)
10495 (info_sharedlibrary_command, clear_solib)
10496 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10498 2020-05-08 Tom Tromey <tom@tromey.com>
10500 * extension.c (extension_languages): Now a std::array.
10501 (ALL_EXTENSION_LANGUAGES): Remove.
10502 (get_ext_lang_defn, get_ext_lang_of_file)
10503 (eval_ext_lang_from_control_command): Update.
10504 (finish_ext_lang_initialization)
10505 (auto_load_ext_lang_scripts_for_objfile)
10506 (ext_lang_type_printers::ext_lang_type_printers)
10507 (apply_ext_lang_type_printers)
10508 (ext_lang_type_printers::~ext_lang_type_printers)
10509 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10510 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10511 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10512 (get_matching_xmethod_workers, ext_lang_colorize)
10513 (ext_lang_before_prompt): Update.
10514 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10516 2020-05-08 Tom Tromey <tom@tromey.com>
10518 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10520 <swap_string, m_string>: Remove.
10521 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10523 * stabsread.c (define_symbol, read_type): Update.
10524 * linespec.c (find_linespec_symbols): Update.
10525 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10526 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10527 * dbxread.c (read_dbx_symtab): Update.
10528 * cp-support.h (cp_canonicalize_string_full)
10529 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10530 Return unique_xmalloc_ptr.
10531 * cp-support.c (inspect_type): Update.
10532 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10533 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10535 * c-typeprint.c (print_name_maybe_canonical): Update.
10536 * break-catch-throw.c (check_status_exception_catchpoint):
10539 2020-05-08 Tom de Vries <tdevries@suse.de>
10541 * infrun.c (follow_fork): Copy current_line and current_symtab to
10544 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10546 * async-event.c (struct async_signal_handler, struct
10547 async_event_handler): Reformat, remove typedef.
10549 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10551 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10552 access thistype->main_type->dyn_prop_list directly.
10554 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10556 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10557 (remove_dyn_prop): Remove. Update all users to use
10558 type::remove_dyn_prop.
10559 * gdbtypes.c (remove_dyn_prop): Rename to...
10560 (type::remove_dyn_prop): ... this.
10562 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10564 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10565 (add_dyn_prop): Remove. Update all users to use
10566 type::add_dyn_prop.
10567 * gdbtypes.c (add_dyn_prop): Rename to...
10568 (type::add_dyn_prop): ... this.
10570 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10572 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10573 (get_dyn_prop): Remove. Update all users to use
10575 * gdbtypes.c (get_dyn_prop): Rename to...
10576 (type::dyn_prop): ... this.
10578 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10580 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10582 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10584 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10585 instruction, skip it if it's there.
10587 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10589 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10591 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10593 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10594 * gdbtypes.c (recursive_dump_type): Remove use of
10597 2020-05-03 Tom Tromey <tom@tromey.com>
10599 * breakpoint.c (catch_command, tcatch_command): Remove.
10600 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10601 add_show_prefix_cmd.
10602 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10603 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10605 (add_internal_problem_command): Use add_basic_prefix_cmd,
10606 add_show_prefix_cmd.
10607 * mips-tdep.c (set_mipsfpu_command): Remove.
10608 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10609 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10610 (_initialize_index_cache): Use add_basic_prefix_cmd.
10611 * memattr.c (dummy_cmd): Remove.
10612 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10613 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10614 (_initialize_tui_win): Use add_basic_prefix_cmd,
10615 add_show_prefix_cmd.
10616 * cli/cli-logging.c (set_logging_command): Remove.
10617 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10618 add_show_prefix_cmd.
10619 (show_logging_command): Remove.
10620 * target.c (target_command): Remove.
10621 (add_target): Use add_basic_prefix_cmd.
10623 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10625 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10627 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10629 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10632 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10634 * nbsd-nat.c (nbsd_enable_proc_events)
10635 (nbsd_nat_target::post_startup_inferior): Add.
10636 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10637 (nbsd_nat_target::update_thread_list): Rewrite.
10638 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10639 "PTRACE_LWP_CREATE".
10640 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10642 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10644 * stack.c (_initialize_stack): Remove duplicated creation
10645 of "frame" command and "f" alias.
10647 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10650 * gdbtypes.c (check_typedef): Calculate size of array of
10653 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10656 * i386-tdep.c (i386_push_dummy_call): Call
10657 i386_thiscall_push_dummy_call.
10658 (i386_thiscall_push_dummy_call): New function.
10659 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10660 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10661 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10663 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10665 * gdbarch.sh (do_read): Add shellcheck disable directive for
10668 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10670 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10671 "referenced but not assigned" warning.
10673 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10675 * gdbarch.sh: Remove code that sets fallbackdefault.
10677 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10679 * gdbarch.sh: Use shell operators && and || instead of
10682 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10684 * gdbarch.sh: Use $(...) instead of `...`.
10686 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10688 * gdbarch.sh: Use double quotes around variables.
10690 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10692 * gdbarch.sh: Use %s with printf, instead of variables in the
10695 2020-04-29 Tom Tromey <tromey@adacore.com>
10698 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10700 (read_enumeration_type): Call
10701 update_enumeration_type_from_children later. Update comments.
10702 (process_enumeration_scope): Don't create type fields.
10704 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10706 * nbsd-tdep.c: Include "xml-syscall.h".
10707 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10709 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10711 * nbsd-nat.c: Include "sys/wait.h".
10712 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10713 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10714 (nbsd_nat_target::remove_exec_catchpoint)
10715 (nbsd_nat_target::set_syscall_catchpoint): Add.
10716 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10717 (nbsd_nat_target::insert_exec_catchpoint)
10718 (nbsd_nat_target::remove_exec_catchpoint)
10719 (nbsd_nat_target::set_syscall_catchpoint): Add.
10720 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10721 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10722 `nbsd_get_syscall_number'.
10724 2020-04-29 Tom Tromey <tom@tromey.com>
10726 * stack.c (print_block_frame_labels): Remove.
10728 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10731 * ada-valprint.c (val_print_packed_array_elements): Move array
10732 end bracket to new line.
10733 (ada_val_print_string): Remove extra spaces before first array
10735 * c-valprint.c (c_value_print_array): Likewise.
10736 * m2-valprint.c (m2_print_array_contents): Likewise.
10737 (m2_value_print_inner): Likewise.
10738 * p-valprint.c (pascal_value_print_inner): Likewise.
10739 * valprint.c (generic_val_print_array): Likewise.
10740 (value_print_array_elements): Move first array element and array
10741 end bracket to new line.
10743 2020-04-29 Tom de Vries <tdevries@suse.de>
10746 * linespec.c (find_method): Fix ix calculation.
10748 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10750 * syscalls/update-netbsd.sh: New file.
10751 * syscalls/netbsd.xml: Regenerate.
10752 * data-directory/Makefile.in: Register `netbsd.xml' in
10755 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10757 * syscalls/update-freebsd.sh: Add double quotes.
10759 2020-04-28 Tom Tromey <tom@tromey.com>
10762 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10763 (cmdpy_init): Allow class_tui.
10765 2020-04-28 Mark Williams <mark@myosotissp.com>
10768 * dwarf2read.c: Add missing assingments to list_in_scope when
10769 start_symtab was already called.
10771 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10774 * dwarf2/read.c (offset_map_type): Use
10775 gdb:hash_enum<sect_offset> as hash function.
10777 2020-04-28 Tom de Vries <tdevries@suse.de>
10779 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10780 with DW_AT_signature.
10782 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10784 * configure.ac: Remove check for fs_base/gs_base in
10786 * configure: Re-generate.
10787 * config.in: Re-generate.
10788 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10789 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10790 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10792 2020-04-27 Luis Machado <luis.machado@linaro.org>
10794 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10795 problematic inline frame unwinding situation.
10796 * frame.c (frame_id_computed_p): New function.
10797 * frame.h (frame_id_computed_p): New prototype.
10799 2020-04-26 Tom Tromey <tom@tromey.com>
10801 * command.h (enum command_class) <class_pseudo>: Remove.
10803 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10805 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10808 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10810 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10811 `PT_GET_PROCESS_STATE' block.
10813 2020-04-24 Tom Tromey <tom@tromey.com>
10815 * symtab.h (symbol_get_demangled_name): Don't declare.
10816 * symtab.c (symbol_get_demangled_name): Remove.
10817 (general_symbol_info::natural_name)
10818 (general_symbol_info::demangled_name): Update.
10820 2020-04-24 Tom Tromey <tom@tromey.com>
10823 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10825 2020-04-24 Tom Tromey <tom@tromey.com>
10828 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10830 (new_symbol): Likewise.
10831 * compile/compile-object-load.c (get_out_value_type): Use
10832 symbol_matches_search_name.
10834 2020-04-24 Tom Tromey <tom@tromey.com>
10836 * dwarf2/read.c (add_partial_symbol): Do not call
10837 compute_and_set_names.
10839 2020-04-24 Tom Tromey <tom@tromey.com>
10841 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10844 2020-04-24 Tom Tromey <tom@tromey.com>
10846 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10847 (add_psymbol_to_list): New overload. Make old overload call new
10849 * psympriv.h (add_psymbol_to_list): New overload.
10851 2020-04-24 Tom Tromey <tom@tromey.com>
10853 * dwarf2/read.c (partial_die_info::read) <case
10854 DW_AT_linkage_name>: Use value_as_string.
10855 (dwarf2_string_attr): Use value_as_string.
10856 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10858 * dwarf2/attribute.c (attribute::value_as_string): New method.
10860 2020-04-24 Tom Tromey <tom@tromey.com>
10862 * symtab.c (general_symbol_info::natural_name)
10863 (general_symbol_info::demangled_name): Check for language_rust.
10865 2020-04-24 Tom Tromey <tom@tromey.com>
10867 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10868 (dwarf2_physname): ... from here.
10869 (partial_die_info::read): Add Rust "{" hack.
10871 2020-04-24 Tom Tromey <tom@tromey.com>
10873 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10875 (symbol_set_demangled_name): Don't declare.
10876 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10877 symbol_set_demangled_name.
10878 (general_symbol_info::set_language)
10879 (general_symbol_info::compute_and_set_names): Update.
10880 * minsyms.c (minimal_symbol_reader::install): Update.
10881 * dwarf2/read.c (new_symbol): Update.
10883 2020-04-24 Tom Tromey <tromey@adacore.com>
10886 * python/py-type.c (convert_field): Handle
10887 FIELD_LOC_KIND_DWARF_BLOCK.
10888 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10889 (typy_get_dynamic): Nw function.
10890 (type_object_getset): Add "dynamic".
10893 2020-04-24 Tom Tromey <tromey@adacore.com>
10895 * ada-typeprint.c (print_choices, print_variant_part)
10896 (print_record_field_types_dynamic): New functions.
10897 (print_record_field_types): Use print_record_field_types_dynamic.
10899 2020-04-24 Tom Tromey <tromey@adacore.com>
10901 * dwarf2/read.c (handle_data_member_location): New overload.
10902 (dwarf2_add_field): Use it.
10903 (decode_locdesc): Add "computed" parameter. Update comment.
10904 * gdbtypes.c (is_dynamic_type_internal): Also look for
10905 FIELD_LOC_KIND_DWARF_BLOCK.
10906 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10907 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10908 virtual base classes.
10909 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10910 FIELD_LOC_KIND_DWARF_BLOCK.
10912 2020-04-24 Tom Tromey <tromey@adacore.com>
10914 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10915 * gdbtypes.c (is_dynamic_type_internal): Check
10916 TYPE_HAS_DYNAMIC_LENGTH.
10917 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10918 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10920 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10923 2020-04-24 Tom Tromey <tromey@adacore.com>
10925 * dwarf2/read.c (struct variant_field): Rewrite.
10926 (struct variant_part_builder): New.
10927 (struct nextfield): Remove "variant" field. Add "offset".
10928 (struct field_info): Add "current_variant_part" and
10930 (alloc_discriminant_info): Remove.
10931 (alloc_rust_variant): New function.
10932 (quirk_rust_enum): Update.
10933 (dwarf2_add_field): Set "offset" member. Don't handle
10934 DW_TAG_variant_part.
10935 (offset_map_type): New typedef.
10936 (convert_variant_range, create_one_variant)
10937 (create_one_variant_part, create_variant_parts)
10938 (add_variant_property): New functions.
10939 (dwarf2_attach_fields_to_type): Call add_variant_property.
10940 (read_structure_type): Don't handle DW_TAG_variant_part.
10941 (handle_variant_part, handle_variant): New functions.
10942 (handle_struct_member_die): Use them.
10943 (process_structure_scope): Don't handle variant parts.
10944 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10945 (struct discriminant_info): Remove.
10946 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10947 (struct main_type) <flag_discriminated_union>: Remove.
10948 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10949 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10950 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10952 * valops.c (value_union_variant): Remove.
10953 * value.h (value_union_variant): Don't declare.
10955 2020-04-24 Tom Tromey <tromey@adacore.com>
10957 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10958 (ada_value_primitive_packed_val): Update.
10959 * ada-valprint.c (ada_value_print_1): Update.
10960 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10961 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10962 just an address. Use evaluate_for_locexpr_baton.
10963 (dwarf2_evaluate_property): Update.
10964 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10966 * findvar.c (default_read_var_value): Update.
10967 * gdbtypes.c (compute_variant_fields_inner)
10968 (resolve_dynamic_type_internal): Update.
10969 (resolve_dynamic_type): Change type of valaddr parameter.
10970 * gdbtypes.h (resolve_dynamic_type): Update.
10971 * valarith.c (value_subscripted_rvalue): Update.
10972 * value.c (value_from_contents_and_address): Update.
10974 2020-04-24 Tom Tromey <tromey@adacore.com>
10976 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10977 "push_initial_value" parameter.
10978 (dwarf2_evaluate_property): Likewise.
10979 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10981 2020-04-24 Tom Tromey <tromey@adacore.com>
10983 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10984 (variant::matches, compute_variant_fields_recurse)
10985 (compute_variant_fields_inner, compute_variant_fields): New
10987 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10988 Use resolved_type after type is made.
10989 (operator==): Add new cases.
10990 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10991 (struct discriminant_range, struct variant, struct variant_part):
10993 (union dynamic_prop_data) <variant_parts, original_type>: New
10995 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10996 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10998 * value.c (unpack_bits_as_long): Now public.
10999 * value.h (unpack_bits_as_long): Declare.
11001 2020-04-24 Tom Tromey <tromey@adacore.com>
11003 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11004 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11006 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11008 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11010 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11012 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11013 (remove_fork_catchpoint, post_startup_inferior)
11014 (post_attach): Move...
11015 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11016 (remove_fork_catchpoint, post_startup_inferior)
11017 (post_attach): ...here.
11018 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11019 (remove_fork_catchpoint, post_startup_inferior)
11020 (post_attach): Move...
11021 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11022 (remove_fork_catchpoint, post_startup_inferior)
11023 (post_attach): ...here.
11025 2020-04-24 Tom Tromey <tromey@adacore.com>
11027 * nat/windows-nat.h (struct windows_thread_info)
11028 <pc_adjusted>: New member.
11029 * windows-nat.c (windows_fetch_one_register): Check
11031 (windows_nat_target::get_windows_debug_event)
11032 (windows_nat_target::wait): Set pc_adjusted.
11034 2020-04-24 Tom de Vries <tdevries@suse.de>
11036 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11037 Run gdb-add-index inside temp dir.
11039 2020-04-23 Tom Tromey <tromey@adacore.com>
11041 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11044 2020-04-23 Luis Machado <luis.machado@linaro.org>
11046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11047 get_frame_register instead of gdbarch_unwind_pc.
11049 2020-04-23 Tom de Vries <tdevries@suse.de>
11051 * symtab.c (lookup_global_symbol): Prefer def over decl.
11053 2020-04-23 Tom de Vries <tdevries@suse.de>
11056 * block.c (best_symbol, better_symbol): Promote to external.
11057 * block.h (best_symbol, better_symbol): Declare.
11058 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11061 2020-04-23 Tom Tromey <tromey@adacore.com>
11064 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11065 "const char *", not a "const std::string &".
11066 <name_and_matcher::operator==>: Update.
11067 * unittests/lookup_name_info-selftests.c: Change type of
11070 2020-04-23 Tom Tromey <tom@tromey.com>
11072 * inferior.h (iterate_over_inferiors): Don't declare.
11073 * inferior.c (iterate_over_inferiors): Remove.
11074 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11076 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11077 use iterate_over_inferiors.
11078 (darwin_resume_inferior_it)
11079 (struct resume_inferior_threads_param)
11080 (darwin_resume_inferior_threads_it): Remove.
11081 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11083 2020-04-23 Tom de Vries <tdevries@suse.de>
11085 * blockframe.c (find_pc_partial_function): Use
11086 find_pc_sect_compunit_symtab rather than
11087 objfile->sf->qf->find_pc_sect_compunit_symtab.
11089 2020-04-22 Tom de Vries <tdevries@suse.de>
11092 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11095 2020-04-22 Tom de Vries <tdevries@suse.de>
11098 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11101 2020-04-22 Tom de Vries <tdevries@suse.de>
11104 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11105 CU if already created.
11107 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11109 * infrun.c (displaced_step_fixup): Switch to the event_thread
11110 before calling displaced_step_restore, not after.
11112 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11114 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11115 its inferior is not recorded by us.
11116 (record_btrace_target_open): Replace call to
11117 all_non_exited_threads () with call to current_inferior
11118 ()->non_exited_threads ().
11119 (record_btrace_target::stop_recording): Likewise.
11120 (record_btrace_target::close): Likewise.
11121 (record_btrace_target::wait): Likewise.
11122 (record_btrace_target::record_stop_replaying): Likewise.
11124 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11126 * btrace.c (btrace_enable): Throw an error on double enables and
11127 when enabling recording fails.
11128 (btrace_disable): Throw an error if the thread is not recorded.
11130 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11132 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11133 request if we do not have a thread_info.
11135 2020-04-21 Tom de Vries <tdevries@suse.de>
11139 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11140 exception in get_frame_id.
11142 2020-04-20 Tom Tromey <tromey@adacore.com>
11144 * python/python.c (struct gdbpy_event): Mark move constructor as
11146 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11147 constructor as noexcept.
11148 * completer.h (struct completion_result): Mark move constructor as
11150 * completer.c (completion_result::completion_result): Use
11151 initialization style. Don't call reset_match_list.
11153 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11155 * MAINTAINERS (Write After Approval): Add myself.
11157 2020-04-18 Tom Tromey <tom@tromey.com>
11159 * windows-tdep.c (init_w32_command_list)
11160 (w32_prefix_command_valid): Restore.
11161 (_initialize_windows_tdep): Call init_w32_command_list.
11163 2020-04-18 Tom Tromey <tom@tromey.com>
11165 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11166 * value.c (value_fn_field): Update.
11167 * valops.c (find_function_in_inferior)
11168 (value_allocate_space_in_inferior): Update.
11169 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11171 * tui/tui-source.c (tui_source_window::set_contents): Update.
11172 * symtab.c (lookup_global_or_static_symbol)
11173 (find_function_start_sal_1, skip_prologue_sal)
11174 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11175 * symmisc.c (dump_msymbols, dump_symtab_1)
11176 (maintenance_print_one_line_table): Update.
11177 * symfile.c (init_entry_point_info, section_is_mapped)
11178 (list_overlays_command, simple_read_overlay_table)
11179 (simple_overlay_update_1): Update.
11180 * stap-probe.c (handle_stap_probe): Update.
11181 * stabsread.c (dbx_init_float_type, define_symbol)
11182 (read_one_struct_field, read_enum_type, read_range_type): Update.
11183 * source.c (info_line_command): Update.
11184 * python/python.c (gdbpy_source_objfile_script)
11185 (gdbpy_execute_objfile_script): Update.
11186 * python/py-type.c (save_objfile_types): Update.
11187 * python/py-objfile.c (py_free_objfile): Update.
11188 * python/py-inferior.c (python_new_objfile): Update.
11189 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11190 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11191 (maintenance_check_psymtabs): Update.
11192 * printcmd.c (info_address_command): Update.
11193 * objfiles.h (struct objfile) <arch>: New method, from
11195 (get_objfile_arch): Don't declare.
11196 * objfiles.c (get_objfile_arch): Remove.
11197 (filter_overlapping_sections): Update.
11198 * minsyms.c (msymbol_is_function): Update.
11199 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11200 (output_nondebug_symbol): Update.
11201 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11202 (mdebug_expand_psymtab): Update.
11203 * machoread.c (macho_add_oso_symfile): Update.
11204 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11206 * linux-fork.c (checkpoint_command): Update.
11207 * linespec.c (convert_linespec_to_sals): Update.
11208 * jit.c (finalize_symtab): Update.
11209 * infrun.c (insert_exception_resume_from_probe): Update.
11210 * ia64-tdep.c (ia64_find_unwind_table): Update.
11211 * hppa-tdep.c (internalize_unwinds): Update.
11212 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11214 * gcore.c (call_target_sbrk): Update.
11215 * elfread.c (record_minimal_symbol, elf_symtab_read)
11216 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11217 (elf_gnu_ifunc_resolve_by_got): Update.
11218 * dwarf2/read.c (create_addrmap_from_index)
11219 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11220 (read_debug_names_from_section)
11221 (process_psymtab_comp_unit_reader, add_partial_symbol)
11222 (add_partial_subprogram, process_full_comp_unit)
11223 (read_file_scope, read_func_scope, read_lexical_block_scope)
11224 (read_call_site_scope, dwarf2_ranges_read)
11225 (dwarf2_record_block_ranges, dwarf2_add_field)
11226 (mark_common_block_symbol_computed, read_tag_pointer_type)
11227 (read_tag_string_type, dwarf2_init_float_type)
11228 (dwarf2_init_complex_target_type, read_base_type)
11229 (partial_die_info::read, partial_die_info::read)
11230 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11231 (dwarf2_fetch_die_loc_sect_off): Update.
11232 * dwarf2/loc.c (dwarf2_find_location_expression)
11233 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11234 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11235 (dwarf2_loc_desc_get_symbol_read_needs)
11236 (locexpr_describe_location_piece, locexpr_describe_location_1)
11237 (loclist_describe_location): Update.
11238 * dwarf2/index-write.c (write_debug_names): Update.
11239 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11240 * dtrace-probe.c (dtrace_process_dof): Update.
11241 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11242 (process_one_symbol): Update.
11243 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11244 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11245 (coff_read_enum_type): Update.
11246 * cli/cli-cmds.c (edit_command, list_command): Update.
11247 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11248 * breakpoint.c (create_overlay_event_breakpoint)
11249 (create_longjmp_master_breakpoint)
11250 (create_std_terminate_master_breakpoint)
11251 (create_exception_master_breakpoint, get_sal_arch): Update.
11252 * block.c (block_gdbarch): Update.
11253 * annotate.c (annotate_source_line): Update.
11255 2020-04-17 Tom Tromey <tromey@adacore.com>
11257 * auto-load.c (show_auto_load_cmd): Remove.
11258 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11259 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11260 (maintenance_print_arc_command): Remove.
11261 * tui/tui-win.c (tui_command): Remove.
11262 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11263 * tui/tui-layout.c (tui_layout_command): Remove.
11264 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11265 * python/python.c (user_set_python, user_show_python): Remove.
11266 (_initialize_python): Use add_basic_prefix_cmd,
11267 add_show_prefix_cmd.
11268 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11269 (install_gdb_commands): Use add_basic_prefix_cmd,
11270 add_show_prefix_cmd.
11271 (info_guile_command): Remove.
11272 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11273 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11274 add_show_prefix_cmd.
11275 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11276 Remove do_set and do_show parameters.
11277 * cli/cli-style.c (set_style, show_style): Remove.
11278 (_initialize_cli_style): Use add_basic_prefix_cmd,
11279 add_show_prefix_cmd.
11280 (cli_style_option::add_setshow_commands): Remove do_set and
11281 do_show parameters.
11282 (cli_style_option::add_setshow_commands): Use
11283 add_basic_prefix_cmd, add_show_prefix_cmd.
11284 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11285 (set_style_name): Remove.
11286 * cli/cli-dump.c (dump_command, append_command): Remove.
11287 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11288 (tekhex_dump_command, binary_dump_command)
11289 (binary_append_command): Remove.
11290 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11291 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11292 (init_w32_command_list): Remove; move into ...
11293 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11294 * valprint.c (set_print, show_print, set_print_raw)
11295 (show_print_raw): Remove.
11296 (_initialize_valprint): Use add_basic_prefix_cmd,
11297 add_show_prefix_cmd.
11298 * typeprint.c (set_print_type, show_print_type): Remove.
11299 (_initialize_typeprint): Use add_basic_prefix_cmd,
11300 add_show_prefix_cmd.
11301 * record.c (set_record_command, show_record_command): Remove.
11302 (_initialize_record): Use add_basic_prefix_cmd,
11303 add_show_prefix_cmd.
11304 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11305 add_show_prefix_cmd.
11306 (info_command, show_command, set_debug, show_debug): Remove.
11307 * top.h (set_history, show_history): Don't declare.
11308 * top.c (set_history, show_history): Remove.
11309 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11310 (unset_tdesc_cmd): Remove.
11311 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11312 add_show_prefix_cmd.
11313 * symtab.c (info_module_command): Remove.
11314 (_initialize_symtab): Use add_basic_prefix_cmd.
11315 * symfile.c (overlay_command): Remove.
11316 (_initialize_symfile): Use add_basic_prefix_cmd.
11317 * sparc64-tdep.c (info_adi_command): Remove.
11318 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11319 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11320 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11321 add_show_prefix_cmd.
11322 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11323 (_initialize_serial): Use add_basic_prefix_cmd,
11324 add_show_prefix_cmd.
11325 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11326 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11327 add_show_prefix_cmd.
11328 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11329 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11330 add_show_prefix_cmd.
11331 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11332 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11333 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11334 add_show_prefix_cmd.
11335 * remote.c (remote_command, set_remote_cmd): Remove.
11336 (_initialize_remote): Use add_basic_prefix_cmd.
11337 * record-full.c (set_record_full_command)
11338 (show_record_full_command): Remove.
11339 (_initialize_record_full): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 * record-btrace.c (cmd_set_record_btrace)
11342 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11343 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11344 (cmd_show_record_btrace_pt): Remove.
11345 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11346 add_show_prefix_cmd.
11347 * ravenscar-thread.c (set_ravenscar_command)
11348 (show_ravenscar_command): Remove.
11349 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11350 add_show_prefix_cmd.
11351 * mips-tdep.c (show_mips_command, set_mips_command)
11352 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11353 add_show_prefix_cmd.
11354 * maint.c (maintenance_command, maintenance_info_command)
11355 (maintenance_check_command, maintenance_print_command)
11356 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11357 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11358 add_show_prefix_cmd.
11359 (show_per_command_cmd): Remove.
11360 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11362 (maintenance_show_test_settings_cmd): Remove.
11363 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 * maint-test-options.c (maintenance_test_options_command):
11367 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11368 * macrocmd.c (macro_command): Remove
11369 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11370 * language.c (set_check, show_check): Remove.
11371 (_initialize_language): Use add_basic_prefix_cmd,
11372 add_show_prefix_cmd.
11373 * infcmd.c (unset_command): Remove.
11374 (_initialize_infcmd): Use add_basic_prefix_cmd.
11375 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11376 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 * go32-nat.c (go32_info_dos_command): Remove.
11379 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11380 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11381 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11382 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11383 (_initialize_frame): Use add_basic_prefix_cmd,
11384 add_show_prefix_cmd.
11385 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11386 (_initialize_dcache): Use add_basic_prefix_cmd,
11387 add_show_prefix_cmd.
11388 * cp-support.c (maint_cplus_command): Remove.
11389 (_initialize_cp_support): Use add_basic_prefix_cmd.
11390 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11391 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11392 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11393 add_basic_prefix_cmd, add_show_prefix_cmd.
11394 * breakpoint.c (save_command): Remove.
11395 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11396 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11397 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11400 (set_ada_command, show_ada_command): Remove.
11401 (_initialize_ada_language): Use add_basic_prefix_cmd,
11402 add_show_prefix_cmd.
11403 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11405 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11407 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11408 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11410 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11412 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11415 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11417 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11418 import table is not at beginning of .idata section.
11420 2020-04-16 Pedro Alves <palves@redhat.com>
11422 * inferior.c (delete_inferior): Use delete operator directly
11423 instead of delete_program_space.
11424 * progspace.c (add_program_space): New, factored out from
11425 program_space::program_space.
11426 (remove_program_space): New, factored out from
11427 delete_program_space.
11428 (program_space::program_space): Remove intro comment. Rewrite.
11429 (program_space::~program_space): Remove intro comment. Call
11430 remove_program_space.
11431 (delete_program_space): Delete.
11432 * progspace.h (program_space::program_space): Make explicit. Move
11433 intro comment here, adjusted.
11434 (program_space::~program_space): Move intro comment here,
11436 (delete_program_space): Remove.
11438 2020-04-16 Tom Tromey <tromey@adacore.com>
11440 * windows-nat.c (windows_nat::handle_access_violation): New
11442 * nat/windows-nat.h (handle_access_violation): Declare.
11443 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11444 windows-nat.c. Call handle_access_violation.
11446 2020-04-16 Tom de Vries <tdevries@suse.de>
11449 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11450 CUs without psymtab.
11452 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11454 * python/python.c (do_start_initialization): Don't call
11455 PyEval_InitThreads for Python 3.9 and beyond.
11457 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11459 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11461 (obsd_nat_target::wait): Likewise.
11463 2020-04-15 Tom Tromey <tromey@adacore.com>
11465 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11466 (DEBUG_EXCEPT): Use debug_printf.
11468 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11470 * completer.c (class completion_tracker::completion_hash_entry)
11471 <hash_name>: New member function.
11472 (completion_tracker::discard_completions): New callback to hash a
11473 completion_hash_entry, pass this to htab_create_alloc.
11475 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11477 * windows-nat.c (windows_make_so): Warn rather than stopping with
11478 an error if realpath() fails.
11480 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11482 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11483 (nbsd_nat_target::info_proc): Add do_status.
11485 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11486 Tom de Vries <tdevries@suse.de>
11489 * psympriv.h (struct partial_symtab::read_symtab)
11490 (struct partial_symtab::expand_psymtab)
11491 (struct partial_symtab::read_dependencies): Update comments.
11492 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11493 read_symtab for includer.
11494 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11495 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11496 (struct dwarf2_include_psymtab::m_readin): Remove.
11497 (struct dwarf2_include_psymtab::includer): New member function.
11498 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11500 2020-04-14 Tom de Vries <tdevries@suse.de>
11503 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11504 with NULL symbol_matcher and lookup_name.
11505 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11507 * dwarf2/read.c (dw2_expand_symtabs_matching)
11508 (dw2_debug_names_expand_symtabs_matching): Same.
11509 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11510 Make lookup_name a pointer. Update comment.
11511 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11512 lookup_name being a pointer.
11513 * symfile.c (expand_symtabs_matching): Same.
11514 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11515 * linespec.c (iterate_over_all_matching_symtabs): Same.
11517 2020-04-13 Tom Tromey <tom@tromey.com>
11519 * run-on-main-thread.c: Update include.
11520 * unittests/main-thread-selftests.c: Update include.
11521 * tui/tui-win.c: Update include.
11522 * tui/tui-io.c: Update include.
11523 * tui/tui-interp.c: Update include.
11524 * tui/tui-hooks.c: Update include.
11525 * top.h: Update include.
11526 * top.c: Update include.
11527 * ser-base.c: Update include.
11528 * remote.c: Update include.
11529 * remote-notif.c: Update include.
11530 * remote-fileio.c: Update include.
11531 * record-full.c: Update include.
11532 * record-btrace.c: Update include.
11533 * python/python.c: Update include.
11534 * posix-hdep.c: Update include.
11535 * mingw-hdep.c: Update include.
11536 * mi/mi-main.c: Update include.
11537 * mi/mi-interp.c: Update include.
11538 * main.c: Update include.
11539 * linux-nat.c: Update include.
11540 * interps.c: Update include.
11541 * infrun.c: Update include.
11542 * inf-loop.c: Update include.
11543 * event-top.c: Update include.
11544 * event-loop.c: Move to ../gdbsupport/.
11545 * event-loop.h: Move to ../gdbsupport/.
11546 * async-event.h: Update include.
11547 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11549 2020-04-13 Tom Tromey <tom@tromey.com>
11551 * tui/tui-win.c: Include async-event.h.
11552 * remote.c: Include async-event.h.
11553 * remote-notif.c: Include async-event.h.
11554 * record-full.c: Include async-event.h.
11555 * record-btrace.c: Include async-event.h.
11556 * infrun.c: Include async-event.h.
11557 * event-top.c: Include async-event.h.
11558 * event-loop.h: Move some declarations to async-event.h.
11559 * event-loop.c: Don't include ser-event.h or top.h. Move some
11560 code to async-event.c.
11561 * async-event.h: New file.
11562 * async-event.c: New file.
11563 * Makefile.in (COMMON_SFILES): Add async-event.c.
11564 (HFILES_NO_SRCDIR): Add async-event.h.
11566 2020-04-13 Tom Tromey <tom@tromey.com>
11568 * utils.c (flush_streams): New function.
11569 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11571 2020-04-13 Tom Tromey <tom@tromey.com>
11573 * event-loop.c (handle_file_event): Use warning, not
11576 2020-04-13 Tom Tromey <tom@tromey.com>
11578 * event-loop.c: Include <chrono>.
11580 2020-04-13 Tom Tromey <tom@tromey.com>
11582 * gdb_select.h: Move to ../gdbsupport/.
11583 * event-loop.c: Update include path.
11584 * top.c: Update include path.
11585 * ser-base.c: Update include path.
11586 * ui-file.c: Update include path.
11587 * ser-tcp.c: Update include path.
11588 * guile/scm-ports.c: Update include path.
11589 * posix-hdep.c: Update include path.
11590 * ser-unix.c: Update include path.
11591 * gdb_usleep.c: Update include path.
11592 * mingw-hdep.c: Update include path.
11593 * inflow.c: Update include path.
11594 * infrun.c: Update include path.
11595 * event-top.c: Update include path.
11597 2020-04-13 Tom Tromey <tom@tromey.com>
11599 * configure: Rebuild.
11600 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11602 2020-04-13 Tom Tromey <tom@tromey.com>
11604 * event-loop.h (start_event_loop): Don't declare.
11605 * event-loop.c (start_event_loop): Move...
11606 * main.c (start_event_loop): ...here. Now static.
11608 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11610 * MAINTAINERS: Update my email address.
11612 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11614 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11617 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11619 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11620 (nbsd_nat_target::info_proc): Add do_cmdline.
11622 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11624 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11625 (nbsd_nat_target::info_proc): Add do_cwd.
11627 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11629 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11631 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11633 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11634 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11635 (nbsd_nat_target::info_proc): New functions.
11636 * nbsd-nat.c (kinfo_get_vmmap): New function.
11637 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11638 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11639 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11640 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11642 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11643 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11644 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11645 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11646 (KINFO_VME_FLAG_GROWS_DOWN): New.
11648 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11650 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11653 2020-04-10 Tom Tromey <tromey@adacore.com>
11655 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11657 2020-04-10 Tom Tromey <tromey@adacore.com>
11659 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11660 separate debug files.
11662 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11664 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11666 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11668 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11669 Check for STATUS_WX86_BREAKPOINT.
11670 (windows_nat_target::wait): Same.
11672 2020-04-10 Tom de Vries <tdevries@suse.de>
11675 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11677 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11679 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11680 (Write After Approval): Remove Tom de Vries.
11682 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11685 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11687 * buildsym.c (record_line): Fix undefined behavior and preserve
11690 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11692 * auxv.h (svr4_auxv_parse): New.
11693 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11694 and generic_auxv_parse.
11695 (svr4_auxv_parse): Add.
11696 * obsd-tdep.c: Include "auxv.h".
11697 (obsd_auxv_parse): Remove.
11698 (obsd_init_abi): Remove comment.
11699 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11700 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11701 * nbsd-tdep.c: Include "auxv.h".
11702 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11704 2020-04-08 Tom Tromey <tromey@adacore.com>
11706 * nat/windows-nat.h (last_wait_event): Don't declare.
11707 (wait_for_debug_event): Update comment.
11708 * nat/windows-nat.c (last_wait_event): Now static.
11710 2020-04-08 Tom Tromey <tromey@adacore.com>
11712 * windows-nat.c (wait_for_debug_event): Move to
11714 * nat/windows-nat.h (wait_for_debug_event): Declare.
11715 * nat/windows-nat.c (wait_for_debug_event): Move from
11716 windows-nat.c. No longer static.
11718 2020-04-08 Tom Tromey <tromey@adacore.com>
11720 * windows-nat.c (get_windows_debug_event): Use
11721 fetch_pending_stop.
11722 * nat/windows-nat.h (fetch_pending_stop): Declare.
11723 * nat/windows-nat.c (fetch_pending_stop): New function.
11725 2020-04-08 Tom Tromey <tromey@adacore.com>
11727 * windows-nat.c (windows_continue): Use matching_pending_stop and
11728 continue_last_debug_event.
11729 * nat/windows-nat.h (matching_pending_stop)
11730 (continue_last_debug_event): Declare.
11731 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11732 (matching_pending_stop, continue_last_debug_event): New
11735 2020-04-08 Tom Tromey <tromey@adacore.com>
11737 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11738 (handle_exception_result): Move to nat/windows-nat.h.
11739 (DEBUG_EXCEPTION_SIMPLE): Remove.
11740 (windows_nat::handle_ms_vc_exception): New function.
11741 (handle_exception): Move to nat/windows-nat.c.
11742 (get_windows_debug_event): Update.
11743 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11745 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11746 (handle_exception_result): Move from windows-nat.c.
11747 (handle_exception): Declare.
11748 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11749 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11752 2020-04-08 Tom Tromey <tromey@adacore.com>
11754 * windows-nat.c (exception_count, event_count): Remove.
11755 (handle_exception, get_windows_debug_event)
11756 (do_initial_windows_stuff): Update.
11758 2020-04-08 Tom Tromey <tromey@adacore.com>
11760 * windows-nat.c (windows_nat::handle_load_dll)
11761 (windows_nat::handle_unload_dll): Rename. No longer static.
11762 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11765 2020-04-08 Tom Tromey <tromey@adacore.com>
11767 * complaints.h (stop_whining): Declare at top-level.
11768 (complaint): Don't declare stop_whining.
11770 2020-04-08 Tom Tromey <tromey@adacore.com>
11772 * windows-nat.c (windows_nat::handle_output_debug_string):
11773 Rename. No longer static.
11774 * nat/windows-nat.h (handle_output_debug_string): Declare.
11776 2020-04-08 Tom Tromey <tromey@adacore.com>
11778 * windows-nat.c (current_process_handle, current_process_id)
11779 (main_thread_id, last_sig, current_event, last_wait_event)
11780 (current_windows_thread, desired_stop_thread_id, pending_stops)
11781 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11782 (display_selectors, fake_create_process)
11783 (get_windows_debug_event): Update.
11784 * nat/windows-nat.h (current_process_handle, current_process_id)
11785 (main_thread_id, last_sig, current_event, last_wait_event)
11786 (current_windows_thread, desired_stop_thread_id, pending_stops)
11787 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11788 * nat/windows-nat.c (current_process_handle, current_process_id)
11789 (main_thread_id, last_sig, current_event, last_wait_event)
11790 (current_windows_thread, desired_stop_thread_id, pending_stops)
11791 (siginfo_er): New globals. Move from windows-nat.c.
11793 2020-04-08 Tom Tromey <tromey@adacore.com>
11795 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11796 (handle_load_dll): Update.
11797 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11799 2020-04-08 Tom Tromey <tromey@adacore.com>
11801 * windows-nat.c (enum thread_disposition_type): Move to
11803 (windows_nat::thread_rec): Rename from thread_rec. No longer
11805 (windows_add_thread, windows_nat_target::fetch_registers)
11806 (windows_nat_target::store_registers, handle_exception)
11807 (windows_nat_target::resume, get_windows_debug_event)
11808 (windows_nat_target::get_tib_address)
11809 (windows_nat_target::thread_name)
11810 (windows_nat_target::thread_alive): Update.
11811 * nat/windows-nat.h (enum thread_disposition_type): Move from
11813 (thread_rec): Declare.
11815 2020-04-08 Tom Tromey <tromey@adacore.com>
11817 * windows-nat.c: Add "using namespace".
11818 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11819 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11821 2020-04-08 Tom Tromey <tromey@adacore.com>
11823 * nat/windows-nat.h (struct windows_thread_info): Declare
11825 * nat/windows-nat.c (~windows_thread_info): New.
11827 2020-04-08 Tom Tromey <tromey@adacore.com>
11830 * windows-nat.c (current_event): Update comment.
11831 (last_wait_event, desired_stop_thread_id): New globals.
11832 (struct pending_stop): New.
11833 (pending_stops): New global.
11834 (windows_nat_target) <stopped_by_sw_breakpoint>
11835 <supports_stopped_by_sw_breakpoint>: New methods.
11836 (windows_fetch_one_register): Add assertions. Adjust PC.
11837 (windows_continue): Handle pending stops. Suspend other threads
11838 when stepping. Use last_wait_event
11839 (wait_for_debug_event): New function.
11840 (get_windows_debug_event): Use wait_for_debug_event. Handle
11841 pending stops. Queue spurious stops.
11842 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11843 (windows_nat_target::kill): Use wait_for_debug_event.
11844 * nat/windows-nat.h (struct windows_thread_info)
11845 <stopped_at_software_breakpoint>: New field.
11846 * nat/windows-nat.c (windows_thread_info::resume): Clear
11847 stopped_at_software_breakpoint.
11849 2020-04-08 Tom Tromey <tromey@adacore.com>
11851 * windows-nat.c (enum thread_disposition_type): New.
11852 (thread_rec): Replace "get_context" parameter with "disposition";
11854 (windows_add_thread, windows_nat_target::fetch_registers)
11855 (windows_nat_target::store_registers, handle_exception)
11856 (windows_nat_target::resume, get_windows_debug_event)
11857 (windows_nat_target::get_tib_address)
11858 (windows_nat_target::thread_name)
11859 (windows_nat_target::thread_alive): Update.
11861 2020-04-08 Tom Tromey <tromey@adacore.com>
11863 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11864 (windows_continue): Use windows_continue::resume.
11865 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11866 resume>: Declare new methods.
11867 * nat/windows-nat.c: New file.
11868 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11870 2020-04-08 Tom Tromey <tromey@adacore.com>
11872 * windows-nat.c (windows_add_thread, windows_delete_thread)
11873 (windows_nat_target::fetch_registers)
11874 (windows_nat_target::store_registers, fake_create_process)
11875 (windows_nat_target::resume, windows_nat_target::resume)
11876 (get_windows_debug_event, windows_nat_target::wait)
11877 (windows_nat_target::pid_to_str)
11878 (windows_nat_target::get_tib_address)
11879 (windows_nat_target::get_ada_task_ptid)
11880 (windows_nat_target::thread_name)
11881 (windows_nat_target::thread_alive): Use lwp, not tid.
11883 2020-04-08 Tom Tromey <tromey@adacore.com>
11885 * windows-nat.c (handle_exception)
11886 (windows_nat_target::thread_name): Update.
11887 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11888 <name>: Now unique_xmalloc_ptr.
11890 2020-04-08 Tom Tromey <tromey@adacore.com>
11892 * windows-nat.c (thread_rec)
11893 (windows_nat_target::fetch_registers): Update.
11894 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11896 <debug_registers_changed, reload_context>: Now bool.
11898 2020-04-08 Tom Tromey <tromey@adacore.com>
11900 * windows-nat.c (windows_add_thread): Use new.
11901 (windows_init_thread_list, windows_delete_thread): Use delete.
11902 (get_windows_debug_event): Update.
11903 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11904 destructor, and initializers.
11906 2020-04-08 Tom Tromey <tromey@adacore.com>
11908 * windows-nat.c (struct windows_thread_info): Remove.
11909 * nat/windows-nat.h: New file.
11911 2020-04-08 Tom Tromey <tromey@adacore.com>
11913 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11914 (thread_rec, windows_add_thread, windows_delete_thread)
11915 (windows_continue): Update.
11917 2020-04-08 Tom Tromey <tromey@adacore.com>
11919 * windows-nat.c (struct windows_thread_info): Remove typedef.
11920 (thread_head): Remove.
11921 (thread_list): New global.
11922 (thread_rec, windows_add_thread, windows_init_thread_list)
11923 (windows_delete_thread, windows_continue): Update.
11925 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11927 * windows-tdep.h (windows_init_abi): Add comment.
11928 (cygwin_init_abi): New declaration.
11929 * windows-tdep.c: Split signal enumeration in two, one for
11930 Windows and one for Cygwin.
11931 (windows_gdb_signal_to_target): Only deal with signal of the
11933 (cygwin_gdb_signal_to_target): New function.
11934 (windows_init_abi): Rename to windows_init_abi_common, don't set
11935 gdb_signal_to_target gdbarch method. Add new new function with
11937 (cygwin_init_abi): New function.
11938 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11939 comment. Don't call windows_init_abi.
11940 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11941 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11942 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11943 i386_windows_init_abi_common, don't call windows_init_abi. Add
11944 a new function of this name.
11945 (i386_cygwin_init_abi): New function.
11946 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11949 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11951 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11953 (dwarf2_read_gdb_index): Update.
11955 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11957 * nbsd-tdep.c: Include "objfiles.h".
11958 (nbsd_skip_solib_resolver): New.
11959 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11961 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11963 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11964 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11965 with DW_LLE_base_addressx are being emitted in DWARFv5.
11966 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11967 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11970 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11972 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11973 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11974 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11975 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11976 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11977 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11978 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11981 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11983 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11984 (read_loclist_index): New function definition.
11985 (lookup_loclist_base): New function definition.
11986 (read_loclist_header): New function definition.
11987 (dwarf2_cu): Add loclist_base and loclist_header field.
11988 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11989 (read_full_die_1): Read the value of DW_AT_loclists_base.
11990 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11991 (read_attribute_value): Handle DW_FORM_loclistx.
11992 (skip_one_die): Handle DW_FORM_loclistx.
11993 (loclist_header): New structure declaration.
11994 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11996 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11998 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11999 constructor. Remove `addr` parameter from other constructor and
12000 add `per_cu` parameter.
12001 * dwarf2/read.c (create_partial_symtab): Update.
12003 2020-04-07 Tom de Vries <tdevries@suse.de>
12006 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12007 (partial_die_info::fixup): Inherit has_const_value.
12009 2020-04-07 Tom de Vries <tdevries@suse.de>
12011 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12012 symbols without address.
12014 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12016 * nbsd-nat.h (struct thread_info): Add forward declaration.
12017 (nbsd_nat_target::thread_alive): Add.
12018 (nbsd_nat_target::thread_name): Likewise.
12019 (nbsd_nat_target::update_thread_list): Likewise.
12020 (update_thread_list::post_attach): Likewise.
12021 (post_attach::pid_to_str): Likewise.
12022 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12023 (nbsd_thread_lister): Add.
12024 (nbsd_nat_target::thread_alive): Likewise.
12025 (nbsd_nat_target::thread_name): Likewise.
12026 (nbsd_add_threads): Likewise.
12027 (update_thread_list::post_attach): Likewise.
12028 (nbsd_nat_target::update_thread_list): Likewise.
12029 (post_attach::pid_to_str): Likewise.
12031 2020-04-06 Tom Tromey <tromey@adacore.com>
12033 * ada-valprint.c (print_variant_part): Extract the variant field.
12034 (print_field_values): Use the field as the outer value when
12037 2020-04-06 Tom Tromey <tromey@adacore.com>
12039 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12040 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12041 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12042 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12043 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12045 2020-04-06 Tom Tromey <tromey@adacore.com>
12047 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12050 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12052 * nbsd-tdep.c: Include "gdbarch.h".
12053 Define enum with NetBSD signal numbers.
12054 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12055 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12056 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12057 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12058 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12059 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12060 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12061 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12062 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12063 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12064 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12065 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12067 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12070 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12072 2020-04-03 Tom Tromey <tromey@adacore.com>
12074 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12075 Read constant block.
12077 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12079 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12080 (gdb_bfd_get_full_section_contents): New declaration.
12081 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12082 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12083 gdb_bfd_get_full_section_contents.
12085 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12087 * exec.c (build_section_table): Replace internal_error with
12089 (section_table_xfer_memory_partial): Likewise.
12090 * mdebugread.c (parse_partial_symbols): Likewise.
12091 * psymtab.c (lookup_partial_symbol): Likewise.
12092 * utils.c (wrap_here): Likewise.
12094 2020-04-02 Tom Tromey <tromey@adacore.com>
12096 * f-lang.c (build_fortran_types): Use arch_type to initialize
12097 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12099 2020-04-02 Tom Tromey <tromey@adacore.com>
12101 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12104 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12105 Bernd Edlinger <bernd.edlinger@hotmail.de>
12106 Tom Tromey <tromey@adacore.com>
12108 * buildsym.c (buildsym_compunit::record_line): Remove
12109 deduplication code.
12111 2020-04-02 Tom de Vries <tdevries@suse.de>
12114 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12116 2020-04-02 Tom de Vries <tdevries@suse.de>
12118 * dwarf2/read.c (dwarf2_gdb_index_functions,
12119 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12121 * psymtab.c (psym_lookup_global_symbol_language): New function.
12122 (psym_functions): Init psym_lookup_global_symbol_language with
12123 psym_lookup_global_symbol_language.
12124 * symfile-debug.c (debug_sym_quick_functions): Init
12125 lookup_global_symbol_language with NULL.
12126 * symfile.c (set_initial_language): Remove fixme comment.
12127 * symfile.h (struct quick_symbol_functions): Add
12128 lookup_global_symbol_language.
12129 * symtab.c (find_quick_global_symbol_language): New function.
12130 (find_main_name): Use find_quick_global_symbol_language.
12132 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12134 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12136 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12138 * buildsym.c (record_line): Fix undefined behavior and preserve
12141 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12143 * buildsym.c (record_line): Fix the resizing condition.
12145 2020-04-01 Tom Tromey <tom@tromey.com>
12147 * value.h (value_literal_complex): Add comment.
12148 * valops.c (value_literal_complex): Refer to value.h.
12150 2020-04-01 Tom Tromey <tom@tromey.com>
12152 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12153 (scalar_type): New rule, from typebase.
12154 (typebase): Use scalar_type. Recognize complex types.
12155 (field_name): Handle FLOAT_KEYWORD.
12156 (ident_tokens): Add _Complex and __complex__.
12158 2020-04-01 Tom Tromey <tom@tromey.com>
12161 * valarith.c (promotion_type, complex_binop): New functions.
12162 (scalar_binop): Handle complex numbers. Use promotion_type.
12163 (value_pos, value_neg, value_complement): Handle complex numbers.
12165 2020-04-01 Tom Tromey <tom@tromey.com>
12167 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12168 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12169 (parse_number): Handle complex numbers.
12171 2020-04-01 Tom Tromey <tom@tromey.com>
12173 * c-valprint.c (c_decorations): Change complex suffix to "i".
12175 2020-04-01 Tom Tromey <tom@tromey.com>
12177 * valprint.c (generic_value_print_complex): Use accessors.
12178 * value.h (value_real_part, value_imaginary_part): Declare.
12179 * valops.c (value_real_part, value_imaginary_part): New
12181 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12183 2020-04-01 Tom Tromey <tom@tromey.com>
12185 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12186 (read_range_type): Update.
12187 * mdebugread.c (basic_type): Update.
12188 * go-lang.c (build_go_types): Use init_complex_type.
12189 * gdbtypes.h (struct main_type) <complex_type>: New member.
12190 (init_complex_type): Update.
12191 (arch_complex_type): Don't declare.
12192 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12193 Make name if none given. Use alloc_type_copy. Look for cached
12195 (arch_complex_type): Remove.
12196 (gdbtypes_post_init): Use init_complex_type.
12197 * f-lang.c (build_fortran_types): Use init_complex_type.
12198 * dwarf2/read.c (read_base_type): Update.
12199 * d-lang.c (build_d_types): Use init_complex_type.
12200 * ctfread.c (read_base_type): Update.
12202 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12204 * infrun.c (stop_all_threads): Update assertion, plus when
12205 stopping threads, take into account that we might be trying
12206 to stop an all-stop target.
12207 (stop_waiting): Call 'stop_all_threads' if there exists a
12210 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12212 * target.h (exists_non_stop_target): New function declaration.
12213 * target.c (exists_non_stop_target): New function.
12215 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12218 * eval.c (is_integral_or_integral_reference): New function.
12219 (evaluate_subexp_standard): Allow integer references in
12220 pointer arithmetic.
12222 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12224 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12225 check for no ptid in the stop reply when the target is non-stop.
12227 2020-04-01 Tom Tromey <tromey@adacore.com>
12229 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12230 "name" parameter to rvalue reference. Initialize m_name_holder.
12231 <lookup_name_info>: New overloads.
12232 <name>: Return gdb::string_view.
12233 <c_str>: New method.
12234 <make_ignore_params>: Update.
12235 <search_name_hash>: Update.
12236 <language_lookup_name>: Return const char *.
12237 <m_name>: Change type.
12238 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12239 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12240 (lookup_name_info::match_any): Update.
12241 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12243 * minsyms.c (linkage_name_str): Update.
12244 * language.c (default_symbol_name_matcher): Update.
12245 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12247 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12248 (ada_lookup_name_info::ada_lookup_name_info): Update.
12249 (literal_symbol_name_matcher): Update.
12251 2020-04-01 Tom Tromey <tromey@adacore.com>
12253 * psymtab.c (psymtab_search_name): Remove function.
12254 (psym_lookup_symbol): Create search name and lookup name here.
12255 (lookup_partial_symbol): Remove "name" parameter; add
12257 (psym_expand_symtabs_for_function): Update.
12259 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12262 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12264 2020-03-31 Tom Tromey <tromey@adacore.com>
12266 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12269 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12271 * features/riscv/32bit-csr.xml: Regenerated.
12272 * features/riscv/64bit-csr.xml: Regenerated.
12274 2020-03-30 Tom Tromey <tromey@adacore.com>
12276 * ada-valprint.c (print_variant_part): Update.
12277 * ada-lang.h (ada_which_variant_applies): Update.
12278 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12279 outer_valaddr parameters; replace with "outer" value parameter.
12280 (to_fixed_variant_branch_type): Update.
12282 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12284 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12285 <list>. Remove inclusion of observable.h.
12286 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12287 (struct arch_lwp_info): New struct.
12288 (class ppc_linux_dreg_interface): New class.
12289 (struct ppc_linux_process_info): New struct.
12290 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12291 <low_new_clone, low_forget_process, low_prepare_to_resume>
12292 <copy_thread_dreg_state, mark_thread_stale>
12293 <mark_debug_registers_changed, register_hw_breakpoint>
12294 <clear_hw_breakpoint, register_wp, clear_wp>
12295 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12296 <num_memory_accesses, get_trigger_type>
12297 <create_watchpoint_request, hwdebug_point_cmp>
12298 <init_arch_lwp_info, get_arch_lwp_info>
12299 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12301 <struct ptid_hash>: New inner struct.
12302 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12304 (saved_dabr_value, hwdebug_info, max_slots_number)
12305 (struct hw_break_tuple, struct thread_points, ppc_threads)
12306 (have_ptrace_hwdebug_interface)
12307 (hwdebug_find_thread_points_by_tid)
12308 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12309 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12310 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12311 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12312 use m_dreg_interface.
12313 (hwdebug_point_cmp): Change to...
12314 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12315 reference arguments instead of pointers.
12316 (ppc_linux_nat_target::ranged_break_num_registers): Use
12318 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12319 m_dreg_interface. Call register_hw_breakpoint.
12320 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12321 m_dreg_interface. Call clear_hw_breakpoint.
12322 (get_trigger_type): Change to...
12323 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12325 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12326 use m_dreg_interface. Call register_hw_breakpoint.
12327 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12328 use m_dreg_interface. Call clear_hw_breakpoint.
12329 (can_use_watchpoint_cond_accel): Change to...
12330 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12331 method. Update comment, use m_dreg_interface and
12333 (calculate_dvc): Change to...
12334 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12336 (num_memory_accesses): Change to...
12337 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12338 (check_condition): Change to...
12339 (ppc_linux_nat_target::check_condition): ...this method.
12340 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12341 comment, use m_dreg_interface.
12342 (create_watchpoint_request): Change to...
12343 (ppc_linux_nat_target::create_watchpoint_request): ...this
12344 method. Use m_dreg_interface.
12345 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12346 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12347 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12348 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12349 (ppc_linux_nat_target::low_forget_process)
12350 (ppc_linux_nat_target::low_new_fork)
12351 (ppc_linux_nat_target::low_new_clone)
12352 (ppc_linux_nat_target::low_delete_thread)
12353 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12354 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12355 only call mark_thread_stale.
12356 (ppc_linux_thread_exit): Remove.
12357 (ppc_linux_nat_target::stopped_data_address): Change to...
12358 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12359 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12360 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12361 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12362 comment. Call low_stopped_data_address.
12363 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12365 (ppc_linux_nat_target::masked_watch_num_registers): Use
12367 (ppc_linux_nat_target::copy_thread_dreg_state)
12368 (ppc_linux_nat_target::mark_thread_stale)
12369 (ppc_linux_nat_target::mark_debug_registers_changed)
12370 (ppc_linux_nat_target::register_hw_breakpoint)
12371 (ppc_linux_nat_target::clear_hw_breakpoint)
12372 (ppc_linux_nat_target::register_wp)
12373 (ppc_linux_nat_target::clear_wp)
12374 (ppc_linux_nat_target::init_arch_lwp_info)
12375 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12376 (_initialize_ppc_linux_nat): Remove observer callback.
12378 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12380 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12381 (ppc_linux_nat_target::auxv_parse)
12382 (ppc_linux_nat_target::read_description)
12383 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12386 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12388 * linux-nat.h (low_new_clone): New method.
12389 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12391 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12393 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12394 (dbx_expand_psymtab): ... this.
12395 (start_psymtab): Update.
12396 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12397 (mdebug_expand_psymtab): ... this.
12398 (parse_partial_symbols): Update.
12399 (new_psymtab): Update.
12400 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12401 (xcoff_expand_psymtab): ... this.
12402 (xcoff_start_psymtab): Update.
12404 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12406 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12407 <expand_dependencies>: ... this.
12408 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12409 (partial_symtab::expand_dependencies): ... this.
12410 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12412 (dwarf2_psymtab::expand_psymtab): Update.
12413 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12414 * mdebugread.c (psymtab_to_symtab_1): Update.
12415 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12417 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12419 * psympriv.h (discard_psymtab): Remove.
12420 * dbxread.c (dbx_end_psymtab): Update.
12421 * xcoffread.c (xcoff_end_psymtab): Update.
12423 2020-03-28 Tom Tromey <tom@tromey.com>
12425 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12428 2020-03-28 Tom Tromey <tom@tromey.com>
12430 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12432 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12434 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12436 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12438 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12440 2020-03-26 Tom Tromey <tom@tromey.com>
12442 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12443 (mark_common_block_symbol_computed, read_tag_string_type)
12444 (attr_to_dynamic_prop, read_subrange_type): Update.
12445 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12446 to be methods on struct attribute.
12447 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12448 (read_call_site_scope, partial_die_info::read)
12449 (partial_die_info::read, lookup_die_type, follow_die_ref):
12451 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12452 from dwarf2_get_ref_die_offset.
12453 (attribute::constant_value): New method, from
12454 dwarf2_get_attr_constant_value.
12455 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12457 <constant_value>: New method.
12459 2020-03-26 Tom Tromey <tom@tromey.com>
12461 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12462 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12463 (dwarf_type_encoding_name): Move to stringify.c.
12464 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12465 * dwarf2/stringify.c: New file.
12466 * dwarf2/stringify.h: New file.
12468 2020-03-26 Tom Tromey <tom@tromey.com>
12470 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12473 2020-03-26 Tom Tromey <tom@tromey.com>
12475 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12477 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12478 (lookup_ranges_base): Likewise.
12479 (read_cutu_die_from_dwo, read_full_die_1): Update.
12481 2020-03-26 Tom Tromey <tom@tromey.com>
12483 * dwarf2/read.c (read_import_statement, read_file_scope)
12484 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12485 (read_lexical_block_scope, read_call_site_scope)
12486 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12487 (handle_struct_member_die, process_structure_scope)
12488 (update_enumeration_type_from_children)
12489 (process_enumeration_scope, read_array_type, read_common_block)
12490 (read_namespace, read_module, read_subroutine_type): Update.
12491 (sibling_die): Remove.
12493 2020-03-26 Tom Tromey <tom@tromey.com>
12495 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12496 (build_type_psymtabs_reader, read_structure_type)
12497 (read_enumeration_type, read_full_die_1): Update.
12498 (dwarf2_attr_no_follow): Move to die.h.
12499 * dwarf2/die.h (struct die_info) <attr>: New method.
12501 2020-03-26 Tom Tromey <tom@tromey.com>
12503 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12504 <base_address>: Now an optional.
12505 (dwarf2_find_base_address, dwarf2_rnglists_process)
12506 (dwarf2_ranges_process, fill_in_loclist_baton)
12507 (dwarf2_symbol_mark_computed): Update.
12509 2020-03-26 Tom Tromey <tom@tromey.com>
12511 * dwarf2/read.c (struct die_info): Move to die.h.
12512 * dwarf2/die.h: New file.
12514 2020-03-26 Tom Tromey <tom@tromey.com>
12516 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12518 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12519 Move to line-header.c.
12520 (read_checked_initial_length_and_offset, read_formatted_entries):
12522 (dwarf_decode_line_header): Split into two.
12523 * dwarf2/line-header.c
12524 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12526 (read_checked_initial_length_and_offset, read_formatted_entries):
12528 (dwarf_decode_line_header): New function, split from read.c.
12530 2020-03-26 Tom Tromey <tom@tromey.com>
12532 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12534 * dwarf2/read.c (read_attribute_value): Update.
12535 (dwarf2_per_objfile::read_line_string): Rename from
12536 read_indirect_line_string.
12537 (read_formatted_entries): Update.
12539 2020-03-26 Tom Tromey <tom@tromey.com>
12541 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12544 2020-03-26 Tom Tromey <tom@tromey.com>
12546 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12548 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12549 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12552 2020-03-26 Tom Tromey <tom@tromey.com>
12554 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12555 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12556 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12557 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12559 2020-03-26 Tom Tromey <tom@tromey.com>
12561 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12562 file_names_size, file_full_name, file_file_name>: Use const.
12563 <file_name_at, file_names>: Add const overload.
12564 * dwarf2/line-header.c (line_header::file_file_name)
12565 (line_header::file_full_name): Update.
12567 2020-03-26 Tom Tromey <tom@tromey.com>
12569 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12570 (macro_start_file, consume_improper_spaces)
12571 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12572 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12573 (dwarf_decode_macros): Move to macro.c.
12574 * dwarf2/macro.c: New file.
12575 * dwarf2/macro.h: New file.
12576 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12578 2020-03-26 Tom Tromey <tom@tromey.com>
12580 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12582 * dwarf2/section.c: New method. From
12583 read_indirect_string_at_offset_from.
12584 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12585 (read_indirect_string_at_offset_from): Move to section.c.
12586 (read_indirect_string_at_offset): Rewrite.
12587 (read_indirect_line_string_at_offset): Remove.
12588 (read_indirect_string, read_indirect_line_string)
12589 (dwarf_decode_macro_bytes): Update.
12591 2020-03-26 Tom Tromey <tom@tromey.com>
12593 * dwarf2/section.h (struct dwarf2_section_info)
12594 <overload_complaint>: Declare.
12595 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12596 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12597 Rename from dwarf2_section_buffer_overflow_complaint.
12598 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12599 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12601 2020-03-26 Tom Tromey <tom@tromey.com>
12603 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12605 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12607 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12610 2020-03-26 Tom Tromey <tom@tromey.com>
12612 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12614 2020-03-26 Tom Tromey <tom@tromey.com>
12616 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12618 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12620 (dwarf_decode_macros): Update.
12622 2020-03-26 Tom Tromey <tom@tromey.com>
12624 * dwarf2/read.c (read_attribute_value): Update.
12625 (read_indirect_string_from_dwz): Move to dwz.c; change into
12627 (dwarf_decode_macro_bytes): Update.
12628 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12629 * dwarf2/dwz.c: New file.
12630 * Makefile.in (COMMON_SFILES): Add dwz.c.
12632 2020-03-26 Tom Tromey <tom@tromey.com>
12634 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12635 * dwarf2/read.c: Add include.
12636 * dwarf2/index-write.c: Add include.
12637 * dwarf2/index-cache.c: Add include.
12638 * dwarf2/dwz.h: New file.
12640 2020-03-25 Tom Tromey <tom@tromey.com>
12642 * compile/compile-object-load.c (get_out_value_type): Mention
12643 correct symbol name in error message.
12645 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12647 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12649 2020-03-25 Tom de Vries <tdevries@suse.de>
12651 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12652 * symmisc.c (dump_symtab_1): Print user and includes fields.
12653 (maintenance_info_symtabs): Same.
12655 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12658 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12659 (riscv_regcache_cooked_write): New function.
12660 (riscv_push_dummy_call): Use new function.
12661 (riscv_return_value): Likewise.
12663 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12665 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12666 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12667 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12668 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12669 * infrun.c (follow_fork): Likewise.
12670 (follow_fork_inferior): Likewise.
12671 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12672 * linux-nat.h (class linux_nat_target): Likewise.
12673 * remote.c (class remote_target) <follow_fork>: Likewise.
12674 (remote_target::follow_fork): Likewise.
12675 * target-delegates.c: Re-generate.
12676 * target.c (default_follow_fork): Likewise.
12677 (target_follow_fork): Likewise.
12678 * target.h (struct target_ops) <follow_fork>: Likewise.
12679 (target_follow_fork): Likewise.
12681 2020-03-24 Tom de Vries <tdevries@suse.de>
12683 * psymtab.c (maintenance_info_psymtabs): Print user field.
12685 2020-03-20 Tom Tromey <tromey@adacore.com>
12687 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12689 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12692 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12694 * ptrace.m4: Don't check for ptrace declaration.
12695 * config.in: Re-generate.
12696 * configure: Re-generate.
12697 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12700 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12702 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12704 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12705 * sparc-nat.c (gdb_ptrace): Likewise.
12706 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12708 2020-03-20 Tom Tromey <tromey@adacore.com>
12710 * c-exp.y (lex_one_token): Fix assert.
12712 2020-03-20 Tom Tromey <tromey@adacore.com>
12714 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12715 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12718 2020-03-20 Tom Tromey <tromey@adacore.com>
12720 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12722 2020-03-20 Tom Tromey <tromey@adacore.com>
12724 * ada-valprint.c (print_variant_part): Remove parameters; switch
12725 to value-based API.
12726 (print_field_values): Likewise.
12727 (ada_val_print_struct_union): Likewise.
12728 (ada_value_print_1): Update.
12730 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12732 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12733 nbsd_nat_target instead of inf_ptrace_target.
12734 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12737 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12739 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12740 it to the ptrace call.
12741 * (store_registers): Likewise.
12743 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12745 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12746 it to the ptrace call.
12747 * (store_registers): Likewise.
12749 2020-03-19 Luis Machado <luis.machado@linaro.org>
12751 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12752 valid, fetch vg value from ptrace.
12754 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12755 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12756 * inf-ptrace.c: Likewise.
12757 * (gdb_ptrace): Add.
12758 * (inf_ptrace_target::resume): Update.
12759 * (inf_ptrace_target::xfer_partial): Likewise.
12760 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12761 * (inf_ptrace_peek_poke): Update.
12763 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12765 * x86-bsd-nat.c (gdb_ptrace): New.
12766 * (x86bsd_dr_set): Add new argument `ptid'.
12767 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12768 x86bsd_dr_set_addr): Update.
12770 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12772 * remote.c (remote_target::process_stop_reply): Handle events for
12773 all threads differently.
12775 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12777 * completer.c (completion_tracker::remove_completion): Define new
12779 * completer.h (completion_tracker::remove_completion): Declare new
12781 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12782 when adding a C++ function symbol.
12784 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12786 * completer.c (completion_tracker::completion_hash_entry): Define
12788 (advance_to_filename_complete_word_point): Call
12789 recompute_lowest_common_denominator.
12790 (completion_tracker::completion_tracker): Call discard_completions
12791 to setup the hash table.
12792 (completion_tracker::discard_completions): Allow for being called
12793 from the constructor, pass new equal function, and element deleter
12794 when constructing the hash table. Initialise new class member
12796 (completion_tracker::maybe_add_completion): Remove use of
12797 m_entries_vec, and store more information into m_entries_hash.
12798 (completion_tracker::recompute_lcd_visitor): New function, most
12799 content taken from...
12800 (completion_tracker::recompute_lowest_common_denominator):
12801 ...here, this now just visits each item in the hash calling the
12803 (completion_tracker::build_completion_result): Remove use of
12804 m_entries_vec, call recompute_lowest_common_denominator.
12805 * completer.h (completion_tracker::have_completions): Remove use
12807 (completion_tracker::completion_hash_entry): Declare new class.
12808 (completion_tracker::recompute_lowest_common_denominator): Change
12809 function signature.
12810 (completion_tracker::recompute_lcd_visitor): Declare new function.
12811 (completion_tracker::m_entries_vec): Delete.
12812 (completion_tracker::m_entries_hash): Initialize to NULL.
12813 (completion_tracker::m_lowest_common_denominator_valid): New
12815 (completion_tracker::m_lowest_common_denominator_max_length): New
12818 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12820 * regformats/regdef.h: Put reg in gdb namespace.
12822 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12824 * i386-bsd-nat.c (gdb_ptrace): New.
12825 * (i386bsd_fetch_inferior_registers,
12826 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12827 * (i386bsd_fetch_inferior_registers,
12828 i386bsd_store_inferior_registers) Use gdb_ptrace.
12830 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12832 * amd64-bsd-nat.c (gdb_ptrace): New.
12833 * (amd64bsd_fetch_inferior_registers,
12834 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12835 * (amd64bsd_fetch_inferior_registers,
12836 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12838 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12840 * user-regs.c (user_reg::read): Rename to...
12841 (user_reg::xread): ...this.
12842 * (append_user_reg): Rename argument `read' to `xread'.
12843 * (user_reg_add_builtin): Likewise.
12844 * (user_reg_add): Likewise.
12845 * (value_of_user_reg): Likewise.
12847 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12849 * sparc-nat.c (gdb_ptrace): New.
12850 * sparc-nat.c (sparc_fetch_inferior_registers)
12851 (sparc_store_inferior_registers) Remove obsolete comment.
12852 * sparc-nat.c (sparc_fetch_inferior_registers)
12853 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12854 * sparc-nat.c (sparc_fetch_inferior_registers)
12855 (sparc_store_inferior_registers) Use gdb_ptrace.
12857 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12859 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12860 it to the ptrace call.
12861 * sh-nbsd-nat.c (store_registers): Likewise.
12863 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12865 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12866 nbsd_nat_target instead of inf_ptrace_target.
12867 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12870 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12872 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12874 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12876 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12878 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12880 2020-03-17 Tom de Vries <tdevries@suse.de>
12883 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12885 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12887 (process_imported_unit_die): Skip import of c++ CUs.
12889 2020-03-16 Tom Tromey <tom@tromey.com>
12891 * p-valprint.c (pascal_object_print_value): Initialize
12894 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12895 Shahab Vahedi <shahab@synopsys.com>
12897 * Makefile.in: Add arch/arc.o
12898 * configure.tgt: Likewise.
12899 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12900 (_initialize_arc_tdep): Don't initialize old target descriptions.
12901 (arc_read_description): New function to cache target descriptions.
12902 * arc-tdep.h (arc_read_description): Add proto type.
12903 * arch/arc.c: New file.
12904 * arch/arc.h: Likewise.
12905 * features/Makefile: Replace old target descriptions with new.
12906 * features/arc-arcompact.c: Remove.
12907 * features/arc-arcompact.xml: Likewise.
12908 * features/arc-v2.c: Likewise
12909 * features/arc-v2.xml: Likewise
12910 * features/arc/aux-arcompact.xml: New file.
12911 * features/arc/aux-v2.xml: Likewise.
12912 * features/arc/core-arcompact.xml: Likewise.
12913 * features/arc/core-v2.xml: Likewise.
12914 * features/arc/aux-arcompact.c: Generate.
12915 * features/arc/aux-v2.c: Likewise.
12916 * features/arc/core-arcompact.c: Likewise.
12917 * features/arc/core-v2.c: Likewise.
12918 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12920 2020-03-16 Tom Tromey <tromey@adacore.com>
12923 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12924 putting value into bcache.
12926 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12929 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12931 (amd64_windows_init_abi_common): ... this. Don't set size of
12933 (amd64_windows_init_abi): New function.
12934 (amd64_cygwin_init_abi): New function.
12935 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12937 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12940 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12942 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12943 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12944 (pe_import_directory_entry): New struct type.
12945 (is_linked_with_cygwin_dll): New function.
12946 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12947 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12948 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12950 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12952 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12953 i386_cygwin_core_osabi_sniffer.
12955 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12957 * i386-cygwin-tdep.c: Rename to...
12958 * i386-windows-tdep.c: ... this.
12959 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12960 i386-windows-tdep.c.
12961 * configure.tgt: Likewise.
12963 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12965 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12966 * osabi.c (gdb_osabi_names): Add "Windows".
12967 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12968 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12969 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12970 i386_cygwin_osabi_sniffer.
12971 (_initialize_i386_cygwin_tdep): Register OS ABI
12972 GDB_OSABI_WINDOWS for i386.
12973 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12974 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12975 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12977 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12978 when the target matches '*-*-mingw*'.
12980 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12982 * defs.h (enum gdb_osabi): Move to...
12983 * osabi.h (enum gdb_osabi): ... here.
12984 * gdbarch.sh: Include osabi.h in gdbarch.h.
12985 * gdbarch.h: Re-generate.
12987 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12989 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12991 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12993 2020-03-14 Tom Tromey <tom@tromey.com>
12995 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12997 (c_type_print_modifier): Likewise. Add "language" parameter.
12998 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12999 (c_type_print_base_1): Update.
13000 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13002 * type-stack.c (type_stack::insert): Handle tp_atomic and
13004 (type_stack::follow_type_instance_flags): Likewise.
13005 (type_stack::follow_types): Likewise. Merge type-following code.
13006 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13007 (space_identifier, cv_with_space_id)
13008 (const_or_volatile_or_space_identifier_noopt)
13009 (const_or_volatile_or_space_identifier): Remove.
13010 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13012 (ptr_operator, typebase): Update.
13013 (enum token_flag) <FLAG_C>: New constant.
13014 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13016 (lex_one_token): Handle FLAG_C.
13018 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13020 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13021 it to the ptrace call.
13022 * m68k-bsd-nat.c (store_registers): Likewise.
13024 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13026 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13028 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13029 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13030 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13032 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13034 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13035 nbsd_nat_target instead of inf_ptrace_target.
13036 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13041 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13046 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13047 it to the ptrace call.
13048 * alpha-bsd-nat.c (store_registers): Likewise.
13050 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13052 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13054 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13055 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13056 fill_fpregset): Likewise.
13058 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13060 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13061 nbsd_nat_target instead of inf_ptrace_target.
13062 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13065 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13067 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13070 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13072 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13073 it to the ptrace call.
13074 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13075 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13076 * arm-nbsd-nat.c (store_register): Likewise.
13077 * arm-nbsd-nat.c (store_regs): Likewise.
13078 * arm-nbsd-nat.c (store_fp_register): Likewise.
13079 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13081 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13083 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13084 nbsd_nat_target instead of inf_ptrace_target.
13085 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13088 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13090 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13091 it to the ptrace call.
13092 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13094 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13096 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13097 it to the ptrace call.
13098 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13100 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13102 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13104 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13106 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13108 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13109 instead of inf_ptrace_target.
13110 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13113 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13115 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13118 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13120 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13123 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13125 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13130 * value.h (val_print): Don't declare.
13131 * valprint.h (val_print_array_elements)
13132 (val_print_scalar_formatted, generic_val_print): Don't declare.
13133 * valprint.c (generic_val_print_array): Take a struct value.
13134 (generic_val_print_ptr, generic_val_print_memberptr)
13135 (generic_val_print_bool, generic_val_print_int)
13136 (generic_val_print_char, generic_val_print_complex)
13137 (generic_val_print): Remove.
13138 (generic_value_print): Update.
13139 (do_val_print): Remove unused parameters. Don't call
13141 (val_print): Remove.
13142 (common_val_print): Update. Don't call value_check_printable.
13143 (val_print_scalar_formatted, val_print_array_elements): Remove.
13144 * rust-lang.c (rust_val_print): Remove.
13145 (rust_language_defn): Update.
13146 * p-valprint.c (pascal_val_print): Remove.
13147 (pascal_value_print_inner): Update.
13148 (pascal_object_print_val_fields, pascal_object_print_val):
13150 (pascal_object_print_static_field): Update.
13151 * p-lang.h (pascal_val_print): Don't declare.
13152 * p-lang.c (pascal_language_defn): Update.
13153 * opencl-lang.c (opencl_language_defn): Update.
13154 * objc-lang.c (objc_language_defn): Update.
13155 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13156 * m2-lang.h (m2_val_print): Don't declare.
13157 * m2-lang.c (m2_language_defn): Update.
13158 * language.h (struct language_defn) <la_val_print>: Remove.
13159 * language.c (unk_lang_value_print_inner): Rename. Change
13161 (unknown_language_defn, auto_language_defn): Update.
13162 * go-valprint.c (go_val_print): Remove.
13163 * go-lang.h (go_val_print): Don't declare.
13164 * go-lang.c (go_language_defn): Update.
13165 * f-valprint.c (f_val_print): Remove.
13166 * f-lang.h (f_value_print): Don't declare.
13167 * f-lang.c (f_language_defn): Update.
13168 * d-valprint.c (d_val_print): Remove.
13169 * d-lang.h (d_value_print): Don't declare.
13170 * d-lang.c (d_language_defn): Update.
13171 * cp-valprint.c (cp_print_value_fields)
13172 (cp_print_value_fields_rtti, cp_print_value): Remove.
13173 (cp_print_static_field): Update.
13174 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13175 (c_val_print_struct, c_val_print_union, c_val_print_int)
13176 (c_val_print_memberptr, c_val_print): Remove.
13177 * c-lang.h (c_val_print_array, cp_print_value_fields)
13178 (cp_print_value_fields_rtti): Don't declare.
13179 * c-lang.c (c_language_defn, cplus_language_defn)
13180 (asm_language_defn, minimal_language_defn): Update.
13181 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13182 (ada_val_print_enum): Take a struct value.
13183 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13184 (ada_val_print): Remove.
13185 (ada_value_print_1): Update.
13186 (printable_val_type): Remove.
13187 * ada-lang.h (ada_val_print): Don't declare.
13188 * ada-lang.c (ada_language_defn): Update.
13190 2020-03-13 Tom Tromey <tom@tromey.com>
13192 * valprint.c (do_val_print): Update.
13193 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13195 (value_to_value_object_no_release): Declare.
13196 * python/py-value.c (value_to_value_object_no_release): New
13198 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13200 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13202 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13204 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13206 (gdbscm_apply_val_pretty_printer): Take a struct value.
13207 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13209 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13211 * extension-priv.h (struct extension_language_ops)
13212 <apply_val_pretty_printer>: Take a struct value.
13213 * cp-valprint.c (cp_print_value): Create a struct value.
13214 (cp_print_value): Update.
13216 2020-03-13 Tom Tromey <tom@tromey.com>
13218 * ada-valprint.c (print_field_values): Call common_val_print.
13220 2020-03-13 Tom Tromey <tom@tromey.com>
13222 * ada-valprint.c (val_print_packed_array_elements): Remove
13223 bitoffset and val parameters. Call common_val_print.
13224 (ada_val_print_string): Remove offset, address, and original_value
13226 (ada_val_print_array): Update.
13227 (ada_value_print_array): New function.
13228 (ada_value_print_1): Call it.
13230 2020-03-13 Tom Tromey <tom@tromey.com>
13232 * ada-valprint.c (ada_value_print): Use common_val_print.
13234 2020-03-13 Tom Tromey <tom@tromey.com>
13236 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13238 2020-03-13 Tom Tromey <tom@tromey.com>
13240 * ada-valprint.c (ada_value_print_num): New function.
13241 (ada_value_print_1): Use it.
13243 2020-03-13 Tom Tromey <tom@tromey.com>
13245 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13249 * ada-valprint.c (ada_value_print_ptr): New function.
13250 (ada_value_print_1): Use it.
13252 2020-03-13 Tom Tromey <tom@tromey.com>
13254 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13255 call common_val_print.
13256 (ada_val_print_1): Update.
13257 (ada_value_print_1): New function.
13258 (ada_value_print_inner): Rewrite.
13260 2020-03-13 Tom Tromey <tom@tromey.com>
13262 * cp-valprint.c (cp_print_value_fields): Update.
13263 (cp_print_value): New function.
13265 2020-03-13 Tom Tromey <tom@tromey.com>
13267 * m2-valprint.c (m2_value_print_inner): Use
13268 cp_print_value_fields.
13269 * cp-valprint.c (cp_print_value_fields): New function.
13270 * c-valprint.c (c_value_print_struct): New function.
13271 (c_value_print_inner): Use c_value_print_struct.
13272 * c-lang.h (cp_print_value_fields): Declare.
13274 2020-03-13 Tom Tromey <tom@tromey.com>
13276 * c-valprint.c (c_value_print_array): New function.
13277 (c_value_print_inner): Use it.
13279 2020-03-13 Tom Tromey <tom@tromey.com>
13281 * c-valprint.c (c_value_print_memberptr): New function.
13282 (c_value_print_inner): Use it.
13284 2020-03-13 Tom Tromey <tom@tromey.com>
13286 * c-valprint.c (c_value_print_int): New function.
13287 (c_value_print_inner): Use it.
13289 2020-03-13 Tom Tromey <tom@tromey.com>
13291 * c-valprint.c (c_value_print_ptr): New function.
13292 (c_value_print_inner): Use it.
13294 2020-03-13 Tom Tromey <tom@tromey.com>
13296 * c-valprint.c (c_value_print_inner): Rewrite.
13298 2020-03-13 Tom Tromey <tom@tromey.com>
13300 * valprint.c (generic_value_print_complex): New function.
13301 (generic_value_print): Use it.
13303 2020-03-13 Tom Tromey <tom@tromey.com>
13305 * valprint.c (generic_val_print_float): Don't call
13306 val_print_scalar_formatted.
13307 (generic_val_print, generic_value_print): Update.
13309 2020-03-13 Tom Tromey <tom@tromey.com>
13311 * valprint.c (generic_value_print_char): New function
13312 (generic_value_print): Use it.
13314 2020-03-13 Tom Tromey <tom@tromey.com>
13316 * valprint.c (generic_value_print_int): New function.
13317 (generic_value_print): Use it.
13319 2020-03-13 Tom Tromey <tom@tromey.com>
13321 * valprint.c (generic_value_print_bool): New function.
13322 (generic_value_print): Use it.
13324 2020-03-13 Tom Tromey <tom@tromey.com>
13326 * valprint.c (generic_val_print_func): Simplify.
13327 (generic_val_print, generic_value_print): Update.
13329 2020-03-13 Tom Tromey <tom@tromey.com>
13331 * valprint.c (generic_val_print_flags): Remove.
13332 (generic_val_print, generic_value_print): Update.
13333 (val_print_type_code_flags): Add original_value parameter.
13335 2020-03-13 Tom Tromey <tom@tromey.com>
13337 * valprint.c (generic_val_print): Update.
13338 (generic_value_print): Update.
13339 * valprint.c (generic_val_print_enum): Don't call
13340 val_print_scalar_formatted.
13342 2020-03-13 Tom Tromey <tom@tromey.com>
13344 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13345 * valprint.c (generic_value_print_ptr): New function.
13347 2020-03-13 Tom Tromey <tom@tromey.com>
13349 * valprint.c (generic_value_print): Rewrite.
13351 2020-03-13 Tom Tromey <tom@tromey.com>
13353 * p-valprint.c (pascal_object_print_value_fields)
13354 (pascal_object_print_value): New functions.
13356 2020-03-13 Tom Tromey <tom@tromey.com>
13358 * p-valprint.c (pascal_value_print_inner): Rewrite.
13360 2020-03-13 Tom Tromey <tom@tromey.com>
13362 * f-valprint.c (f_value_print_innner): Rewrite.
13364 2020-03-13 Tom Tromey <tom@tromey.com>
13366 * m2-valprint.c (m2_print_unbounded_array): New overload.
13367 (m2_print_unbounded_array): Update.
13368 (m2_print_array_contents): Take a struct value.
13369 (m2_value_print_inner): Rewrite.
13371 2020-03-13 Tom Tromey <tom@tromey.com>
13373 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13374 (d_value_print_inner): New function.
13375 * d-lang.h (d_value_print_inner): Declare.
13376 * d-lang.c (d_language_defn): Use d_value_print_inner.
13378 2020-03-13 Tom Tromey <tom@tromey.com>
13380 * go-valprint.c (go_value_print_inner): New function.
13381 * go-lang.h (go_value_print_inner): Declare.
13382 * go-lang.c (go_language_defn): Use go_value_print_inner.
13384 2020-03-13 Tom Tromey <tom@tromey.com>
13386 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13388 (rust_val_print): Rewrite.
13389 (rust_value_print_inner): New function, from rust_val_print.
13390 (rust_language_defn): Use rust_value_print_inner.
13392 2020-03-13 Tom Tromey <tom@tromey.com>
13394 * ada-valprint.c (ada_value_print_inner): New function.
13395 * ada-lang.h (ada_value_print_inner): Declare.
13396 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13398 2020-03-13 Tom Tromey <tom@tromey.com>
13400 * f-valprint.c (f_value_print_innner): New function.
13401 * f-lang.h (f_value_print_innner): Declare.
13402 * f-lang.c (f_language_defn): Use f_value_print_innner.
13404 2020-03-13 Tom Tromey <tom@tromey.com>
13406 * p-valprint.c (pascal_value_print_inner): New function.
13407 * p-lang.h (pascal_value_print_inner): Declare.
13408 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13410 2020-03-13 Tom Tromey <tom@tromey.com>
13412 * m2-valprint.c (m2_value_print_inner): New function.
13413 * m2-lang.h (m2_value_print_inner): Declare.
13414 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13416 2020-03-13 Tom Tromey <tom@tromey.com>
13418 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13419 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13420 * c-valprint.c (c_value_print_inner): New function.
13421 * c-lang.h (c_value_print_inner): Declare.
13422 * c-lang.c (c_language_defn, cplus_language_defn)
13423 (asm_language_defn, minimal_language_defn): Use
13424 c_value_print_inner.
13426 2020-03-13 Tom Tromey <tom@tromey.com>
13428 * p-valprint.c (pascal_object_print_value_fields): Now static.
13429 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13431 2020-03-13 Tom Tromey <tom@tromey.com>
13433 * c-valprint.c (c_val_print_array): Simplify.
13435 2020-03-13 Tom Tromey <tom@tromey.com>
13437 * valprint.c (value_print_array_elements): New function.
13438 * valprint.h (value_print_array_elements): Declare.
13440 2020-03-13 Tom Tromey <tom@tromey.com>
13442 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13443 * mips-tdep.c (mips_print_register): Use
13444 value_print_scalar_formatted.
13446 2020-03-13 Tom Tromey <tom@tromey.com>
13448 * valprint.h (value_print_scalar_formatted): Declare.
13449 * valprint.c (value_print_scalar_formatted): New function.
13451 2020-03-13 Tom Tromey <tom@tromey.com>
13453 * valprint.h (generic_value_print): Declare.
13454 * valprint.c (generic_value_print): New function.
13456 2020-03-13 Tom Tromey <tom@tromey.com>
13458 * valprint.c (do_val_print): Call la_value_print_inner, if
13460 * rust-lang.c (rust_language_defn): Update.
13461 * p-lang.c (pascal_language_defn): Update.
13462 * opencl-lang.c (opencl_language_defn): Update.
13463 * objc-lang.c (objc_language_defn): Update.
13464 * m2-lang.c (m2_language_defn): Update.
13465 * language.h (struct language_defn) <la_value_print_inner>: New
13467 * language.c (unknown_language_defn, auto_language_defn): Update.
13468 * go-lang.c (go_language_defn): Update.
13469 * f-lang.c (f_language_defn): Update.
13470 * d-lang.c (d_language_defn): Update.
13471 * c-lang.c (c_language_defn, cplus_language_defn)
13472 (asm_language_defn, minimal_language_defn): Update.
13473 * ada-lang.c (ada_language_defn): Update.
13475 2020-03-13 Tom Tromey <tom@tromey.com>
13477 * c-valprint.c (c_value_print): Use common_val_print.
13479 2020-03-13 Tom Tromey <tom@tromey.com>
13481 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13483 2020-03-13 Tom Tromey <tom@tromey.com>
13485 * f-valprint.c (f77_print_array_1, f_val_print): Use
13488 2020-03-13 Tom Tromey <tom@tromey.com>
13490 * riscv-tdep.c (riscv_print_one_register_info): Use
13493 2020-03-13 Tom Tromey <tom@tromey.com>
13495 * mi/mi-main.c (output_register): Use common_val_print.
13497 2020-03-13 Tom Tromey <tom@tromey.com>
13499 * infcmd.c (default_print_one_register_info): Use
13502 2020-03-13 Tom Tromey <tom@tromey.com>
13504 * valprint.h (common_val_print_checked): Declare.
13505 * valprint.c (common_val_print_checked): New function.
13506 * stack.c (print_frame_arg): Use common_val_print_checked.
13508 2020-03-13 Tom Tromey <tom@tromey.com>
13510 * valprint.c (do_val_print): New function, from val_print.
13511 (val_print): Use do_val_print.
13512 (common_val_print): Use do_val_print.
13514 2020-03-13 Tom Tromey <tom@tromey.com>
13516 * valprint.c (value_print): Use scoped_value_mark.
13518 2020-03-13 Tom de Vries <tdevries@suse.de>
13521 * psymtab.c (partial_symtab::partial_symtab): Don't set
13522 globals_offset and statics_offset. Push element onto
13523 current_global_psymbols and current_static_psymbols stacks.
13524 (concat): New function.
13525 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13526 element from current_global_psymbols and current_static_psymbols
13527 stacks. Concat popped elements to global_psymbols and
13529 (add_psymbol_to_list): Use current_global_psymbols and
13530 current_static_psymbols stacks.
13531 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13532 current_static_psymbols fields.
13534 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13536 * corelow.c (sniff_core_bfd): Remove.
13537 (class core_target) <m_core_vec>: Remove.
13538 (core_target::core_target): Update.
13539 (core_file_fns): Remove.
13540 (deprecated_add_core_fns): Remove.
13541 (default_core_sniffer): Remove.
13542 (sniff_core_bfd): Remove.
13543 (default_check_format): Remove.
13544 (gdb_check_format): Remove.
13545 (core_target_open): Update.
13546 (core_target::get_core_register_section): Update.
13547 (get_core_registers_cb): Update.
13548 (core_target::fetch_registers): Update.
13549 * gdbcore.h (struct core_fns): Remove.
13550 (deprecated_add_core_fns): Remove.
13551 (default_core_sniffer): Remove.
13552 (default_check_format): Remove.
13554 2020-03-12 Tom Tromey <tom@tromey.com>
13556 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13558 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13560 2020-03-12 Tom Tromey <tom@tromey.com>
13562 * remote.c (remote_target::download_tracepoint)
13563 (remote_target::enable_tracepoint)
13564 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13565 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13568 2020-03-12 Tom Tromey <tom@tromey.com>
13570 * symfile-mem.c: Update CORE_ADDR size assert.
13572 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13574 * selftest.m4: Move to gdbsupport/.
13575 * acinclude.m4: Update path to selftest.m4.
13577 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13580 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13581 gdbarch-selfselftests.c and selftest-arch.c.
13582 (SUBDIR_UNITTESTS_OBS): Rename to...
13583 (SELFTESTS_OBS): ... this.
13584 (COMMON_SFILES): Remove disasm-selftests.c and
13585 gdbarch-selftests.c.
13586 * configure.ac: Don't add selftest-arch.{c,o} to
13588 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13589 preprocessor conditions.
13591 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13593 * configure.ac: Don't source bfd/development.sh.
13594 * selftest.m4: Modify comment.
13595 * configure: Re-generate.
13597 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13599 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13600 not "true" or "false".
13601 * configure: Re-generate.
13603 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13605 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13606 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13607 renamed to arm_nbsd_supply_gregset.
13608 (fetch_register): Update to call arm_nbsd_supply_gregset.
13609 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13610 (arm_netbsd_nat_target::fetch_registers): Update.
13611 (fetch_elfcore_registers): Removed.
13612 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13613 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13614 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13615 not require NetBSD system headers.
13616 (arm_nbsd_regset): New struct.
13617 (arm_nbsd_iterate_over_regset_sections): New function.
13618 (arm_netbsd_init_abi_common): Updated to call
13619 set_gdbarch_iterate_over_regset_sections.
13620 * arm-nbsd-tdep.h: New file.
13622 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13624 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13627 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13629 * configure: Re-generate.
13631 2020-03-11 Tom Tromey <tromey@adacore.com>
13633 * ada-typeprint.c (print_choices): Fix comment.
13635 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13637 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13638 previous item in the list, when the list has no items.
13640 2020-03-11 Tom de Vries <tdevries@suse.de>
13642 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13643 PROP_LOCLIST handling code.
13645 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13647 * buildsym-legacy.c (record_line): Pass extra parameter to
13649 * buildsym.c (buildsym_compunit::record_line): Take an extra
13650 parameter, reduce duplication in the line table, and record the
13651 is_stmt flag in the line table.
13652 * buildsym.h (buildsym_compunit::record_line): Add extra
13654 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13655 non-statement lines.
13656 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13657 this to the symtab builder.
13658 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13659 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13660 through to dwarf_record_line_1.
13661 * infrun.c (process_event_stop_test): When stepping, don't stop at
13662 a non-statement instruction, and only refresh the step info when
13663 we land in the middle of a line's range. Also add an extra
13665 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13667 * record-btrace.c (btrace_find_line_range): Only record lines
13668 marked as is-statement.
13669 * stack.c (frame_show_address): Show the frame address if we are
13670 in a non-statement sal.
13671 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13672 (maintenance_print_one_line_table): Print a header for the is_stmt
13673 column, and include is_stmt information in the output.
13674 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13675 preference to non-statements.
13676 (find_pcs_for_symtab_line): Prefer is-statement entries.
13677 (find_line_common): Likewise.
13678 * symtab.h (struct linetable_entry): Add is_stmt field.
13679 (struct symtab_and_line): Likewise.
13680 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13681 arranging the line table.
13683 2020-03-07 Tom de Vries <tdevries@suse.de>
13685 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13688 2020-03-07 Tom Tromey <tom@tromey.com>
13690 * valops.c (value_literal_complex): Remove obsolete comment.
13691 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13694 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13696 * infrun.h: Forward-declare thread_info.
13697 (set_step_info): Add thread_info parameter, add doc.
13698 * infrun.c (set_step_info): Add thread_info parameter, move doc
13700 * infrun.c (process_event_stop_test): Pass thread to
13701 set_step_info call.
13702 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13704 (prepare_one_step): Add thread_info parameter, pass it to
13705 set_step_frame and prepare_one_step (recursive) call.
13706 (step_1): Pass thread to prepare_one_step call.
13707 (step_command_fsm::should_stop): Pass thread to
13709 (until_next_fsm): Pass thread to set_step_frame call.
13710 (finish_command): Pass thread to set_step_info call.
13712 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13714 * windows-tdep.c (windows_solib_create_inferior_hook):
13715 Check if inferior is running.
13717 2020-03-06 Tom de Vries <tdevries@suse.de>
13719 * NEWS: Fix "the the".
13722 2020-03-06 Tom de Vries <tdevries@suse.de>
13724 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13726 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13728 * .dir-locals.el: Add a comment referencing the other copies of
13731 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13733 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13736 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13738 * .gitattributes: New file.
13740 2020-03-04 Tom Tromey <tom@tromey.com>
13742 * symmisc.c (print_symbol_bcache_statistics)
13743 (print_objfile_statistics): Update.
13744 * symfile.c (allocate_symtab): Use intern.
13745 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13746 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13747 macro_cache>: Remove.
13748 <string_cache>: New member.
13749 (struct objfile) <intern>: New methods.
13750 * elfread.c (elf_symtab_read): Use intern.
13751 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13752 (dwarf2_compute_name, dwarf2_physname)
13753 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13755 (guess_partial_die_structure_name): Update.
13756 (partial_die_info::fixup): Intern name.
13757 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13759 (dwarf2_name): Intern name. Update.
13760 * buildsym.c (buildsym_compunit::get_macro_table): Use
13763 2020-03-04 Tom Tromey <tom@tromey.com>
13765 * jit.c (bfd_open_from_target_memory): Make "target" const.
13766 * corefile.c (gnutarget): Now const.
13767 * gdbcore.h (gnutarget): Now const.
13769 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13771 * NEWS: Mention support for WOW64 processes.
13772 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13773 (amd64_windows_segment_register_p): Remove static.
13774 (_initialize_amd64_windows_nat): Update.
13775 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13776 * i386-windows-nat.c (context_offset): Update.
13777 (i386_mappings): Rename and remove static.
13778 (i386_windows_segment_register_p): Remove static.
13779 (_initialize_i386_windows_nat): Update.
13780 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13781 (STATUS_WX86_SINGLE_STEP): New macro.
13782 (EnumProcessModulesEx): New macro.
13783 (Wow64SuspendThread): New macro.
13784 (Wow64GetThreadContext): New macro.
13785 (Wow64SetThreadContext): New macro.
13786 (Wow64GetThreadSelectorEntry): New macro.
13787 (windows_set_context_register_offsets): Add static.
13788 (windows_set_segment_register_p): Likewise.
13789 (windows_add_thread): Adapt for WOW64 processes.
13790 (windows_fetch_one_register): Likewise.
13791 (windows_nat_target::fetch_registers): Likewise.
13792 (windows_store_one_register): Likewise.
13793 (display_selector): Likewise.
13794 (display_selectors): Likewise.
13795 (handle_exception): Likewise.
13796 (windows_continue): Likewise.
13797 (windows_nat_target::resume): Likewise.
13798 (windows_add_all_dlls): Likewise.
13799 (do_initial_windows_stuff): Likewise.
13800 (windows_nat_target::attach): Likewise.
13801 (windows_get_exec_module_filename): Likewise.
13802 (windows_nat_target::create_inferior): Likewise.
13803 (windows_xfer_siginfo): Likewise.
13804 (_initialize_loadable): Initialize Wow64SuspendThread,
13805 Wow64GetThreadContext, Wow64SetThreadContext,
13806 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13807 * windows-nat.h (windows_set_context_register_offsets):
13808 Remove declaration.
13809 (windows_set_segment_register_p): Likewise.
13810 (i386_windows_segment_register_p): Add declaration.
13811 (amd64_windows_segment_register_p): Likewise.
13813 2020-03-04 Luis Machado <luis.machado@linaro.org>
13815 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13816 in "info registers" for AArch64/ARM.
13818 The change caused "info registers" to not print GPR's.
13822 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13824 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13825 when reg->group is empty and reggroup is not.
13827 2020-03-03 Tom Tromey <tromey@adacore.com>
13829 * dwarf2/frame.c (struct dwarf2_frame_cache)
13830 <checked_tailcall_bottom, entry_cfa_sp_offset,
13831 entry_cfa_sp_offset_p>: Remove members.
13832 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13833 (dwarf2_frame_prev_register): Don't call
13834 dwarf2_tailcall_sniffer_first.
13835 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13836 * frame-unwind.c (add_unwinder): New fuction.
13837 (frame_unwind_init): Use it. Add tailcall unwinder.
13839 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13840 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13842 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13843 value should be printed as true.
13845 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13847 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13848 (windows_init_abi): Set and use windows_so_ops.
13850 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13852 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13853 when verifying if dealing with a convenience variable.
13855 2020-03-03 Luis Machado <luis.machado@linaro.org>
13857 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13859 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13861 * infrun.c (gdbarch_supports_displaced_stepping): New.
13862 (use_displaced_stepping): Break up conditions in smaller pieces.
13863 Use gdbarch_supports_displaced_stepping.
13864 (displaced_step_prepare_throw): Use
13865 gdbarch_supports_displaced_stepping.
13867 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13869 * NEWS: Mention new behaviour of the history filename.
13870 * top.c (write_history_p): Add comment.
13871 (show_write_history_p): Add header comment, give a different
13872 message when history writing is on, but the history filename is
13874 (history_filename): Add comment.
13875 (history_filename_empty): New function.
13876 (show_history_filename): Add header comment, give a different
13877 message when the filename is empty.
13878 (init_history): Compare history_filename against nullptr, and only
13879 read history if the filename is not empty.
13880 (set_history_filename): Add header comment, and only make
13881 non-empty filenames absolute.
13882 (init_main): Make the filename argument to 'set history filename'
13885 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13887 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13888 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13889 (fetch_fp_register): Update.
13890 (fetch_fp_regs): Update.
13891 (store_fp_register): Update.
13892 (store_fp_regs): Update.
13893 (arm_netbsd_nat_target::read_description): New function.
13894 (fetch_elfcore_registers): Update.
13896 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13898 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13899 general_thread if the stop reply is missing a thread-id.
13900 (remote_target::process_stop_reply): Use the first non-exited
13901 thread if the target didn't pass a thread-id.
13902 * infrun.c (do_target_wait): Move call to
13903 switch_to_inferior_no_thread to ....
13904 (do_target_wait_1): ... here.
13906 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13908 * debuginfod-support.c: Include defs.h first.
13910 2020-02-28 Tom de Vries <tdevries@suse.de>
13912 * symfile.c (set_initial_language): Use default language for lookup.
13914 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13916 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13917 reader variable, pass `this` to read_cutu_die_from_dwo.
13919 2020-02-27 Aaron Merey <amerey@redhat.com>
13921 * source.c (open_source_file): Check for nullptr when computing
13924 2020-02-27 Tom Tromey <tromey@adacore.com>
13926 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13928 (dwarf2_add_field): Don't update nfields.
13929 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13931 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13933 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13936 2020-02-26 Tom Tromey <tom@tromey.com>
13938 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13939 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13940 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13941 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13944 2020-02-26 Tom Tromey <tom@tromey.com>
13946 * dwarf2/index-write.c (psym_index_map): Change type.
13947 (add_address_entry_worker, write_one_signatured_type)
13948 (recursively_count_psymbols, recursively_write_psymbols)
13949 (class debug_names, psyms_seen_size, write_gdbindex)
13950 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13952 2020-02-26 Aaron Merey <amerey@redhat.com>
13954 * Makefile.in: Handle optional debuginfod support.
13956 * README: Add --with-debuginfod summary.
13957 * config.in: Regenerate.
13958 * configure: Regenerate.
13959 * configure.ac: Handle optional debuginfod support.
13960 * debuginfod-support.c: debuginfod helper functions.
13961 * debuginfod-support.h: Ditto.
13962 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13964 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13965 when a dwz file cannot be found.
13966 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13967 debuginfo file cannot be found.
13968 * source.c (open_source_file): Query debuginfod servers when a
13969 source file cannot be found.
13970 * top.c (print_gdb_configuration): Include
13971 --{with,without}-debuginfod in the output.
13973 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13975 * thread.c (thr_try_catch_cmd): Print thread name.
13977 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13979 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13980 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13981 dwarf2_fetch_die_type_sect_off): Move to...
13982 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13983 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13984 dwarf2_fetch_die_type_sect_off): ... here.
13985 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13986 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13987 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13989 2020-02-26 Tom de Vries <tdevries@suse.de>
13992 * symfile.c (set_initial_language): Exit-early if
13993 language_mode == language_mode_manual.
13995 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13997 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13998 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13999 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14001 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14003 * gdbtypes.c (create_array_type_with_stride): Handle negative
14005 * valarith.c (value_subscripted_rvalue): Likewise.
14007 2020-02-25 Luis Machado <luis.machado@linaro.org>
14009 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14011 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14013 * loc.h (dwarf2_get_die_type): Move to...
14014 * read.h (dwarf2_get_die_type): ... here.
14015 * read.c (dwarf2_get_die_type): Move doc to header.
14017 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14019 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14020 'gnulib/Makefile.in' to the list.
14022 2020-02-24 Tom Tromey <tom@tromey.com>
14024 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14026 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14029 2020-02-24 Tom Tromey <tom@tromey.com>
14031 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14033 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14034 (dw2_do_instantiate_symtab, dw2_get_file_names)
14035 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14037 2020-02-24 Tom Tromey <tom@tromey.com>
14039 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14040 make_scoped_restore.
14041 (dwarf2_psymtab::read_symtab): Don't clear
14042 reading_partial_symbols.
14044 2020-02-24 Tom de Vries <tdevries@suse.de>
14047 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14049 2020-02-24 Tom de Vries <tdevries@suse.de>
14051 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14052 commands layout next/prev/regs.
14054 2020-02-22 Tom Tromey <tom@tromey.com>
14056 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14057 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14059 2020-02-22 Tom Tromey <tom@tromey.com>
14061 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14063 2020-02-22 Tom Tromey <tom@tromey.com>
14065 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14066 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14067 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14068 * tui/tui.c (_initialize_tui): Add usage text.
14070 2020-02-22 Tom Tromey <tom@tromey.com>
14072 * tui/tui-win.c (tui_set_focus_command)
14073 (tui_set_win_height_command): Use error_no_arg.
14074 (_initialize_tui_win): Update help text.
14075 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14077 2020-02-22 Tom Tromey <tom@tromey.com>
14079 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14080 * tui/tui-disasm.h (struct tui_disasm_window)
14081 <display_start_addr>: Declare.
14082 * tui/tui-source.h (struct tui_source_window)
14083 <display_start_addr>: Declare.
14084 * tui/tui-winsource.h (struct tui_source_window_base)
14085 <show_source_line, display_start_addr>: New methods.
14086 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14087 Rename and move to protected section.
14088 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14089 (tui_source_window_base::do_erase_source_content): Update.
14090 (tui_source_window_base::show_source_line): Now a method.
14091 (tui_source_window_base::show_source_content)
14092 (tui_source_window_base::tui_source_window_base)
14093 (tui_source_window_base::rerender)
14094 (tui_source_window_base::refill)
14095 (tui_source_window_base::do_scroll_horizontal)
14096 (tui_source_window_base::set_is_exec_point_at)
14097 (tui_source_window_base::update_breakpoint_info)
14098 (tui_source_window_base::update_exec_info): Update.
14099 * tui/tui-source.c (tui_source_window::set_contents)
14100 (tui_source_window::showing_source_p)
14101 (tui_source_window::do_scroll_vertical)
14102 (tui_source_window::location_matches_p)
14103 (tui_source_window::line_is_displayed): Update.
14104 (tui_source_window::display_start_addr): New method.
14105 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14106 (tui_disasm_window::do_scroll_vertical)
14107 (tui_disasm_window::location_matches_p): Update.
14108 (tui_disasm_window::display_start_addr): New method.
14110 2020-02-22 Tom Tromey <tom@tromey.com>
14112 * NEWS: Add entry for gdb.register_window_type.
14113 * tui/tui-layout.h (window_factory): New typedef.
14114 (tui_register_window): Declare.
14115 * tui/tui-layout.c (saved_tui_windows): New global.
14116 (tui_apply_current_layout): Use it.
14117 (tui_register_window): New function.
14118 * python/python.c (do_start_initialization): Call
14119 gdbpy_initialize_tui.
14120 (python_GdbMethods): Add "register_window_type" function.
14121 * python/python-internal.h (gdbpy_register_tui_window)
14122 (gdbpy_initialize_tui): Declare.
14123 * python/py-tui.c: New file.
14124 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14126 2020-02-22 Tom Tromey <tom@tromey.com>
14128 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14130 2020-02-22 Tom Tromey <tom@tromey.com>
14132 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14133 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14134 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14135 (tui_set_win_focus_to): Move from tui-win.c.
14137 2020-02-22 Tom Tromey <tom@tromey.com>
14139 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14141 (known_window_types): New global.
14142 (tui_get_window_by_name): Reimplement.
14143 (initialize_known_windows): New function.
14144 (validate_window_name): Rewrite.
14145 (_initialize_tui_layout): Call initialize_known_windows.
14147 2020-02-22 Tom Tromey <tom@tromey.com>
14149 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14151 * tui/tui-winsource.h (struct tui_source_window_base)
14152 <tui_source_window_base>: Remove parameter.
14153 * tui/tui-winsource.c
14154 (tui_source_window_base::tui_source_window_base): Remove
14156 (tui_source_window_base::refill): Update.
14157 * tui/tui-stack.h (struct tui_locator_window)
14158 <tui_locator_window>: Update.
14159 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14160 Default the constructor.
14161 * tui/tui-regs.h (struct tui_data_item_window)
14162 <tui_data_item_window>: Default the constructor.
14163 (struct tui_data_window) <tui_data_window>: Likewise.
14164 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14165 Default the constructor.
14166 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14167 Default the constructor.
14169 (struct tui_win_info) <tui_win_info>: Default the constructor.
14170 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14171 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14172 Default the constructor.
14174 2020-02-22 Tom Tromey <tom@tromey.com>
14176 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14177 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14178 * tui/tui-win.c (tui_resize_all): Don't call
14179 tui_delete_invisible_windows.
14180 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14182 (tui_set_layout): Update.
14183 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14184 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14185 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14187 2020-02-22 Tom Tromey <tom@tromey.com>
14189 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14192 2020-02-22 Tom Tromey <tom@tromey.com>
14194 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14196 2020-02-22 Tom Tromey <tom@tromey.com>
14198 * tui/tui-winsource.h (struct tui_source_window_iterator)
14199 <inner_iterator>: New etytypedef.
14200 <tui_source_window_iterator>: Take "end" parameter.
14201 <tui_source_window_iterator>: Take iterator.
14202 <operator*, advance>: Update.
14203 <m_iter>: Change type.
14204 <m_end>: New field.
14205 (struct tui_source_windows) <begin, end>: Update.
14206 * tui/tui-layout.c (tui_windows): New global.
14207 (tui_apply_current_layout): Clear tui_windows.
14208 (tui_layout_window::apply): Update tui_windows.
14209 * tui/tui-data.h (tui_windows): Declare.
14210 (all_tui_windows): Now inline function.
14211 (class tui_window_iterator, struct all_tui_windows): Remove.
14213 2020-02-22 Tom Tromey <tom@tromey.com>
14216 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14217 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14219 (class tui_layout_window) <get_sizes>: Likewise.
14220 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14222 <get_sizes>: Add "height" argument.
14223 <m_vertical>: New field.
14224 * tui/tui-layout.c (tui_layout_split::clone): Update.
14225 (tui_layout_split::get_sizes): Add "height" argument.
14226 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14227 (tui_new_layout_command): Parse "-horizontal".
14228 (_initialize_tui_layout): Update help string.
14229 (tui_layout_split::specification): Add "-horizontal" when needed.
14230 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14232 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14235 2020-02-22 Tom Tromey <tom@tromey.com>
14237 * tui/tui-layout.h (enum tui_adjust_result): New.
14238 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14239 (class tui_layout_window) <adjust_size>: Return
14240 tui_adjust_result. Rewrite.
14241 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14242 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14244 2020-02-22 Tom Tromey <tom@tromey.com>
14246 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14247 parameter and return types.
14248 (class tui_layout_base) <specification>: Add "depth".
14249 (class tui_layout_window) <specification>: Add "depth".
14250 (class tui_layout_split) <specification>: Add "depth".
14251 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14253 (tui_new_layout_command): Parse sub-layouts.
14254 (_initialize_tui_layout): Update help string.
14255 (tui_layout_window::specification): Add "depth".
14256 (add_layout_command): Update.
14258 2020-02-22 Tom Tromey <tom@tromey.com>
14260 * NEWS: Add "tui new-layout" item.
14261 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14262 Add new-layout command to help text.
14263 (validate_window_name): New function.
14264 (tui_new_layout_command): New function.
14265 (_initialize_tui_layout): Register "new-layout".
14266 (tui_layout_window::specification): New method.
14267 (tui_layout_window::specification): New method.
14268 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14270 (class tui_layout_window) <specification>: New method.
14271 (class tui_layout_split) <specification>: New method.
14273 2020-02-22 Tom Tromey <tom@tromey.com>
14275 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14276 * tui/tui-win.c (window_name_completer): Update comment.
14277 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14279 (class tui_layout_window) <replace_window>: Likewise.
14280 (class tui_layout_split) <replace_window>: Likewise.
14281 (tui_set_layout): Don't declare.
14282 (tui_set_initial_layout): Declare function.
14283 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14284 (asm_regs_layout): New globals.
14285 (tui_current_layout, show_layout): Remove.
14286 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14287 (find_layout, tui_apply_layout): New function.
14288 (layout_completer): Remove.
14289 (tui_next_layout): Reimplement.
14290 (tui_next_layout_command): New function.
14291 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14292 (tui_regs_layout): Reimplement.
14293 (tui_regs_layout_command): New function.
14294 (extract_display_start_addr): Rewrite.
14295 (next_layout, prev_layout): Remove.
14296 (tui_layout_window::replace_window): New method.
14297 (tui_layout_split::replace_window): New method.
14298 (destroy_layout): New function.
14299 (layout_list): New global.
14300 (add_layout_command): New function.
14301 (initialize_layouts): Update.
14302 (tui_layout_command): New function.
14303 (_initialize_tui_layout): Install "layout" commands.
14304 * tui/tui-data.h (enum tui_layout_type): Remove.
14305 (tui_current_layout): Don't declare.
14307 2020-02-22 Tom Tromey <tom@tromey.com>
14309 * tui/tui-regs.c (tui_reg_layout): Remove.
14310 (tui_reg_command): Use tui_regs_layout.
14311 * tui/tui-layout.h (tui_reg_command): Declare.
14312 * tui/tui-layout.c (tui_reg_command): New function.
14314 2020-02-22 Tom Tromey <tom@tromey.com>
14316 * tui/tui.c (tui_rl_delete_other_windows): Call
14317 tui_remove_some_windows.
14318 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14320 (class tui_layout_window) <remove_windows>: New method.
14321 (class tui_layout_split) <remove_windows>: Declare.
14322 (tui_remove_some_windows): Declare.
14323 * tui/tui-layout.c (tui_remove_some_windows): New function.
14324 (tui_layout_split::remove_windows): New method.
14326 2020-02-22 Tom Tromey <tom@tromey.com>
14328 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14329 * tui/tui-layout.h (tui_next_layout): Declare.
14330 * tui/tui-layout.c (tui_next_layout): New function.
14332 2020-02-22 Tom Tromey <tom@tromey.com>
14334 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14335 correct coordinates.
14337 2020-02-22 Tom Tromey <tom@tromey.com>
14339 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14340 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14343 2020-02-22 Tom Tromey <tom@tromey.com>
14345 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14346 TUI_DISASM_WIN, not tui_win_list.
14348 2020-02-22 Tom Tromey <tom@tromey.com>
14350 * valprint.c (generic_val_print_enum_1)
14351 (val_print_type_code_flags): Style member names.
14352 * rust-lang.c (val_print_struct, rust_print_enum)
14353 (rust_print_struct_def, rust_internal_print_type): Style member
14355 * p-valprint.c (pascal_object_print_value_fields): Style member
14356 names. Only call fprintf_symbol_filtered for static members.
14357 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14358 * f-valprint.c (f_val_print): Style member names.
14359 * f-typeprint.c (f_type_print_base): Style member names.
14360 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14361 call fprintf_symbol_filtered for static members.
14362 (cp_print_class_member): Style member names.
14363 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14365 * ada-valprint.c (ada_print_scalar): Style enum names.
14366 (ada_val_print_enum): Likewise.
14367 * ada-typeprint.c (print_enum_type): Style enum names.
14369 2020-02-21 Tom Tromey <tom@tromey.com>
14371 * psympriv.h (struct partial_symtab): Update comment.
14373 2020-02-21 Tom Tromey <tromey@adacore.com>
14375 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14378 2020-02-21 Tom de Vries <tdevries@suse.de>
14381 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14382 if dependencies[i]->user != NULL.
14384 2020-02-21 Ali Tamur <tamur@google.com>
14386 * dwarf2/read.c (dwarf2_name): Add null check.
14388 2020-02-20 Tom Tromey <tom@tromey.com>
14390 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14391 ">=", in binary search.
14392 (dwarf2_find_containing_comp_unit): New overload.
14393 (run_test): New self-test.
14394 (_initialize_dwarf2_read): Register new test.
14396 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14398 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14399 * riscv-tdep.h: Likewise.
14400 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14402 * features/riscv/64bit-csr.xml: Regenerated.
14404 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14405 Tom Tromey <tom@tromey.com>
14407 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14408 of 'fputc_unfiltered'.
14409 (putchar_unfiltered): Call 'fputc_unfiltered'.
14410 (fputc_unfiltered): Call 'fputs_unfiltered'.
14412 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14414 * config.in: Regenerate.
14415 * configure: Regenerate.
14416 * configure.ac: Add --with-python-libdir option.
14417 * main.c: Use WITH_PYTHON_LIBDIR.
14419 2020-02-19 Tom Tromey <tom@tromey.com>
14421 * symtab.c (general_symbol_info::compute_and_set_names): Use
14422 obstack_strndup. Simplify call to symbol_set_demangled_name.
14424 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14426 * dwarf2/read.c (allocate_signatured_type_table,
14427 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14428 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14429 Remove objfile parameter, update all callers.
14431 2020-02-19 Doug Evans <dje@google.com>
14434 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14435 rust_enum_variant calculation.
14437 2020-02-19 Tom Tromey <tromey@adacore.com>
14439 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14441 2020-02-19 Tom Tromey <tromey@adacore.com>
14443 * ada-lang.c (cache_symbol): Use obstack_strdup.
14445 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14447 * configure: Regenerate.
14449 2020-02-19 Tom Tromey <tromey@adacore.com>
14451 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14454 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14456 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14458 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14460 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14461 if GDBSERVER is not defined.
14462 (riscv_tdesc_cache): Likewise, also store const target_desc.
14463 (STATIC_IN_GDB): Define.
14464 (riscv_create_target_description): Update declaration with
14466 (riscv_lookup_target_description): New function, only define if
14467 GDBSERVER is not defined.
14468 * arch/riscv.h (riscv_create_target_description): Declare only
14469 when GDBSERVER is defined.
14470 (riscv_lookup_target_description): New declaration when GDBSERVER
14472 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14473 (riscv_linux_read_features): ...this, and return
14474 riscv_gdbarch_features instead of target_desc.
14475 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14476 (riscv_linux_read_description): Rename to...
14477 (riscv_linux_read_features): ...this.
14478 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14479 Update to use riscv_gdbarch_features and
14480 riscv_lookup_target_description.
14481 * riscv-tdep.c (riscv_find_default_target_description): Use
14482 riscv_lookup_target_description instead of
14483 riscv_create_target_description.
14485 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14487 * valprint.c (generic_val_print_enum_1): When printing a flag
14488 enum with value 0 and there is no enumerator with value 0, print
14489 just "0" instead of "(unknown: 0x0)".
14491 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14493 * valprint.c (generic_val_print_enum_1): Print unknown part of
14496 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14498 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14499 flag enums to contain duplicate enumerators.
14500 * valprint.c (generic_val_print_enum_1): Update comment.
14502 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14504 * dwarf2/read.c: Include "count-one-bits.h".
14505 (update_enumeration_type_from_children): If an enumerator has
14506 multiple bits set, don't treat the enumeration as a "flag enum".
14507 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14508 of flag enums have 0 or 1 bit set.
14510 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14512 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14514 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14516 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14517 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14518 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14520 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14522 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14524 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14526 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14527 displaced_step_closure_up.
14528 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14529 (struct displaced_step_closure_up):
14530 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14531 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14532 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14534 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14535 * gdbarch.c, gdbarch.h: Re-generate.
14536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14537 displaced_step_closure_up.
14538 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14539 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14540 * infrun.h (displaced_step_closure_up): New type alias.
14541 (struct displaced_step_inferior_state) <step_closure>: Change
14542 type to displaced_step_closure_up.
14543 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14544 displaced_step_closure_up.
14545 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14547 2020-02-14 Tom Tromey <tom@tromey.com>
14549 * minidebug.c (gnu_debug_key): New global.
14550 (find_separate_debug_file_in_section): Use it.
14552 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14554 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14556 * gdbarch.c: Re-generate.
14557 * gdbarch.h: Re-generate.
14558 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14560 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14561 type to std::unique_ptr.
14562 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14563 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14564 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14565 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14566 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14567 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14568 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14569 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14570 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14572 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14574 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14576 (displaced_step_clear): Rename to...
14577 (displaced_step_reset): ... this. Just call displaced->reset ().
14578 (displaced_step_clear_cleanup): Rename to...
14579 (displaced_step_reset_cleanup): ... this.
14580 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14581 (displaced_step_fixup): Likewise.
14582 (resume_1): Likewise.
14583 (handle_inferior_event): Restore child's memory before calling
14584 displaced_step_fixup on the parent.
14585 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14586 to std::unique_ptr.
14587 <step_closure>: Change type to std::unique_ptr.
14589 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14591 * arm-tdep.c: Include count-one-bits.h.
14592 (cleanup_block_store_pc): Use count_one_bits.
14593 (cleanup_block_load_pc): Use count_one_bits.
14594 (arm_copy_block_xfer): Use count_one_bits.
14595 (thumb2_copy_block_xfer): Use count_one_bits.
14596 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14597 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14598 (thumb_get_next_pcs_raw): Use count_one_bits.
14599 (arm_get_next_pcs_raw): Use count_one_bits_l.
14600 * arch/arm.c (bitcount): Remove.
14601 * arch/arm.h (bitcount): Remove.
14603 2020-02-14 Tom Tromey <tromey@adacore.com>
14605 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14607 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14608 * dwarf2/loc.c (call_site_find_chain_1): Return
14609 unique_xmalloc_ptr.
14610 (call_site_find_chain): Likewise.
14612 2020-02-14 Richard Biener <rguenther@suse.de>
14614 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14615 on expression with division operators.
14617 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14619 * MAINTAINERS (Write After Approval): Adding myself.
14621 2020-02-12 Tom Tromey <tom@tromey.com>
14623 * event-loop.c (event_data, gdb_event, event_handler_func):
14626 2020-02-12 Tom Tromey <tom@tromey.com>
14628 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14629 (dwarf2_frame_objfile_data): Add comment.
14630 (find_comp_unit, set_comp_unit): New functions.
14631 (dwarf2_frame_find_fde): Use find_comp_unit.
14632 (dwarf2_build_frame_info): Use set_comp_unit.
14634 2020-02-12 Tom Tromey <tom@tromey.com>
14636 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14637 (comp_unit): Don't initialize objfile.
14638 (execute_cfa_program): Add text_offset parameter.
14639 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14640 (dwarf2_frame_cache): Update.
14641 (dwarf2_build_frame_info): Don't set "objfile" member.
14643 2020-02-12 Tom Tromey <tom@tromey.com>
14645 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14646 (decode_frame_entry): Likewise.
14647 (dwarf2_build_frame_info): Update.
14649 2020-02-12 Tom Tromey <tom@tromey.com>
14651 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14652 (decode_frame_entry_1): Use the comp_unit obstack.
14654 2020-02-12 Tom Tromey <tom@tromey.com>
14656 * dwarf2/frame.c (struct comp_unit): Add initializers and
14658 (dwarf2_frame_objfile_data): Store a comp_unit.
14659 (dwarf2_frame_find_fde): Update.
14660 (dwarf2_build_frame_info): Use "new".
14662 2020-02-12 Tom Tromey <tom@tromey.com>
14664 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14665 (dwarf2_fde_table): Typedef for std::vector.
14666 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14667 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14668 (decode_frame_entry): Update.
14669 (dwarf2_build_frame_info): Use "new".
14671 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14673 * arm-tdep.c (arm_gdbarch_init): Update.
14674 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14675 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14676 have_neon, is_m>: Change to bool.
14678 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14680 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14682 2020-02-12 Tom Tromey <tom@tromey.com>
14684 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14686 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14688 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14689 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14691 2020-02-11 Tom Tromey <tom@tromey.com>
14693 * psymtab.h: Update comment.
14695 2020-02-11 Tom Tromey <tom@tromey.com>
14697 * gdb_obstack.h (struct auto_obstack): Use
14698 DISABLE_COPY_AND_ASSIGN.
14700 2020-02-11 Tom Tromey <tom@tromey.com>
14702 * dwarf2/frame.h (struct objfile): Don't forward declare.
14704 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14706 * cris-tdep.c (cris_supply_gregset): Change signature to match
14707 what struct regset expects.
14708 (cris_regset): New struct.
14709 (fetch_core_registers): Remove.
14710 (cris_iterate_over_regset_sections): New function.
14711 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14712 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14714 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14716 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14719 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14721 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14723 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14725 * configure: Re-generate.
14727 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14729 * configure: Re-generate.
14731 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14733 * acinclude: Update warning.m4 path.
14734 * warning.m4: Move to gdbsupport.
14736 2020-02-11 Tom Tromey <tromey@adacore.com>
14738 * remote.c (remote_console_output): Update.
14739 * printcmd.c (printf_command): Update.
14740 * event-loop.c (gdb_wait_for_event): Update.
14741 * linux-nat.c (sigchld_handler): Update.
14742 * remote-sim.c (gdb_os_write_stdout): Update.
14743 (gdb_os_flush_stdout): Update.
14744 (gdb_os_flush_stderr): Update.
14745 (gdb_os_write_stderr): Update.
14746 * exceptions.c (print_exception): Update.
14747 * remote-fileio.c (remote_fileio_func_read): Update.
14748 (remote_fileio_func_write): Update.
14749 * tui/tui.c (tui_enable): Update.
14750 * tui/tui-interp.c (tui_interp::init): Update.
14751 * utils.c (init_page_info): Update.
14752 (putchar_unfiltered, fputc_unfiltered): Update.
14753 (gdb_flush): Update.
14754 (emit_style_escape): Update.
14755 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14756 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14757 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14758 (stderr_file::write): Update.
14759 (stderr_file::puts): Update.
14760 * ui-file.h (ui_file_isatty, ui_file_write)
14761 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14762 (ui_file_puts): Don't declare.
14764 2020-02-10 Tom de Vries <tdevries@suse.de>
14766 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14767 sentinel to char *.
14769 2020-02-09 Tom de Vries <tdevries@suse.de>
14771 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14772 filename if it matches "<artificial>".
14774 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14776 * windows-tdep.c (struct enum_value_name): New struct.
14777 (create_enum): New function.
14778 (windows_get_siginfo_type): Create and use enum types.
14780 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14782 * NEWS: Mention $_siginfo support for Windows.
14783 * windows-nat.c (handle_exception): Set siginfo_er.
14784 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14785 (windows_xfer_siginfo): New function.
14786 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14787 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14788 (init_windows_gdbarch_data): New function.
14789 (get_windows_gdbarch_data): New function.
14790 (windows_get_siginfo_type): New function.
14791 (windows_init_abi): Register windows_get_siginfo_type.
14792 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14794 2020-02-08 Tom Tromey <tom@tromey.com>
14796 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14797 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14798 <keep>: Declare method.
14799 <m_keep>: Remove member.
14800 <~cutu_reader>: Remove.
14801 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14802 (cutu_reader::cutu_reader): Update.
14803 (cutu_reader::keep): Rename from ~cutu_reader.
14804 (process_psymtab_comp_unit, build_type_psymtabs_1)
14805 (process_skeletonless_type_unit, load_partial_comp_unit)
14806 (load_full_comp_unit, dwarf2_read_addr_index)
14807 (read_signatured_type): Update.
14809 2020-02-08 Tom Tromey <tom@tromey.com>
14811 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14812 "want_partial_unit" parameter.
14813 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14814 Inline check for DW_TAG_partial_unit.
14815 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14817 2020-02-08 Tom Tromey <tom@tromey.com>
14819 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14821 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14824 2020-02-08 Tom Tromey <tom@tromey.com>
14826 * dwarf2/read.c (read_address): Move to comp-unit.c.
14827 (dwarf2_rnglists_process, dwarf2_ranges_process)
14828 (read_attribute_value, dwarf_decode_lines_1)
14829 (var_decode_location, decode_locdesc): Update.
14830 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14831 read.c. Remove "cu" parameter.
14832 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14835 2020-02-08 Tom Tromey <tom@tromey.com>
14837 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14838 (read_indirect_line_string): Update.
14839 * dwarf2/comp-unit.c (read_offset): Remove.
14840 (read_comp_unit_head): Update.
14841 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14843 (read_offset): Don't declare.
14845 2020-02-08 Tom Tromey <tom@tromey.com>
14847 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14848 * dwarf2/read.c (struct comp_unit_head): Move to
14849 dwarf2/comp-unit.h.
14850 (enum class rcuh_kind): Move to comp-unit.h.
14851 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14852 (read_comp_unit_head, error_check_comp_unit_head)
14853 (read_and_check_comp_unit_head): Move to comp-unit.c.
14854 (read_offset, dwarf_unit_type_name): Likewise.
14855 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14856 (cutu_reader::cutu_reader, read_call_site_scope)
14857 (find_partial_die, follow_die_offset): Update.
14858 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14860 2020-02-08 Tom Tromey <tom@tromey.com>
14862 * dwarf2/read.c (read_offset_1): Move to leb.c.
14863 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14864 (dwarf_decode_macro_bytes): Update.
14865 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14866 * dwarf2/leb.h (read_offset): Declare.
14868 2020-02-08 Tom Tromey <tom@tromey.com>
14870 * dwarf2/read.c (dwarf2_section_size): Remove.
14871 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14873 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14875 2020-02-08 Tom Tromey <tom@tromey.com>
14877 * dwarf2/read.c (read_initial_length): Move to leb.c.
14878 * dwarf2/leb.h (read_initial_length): Declare.
14879 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14880 handle_nonstd parameter.
14881 * dwarf2/frame.c (read_initial_length): Remove.
14882 (decode_frame_entry_1): Update.
14884 2020-02-08 Tom Tromey <tom@tromey.com>
14886 * dwarf2/loc.c (dwarf2_find_location_expression)
14887 (dwarf_evaluate_loc_desc::get_tls_address)
14888 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14889 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14890 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14891 (dwarf2_compile_property_to_c)
14892 (dwarf2_loc_desc_get_symbol_read_needs)
14893 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14894 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14895 (loclist_describe_location, loclist_tracepoint_var_ref)
14896 (loclist_generate_c_location): Update.
14897 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14898 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14899 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14900 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14901 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14902 (dwarf2_per_cu_data::addr_size)
14903 (dwarf2_per_cu_data::ref_addr_size)
14904 (dwarf2_per_cu_data::text_offset)
14905 (dwarf2_per_cu_data::addr_type): Now methods.
14906 (per_cu_header_read_in): Make per_cu "const".
14907 (dwarf2_version): Remove.
14908 (dwarf2_per_cu_data::int_type): Now a method.
14909 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14910 (set_die_type, read_array_type, read_subrange_index_type)
14911 (read_tag_string_type, read_subrange_type): Update.
14912 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14913 offset_size, ref_addr_size, text_offset, addr_type, version,
14914 objfile, int_type, addr_sized_int_type>: Declare methods.
14916 2020-02-08 Tom Tromey <tom@tromey.com>
14918 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14921 2020-02-08 Tom Tromey <tom@tromey.com>
14923 * dwarf2/read.h (dwarf_line_debug): Declare.
14924 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14925 * dwarf2/read.c: Move line_header code to new files.
14926 (dwarf_line_debug): No longer static.
14927 * dwarf2/line-header.c: New file.
14928 * dwarf2/line-header.h: New file.
14930 2020-02-08 Tom Tromey <tom@tromey.com>
14932 * dwarf2/read.c (struct line_header) <file_full_name,
14933 file_file_name>: Return unique_xmalloc_ptr.
14934 (line_header::file_file_name): Update.
14935 (line_header::file_full_name): Update.
14936 (dw2_get_file_names_reader): Update.
14937 (macro_start_file): Update.
14939 2020-02-08 Tom Tromey <tom@tromey.com>
14941 * dwarf2/read.c (struct line_header) <file_full_name,
14942 file_file_name>: Declare methods.
14943 (dw2_get_file_names_reader): Update.
14944 (file_file_name): Now a method.
14945 (file_full_name): Likewise.
14946 (macro_start_file): Update.
14948 2020-02-08 Tom Tromey <tom@tromey.com>
14950 * dwarf2/read.c (dwarf_always_disassemble)
14951 (show_dwarf_always_disassemble): Move to loc.c.
14952 (_initialize_dwarf2_read): Move "always-disassemble" registration
14954 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14955 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14957 (show_dwarf_always_disassemble): Move from read.c.
14958 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14960 2020-02-08 Tom Tromey <tom@tromey.com>
14962 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14963 (create_quick_file_names_table): Return htab_up.
14964 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14966 * dwarf2/read.h (struct dwarf2_per_objfile)
14967 <quick_file_names_table>: Now htab_up.
14969 2020-02-08 Tom Tromey <tom@tromey.com>
14971 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14973 2020-02-08 Tom Tromey <tom@tromey.com>
14975 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14977 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14978 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14979 (abbrev_table::abbrev_table): No longer inline.
14980 (ABBREV_HASH_SIZE): Remove.
14981 (abbrev_table::m_abbrevs): Now an htab_up.
14983 2020-02-08 Tom Tromey <tom@tromey.com>
14985 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14986 (cutu_reader): Update.
14987 (build_type_psymtabs_1): Update.
14988 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14989 (abbrev_table::alloc_abbrev): Update.
14990 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14991 (abbrev_table::read): New static method, renamed from
14992 abbrev_table_read_table.
14993 (abbrev_table::alloc_abbrev)
14994 (abbrev_table::add_abbrev): Now private.
14995 (abbrev_table::abbrev_table): Now private.
14996 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14998 2020-02-08 Tom Tromey <tom@tromey.com>
15000 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15001 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15004 2020-02-08 Tom Tromey <tom@tromey.com>
15006 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15008 (lookup_dwo_unit_in_dwp): Update.
15009 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15012 2020-02-08 Tom Tromey <tom@tromey.com>
15014 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15017 2020-02-08 Tom Tromey <tom@tromey.com>
15019 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15021 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15022 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15023 Change type to htab_up.
15025 2020-02-08 Tom Tromey <tom@tromey.com>
15027 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15028 htab_up. Don't allocate on obstack.
15029 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15030 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15031 Change type to htab_up.
15033 2020-02-08 Tom Tromey <tom@tromey.com>
15035 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15036 Change type to htab_up.
15037 * dwarf2/read.c (create_signatured_type_table_from_index)
15038 (create_signatured_type_table_from_debug_names)
15039 (create_all_type_units, add_type_unit)
15040 (lookup_dwo_signatured_type, lookup_signatured_type)
15041 (process_skeletonless_type_unit): Update.
15042 (create_debug_type_hash_table, create_debug_types_hash_table):
15043 Change type of types_htab.
15044 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15045 htab_up. Don't allocate on obstack.
15046 (create_cus_hash_table): Change type of cus_htab parameter.
15047 (struct dwo_file) <cus, tus>: Now htab_up.
15048 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15049 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15050 (queue_and_load_all_dwo_tus): Update.
15051 * dwarf2/index-write.c (write_gdbindex): Update.
15052 (write_debug_names): Update.
15054 2020-02-08 Tom Tromey <tom@tromey.com>
15056 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15057 dwarf2/read.c. Remove "next" member. Add constructor ntad
15059 (struct dwarf2_per_objfile) <queue>: New member.
15060 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15062 (dwarf2_queue, dwarf2_queue_tail): Remove.
15063 (class dwarf2_queue_guard): Add parameter to constructor. Use
15064 DISABLE_COPY_AND_ASSIGN.
15065 <m_per_objfile>: New member.
15066 <~dwarf2_queue_guard>: Rewrite.
15067 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15069 (~dwarf2_queue_item): New.
15071 2020-02-08 Tom Tromey <tom@tromey.com>
15073 * dwarf2/read.c (struct die_info) <has_children>: New member.
15074 (dw2_get_file_names_reader): Remove has_children.
15075 (dw2_get_file_names): Update.
15076 (read_cutu_die_from_dwo): Remove has_children.
15077 (cutu_reader::init_tu_and_read_dwo_dies)
15078 (cutu_reader::cutu_reader): Update.
15079 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15080 Remove has_children.
15081 (build_type_psymtabs_1, process_skeletonless_type_unit)
15082 (load_partial_comp_unit, load_full_comp_unit): Update.
15083 (create_dwo_cu_reader): Remove has_children.
15084 (create_cus_hash_table, read_die_and_children): Update.
15085 (read_full_die_1,read_full_die): Remove has_children.
15086 (read_signatured_type): Update.
15087 (class cutu_reader) <has_children>: Remove.
15089 2020-02-08 Tom Tromey <tom@tromey.com>
15091 * dwarf2/expr.c: Rename from dwarf2expr.c.
15092 * dwarf2/expr.h: Rename from dwarf2expr.h.
15093 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15094 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15095 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15096 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15097 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15098 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15099 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15100 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15101 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15102 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15103 * dwarf2/loc.c: Rename from dwarf2loc.c.
15104 * dwarf2/loc.h: Rename from dwarf2loc.h.
15105 * dwarf2/read.c: Rename from dwarf2read.c.
15106 * dwarf2/read.h: Rename from dwarf2read.h.
15107 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15108 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15109 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15110 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15111 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15112 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15113 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15114 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15115 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15116 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15117 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15118 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15119 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15121 * Makefile.in (COMMON_SFILES): Update.
15122 (HFILES_NO_SRCDIR): Update.
15124 2020-02-08 Tom Tromey <tom@tromey.com>
15126 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15127 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15129 2020-02-08 Tom Tromey <tom@tromey.com>
15131 * dwarf2read.h (struct die_info): Don't declare.
15133 2020-02-08 Tom Tromey <tom@tromey.com>
15135 * dwarf2read.h (die_info_ptr): Remove typedef.
15137 2020-02-08 Tom Tromey <tom@tromey.com>
15139 * dwarf2read.c (read_call_site_scope)
15140 (handle_data_member_location, dwarf2_add_member_fn)
15141 (mark_common_block_symbol_computed, read_common_block)
15142 (attr_to_dynamic_prop, partial_die_info::read)
15143 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15144 (dwarf2_symbol_mark_computed, set_die_type): Update.
15145 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15147 (attr_form_is_block): Don't declare.
15148 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15150 2020-02-08 Tom Tromey <tom@tromey.com>
15152 * dwarf2read.c (dwarf2_find_base_address, )
15153 (read_call_site_scope, rust_containing_type)
15154 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15155 (handle_data_member_location, dwarf2_add_member_fn)
15156 (get_alignment, read_structure_type, process_structure_scope)
15157 (mark_common_block_symbol_computed, read_common_block)
15158 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15159 (partial_die_info::read, read_attribute_value, new_symbol)
15160 (lookup_die_type, dwarf2_get_ref_die_offset)
15161 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15162 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15163 (dwarf2_symbol_mark_computed): Update.
15164 * dwarf2/attribute.h (struct attribute) <value_as_address,
15165 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15167 (value_as_address, attr_form_is_section_offset)
15168 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15169 * dwarf2/attribute.c (attribute::value_as_address)
15170 (attribute::form_is_section_offset, attribute::form_is_constant)
15171 (attribute::form_is_ref): Now methods.
15173 2020-02-08 Tom Tromey <tom@tromey.com>
15175 * dwarf2read.c (struct attribute, DW_STRING)
15176 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15177 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15178 (attr_form_is_block, attr_form_is_section_offset)
15179 (attr_form_is_constant, attr_form_is_ref): Move.
15180 * dwarf2/attribute.h: New file.
15181 * dwarf2/attribute.c: New file, from dwarf2read.c.
15182 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15184 2020-02-08 Tom Tromey <tom@tromey.com>
15186 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15187 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15189 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15190 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15191 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15193 * dwarf2/abbrev.h: New file.
15194 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15195 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15197 2020-02-08 Tom Tromey <tom@tromey.com>
15199 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15200 (dwarf2_section_size, dwarf2_get_section_info)
15201 (create_signatured_type_table_from_debug_names)
15202 (create_addrmap_from_aranges, read_debug_names_from_section)
15203 (get_gdb_index_contents_from_section, read_comp_unit_head)
15204 (error_check_comp_unit_head, read_abbrev_offset)
15205 (create_debug_type_hash_table, init_cu_die_reader)
15206 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15207 (read_comp_units_from_section, create_cus_hash_table)
15208 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15209 (create_dwp_v2_section, dwarf2_rnglists_process)
15210 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15211 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15212 (read_indirect_string_from_dwz, read_addr_index_1)
15213 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15214 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15215 (fill_in_loclist_baton): Update.
15216 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15217 get_containing_section, get_bfd_owner, get_bfd_section,
15218 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15219 (dwarf2_read_section, get_section_name, get_section_file_name)
15220 (get_containing_section, get_section_bfd_owner)
15221 (get_section_bfd_section, get_section_name, get_section_file_name)
15222 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15224 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15225 (dwarf2_section_info::get_bfd_owner)
15226 (dwarf2_section_info::get_bfd_section)
15227 (dwarf2_section_info::get_name)
15228 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15229 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15230 (dwarf2_section_info::read): Now methods.
15231 * dwarf-index-write.c (class debug_names): Update.
15233 2020-02-08 Tom Tromey <tom@tromey.com>
15235 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15236 Move to dwarf2/section.h.
15237 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15238 (get_section_bfd_section, get_section_name)
15239 (get_section_file_name, get_section_id, get_section_flags)
15240 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15242 * dwarf2/section.h: New file.
15243 * dwarf2/section.c: New file, from dwarf2read.c.
15244 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15246 2020-02-08 Tom Tromey <tom@tromey.com>
15248 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15249 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15250 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15251 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15252 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15253 * dwarf2/leb.h: New file, from dwarf2read.c.
15254 * dwarf2/leb.c: New file, from dwarf2read.c.
15255 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15257 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15258 (COMMON_SFILES): Add dwarf2/leb.c.
15260 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15264 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15267 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15268 * gdb/remote.c (remote_console_output): Update.
15269 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15270 (ui_file_puts): ...this.
15271 * gdb/ui-file.h (ui_file_puts): Add declaration.
15272 * gdb/utils.c (emit_style_escape): Update.
15273 (flush_wrap_buffer): Update.
15274 (fputs_maybe_filtered): Update.
15275 (fputs_unfiltered): Add function.
15277 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15279 * gdb/event-loop.c (gdb_wait_for_event): Update.
15280 * gdb/printcmd.c (printf_command): Update.
15281 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15282 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15283 (gdb_os_flush_stderr): Update.
15284 * gdb/remote.c (remote_console_output): Update.
15285 * gdb/ui-file.c (gdb_flush): Rename to...
15286 (ui_file_flush): ...this.
15287 (stderr_file::write): Update.
15288 (stderr_file::puts): Update.
15289 * gdb/ui-file.h (gdb_flush): Rename to...
15290 (ui_file_flush): ...this.
15291 * gdb/utils.c (gdb_flush): Add function.
15292 * gdb/utils.h (gdb_flush): Add declaration.
15294 2020-02-07 Tom Tromey <tromey@adacore.com>
15296 PR breakpoints/24915:
15297 * source.c (find_and_open_source): Do not check basenames_may_differ.
15299 2020-02-07 Tom Tromey <tom@tromey.com>
15301 * README: Update gdbserver documentation.
15302 * gdbserver: Move to top level.
15303 * configure.tgt (build_gdbserver): Remove.
15304 * configure.ac: Remove --enable-gdbserver.
15305 * configure: Rebuild.
15306 * Makefile.in (distclean): Don't mention gdbserver.
15308 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15310 * source-cache.c (source_cache::ensure): Surround
15311 get_plain_source_lines with a try/catch.
15312 (source_cache::get_line_charpos): Get rid of try/catch
15313 and only check for the return value of "ensure".
15314 * tui/tui-source.c (tui_source_window::set_contents):
15315 Simplify "nlines" calculation.
15317 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15319 * MAINTAINERS (Write After Approval): Add myself.
15321 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15323 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15326 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15328 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15330 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15332 * nat/riscv-linux-tdesc.h: New file.
15333 * nat/riscv-linux-tdesc.c: New file, taking code from...
15334 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15336 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15339 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15341 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15342 we don't set the fake simulator ptid to the null_ptid.
15344 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15346 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15347 * gdbthread.h (class thread_info) <resumed>: Likewise.
15348 * infrun.c (resume_1): Likewise.
15349 (proceed): Likewise.
15350 (infrun_thread_stop_requested): Likewise.
15351 (stop_all_threads): Likewise.
15352 (handle_inferior_event): Likewise.
15353 (restart_threads): Likewise.
15354 (finish_step_over): Likewise.
15355 (keep_going_stepped_thread): Likewise.
15356 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15357 (linux_handle_extended_wait): Likewise.
15358 * record-btrace.c (get_thread_current_frame_id): Likewise.
15359 * record-full.c (record_full_wait_1): Likewise.
15360 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15361 * target.c (target_resume): Likewise.
15362 * thread.c (set_running_thread): Likewise.
15364 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15366 * f-valprint.c (f77_print_array_1): Changed datatype of index
15367 variable to LONGEST from int to enable it to contain bound
15370 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15372 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15373 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15374 offsets according to FLEN determined.
15375 (riscv_linux_nat_target::read_description): Determine FLEN
15377 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15378 according to FLEN determined.
15379 (riscv_linux_nat_target::store_registers): Likewise.
15381 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15383 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15384 when reg->group is empty and reggroup is not.
15386 2020-01-31 Tom Tromey <tromey@adacore.com>
15388 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15389 Call beneath target's mourn_inferior after unpushing.
15391 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15394 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15395 have enough lines to fill the screen, still return the lowest
15398 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15400 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15401 '-', '<', and '>' commands.
15403 2020-01-29 Pedro Alves <palves@redhat.com>
15404 Sergio Durigan Junior <sergiodj@redhat.com>
15406 * infcmd.c (construct_inferior_arguments): Assert that
15407 'argc' is greater than 0.
15409 2020-01-29 Luis Machado <luis.machado@linaro.org>
15411 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15412 (BRK_INSN_MASK): Define to 0xd4200000.
15413 (aarch64_program_breakpoint_here_p): New function.
15414 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15415 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15417 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15419 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15420 call gdbarch_program_breakpoint_here_p.
15421 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15422 default_program_breakpoint_here_p, changed return type to bool and
15424 * breakpoint.h (program_breakpoint_here): Moved prototype to
15425 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15426 return type to bool.
15427 * gdbarch.c: Regenerate.
15428 * gdbarch.h: Regenerate.
15429 * gdbarch.sh (program_breakpoint_here_p): New method.
15430 * infrun.c (handle_signal_stop): Call
15431 gdbarch_program_breakpoint_here_p.
15433 2020-01-26 Tom Tromey <tom@tromey.com>
15435 * ctfread.c (struct ctf_fp_info): Reindent.
15436 (_initialize_ctfread): Remove.
15438 2020-01-26 Tom Tromey <tom@tromey.com>
15440 * psymtab.c (partial_map_expand_apply)
15441 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15442 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15443 (psym_print_stats, psym_expand_symtabs_for_function)
15444 (psym_map_symbol_filenames, psym_map_matching_symbols)
15445 (psym_expand_symtabs_matching)
15446 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15447 (maintenance_check_psymtabs): Use new methods.
15448 * psympriv.h (struct partial_symtab) <readin_p,
15449 get_compunit_symtab>: New methods.
15450 <readin, compunit_symtab>: Remove members.
15451 (struct standard_psymtab): New.
15452 (struct legacy_psymtab): Derive from standard_psymtab.
15453 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15455 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15457 2020-01-26 Tom Tromey <tom@tromey.com>
15459 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15460 read_dependencies. Add assert.
15461 * psymtab.c (partial_symtab::read_dependencies): New method.
15462 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15464 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15465 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15467 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15470 2020-01-26 Tom Tromey <tom@tromey.com>
15472 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15473 Call expand_psymtab.
15474 (xcoff_read_symtab): Call expand_psymtab.
15475 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15476 legacy_expand_psymtab.
15477 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15479 (struct legacy_psymtab) <expand_psymtab>: Implement.
15480 <legacy_expand_psymtab>: New member.
15481 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15482 (parse_partial_symbols): Set legacy_expand_psymtab.
15483 (psymtab_to_symtab_1): Change argument order. Call
15485 (new_psymtab): Set legacy_expand_psymtab.
15486 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15487 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15489 (dwarf2_psymtab::expand_psymtab): Rename from
15490 psymtab_to_symtab_1. Call expand_psymtab.
15491 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15492 (dbx_end_psymtab): Likewise.
15493 (dbx_psymtab_to_symtab_1): Change argument order. Call
15495 (dbx_read_symtab): Call expand_psymtab.
15496 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15497 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15498 (ctf_psymtab::read_symtab): Call expand_psymtab.
15500 2020-01-26 Tom Tromey <tom@tromey.com>
15502 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15503 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15505 * mdebugread.c (mdebug_read_symtab): Remove prints.
15506 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15508 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15510 2020-01-26 Tom Tromey <tom@tromey.com>
15512 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15513 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15514 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15516 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15517 * psymtab.c (psymtab_to_symtab): Call method.
15518 (dump_psymtab): Update.
15519 * psympriv.h (struct partial_symtab): Add virtual destructor.
15520 <read_symtab>: New method.
15521 (struct legacy_symtab): New.
15522 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15523 (struct pst_map) <pst>: Now a legacy_psymtab.
15524 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15525 (new_psymtab): Use legacy_psymtab.
15526 * dwarf2read.h (struct dwarf2_psymtab): New.
15527 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15528 * dwarf2read.c (dwarf2_create_include_psymtab)
15529 (dwarf2_build_include_psymtabs, create_type_unit_group)
15530 (create_partial_symtab, process_psymtab_comp_unit_reader)
15531 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15532 (set_partial_user): Use dwarf2_psymtab.
15533 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15534 (psymtab_to_symtab_1, process_full_comp_unit)
15535 (process_full_type_unit, dwarf2_ranges_read)
15536 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15537 (dwarf_decode_lines): Use dwarf2_psymtab.
15538 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15539 (add_address_entry_worker, write_one_signatured_type)
15540 (recursively_count_psymbols, recursively_write_psymbols)
15541 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15542 (write_debug_names): Likewise.
15543 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15544 <pst>: Now a legacy_psymtab.
15545 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15546 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15547 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15548 * ctfread.c (struct ctf_psymtab): New.
15549 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15551 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15552 (create_partial_symtab): Return a ctf_psymtab.
15553 (scan_partial_symbols): Update.
15555 2020-01-26 Tom Tromey <tom@tromey.com>
15557 * xcoffread.c (xcoff_start_psymtab): Use new.
15558 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15559 renamed from start_psymtab_common.
15560 * psympriv.h (struct partial_symtab): Add new constructor.
15561 (start_psymtab_common): Don't declare.
15562 * mdebugread.c (parse_partial_symbols): Use new.
15563 * dwarf2read.c (create_partial_symtab): Use new.
15564 * dbxread.c (start_psymtab): Use new.
15565 * ctfread.c (create_partial_symtab): Use new.
15567 2020-01-26 Tom Tromey <tom@tromey.com>
15569 * xcoffread.c (xcoff_end_psymtab): Use new.
15570 * psymtab.c (start_psymtab_common): Use new.
15571 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15573 * psympriv.h (struct partial_symtab): Add parameters to
15574 constructor. Don't inline.
15575 (allocate_psymtab): Don't declare.
15576 * mdebugread.c (new_psymtab): Use new.
15577 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15578 * dbxread.c (dbx_end_psymtab): Use new.
15580 2020-01-26 Tom Tromey <tom@tromey.com>
15582 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15583 allocate_psymtab. Update documentation.
15584 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15585 allocate_psymtab. Do not use new.
15586 (allocate_psymtab): Use new. Update.
15588 2020-01-26 Tom Tromey <tom@tromey.com>
15590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15591 * psymtab.c (psym_print_stats): Update.
15592 * psympriv.h (struct partial_symtab) <readin,
15593 psymtabs_addrmap_supported, anonymous>: Now bool.
15594 * mdebugread.c (psymtab_to_symtab_1): Update.
15595 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15596 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15597 (process_full_comp_unit, process_full_type_unit): Update.
15598 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15599 * ctfread.c (psymtab_to_symtab): Update.
15601 2020-01-26 Tom Tromey <tom@tromey.com>
15603 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15604 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15605 * psymtab.c (psymtab_storage): Delete psymtabs.
15606 (psymtab_storage::allocate_psymtab): Use new.
15607 (psymtab_storage::discard_psymtab): Use delete.
15608 * psympriv.h (struct partial_symtab): Add constructor and
15611 2020-01-26 Tom Tromey <tom@tromey.com>
15613 * machoread.c: Do not include psympriv.h.
15615 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15617 * NEWS: Mention the new option and the set/show commands.
15619 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15621 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15622 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15623 (validate_exec_file): New variables, enums, functions.
15624 (exec_file_locate_attach, print_section_info): Style the filenames.
15625 (_initialize_exec): Install show_exec_file_mismatch_command and
15626 set_exec_file_mismatch_command.
15627 * gdbcore.h (validate_exec_file): Declare.
15628 * infcmd.c (attach_command): Call validate_exec_file.
15629 * remote.c ( remote_target::remote_add_inferior): Likewise.
15631 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15633 * frame.c (find_frame_sal): Move call to get_next_frame into more
15635 * inline-frame.c (inilne_state) <inline_state>: Update argument
15637 (inilne_state) <skipped_symbol>: Rename to...
15638 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15639 (skip_inline_frames): Build vector of skipped symbols and use this
15640 to reate the inline_state.
15641 (inline_skipped_symbol): Add a comment and some assertions, fetch
15642 skipped symbol from the list.
15644 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15646 * buildsym.c (lte_is_less_than): Delete.
15647 (buildsym_compunit::end_symtab_with_blockvector): Create local
15648 lambda function to sort line table entries, and use
15649 std::stable_sort instead of std::sort.
15650 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15651 markers when looking for a previous line.
15653 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15655 * dwarf2read.c (lnp_state_machine::record_line): Include
15656 end_sequence parameter in debug print out. Record the line if we
15657 are at an end_sequence marker even if it's not the start of a
15659 * symmisc.c (maintenance_print_one_line_table): Print end of
15660 sequence markers with 'END' not '0'.
15662 2020-01-24 Pedro Alves <palves@redhat.com>
15665 * thread.c (scoped_restore_current_thread::restore): Use
15666 switch_to_inferior_no_thread.
15667 * exec.c: Include "progspace-and-thread.h".
15668 (add_target_sections, remove_target_sections):
15669 scoped_restore_current_pspace_and_thread instead of
15670 scoped_restore_current_thread.
15671 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15672 and aspace to the inferior before calling clone_program_space.
15673 Remove stale comment.
15675 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15677 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15678 (arm_netbsd_nat_target::fetch_registers): ...this.
15679 (arm_nbsd_nat_target::store_registers): Rename to...
15680 (arm_netbsd_nat_target::store_registers): ...this.
15682 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15684 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15687 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15689 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15691 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15693 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15694 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15695 the correct replacement (iterate_over_regset_sections).
15696 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15699 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15702 * gdb/python/python.c (execute_gdb_command): Call
15703 async_enable_stdin in catch block.
15705 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15707 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15708 SWITCH_THRU_ALL_UIS.
15710 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15713 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15714 comment, add extra parameter, and update to store previous symbol
15716 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15717 add extra parameter.
15718 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15719 remove unneeded parameter, add try/catch around gdb_print_insn,
15720 rewrite to add items to asm_lines vector.
15721 (tui_find_backward_disassembly_start_address): New function.
15722 (tui_find_disassembly_address): Updated throughout.
15723 (tui_disasm_window::set_contents): Update for changes to
15725 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15726 number of lines to scroll.
15728 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15730 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15731 (SECT_OFF_DATA): Likewise.
15732 (SECT_OFF_RODATA): Likewise.
15733 (SECT_OFF_TEXT): Likewise.
15734 (SECT_OFF_BSS): Likewise.
15735 (struct objfile) <text_section_offset, data_section_offset>: New
15737 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15738 objfile::text_section_offset.
15739 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15740 * coffread.c (coff_symtab_read): Likewise.
15741 (enter_linenos): Likewise.
15742 (process_coff_symbol): Likewise.
15743 * ctfread.c (get_objfile_text_range): Likewise.
15744 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15745 Use objfile::data_section_offset.
15746 * dwarf2-frame.c (execute_cfa_program): Use
15747 objfile::text_section_offset.
15748 (dwarf2_frame_find_fde): Likewise.
15749 * dwarf2read.c (create_addrmap_from_index): Likewise.
15750 (create_addrmap_from_aranges): Likewise.
15751 (dw2_find_pc_sect_compunit_symtab): Likewise.
15752 (process_psymtab_comp_unit_reader): Likewise.
15753 (add_partial_symbol): Likewise.
15754 (add_partial_subprogram): Likewise.
15755 (process_full_comp_unit): Likewise.
15756 (read_file_scope): Likewise.
15757 (read_func_scope): Likewise.
15758 (read_lexical_block_scope): Likewise.
15759 (read_call_site_scope): Likewise.
15760 (dwarf2_rnglists_process): Likewise.
15761 (dwarf2_ranges_process): Likewise.
15762 (dwarf2_ranges_read): Likewise.
15763 (dwarf_decode_lines_1): Likewise.
15764 (new_symbol): Likewise.
15765 (dwarf2_fetch_die_loc_sect_off): Likewise.
15766 (dwarf2_per_cu_text_offset): Likewise.
15767 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15768 * hppa-tdep.c (read_unwind_info): Likewise.
15769 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15770 * psympriv.h (struct partial_symtab): Likewise.
15771 * psymtab.c (find_pc_sect_psymtab): Likewise.
15772 * solib-svr4.c (enable_break): Likewise.
15773 * stap-probe.c (relocate_address): Use
15774 objfile::data_section_offset.
15775 * xcoffread.c (enter_line_range): Use
15776 objfile::text_section_offset.
15777 (read_xcoff_symtab): Likewise.
15779 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15781 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15782 declaration to narrower scopes.
15784 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15786 * darwin-nat.h (struct darwin_exception_msg, enum
15787 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15789 (class darwin_nat_target) <wait_1, check_new_threads,
15790 decode_exception_message, decode_message, stop_inferior,
15791 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15792 * darwin-nat.c (darwin_check_new_threads): Rename to...
15793 (darwin_nat_target::check_new_threads): ... this.
15794 (darwin_suspend_inferior_it): Remove.
15795 (darwin_decode_exception_message): Rename to...
15796 (darwin_nat_target::decode_exception_message): ... this.
15797 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15798 (darwin_decode_message): Rename to...
15799 (darwin_nat_target::decode_message): ... this.
15800 (cancel_breakpoint): Rename to...
15801 (darwin_nat_target::cancel_breakpoint): ... this.
15802 (darwin_wait): Rename to...
15803 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15804 instead of iterate_over_inferiors.
15805 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15806 (darwin_stop_inferior): Rename to...
15807 (darwin_nat_target::stop_inferior): ... this.
15808 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15809 (darwin_init_thread_list): Rename to...
15810 (darwin_nat_target::init_thread_list): ... this.
15811 (darwin_ptrace_him): Rename to...
15812 (darwin_nat_target::ptrace_him): ... this.
15813 (darwin_nat_target::create_inferior): Pass lambda function to
15815 (darwin_nat_target::detach): Call stop_inferior instead of
15816 darwin_stop_inferior.
15817 * fork-inferior.h (fork_inferior): Change init_trace_fun
15818 parameter to gdb::function_view.
15819 * fork-inferior.c (fork_inferior): Likewise.
15821 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15823 * i386-cygwin-tdep.c (core_process_module_section): Update.
15824 * windows-nat.c (struct lm_info_windows): Add text_offset.
15825 (windows_xfer_shared_libraries): Update.
15826 * windows-tdep.c (windows_xfer_shared_library):
15827 Add text_offset_cached argument.
15828 * windows-tdep.h (windows_xfer_shared_library): Update.
15830 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15832 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15834 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15836 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15837 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15838 replace with range-based for.
15839 (gdbsim_interrupt_inferior): Remove.
15840 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15841 with a range-based for. Inline code from
15842 gdbsim_interrupt_inferior.
15844 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15846 * infrun.c (proceed): Fix indentation.
15848 2020-01-21 Tom Tromey <tromey@adacore.com>
15850 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15851 * python/python.c (python_extension_ops): Update.
15852 (gdbpy_colorize): New function.
15853 * python/lib/gdb/__init__.py (colorize): New function.
15854 * extension.h (ext_lang_colorize): Declare.
15855 * extension.c (ext_lang_colorize): New function.
15856 * extension-priv.h (struct extension_language_ops) <colorize>: New
15858 * cli/cli-style.c (_initialize_cli_style): Update help text.
15860 2020-01-21 Luis Machado <luis.machado@linaro.org>
15862 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15863 <cond>: Change type to bool.
15864 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15865 (aarch64_displaced_step_cb): Likewise.
15866 (aarch64_displaced_step_tb): Likewise.
15868 2020-01-21 Luis Machado <luis.machado@linaro.org>
15870 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15873 2020-01-21 Luis Machado <luis.machado@linaro.org>
15875 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15876 <pc_adjust>: Adjust the documentation.
15877 (aarch64_displaced_step_fixup): Check if PC really moved before
15880 2020-01-19 Tom Tromey <tom@tromey.com>
15882 * disasm.c (~gdb_disassembler): New destructor.
15883 (gdb_buffered_insn_length): Call disassemble_free_target.
15884 * disasm.h (class gdb_disassembler): Declare destructor. Use
15885 DISABLE_COPY_AND_ASSIGN.
15887 2020-01-19 Tom Tromey <tom@tromey.com>
15889 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15890 (die_reader_func_ftype): Remove.
15891 (cutu_reader): New class.
15892 (dw2_get_file_names_reader): Remove "data" parameter.
15893 (dw2_get_file_names): Use cutu_reader.
15894 (create_debug_type_hash_table): Update.
15895 (read_cutu_die_from_dwo): Update comment.
15896 (lookup_dwo_unit): Add dwo_name parameter.
15897 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15898 die_reader_func_ftype and data parameters.
15899 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15900 Remove die_reader_func_ftype and data parameters.
15901 (~cutu_reader): New; from init_cutu_and_read_dies.
15902 (cutu_reader::cutu_reader): Rename from
15903 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15904 and data parameters.
15905 (init_cutu_and_read_dies_simple): Remove.
15906 (struct process_psymtab_comp_unit_data): Remove.
15907 (process_psymtab_comp_unit_reader): Remove data parameter; add
15908 want_partial_unit and pretend_language parameters.
15909 (process_psymtab_comp_unit): Use cutu_reader.
15910 (build_type_psymtabs_reader): Remove data parameter.
15911 (build_type_psymtabs_1): Use cutu_reader.
15912 (process_skeletonless_type_unit): Likewise.
15913 (load_partial_comp_unit_reader): Remove.
15914 (load_partial_comp_unit): Use cutu_reader.
15915 (load_full_comp_unit_reader): Remove.
15916 (load_full_comp_unit): Use cutu_reader.
15917 (struct create_dwo_cu_data): Remove.
15918 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15919 dwo_unit parameters.
15920 (create_cus_hash_table): Use cutu_reader.
15921 (struct dwarf2_read_addr_index_data): Remove.
15922 (dwarf2_read_addr_index_reader): Remove.
15923 (dwarf2_read_addr_index): Use cutu_reader.
15924 (read_signatured_type_reader): Remove.
15925 (read_signatured_type): Use cutu_reader.
15927 2020-01-19 Tom Tromey <tom@tromey.com>
15929 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15930 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15931 (tui_wrefresh): Declare.
15932 * tui/tui-wingeneral.c (suppress_output): New global.
15933 (tui_suppress_output, ~tui_suppress_output): New constructor and
15935 (tui_wrefresh): New function.
15936 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15937 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15938 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15940 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15942 (tui_data_window::no_refresh): New method.
15943 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15944 (tui_reg_command): Use tui_suppress_output
15945 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15946 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15948 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15950 2020-01-19 Tom Tromey <tom@tromey.com>
15952 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15953 Handle case where symtab is null.
15955 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15957 * linux-fork.c (one_fork_p): Simplify.
15959 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15961 * top.c (struct qt_args): Remove.
15962 (kill_or_detach): Change return type to void, replace `void *`
15963 parameter with a proper one.
15964 (print_inferior_quit_action): Likewise.
15965 (quit_confirm): Use range-based for loop to iterate over inferiors.
15966 (quit_force): Likewise.
15968 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15970 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15971 `void *` parameter with proper parameters.
15972 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15973 (print_one_inferior): Change return type to void, replace `void *`
15974 parameter with proper parameters.
15975 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15977 (get_other_inferior): Remove.
15978 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15981 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15983 * mi/mi-interp.c (report_initial_inferior): Remove.
15984 (mi_interp::init): Use range-based for to iterate over inferiors.
15986 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15988 * python/py-inferior.c (build_inferior_list): Remove.
15989 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15991 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15993 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15994 (btrace_stitch_trace): Likewise.
15995 * charset.c (intermediate_encoding): Likewise (vaild).
15996 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15997 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15998 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16000 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16002 * windows-tdep.c (windows_get_tlb_type):
16003 Add rtl_user_process_parameters type.
16005 2020-01-16 Pedro Alves <palves@redhat.com>
16006 Norbert Lange <nolange79@gmail.com>
16009 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16010 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16011 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16012 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16013 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16014 (ps_plog): Redeclare exported functions with default visibility.
16016 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16018 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16019 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16021 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16023 * infcmd.c (post_create_inferior): Use get_thread_regcache
16024 instead of get_current_regcache.
16026 2020-01-14 Tom Tromey <tom@tromey.com>
16029 * python/python.c (gdbpy_decode_line): Treat empty string the same
16032 2020-01-14 Tom Tromey <tom@tromey.com>
16034 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16036 2020-01-14 Tom Tromey <tom@tromey.com>
16038 * nat/linux-btrace.c: Don't include <config.h>.
16039 * nat/linux-ptrace.c: Don't include <config.h>.
16040 * nat/x86-linux-dregs.c: Don't include <config.h>.
16042 2020-01-14 Tom Tromey <tom@tromey.com>
16044 * configure: Rebuild.
16045 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16047 2020-01-14 Tom Tromey <tom@tromey.com>
16049 * nat/x86-linux-dregs.c: Include configh.h.
16050 * nat/linux-ptrace.c: Include configh.h.
16051 * nat/linux-btrace.c: Include configh.h.
16052 * defs.h: Include config.h, bfd.h.
16053 * configure.ac: Don't source common.host.
16054 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16055 * configure: Rebuild.
16056 * acinclude.m4: Update path.
16057 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16058 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16059 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16060 (CLIBS): Add LIBSUPPORT.
16062 (COMMON_SFILES): Remove gdbsupport files.
16063 (HFILES_NO_SRCDIR): Likewise.
16064 (stamp-version): Update path to create-version.sh.
16065 (ALLDEPFILES): Remove gdbsupport files.
16067 2020-01-14 Tom Tromey <tom@tromey.com>
16069 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16070 USE_WIN32API when needed.
16071 * configure.ac (USE_WIN32API): Don't define.
16072 (WIN32LIBS): Use WIN32APILIBS.
16073 * configure: Rebuild.
16075 2020-01-14 Tom Tromey <tom@tromey.com>
16077 * configure: Rebuild.
16078 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16080 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16082 * skip.c (skip_function_command): Make skip w/o arguments use the
16083 name of the inlined function if pc is inside any inlined function.
16085 2020-01-14 Luis Machado <luis.machado@linaro.org>
16087 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16088 * infrun.c (resume_1): Likewise.
16089 (handle_inferior_event): Remove stale comment.
16090 * linux-nat.c (linux_nat_target::resume): Update comments.
16091 (save_stop_reason): Likewise.
16092 (linux_nat_filter_event): Likewise.
16093 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16095 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16097 * elfread.c (record_minimal_symbol): Set section index to 0 for
16098 non-allocatable sections.
16101 2020-01-13 Ali Tamur <tamur@google.com>
16103 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16104 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16105 to gdb::optional. Update comments.
16106 (dwo_file): Update comments.
16107 (read_attribute): Update API to take an additional out parameter,
16108 need_reprocess. This is used to mark attributes that need other
16109 attributes (e.g. str_offsets_base) for correct computation which may not
16110 have been read yet.
16111 (read_attribute_reprocess): New function declaration.
16112 (read_addr_index): Likewise.
16113 (read_dwo_str_index): Likewise.
16114 (read_stub_str_index): Likewise.
16115 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16116 (lookup_addr_base): New function definition.
16117 (lookup_ranges_base): Likewise.
16118 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16119 lookup_ranges_base.
16120 (init_cutu_and_read_dies): Update comments.
16121 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16122 unit. This is used to inherit parent's str_offsets_base and addr_base.
16124 (init_cutu_and_read_dies_simple): Reflect API changes.
16125 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16126 (create_cus_hash_table): Change API to take parent compile unit.
16127 Reflect API changes.
16128 (open_and_init_dwo_file): Reflect API changes.
16129 (dwarf2_get_pc_bounds): Update comments.
16130 (dwarf2_record_block_ranges): Likewise.
16131 (read_full_die_1): Change implementation to reprocess attributes that
16132 need str_offsets_base and addr_base.
16133 (partial_die_info::read): Likewise.
16134 (read_attribute_reprocess): New function definition.
16135 (read_attribute_value): Change API to take an additional out parameter,
16136 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16137 when a non-dwo compile unit has index based attributes.
16138 (read_attribute): Reflect API changes.
16139 (read_addr_index_1): Reflect API changes. Update comments.
16140 (dwarf2_read_addr_index_data): Reflect API changes.
16141 (dwarf2_read_addr_index): Likewise.
16142 (read_str_index): Change API and implementation. This becomes a helper
16143 to be used by the new string index related methods. Update error
16144 message and comments.
16145 (read_dwo_str_index): New function definition.
16146 (read_stub_str_index): Likewise.
16147 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16148 * symfile.h (dwarf2_debug_sections): Likewise.
16149 * xcoffread.c (dwarf2_debug_sections): Likewise.
16151 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16153 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16154 core_reg_sect type to gdb_byte *.
16155 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16156 * cris-tdep.c (fetch_core_registers): Likewise.
16157 * corelow.c (core_target::get_core_register_section): Change
16158 type of `contents` to gdb::byte_vector.
16160 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16162 * tui/tui-wingeneral.c (box_win): Position the title in the center
16165 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16167 * corelow.c (core_target::get_core_register_section): Use
16168 std::vector instead of alloca.
16170 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16172 * warning.m4: Add -Wmissing-declarations to build_warnings.
16173 * configure: Re-generate.
16175 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16177 * python/python.c (init__gdb_module): Add declaration.
16179 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16181 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16182 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16183 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16184 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16185 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16186 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16187 * ada-exp.y (_initialize_ada_exp): Add declaration.
16188 * ada-lang.c (_initialize_ada_language): Add declaration.
16189 * ada-tasks.c (_initialize_tasks): Add declaration.
16190 * agent.c (_initialize_agent): Add declaration.
16191 * aix-thread.c (_initialize_aix_thread): Add declaration.
16192 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16193 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16194 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16195 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16196 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16197 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16198 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16199 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16200 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16201 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16202 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16203 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16204 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16205 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16206 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16207 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16208 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16209 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16210 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16211 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16212 * annotate.c (_initialize_annotate): Add declaration.
16213 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16214 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16215 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16216 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16217 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16218 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16219 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16220 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16221 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16222 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16223 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16224 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16225 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16226 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16227 * auto-load.c (_initialize_auto_load): Add declaration.
16228 * auxv.c (_initialize_auxv): Add declaration.
16229 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16230 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16231 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16232 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16233 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16234 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16235 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16236 * breakpoint.c (_initialize_breakpoint): Add declaration.
16237 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16238 * btrace.c (_initialize_btrace): Add declaration.
16239 * charset.c (_initialize_charset): Add declaration.
16240 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16241 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16242 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16243 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16244 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16245 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16246 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16247 * coffread.c (_initialize_coffread): Add declaration.
16248 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16249 * compile/compile.c (_initialize_compile): Add declaration.
16250 * complaints.c (_initialize_complaints): Add declaration.
16251 * completer.c (_initialize_completer): Add declaration.
16252 * copying.c (_initialize_copying): Add declaration.
16253 * corefile.c (_initialize_core): Add declaration.
16254 * corelow.c (_initialize_corelow): Add declaration.
16255 * cp-abi.c (_initialize_cp_abi): Add declaration.
16256 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16257 * cp-support.c (_initialize_cp_support): Add declaration.
16258 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16259 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16260 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16261 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16262 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16263 * ctfread.c (_initialize_ctfread): Add declaration.
16264 * d-lang.c (_initialize_d_language): Add declaration.
16265 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16266 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16267 * dbxread.c (_initialize_dbxread): Add declaration.
16268 * dcache.c (_initialize_dcache): Add declaration.
16269 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16270 * disasm.c (_initialize_disasm): Add declaration.
16271 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16272 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16273 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16274 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16275 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16276 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16277 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16278 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16279 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16280 * elfread.c (_initialize_elfread): Add declaration.
16281 * exec.c (_initialize_exec): Add declaration.
16282 * extension.c (_initialize_extension): Add declaration.
16283 * f-lang.c (_initialize_f_language): Add declaration.
16284 * f-valprint.c (_initialize_f_valprint): Add declaration.
16285 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16286 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16287 * filesystem.c (_initialize_filesystem): Add declaration.
16288 * findcmd.c (_initialize_mem_search): Add declaration.
16289 * findvar.c (_initialize_findvar): Add declaration.
16290 * fork-child.c (_initialize_fork_child): Add declaration.
16291 * frame-base.c (_initialize_frame_base): Add declaration.
16292 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16293 * frame.c (_initialize_frame): Add declaration.
16294 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16295 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16296 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16297 * gcore.c (_initialize_gcore): Add declaration.
16298 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16299 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16300 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16301 * gdbarch.c (_initialize_gdbarch): Add declaration.
16302 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16303 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16304 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16305 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16306 * go-lang.c (_initialize_go_language): Add declaration.
16307 * go32-nat.c (_initialize_go32_nat): Add declaration.
16308 * guile/guile.c (_initialize_guile): Add declaration.
16309 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16310 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16311 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16312 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16313 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16314 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16315 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16316 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16317 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16318 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16319 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16320 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16321 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16322 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16323 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16324 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16325 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16326 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16327 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16328 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16329 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16330 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16331 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16332 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16333 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16334 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16335 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16336 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16337 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16338 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16339 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16340 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16341 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16342 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16343 * infcall.c (_initialize_infcall): Add declaration.
16344 * infcmd.c (_initialize_infcmd): Add declaration.
16345 * inflow.c (_initialize_inflow): Add declaration.
16346 * infrun.c (_initialize_infrun): Add declaration.
16347 * interps.c (_initialize_interpreter): Add declaration.
16348 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16349 * jit.c (_initialize_jit): Add declaration.
16350 * language.c (_initialize_language): Add declaration.
16351 * linux-fork.c (_initialize_linux_fork): Add declaration.
16352 * linux-nat.c (_initialize_linux_nat): Add declaration.
16353 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16354 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16355 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16356 * m2-lang.c (_initialize_m2_language): Add declaration.
16357 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16358 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16359 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16360 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16361 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16362 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16363 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16364 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16365 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16366 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16367 * machoread.c (_initialize_machoread): Add declaration.
16368 * macrocmd.c (_initialize_macrocmd): Add declaration.
16369 * macroscope.c (_initialize_macroscope): Add declaration.
16370 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16371 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16372 * maint.c (_initialize_maint_cmds): Add declaration.
16373 * mdebugread.c (_initialize_mdebugread): Add declaration.
16374 * memattr.c (_initialize_mem): Add declaration.
16375 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16376 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16377 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16378 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16379 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16380 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16381 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16382 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16383 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16384 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16385 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16386 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16387 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16388 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16389 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16390 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16391 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16392 * mipsread.c (_initialize_mipsread): Add declaration.
16393 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16394 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16395 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16396 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16397 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16398 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16399 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16400 * nto-procfs.c (_initialize_procfs): Add declaration.
16401 * objc-lang.c (_initialize_objc_language): Add declaration.
16402 * observable.c (_initialize_observer): Add declaration.
16403 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16404 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16405 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16406 * osabi.c (_initialize_gdb_osabi): Add declaration.
16407 * osdata.c (_initialize_osdata): Add declaration.
16408 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16409 * parse.c (_initialize_parse): Add declaration.
16410 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16411 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16412 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16413 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16414 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16415 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16416 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16417 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16418 * printcmd.c (_initialize_printcmd): Add declaration.
16419 * probe.c (_initialize_probe): Add declaration.
16420 * proc-api.c (_initialize_proc_api): Add declaration.
16421 * proc-events.c (_initialize_proc_events): Add declaration.
16422 * proc-service.c (_initialize_proc_service): Add declaration.
16423 * procfs.c (_initialize_procfs): Add declaration.
16424 * producer.c (_initialize_producer): Add declaration.
16425 * psymtab.c (_initialize_psymtab): Add declaration.
16426 * python/python.c (_initialize_python): Add declaration.
16427 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16428 * record-btrace.c (_initialize_record_btrace): Add declaration.
16429 * record-full.c (_initialize_record_full): Add declaration.
16430 * record.c (_initialize_record): Add declaration.
16431 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16432 * regcache.c (_initialize_regcache): Add declaration.
16433 * reggroups.c (_initialize_reggroup): Add declaration.
16434 * remote-notif.c (_initialize_notif): Add declaration.
16435 * remote-sim.c (_initialize_remote_sim): Add declaration.
16436 * remote.c (_initialize_remote): Add declaration.
16437 * reverse.c (_initialize_reverse): Add declaration.
16438 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16439 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16440 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16441 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16442 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16443 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16444 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16445 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16447 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16448 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16449 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16450 * rust-exp.y (_initialize_rust_exp): Add declaration.
16451 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16452 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16453 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16454 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16455 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16456 * score-tdep.c (_initialize_score_tdep): Add declaration.
16457 * ser-go32.c (_initialize_ser_dos): Add declaration.
16458 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16459 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16460 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16461 * ser-uds.c (_initialize_ser_socket): Add declaration.
16462 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16463 * serial.c (_initialize_serial): Add declaration.
16464 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16465 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16466 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16467 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16468 * skip.c (_initialize_step_skip): Add declaration.
16469 * sol-thread.c (_initialize_sol_thread): Add declaration.
16470 * solib-aix.c (_initialize_solib_aix): Add declaration.
16471 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16472 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16473 * solib-frv.c (_initialize_frv_solib): Add declaration.
16474 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16475 * solib-target.c (_initialize_solib_target): Add declaration.
16476 * solib.c (_initialize_solib): Add declaration.
16477 * source-cache.c (_initialize_source_cache): Add declaration.
16478 * source.c (_initialize_source): Add declaration.
16479 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16480 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16481 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16482 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16483 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16484 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16485 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16486 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16487 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16488 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16489 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16490 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16491 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16492 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16493 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16494 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16495 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16496 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16497 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16498 * stabsread.c (_initialize_stabsread): Add declaration.
16499 * stack.c (_initialize_stack): Add declaration.
16500 * stap-probe.c (_initialize_stap_probe): Add declaration.
16501 * std-regs.c (_initialize_frame_reg): Add declaration.
16502 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16503 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16504 * symfile.c (_initialize_symfile): Add declaration.
16505 * symmisc.c (_initialize_symmisc): Add declaration.
16506 * symtab.c (_initialize_symtab): Add declaration.
16507 * target.c (_initialize_target): Add declaration.
16508 * target-connection.c (_initialize_target_connection): Add
16510 * target-dcache.c (_initialize_target_dcache): Add declaration.
16511 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16512 * thread.c (_initialize_thread): Add declaration.
16513 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16514 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16515 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16516 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16517 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16518 * tracectf.c (_initialize_ctf): Add declaration.
16519 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16520 * tracefile.c (_initialize_tracefile): Add declaration.
16521 * tracepoint.c (_initialize_tracepoint): Add declaration.
16522 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16523 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16524 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16525 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16526 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16527 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16528 * tui/tui.c (_initialize_tui): Add declaration.
16529 * typeprint.c (_initialize_typeprint): Add declaration.
16530 * ui-style.c (_initialize_ui_style): Add declaration.
16531 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16532 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16533 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16534 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16535 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16536 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16537 * unittests/filtered_iterator-selftests.c
16538 (_initialize_filtered_iterator_selftests): Add declaration.
16539 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16540 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16541 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16542 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16543 * unittests/main-thread-selftests.c
16544 (_initialize_main_thread_selftests): Add declaration.
16545 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16546 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16547 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16548 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16549 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16550 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16551 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16552 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16553 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16554 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16555 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16556 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16557 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16558 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16559 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16561 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16562 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16563 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16564 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16565 * user-regs.c (_initialize_user_regs): Add declaration.
16566 * utils.c (_initialize_utils): Add declaration.
16567 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16568 * valops.c (_initialize_valops): Add declaration.
16569 * valprint.c (_initialize_valprint): Add declaration.
16570 * value.c (_initialize_values): Add declaration.
16571 * varobj.c (_initialize_varobj): Add declaration.
16572 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16573 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16574 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16575 * windows-nat.c (_initialize_windows_nat): Add declaration.
16576 (_initialize_check_for_gdb_ini): Add declaration.
16577 (_initialize_loadable): Add declaration.
16578 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16579 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16580 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16581 * xcoffread.c (_initialize_xcoffread): Add declaration.
16582 * xml-support.c (_initialize_xml_support): Add declaration.
16583 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16584 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16585 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16586 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16588 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16590 * regformats/regdat.sh: Generate declaration for init function.
16592 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16594 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16596 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16597 close_one_inferior>: New methods.
16598 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16599 pass down target to find_inferior_pid.
16600 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16601 Pass down target to find_inferior_ptid.
16602 (gdbsim_target::create_inferior): Pass down target to
16604 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16605 target down to find_inferior_ptid and switch_to_thread.
16606 (gdbsim_target::close): Update to call close_one_inferior.
16607 (struct resume_data): Remove.
16608 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16609 directly, rather than through a void pointer.
16610 (gdbsim_target::resume): Update to call resume_one_inferior.
16612 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16614 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16616 2020-01-12 Pedro Alves <palves@redhat.com>
16618 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16619 directly for the current inferior instead of
16620 discard_all_inferiors.
16621 (discard_all_inferiors): Delete.
16623 2020-01-11 Tom Tromey <tom@tromey.com>
16625 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16626 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16627 deprecated_safe_get_selected_frame.
16629 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16631 * inferior.c (print_inferior): Switch inferior before printing it.
16633 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16634 Pedro Alves <palves@redhat.com>
16636 * progspace-and-thread.c (switch_to_program_space_and_thread):
16637 Assert there's an inferior for PSPACE. Use
16638 switch_to_inferior_no_thread to switch the inferior too.
16639 * progspace.c (program_space::~program_space): Call
16640 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16641 (program_space::free_all_objfiles): Don't call clear_symtab_users
16643 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16645 2020-01-10 Pedro Alves <palves@redhat.com>
16647 * NEWS: Mention multi-target debugging, "info connections", and
16648 "add-inferior -no-connection".
16650 2020-01-10 Pedro Alves <palves@redhat.com>
16652 * infrun.c: Include "target-connection.h".
16653 (check_multi_target_resumption): New.
16654 (proceed): Call it.
16655 * target-connection.c (make_target_connection_string): Make
16657 * target-connection.h (make_target_connection_string): Declare.
16659 2020-01-10 Pedro Alves <palves@redhat.com>
16661 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16662 * inferior.c (uiout_field_connection): New function.
16663 (print_inferior): Add new "connection-id" column.
16664 (add_inferior_command): Show connection number/string of added
16666 * process-stratum-target.h
16667 (process_stratum_target::connection_string): New virtual method.
16668 (process_stratum_target::connection_number): New field.
16669 * remote.c (remote_target::connection_string): New override.
16670 * target-connection.c: New file.
16671 * target-connection.h: New file.
16672 * target.c (decref_target): Remove process_stratum targets from
16673 the connection list.
16674 (target_stack::push): Add process_stratum targets to the
16677 2020-01-10 Pedro Alves <palves@redhat.com>
16680 2016-04-12 Pedro Alves <palves@redhat.com>
16681 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16682 Remove references to name.
16683 * serial.h (struct serial) <name>: Delete.
16685 2020-01-10 Pedro Alves <palves@redhat.com>
16687 * gdbarch-selftests.c (register_to_value_test): Remove "target
16688 already pushed" check.
16690 2020-01-10 Pedro Alves <palves@redhat.com>
16691 John Baldwin <jhb@FreeBSD.org>
16693 * aarch64-linux-nat.c
16694 (aarch64_linux_nat_target::thread_architecture): Adjust.
16695 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16696 (task_command_1): Likewise.
16697 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16698 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16699 (aix_thread_target::store_registers)
16700 (aix_thread_target::thread_alive): Adjust.
16701 * amd64-fbsd-tdep.c: Include "inferior.h".
16702 (amd64fbsd_get_thread_local_address): Pass down target.
16703 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16704 thread's gdbarch instead of target_gdbarch.
16705 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16706 get_last_target_status.
16707 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16708 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16710 (update_inserted_breakpoint_locations): Skip if inferiors with no
16712 (update_global_location_list): When handling moribund locations,
16713 find representative inferior for location's pspace, and use thread
16714 count of its process_stratum target.
16715 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16716 * bsd-uthread.c (bsd_uthread_target::wait): Use
16717 as_process_stratum_target and adjust thread_change_ptid and
16719 (bsd_uthread_target::update_thread_list): Use
16720 as_process_stratum_target and adjust find_thread_ptid,
16721 thread_change_ptid and add_thread calls.
16722 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16723 find_thread_ptid call.
16724 * corelow.c (add_to_thread_list): Adjust add_thread call.
16725 (core_target_open): Adjust add_thread_silent and thread_count
16727 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16728 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16729 * event-top.c (async_disconnect): Pop targets from all inferiors.
16730 * exec.c (add_target_sections): Push exec target on all inferiors
16731 sharing the program space.
16732 (remove_target_sections): Remove the exec target from all
16733 inferiors sharing the program space.
16734 (exec_on_vfork): New.
16735 * exec.h (exec_on_vfork): Declare.
16736 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16738 (fbsd_nat_target::update_thread_list): Adjust.
16739 (fbsd_nat_target::resume): Adjust.
16740 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16742 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16743 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16744 get_thread_arch_regcache call.
16745 * fork-child.c (gdb_startup_inferior): Pass target down to
16746 startup_inferior and set_executing.
16747 * gdbthread.h (struct process_stratum_target): Forward declare.
16748 (add_thread, add_thread_silent, add_thread_with_info)
16749 (in_thread_list): Add process_stratum_target parameter.
16750 (find_thread_ptid(inferior*, ptid_t)): New overload.
16751 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16753 (all_threads()): Delete overload.
16754 (all_threads, all_non_exited_threads): Add process_stratum_target
16756 (all_threads_safe): Use brace initialization.
16757 (thread_count): Add process_stratum_target parameter.
16758 (set_resumed, set_running, set_stop_requested, set_executing)
16759 (threads_are_executing, finish_thread_state): Add
16760 process_stratum_target parameter.
16761 (switch_to_thread): Use is_current_thread.
16762 * i386-fbsd-tdep.c: Include "inferior.h".
16763 (i386fbsd_get_thread_local_address): Pass down target.
16764 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16765 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16766 have_inferiors check.
16767 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16768 (inf_ptrace_target::attach): Adjust.
16769 * infcall.c (run_inferior_call): Adjust.
16770 * infcmd.c (run_command_1): Pass target to
16771 scoped_finish_thread_state.
16772 (proceed_thread_callback): Skip inferiors with no execution.
16773 (continue_command): Rename 'all_threads' local to avoid hiding
16774 'all_threads' function. Adjust get_last_target_status call.
16775 (prepare_one_step): Adjust set_running call.
16776 (signal_command): Use user_visible_resume_target. Compare thread
16777 pointers instead of inferior_ptid.
16778 (info_program_command): Adjust to pass down target.
16779 (attach_command): Mark target's 'thread_executing' flag.
16780 (stop_current_target_threads_ns): New, factored out from ...
16781 (interrupt_target_1): ... this. Switch inferior before making
16784 (struct all_inferiors_iterator, struct all_inferiors_range)
16785 (struct all_inferiors_safe_range)
16786 (struct all_non_exited_inferiors_range): Filter on
16787 process_stratum_target too. Remove explicit.
16788 * inferior.c (inferior::inferior): Push dummy target on target
16790 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16791 Add process_stratum_target parameter, and pass it down.
16792 (have_live_inferiors): Adjust.
16793 (switch_to_inferior_and_push_target): New.
16794 (add_inferior_command, clone_inferior_command): Handle
16795 "-no-connection" parameter. Use
16796 switch_to_inferior_and_push_target.
16797 (_initialize_inferior): Mention "-no-connection" option in
16798 the help of "add-inferior" and "clone-inferior" commands.
16799 * inferior.h: Include "process-stratum-target.h".
16800 (interrupt_target_1): Use bool.
16801 (struct inferior) <push_target, unpush_target, target_is_pushed,
16802 find_target_beneath, top_target, process_target, target_at,
16804 (discard_all_inferiors): Delete.
16805 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16806 (all_inferiors, all_non_exited_inferiors): Add
16807 process_stratum_target parameter.
16808 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16809 (target_last_proc_target): New global.
16810 (follow_fork_inferior): Push target on new inferior. Pass target
16811 to add_thread_silent. Call exec_on_vfork. Handle target's
16813 (follow_fork): Adjust get_last_target_status call. Also consider
16815 (follow_exec): Push target on new inferior.
16816 (struct execution_control_state) <target>: New field.
16817 (user_visible_resume_target): New.
16818 (do_target_resume): Call target_async.
16819 (resume_1): Set target's threads_executing flag. Consider resume
16821 (commit_resume_all_targets): New.
16822 (proceed): Also consider resume target. Skip threads of inferiors
16823 with no execution. Commit resumtion in all targets.
16824 (start_remote): Pass current inferior to wait_for_inferior.
16825 (infrun_thread_stop_requested): Consider target as well. Pass
16826 thread_info pointer to clear_inline_frame_state instead of ptid.
16827 (infrun_thread_thread_exit): Consider target as well.
16828 (random_pending_event_thread): New inferior parameter. Use it.
16829 (do_target_wait): Rename to ...
16830 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16832 (threads_are_resumed_pending_p, do_target_wait): New.
16833 (prepare_for_detach): Adjust calls.
16834 (wait_for_inferior): New inferior parameter. Handle it. Use
16835 do_target_wait_1 instead of do_target_wait.
16836 (fetch_inferior_event): Adjust. Switch to representative
16837 inferior. Pass target down.
16838 (set_last_target_status): Add process_stratum_target parameter.
16839 Save target in global.
16840 (get_last_target_status): Add process_stratum_target parameter and
16842 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16843 (context_switch): Check inferior_ptid == null_ptid before calling
16845 (get_inferior_stop_soon): Pass down target.
16846 (wait_one): Rename to ...
16847 (poll_one_curr_target): ... this.
16848 (struct wait_one_event): New.
16850 (stop_all_threads): Adjust.
16851 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16853 (switch_back_to_stepped_thread): Also consider target.
16854 (print_stop_event): Update.
16855 (normal_stop): Update. Also consider the resume target.
16856 * infrun.h (wait_for_inferior): Remove declaration.
16857 (user_visible_resume_target): New declaration.
16858 (get_last_target_status, set_last_target_status): New
16859 process_stratum_target parameter.
16860 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16861 process_stratum_target parameter, and use it.
16862 (clear_inline_frame_state (thread_info*)): New.
16863 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16864 process_stratum_target parameter.
16865 (clear_inline_frame_state (thread_info*)): Declare.
16866 * linux-fork.c (delete_checkpoint_command): Pass target down to
16868 (checkpoint_command): Adjust.
16869 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16870 instead of just tweaking inferior_ptid.
16871 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16872 (exit_lwp): Pass target down to find_thread_ptid.
16873 (attach_proc_task_lwp_callback): Pass target down to
16874 add_thread/set_running/set_executing.
16875 (linux_nat_target::attach): Pass target down to
16876 thread_change_ptid.
16877 (get_detach_signal): Pass target down to find_thread_ptid.
16878 Consider last target status's target.
16879 (linux_resume_one_lwp_throw, resume_lwp)
16880 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16881 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16882 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16883 (linux_nat_target::async_wait_fd): New.
16884 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16886 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16887 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16888 * linux-thread-db.c (struct thread_db_info::process_target): New
16890 (add_thread_db_info): Save target.
16891 (get_thread_db_info): New process_stratum_target parameter. Also
16893 (delete_thread_db_info): New process_stratum_target parameter.
16895 (thread_from_lwp): Adjust to pass down target.
16896 (thread_db_notice_clone): Pass down target.
16897 (check_thread_db_callback): Pass down target.
16898 (try_thread_db_load_1): Always push the thread_db target.
16899 (try_thread_db_load, record_thread): Pass target down.
16900 (thread_db_target::detach): Pass target down. Always unpush the
16902 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16903 target down. Always unpush the thread_db target.
16904 (find_new_threads_callback, thread_db_find_new_threads_2)
16905 (thread_db_target::update_thread_list): Pass target down.
16906 (thread_db_target::pid_to_str): Pass current inferior down.
16907 (thread_db_target::get_thread_local_address): Pass target down.
16908 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16910 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16911 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16912 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16913 (procfs_init_inferior): Rename to ...
16914 (procfs_target::procfs_init_inferior): ... this and adjust.
16915 (procfs_target::create_inferior, procfs_notice_thread)
16916 (procfs_do_thread_registers): Adjust.
16917 * ppc-fbsd-tdep.c: Include "inferior.h".
16918 (ppcfbsd_get_thread_local_address): Pass down target.
16919 * proc-service.c (ps_xfer_memory): Switch current inferior and
16920 program space as well.
16921 (get_ps_regcache): Pass target down.
16922 * process-stratum-target.c
16923 (process_stratum_target::thread_address_space)
16924 (process_stratum_target::thread_architecture): Pass target down.
16925 * process-stratum-target.h
16926 (process_stratum_target::threads_executing): New field.
16927 (as_process_stratum_target): New.
16928 * ravenscar-thread.c
16929 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16930 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16932 * record-btrace.c (record_btrace_target::info_record): Adjust.
16933 (record_btrace_target::record_method)
16934 (record_btrace_target::record_is_replaying)
16935 (record_btrace_target::fetch_registers)
16936 (get_thread_current_frame_id, record_btrace_target::resume)
16937 (record_btrace_target::wait, record_btrace_target::stop): Pass
16939 * record-full.c (record_full_wait_1): Switch to event thread.
16941 * regcache.c (regcache::regcache)
16942 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16943 process_stratum_target parameter and handle it.
16944 (current_thread_target): New global.
16945 (get_thread_regcache): Add process_stratum_target parameter and
16946 handle it. Switch inferior before calling target method.
16947 (get_thread_regcache): Pass target down.
16948 (get_thread_regcache_for_ptid): Pass target down.
16949 (registers_changed_ptid): Add process_stratum_target parameter and
16951 (registers_changed_thread, registers_changed): Pass target down.
16952 (test_get_thread_arch_aspace_regcache): New.
16953 (current_regcache_test): Define a couple local test_target_ops
16954 instances and use them for testing.
16955 (readwrite_regcache): Pass process_stratum_target parameter.
16956 (cooked_read_test, cooked_write_test): Pass mock_target down.
16957 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16958 (get_thread_arch_aspace_regcache): Add process_stratum_target
16960 (regcache::target): New method.
16961 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16962 (regcache::registers_changed_ptid): Add process_stratum_target
16964 (regcache::m_target): New field.
16965 (registers_changed_ptid): Add process_stratum_target parameter.
16966 * remote.c (remote_state::supports_vCont_probed): New field.
16967 (remote_target::async_wait_fd): New method.
16968 (remote_unpush_and_throw): Add remote_target parameter.
16969 (get_current_remote_target): Adjust.
16970 (remote_target::remote_add_inferior): Push target.
16971 (remote_target::remote_add_thread)
16972 (remote_target::remote_notice_new_inferior)
16973 (get_remote_thread_info): Pass target down.
16974 (remote_target::update_thread_list): Skip threads of inferiors
16975 bound to other targets. (remote_target::close): Don't discard
16976 inferiors. (remote_target::add_current_inferior_and_thread)
16977 (remote_target::process_initial_stop_replies)
16978 (remote_target::start_remote)
16979 (remote_target::remote_serial_quit_handler): Pass down target.
16980 (remote_target::remote_unpush_target): New remote_target
16981 parameter. Unpush the target from all inferiors.
16982 (remote_target::remote_unpush_and_throw): New remote_target
16983 parameter. Pass it down.
16984 (remote_target::open_1): Check whether the current inferior has
16985 execution instead of checking whether any inferior is live. Pass
16987 (remote_target::remote_detach_1): Pass down target. Use
16988 remote_unpush_target.
16989 (extended_remote_target::attach): Pass down target.
16990 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16991 (remote_target::append_resumption): Pass down target.
16992 (remote_target::append_pending_thread_resumptions)
16993 (remote_target::remote_resume_with_hc, remote_target::resume)
16994 (remote_target::commit_resume): Pass down target.
16995 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16996 (remote_target::interrupt_query)
16997 (remote_target::remove_new_fork_children)
16998 (remote_target::check_pending_events_prevent_wildcard_vcont)
16999 (remote_target::remote_parse_stop_reply)
17000 (remote_target::process_stop_reply): Pass down target.
17001 (first_remote_resumed_thread): New remote_target parameter. Pass
17003 (remote_target::wait_as): Pass down target.
17004 (unpush_and_perror): New remote_target parameter. Pass it down.
17005 (remote_target::readchar, remote_target::remote_serial_write)
17006 (remote_target::getpkt_or_notif_sane_1)
17007 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17009 (remote_target::mourn_inferior): Pass down target. Use
17010 remote_unpush_target.
17011 (remote_target::core_of_thread)
17012 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17013 (remote_target::pid_to_exec_file)
17014 (remote_target::thread_handle_to_thread_info): Pass down target.
17015 (remote_target::async_wait_fd): New.
17016 * riscv-fbsd-tdep.c: Include "inferior.h".
17017 (riscv_fbsd_get_thread_local_address): Pass down target.
17018 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17019 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17020 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17022 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17023 * solib-svr4.c (enable_break): Pass down target.
17024 * spu-multiarch.c (parse_spufs_run): Pass down target.
17025 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17026 * target-delegates.c: Regenerate.
17027 * target.c (g_target_stack): Delete.
17028 (current_top_target): Return the current inferior's top target.
17029 (target_has_execution_1): Refer to the passed-in inferior's top
17031 (target_supports_terminal_ours): Check whether the initial
17032 inferior was already created.
17033 (decref_target): New.
17034 (target_stack::push): Incref/decref the target.
17035 (push_target, push_target, unpush_target): Adjust.
17036 (target_stack::unpush): Defref target.
17037 (target_is_pushed): Return bool. Adjust to refer to the current
17038 inferior's target stack.
17039 (dispose_inferior): Delete, and inline parts ...
17040 (target_preopen): ... here. Only dispose of the current inferior.
17041 (target_detach): Hold strong target reference while detaching.
17043 (target_thread_name): Add assertion.
17044 (target_resume): Pass down target.
17045 (target_ops::beneath, find_target_at): Adjust to refer to the
17046 current inferior's target stack.
17047 (get_dummy_target): New.
17048 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17049 has a thread running.
17050 (initialize_targets): Rename to ...
17051 (_initialize_target): ... this.
17052 * target.h: Include "gdbsupport/refcounted-object.h".
17053 (struct target_ops): Inherit refcounted_object.
17054 (target_ops::shortname, target_ops::longname): Make const.
17055 (target_ops::async_wait_fd): New method.
17056 (decref_target): Declare.
17057 (struct target_ops_ref_policy): New.
17058 (target_ops_ref): New typedef.
17059 (get_dummy_target): Declare function.
17060 (target_is_pushed): Return bool.
17061 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17062 (all_matching_threads_iterator::all_matching_threads_iterator):
17063 Handle filter target.
17064 * thread-iter.h (struct all_matching_threads_iterator, struct
17065 all_matching_threads_range, class all_non_exited_threads_range):
17066 Filter by target too. Remove explicit.
17067 * thread.c (threads_executing): Delete.
17068 (inferior_thread): Pass down current inferior.
17069 (clear_thread_inferior_resources): Pass down thread pointer
17071 (add_thread_silent, add_thread_with_info, add_thread): Add
17072 process_stratum_target parameter. Use it for thread and inferior
17074 (is_current_thread): New.
17075 (thread_info::deletable): Use it.
17076 (find_thread_ptid, thread_count, in_thread_list)
17077 (thread_change_ptid, set_resumed, set_running): New
17078 process_stratum_target parameter. Pass it down.
17079 (set_executing): New process_stratum_target parameter. Pass it
17080 down. Adjust reference to 'threads_executing'.
17081 (threads_are_executing): New process_stratum_target parameter.
17082 Adjust reference to 'threads_executing'.
17083 (set_stop_requested, finish_thread_state): New
17084 process_stratum_target parameter. Pass it down.
17085 (switch_to_thread): Also match inferior.
17086 (switch_to_thread): New process_stratum_target parameter. Pass it
17088 (update_threads_executing): Reimplement.
17089 * top.c (quit_force): Pop targets from all inferior.
17090 (gdb_init): Don't call initialize_targets.
17091 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17093 (windows_add_thread, windows_delete_thread): Adjust.
17094 (get_windows_debug_event): Rename to ...
17095 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17096 * tracefile-tfile.c (tfile_target_open): Pass down target.
17097 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17099 (switch_to_thread): Add process_stratum_target parameter.
17100 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17102 (mi_on_resume): Pass target down.
17103 * nat/fork-inferior.c (startup_inferior): Add
17104 process_stratum_target parameter. Pass it down.
17105 * nat/fork-inferior.h (startup_inferior): Add
17106 process_stratum_target parameter.
17107 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17109 2020-01-10 Pedro Alves <palves@redhat.com>
17111 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17112 directly. Instead find the first thread in the thread list and
17113 use switch_to_thread.
17115 2020-01-10 Pedro Alves <palves@redhat.com>
17117 * remote.c (remote_target::remote_add_inferior): Don't bind a
17118 process to the current inferior if the current inferior is already
17119 bound to a process.
17121 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17122 Pedro Alves <palves@redhat.com>
17124 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17125 If no process is specified, return null_ptid instead of
17127 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17128 TARGET_WAITKIND_SIGNALLED with no pid.
17130 2020-01-10 Pedro Alves <palves@redhat.com>
17132 * remote.c (first_remote_resumed_thread): New.
17133 (remote_target::wait_as): Use it as default event_ptid instead of
17136 2020-01-10 Pedro Alves <palves@redhat.com>
17138 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17140 2020-01-10 Pedro Alves <palves@redhat.com>
17142 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17145 2020-01-10 Pedro Alves <palves@redhat.com>
17147 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17148 ptid to get_last_target_status.
17149 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17150 ptid to get_last_target_status.
17151 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17152 get_last_target_status.
17153 (info_program_command): Don't pass a target_waitstatus to
17154 get_last_target_status.
17155 * infrun.c (init_wait_for_inferior): Use
17156 nullify_last_target_wait_ptid.
17157 (get_last_target_status): Handle nullptr arguments.
17158 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17159 (print_stop_event): Don't pass a ptid to get_last_target_status.
17160 (normal_stop): Don't pass a ptid to get_last_target_status.
17161 * infrun.h (get_last_target_status, set_last_target_status): Move
17162 comments here and update.
17163 (nullify_last_target_wait_ptid): Declare.
17164 * linux-fork.c (fork_load_infrun_state): Remove local extern
17165 declaration of nullify_last_target_wait_ptid.
17166 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17167 to get_last_target_status.
17169 2020-01-10 Pedro Alves <palves@redhat.com>
17171 * gdbthread.h (scoped_restore_current_thread)
17172 <dont_restore, restore, m_dont_restore>: Declare.
17173 * thread.c (thread_alive): Add assertion. Return bool.
17174 (switch_to_thread_if_alive): New.
17175 (prune_threads): Switch inferior/thread.
17176 (print_thread_info_1): Switch thread before calling target methods.
17177 (scoped_restore_current_thread::restore): New, factored out from
17179 (scoped_restore_current_thread::~scoped_restore_current_thread):
17181 (scoped_restore_current_thread::scoped_restore_current_thread):
17183 (thread_apply_all_command, thread_select): Use
17184 switch_to_thread_if_alive.
17185 * infrun.c (proceed, restart_threads, handle_signal_stop)
17186 (switch_back_to_stepped_thread): Switch current thread before
17187 calling target methods.
17189 2020-01-10 Pedro Alves <palves@redhat.com>
17191 * inferior.c (switch_to_inferior_no_thread): New function,
17192 factored out from ...
17193 (inferior_command): ... here.
17194 * inferior.h (switch_to_inferior_no_thread): Declare.
17195 * mi/mi-main.c (run_one_inferior): Use
17196 switch_to_inferior_no_thread.
17198 2020-01-10 Pedro Alves <palves@redhat.com>
17200 * infcmd.c (kill_command): Remove dead code.
17202 2020-01-10 Pedro Alves <palves@redhat.com>
17204 * remote.c (remote_target::mourn_inferior): No longer check
17205 whether the target is running.
17207 2020-01-10 Pedro Alves <palves@redhat.com>
17209 * corelow.c (core_target::has_execution): Change parameter type to
17211 * inferior.c (number_of_live_inferiors): Use
17212 inferior::has_execution instead of target_has_execution_1.
17213 * inferior.h (inferior::has_execution): New.
17214 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17215 inferior::has_execution instead of target_has_execution_1.
17216 * process-stratum-target.c
17217 (process_stratum_target::has_execution): Change parameter type to
17218 inferior pointer. Check the inferior's PID instead of
17220 * process-stratum-target.h
17221 (process_stratum_target::has_execution): Change parameter type to
17223 * record-full.c (record_full_core_target::has_execution): Change
17224 parameter type to inferior pointer.
17225 * target.c (target_has_execution_1): Change parameter type to
17227 (target_has_execution_current): Adjust.
17228 * target.h (target_ops::has_execution): Change parameter type to
17230 (target_has_execution_1): Change parameter type to inferior
17231 pointer. Change return type to bool.
17232 * tracefile.h (tracefile_target::has_execution): Change parameter
17233 type to inferior pointer.
17235 2020-01-10 Pedro Alves <palves@redhat.com>
17237 * exceptions.c (print_flush): Remove current_top_target() check.
17239 2020-01-10 Pedro Alves <palves@redhat.com>
17241 * remote.c (show_remote_exec_file): Show the current inferior's
17242 exec-file instead of the command variable's value.
17244 2020-01-10 Pedro Alves <palves@redhat.com>
17246 * record-full.c (record_full_resume_ptid): New global.
17247 (record_full_target::resume): Set it.
17248 (record_full_wait_1): Use record_full_resume_ptid instead of
17251 2020-01-10 Pedro Alves <palves@redhat.com>
17253 * gdbthread.h (scoped_restore_current_thread)
17254 <dont_restore, restore, m_dont_restore>: Declare.
17255 * thread.c (thread_alive): Add assertion. Return bool.
17256 (switch_to_thread_if_alive): New.
17257 (prune_threads): Switch inferior/thread.
17258 (print_thread_info_1): Switch thread before calling target methods.
17259 (scoped_restore_current_thread::restore): New, factored out from
17261 (scoped_restore_current_thread::~scoped_restore_current_thread):
17263 (scoped_restore_current_thread::scoped_restore_current_thread):
17265 (thread_apply_all_command, thread_select): Use
17266 switch_to_thread_if_alive.
17268 2020-01-10 George Barrett <bob@bob131.so>
17270 * stap-probe.c (stap_modify_semaphore): Don't check for null
17272 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17273 for null semaphores.
17275 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17277 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17278 all source windows, and maintain horizontal scroll status while
17281 2020-01-09 Tom Tromey <tom@tromey.com>
17284 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17285 update_source_window, not print_source_lines.
17287 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17289 * tui/tui.c (tui_enable): Register tui hooks after calling
17292 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17294 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17296 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17298 * thread.c (print_thread_info_1): Fix indentation.
17300 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17302 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17303 unique_xmalloc_ptr outside the if to always free the demangled name.
17305 2020-01-08 Tom Tromey <tromey@adacore.com>
17307 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17308 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17309 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17310 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17312 (section_offsets): New typedef.
17313 * symtab.c (fixup_section, get_msymbol_address): Update.
17314 * symmisc.c (dump_msymbols): Update.
17315 * symfile.h (relative_addr_info_to_section_offsets)
17316 (symfile_map_offsets_to_segments): Update.
17317 * symfile.c (build_section_addr_info_from_objfile)
17318 (init_objfile_sect_indices): Update.
17319 (struct place_section_arg): Change type of "offsets".
17320 (place_section): Update.
17321 (relative_addr_info_to_section_offsets): Change type of
17322 "section_offsets". Remove "num_sections" parameter.
17323 (default_symfile_offsets, syms_from_objfile_1)
17324 (set_objfile_default_section_offset): Update.
17325 (reread_symbols): No need to preserve section offsets by hand.
17326 (symfile_map_offsets_to_segments): Change type of "offsets".
17327 * stap-probe.c (relocate_address): Update.
17328 * stabsread.h (process_one_symbol): Update.
17329 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17330 (solib_target_relocate_section_addresses): Update.
17331 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17333 * solib-frv.c (frv_relocate_main_executable): Update.
17334 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17335 * solib-aix.c (solib_aix_get_section_offsets): Change return
17337 (solib_aix_solib_create_inferior_hook): Update.
17338 * remote.c (remote_target::get_offsets): Update.
17339 * psymtab.c (find_pc_sect_psymtab): Update.
17340 * psympriv.h (struct partial_symbol) <address, text_low,
17341 text_high>: Update.
17342 * objfiles.h (obj_section_offset): Update.
17343 (struct objfile) <section_offsets>: Change type.
17344 <num_sections>: Remove.
17345 (objfile_relocate): Update.
17346 * objfiles.c (entry_point_address_query): Update
17347 (relocate_one_symbol): Change type of "section_offsets".
17348 (objfile_relocate1, objfile_relocate1): Change type of
17350 (objfile_rebase1): Update.
17351 * mipsread.c (mipscoff_symfile_read): Update.
17352 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17354 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17355 (parse_external, psymtab_to_symtab_1): Update.
17356 * machoread.c (macho_symfile_offsets): Update.
17357 * ia64-tdep.c (ia64_find_unwind_table): Update.
17358 * hppa-tdep.c (read_unwind_info): Update.
17359 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17360 * dwarf2read.c (create_addrmap_from_index)
17361 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17362 (process_psymtab_comp_unit_reader, add_partial_symbol)
17363 (add_partial_subprogram, process_full_comp_unit)
17364 (read_file_scope, read_func_scope, read_lexical_block_scope)
17365 (read_call_site_scope, dwarf2_rnglists_process)
17366 (dwarf2_ranges_process, dwarf2_ranges_read)
17367 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17368 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17370 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17372 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17373 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17374 (process_one_symbol): Change type of "section_offsets".
17375 * ctfread.c (get_objfile_text_range): Update.
17376 * coffread.c (coff_symtab_read, enter_linenos)
17377 (process_coff_symbol): Update.
17378 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17379 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17381 2020-01-08 Tom Tromey <tromey@adacore.com>
17383 * dwarf2read.c (parse_macro_definition): Use std::string.
17384 (parse_macro_definition): Likewise.
17386 2020-01-08 Tom Tromey <tromey@adacore.com>
17388 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17389 (ATTR_ALLOC_CHUNK): Remove.
17391 2020-01-08 Tom Tromey <tromey@adacore.com>
17393 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17395 2020-01-08 Tom Tromey <tromey@adacore.com>
17397 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17398 (dwarf2_compute_name, open_dwo_file): Likewise.
17399 (process_enumeration_scope): Use std::vector.
17400 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17401 (partial_die_info::fixup, dwarf2_start_subfile)
17402 (guess_full_die_structure_name, dwarf2_name): Likewise.
17403 (determine_prefix): Update.
17404 (guess_full_die_structure_name): Make return type const.
17405 (partial_die_full_name): Return unique_xmalloc_ptr.
17406 (DW_FIELD_ALLOC_CHUNK): Remove.
17408 2020-01-07 Tom Tromey <tromey@adacore.com>
17411 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17413 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17415 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17417 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17419 * stack.c (print_frame_info): Move disassemble_next_line code
17420 inside source_print block.
17422 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17424 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17425 gdb/signals.h, as we are now using native signal symbols.
17427 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17429 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17430 overflow by an early check of content vs threshold.
17431 * tui/tui-source.c (tui_source_window::line_is_displayed):
17434 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17436 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17438 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17440 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17441 export table if no section contains it's RVA.
17443 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17445 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17447 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17449 * source.c (print_source_lines_base): Set last_line_listed.
17451 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17453 * tui/tui-disasm.c: Remove trailing spaces.
17455 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17456 Pedro Alves <palves@redhat.com>
17458 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17459 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17460 (windows_gdb_signal_to_target): New function, uses the above
17461 enumeration to convert GDB internal signal codes to equivalent
17463 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17464 * windows-nat.c: Include "gdb_wait.h".
17465 (get_windows_debug_event): Extract the fatal exception from the
17466 exit status and convert to the equivalent Posix signal number.
17467 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17468 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17469 * gdbsupport/gdb_wait.c: New file, implements
17470 windows_status_to_termsig.
17471 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17472 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17474 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17476 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17479 2020-01-05 Luis Machado <luis.machado@linaro.org>
17481 * aarch64-linux-nat.c
17482 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17483 and bfd_mach_aarch64.
17485 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17487 * ui-file.c (stdio_file::can_emit_style_escape)
17488 (tee_file::can_emit_style_escape): Ensure style is used also on
17489 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17491 * main.c (set_gdb_data_directory): Use file style to output the
17492 warning that the given pathname is not a directory.
17493 * top.c (show_history_filename, gdb_safe_append_history)
17494 (show_gdb_datadir): Use file style.
17496 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17498 * solib-target.c (struct lm_info_target):
17499 Change offsets to be a unique_xmalloc_ptr.
17500 (solib_target_relocate_section_addresses): Update.
17502 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17504 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17506 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17508 * MAINTAINERS (Write After Approval): Add myself.
17510 2020-01-02 Luis Machado <luis.machado@linaro.org>
17512 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17513 Cell BE architecture.
17514 * target.h (struct target_ops) <thread_architecture>: Likewise.
17516 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17518 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17520 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17522 * MAINTAINERS (Write After Approval): Add myself.
17524 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17526 * gdbarch.sh: Update copyright year range of generated files.
17528 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17530 Update copyright year range in all GDB files.
17532 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17534 * copyright.py: Convert to Python 3.
17536 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17538 * copyright.py: Adapt after move of gnulib directory from gdb
17539 directory to toplevel directory.
17541 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17543 * copyright.py (main): Exit if run from the wrong directory.
17545 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17547 * top.c (print_gdb_version): Change copyright year to 2020.
17549 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17551 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17553 For older changes see ChangeLog-2019.
17559 version-control: never