1 2020-12-04 Tom de Vries <tdevries@suse.de>
4 * completer.c (completion_tracker::build_completion_result): Don't
5 access match_list[0][-1].
7 2020-12-04 Tom Tromey <tromey@adacore.com>
9 * linespec.c (struct linespec_token): Rename; remove typedef.
10 * guile/scm-block.c (struct block_smob): Remove typedef.
11 (struct block_syms_progress_smob): Likewise.
12 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
13 * guile/scm-symtab.c (symtab_smob): Remove typedef.
14 (struct sal_smob): Remove typedef.
15 * guile/scm-param.c (struct param_smob): Remove typedef.
16 * guile/scm-progspace.c (struct pspace_smob): Rename.
17 * guile/scm-objfile.c (struct objfile_smob): Rename.
18 * guile/scm-iterator.c (struct iterator_smob): Rename.
19 * guile/scm-frame.c (struct frame_smob): Rename.
20 * guile/scm-arch.c (struct arch_smob): Rename.
21 * guile/scm-type.c (struct field_smob): Remove typedef.
22 (struct type_smob): Rename.
23 * guile/scm-cmd.c (struct command_smob): Remove typedef.
24 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
25 * guile/scm-value.c (struct value_smob): Remove typedef.
26 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
27 * guile/guile-internal.h (struct scheme_variable)
28 (struct scheme_function, struct scheme_integer_constant)
29 (struct gdb_smob, struct chained_gdb_smob)
30 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
31 (objfile_smob, pspace_smob, type_smob): Remove typedef.
32 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
33 (struct pretty_printer_worker_smob): Remove typedef.
34 * guile/scm-exception.c (struct exception_smob): Remove typedef.
35 * python/py-block.c (struct block_object): Remove typedef.
36 (block_syms_iterator_object): Update.
38 (block_syms_iterator_object): Remove typedef.
39 * python/py-inferior.c (struct membuf_object): Remove typedef.
40 * python/py-symtab.c (struct symtab_object): Remove typedef.
42 (sal_object): Remove typedef.
44 * python/py-frame.c (frame_object): Remove typedef.
45 * python/py-record-btrace.c (struct btpy_list_object): Remove
47 * python/py-arch.c (struct arch_object): Remove typedef.
48 * python/py-linetable.c (struct linetable_entry_object)
49 (linetable_object, struct ltpy_iterator_object): Remove typedef.
50 * python/py-events.h (eventregistry_object): Remove typedef.
51 (struct events_object): Remove typedef.
52 * python/python-internal.h (gdbpy_breakpoint_object): Remove
54 (thread_object): Remove typedef.
55 * python/py-progspace.c (pspace_object): Remove typedef.
56 * python/py-value.c (struct value_object): Remove typedef.
57 * python/py-record.h (recpy_record_object): Remove typedef.
58 (struct recpy_element_object): Remove typedef.
59 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
60 * python/py-objfile.c (objfile_object): Remove typedef.
61 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
62 * python/py-type.c (type_object): Remove typedef.
63 (typy_iterator_object): Update.
65 (field_object): Remove typedef.
66 (typy_iterator_object): Remove typedef.
67 * python/py-registers.c (register_descriptor_iterator_object):
69 (struct register_descriptor_object)
70 (struct reggroup_iterator_object, struct reggroup_object): Remove
72 * python/py-record.c (recpy_gap_object): Remove typedef.
73 * python/py-symbol.c (symbol_object): Remove typedef.
75 * python/py-event.h (event_object): Remove typedef.
76 * python/py-param.c (parmpy_object): Remove typedef.
77 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
78 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
79 (unwind_info_object, struct cached_frame_info): Likewise.
81 2020-12-04 Tom Tromey <tromey@adacore.com>
83 * value.c (value_internal_function_name): Make return type const.
84 * value.h (value_internal_function_name): Make return type const.
86 2020-12-04 Luis Machado <luis.machado@linaro.org>
88 * aarch64-tdep.c (submask, bit, bits): Remove.
89 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
90 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
91 (aarch64_decode_cb, aarch64_decode_tb)
92 (aarch64_decode_ldr_literal): Use sbits to extract a signed
94 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
96 2020-12-04 Tom de Vries <tdevries@suse.de>
99 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
101 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
104 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
105 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
107 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
109 * arch/riscv.c: Include 'rv32e-xregs.c'.
110 (riscv_create_target_description): Update to handle rv32e.
111 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
113 <operator==>: Update to account for new field.
115 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
116 * features/riscv/rv32e-xregs.c: Generated.
117 * features/riscv/rv32e-xregs.xml: New file.
118 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
120 (riscv_debug_infcall): Likewise.
121 (riscv_debug_unwinder): Likewise.
122 (riscv_debug_gdbarch): Likewise.
123 (enum riscv_register_required_status): Delete.
124 (struct riscv_register_feature): Add constructor, delete default
125 constructor, copy, and assign constructors.
126 (struct riscv_register_feature::register_info) <required>: Delete.
127 <check>: Update comment and arguments.
128 (struct riscv_register_feature) <name>: Change to member function.
129 <prefer_first_name>: Delete.
130 <tdesc_feature>: New member function.
131 <registers>: Rename to...
132 <m_registers>: ...this.
133 <m_feature_name>: New member variable.
134 (riscv_register_feature::register_info::check): Update arguments.
135 (riscv_xreg_feature): Rewrite as class, create a single static
136 instance of the class.
137 (riscv_freg_feature): Likewise.
138 (riscv_virtual_feature): Likewise.
139 (riscv_csr_feature): Likewise.
140 (riscv_create_csr_aliases): Has become a member function inside
141 riscv_csr_feature class.
142 (riscv_abi_embedded): New function definition.
143 (riscv_register_name): Adjust to use new feature objects.
144 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
145 and adjust available argument registers.
146 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
147 (riscv_check_tdesc_feature): Delete.
148 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
149 (riscv_gdbarch_init): Delete target description checking code, and
150 instead call to the new feature objects to perform the checks.
151 Reorder handling of no abi information case, allows small code
153 (_initialize_riscv_tdep): Remove call, this is now done in the
154 riscv_csr_feature constructor.
155 * riscv-tdep.h (riscv_abi_embedded): Declare.
157 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
159 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
162 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
164 * riscv-tdep.c (riscv_is_unknown_csr): New function,
165 implementation moved from riscv_register_reggroup_p.
166 (riscv_register_reggroup_p): Update group handling for unknown
169 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
171 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
172 (dwarf2_get_dwz_file): Convert 'filename' to a
173 std::string. Use dwz_search_other_debugdirs to search for DWZ
174 files in the debug-file-directories provided by the user as well.
176 2020-12-01 Tom Tromey <tom@tromey.com>
178 * parse.c (expr_builder::expr_builder): Initialize expout.
179 (expr_builder::release): Use expression::resize.
180 (expression::expression, expression::~expression)
181 (expression::resize): New methods.
182 (write_exp_elt): Use expression::resize.
183 (prefixify_expression): Update.
184 (increase_expout_size): Use expression::resize.
185 * expression.h (struct expression): Add constructor, destructor.
186 <resize>: New method.
187 (expression_up): Change type.
189 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
190 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
191 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
194 2020-11-30 Tom de Vries <tdevries@suse.de>
197 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
198 is_reference parameter.
199 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
201 2020-11-30 Tom Tromey <tom@tromey.com>
203 * rust-lang.c (rust_op_name): Remove.
204 (exp_descriptor_rust): Update.
205 * parser-defs.h (op_name_standard): Don't declare.
206 (struct exp_descriptor) <op_name>: Remove.
207 * parse.c (exp_descriptor_standard): Update.
208 * opencl-lang.c (exp_descriptor_opencl): Update.
209 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
210 * f-lang.c (op_name_f): Remove.
211 (f_language::exp_descriptor_tab): Update.
212 * expression.h (op_name): Update.
213 * expprint.c (op_name): Rewrite.
214 (op_name_standard): Remove.
215 (dump_raw_expression, dump_subexp): Update.
216 * c-lang.c (exp_descriptor_c): Update.
217 * ax-gdb.c (gen_expr): Update.
218 * ada-lang.c (ada_op_name): Remove.
219 (ada_exp_descriptor): Update.
221 2020-11-30 Tom Tromey <tom@tromey.com>
223 * eval.c (init_array_element): Remove.
224 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
226 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
229 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
230 static locator win info.
232 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
234 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
237 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
239 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
240 is always initialized.
242 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
243 * MAINTAINERS (Write After Approval): Add myself.
245 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
247 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
248 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
250 2020-11-25 Tom Tromey <tom@tromey.com>
252 * eval.c (evaluate_subexp_standard): Remove unnecessary
255 2020-11-25 Tom Tromey <tom@tromey.com>
257 * d-lang.c: Include parser-defs.h.
258 * rust-lang.c: Include parser-defs.h.
259 * c-lang.h: Do not include parser-defs.h.
261 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
263 * regcache.h (struct cached_reg): Remove typedef.
265 2020-11-24 Joel Brobecker <brobecker@adacore.com>
267 * README: Fix the URL of the MPFR library.
269 2020-11-24 Joel Brobecker <brobecker@adacore.com>
271 * README: Document the --with-libgmp-prefix configure option.
273 2020-11-24 Joel Brobecker <brobecker@adacore.com>
275 * NEWS: Add entry documenting support for DWARF-based fixed
278 2020-11-24 Joel Brobecker <brobecker@adacore.com>
280 * NEWS: Document that building GDB now requires GMP.
282 2020-11-24 Joel Brobecker <brobecker@adacore.com>
284 * typeprint.c (print_type_scalar): Add handling of
285 TYPE_CODE_FIXED_POINT.
287 2020-11-24 Joel Brobecker <brobecker@adacore.com>
289 * valarith.c (fixed_point_binop): Replace the
290 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
293 2020-11-24 Joel Brobecker <brobecker@adacore.com>
295 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
296 replacing fixed_point_scaling_factor. All callers updated
297 throughout this project.
298 (fixed_point_scaling_factor): Delete declaration.
299 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
300 fixed_point_scaling_factor. Adjust implementation accordingly.
302 2020-11-24 Joel Brobecker <brobecker@adacore.com>
304 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
305 replacing the fixed_point_type_base_type function. All callers
306 updated throughout this project.
307 (fixed_point_type_base_type): Remove declaration.
308 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
309 fixed_point_type_base_type. Adjust implementation accordingly.
311 2020-11-24 Joel Brobecker <brobecker@adacore.com>
313 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
315 (INIT_FIXED_POINT_SPECIFIC): Adjust.
316 (TYPE_FIXED_POINT_INFO): Delete macro.
317 (allocate_fixed_point_type_info): Change return type to void.
318 * gdbtypes.c (copy_type_recursive): Replace the use of
319 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
320 (fixed_point_scaling_factor): Likewise.
321 (allocate_fixed_point_type_info): Change return type to void.
322 Adjust implementation accordingly.
323 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
324 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
326 2020-11-24 Joel Brobecker <brobecker@adacore.com>
328 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
329 into one single gdb::array_view parameter.
330 (gdb_mpz::write): Likewise.
331 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
332 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
333 into one single gdb::array_view parameter.
334 Adjust implementation accordingly.
335 (gdb_mpz::write): Likewise.
336 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
337 * unittests/gmp-utils-selftests.c: Adapt following changes above.
338 * valarith.c, valops.c, valprint.c, value.c: Likewise.
340 2020-11-24 Joel Brobecker <brobecker@adacore.com>
342 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
343 Change return type to std::string. Update all callers.
344 * gmp-utils.c (gmp_string_printf): Likewise.
346 2020-11-24 Joel Brobecker <brobecker@adacore.com>
348 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
349 instead of mpq_set_ui to initialize our GMP rational.
351 2020-11-23 Tom de Vries <tdevries@suse.de>
353 * debuginfod-support.c (debuginfod_source_query)
354 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
356 2020-11-21 Tom Tromey <tom@tromey.com>
358 * breakpoint.c (watchpoint_exp_is_const): Return bool.
360 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
362 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
364 (gdb_mpz_write_all_from_small): Likewise.
366 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
368 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
371 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
373 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
374 ctf_arc_open_by_name.
376 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
378 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
379 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
381 2020-11-20 Pedro Alves <pedro@palves.net>
383 * language.c (language_arch_info::lookup_primitive_type): Use
384 gdb::function_view instead of gdb::function.
385 (template language_lookup_primitive_type): Rename to ...
386 (language_lookup_primitive_type_1): ... this, and make static.
387 (language_lookup_primitive_type(const struct language_defn *,
388 struct gdbarch *, const char *): Make non-template.
389 (language_lookup_primitive_type(const struct language_defn *,
390 struct gdbarch *, std::function<bool (struct type *)>): Make
391 non-template and use gdb::function_view.
392 * language.h (language_arch_info::lookup_primitive_type): Use
393 gdb::function_view instead of std::function.
394 (language_lookup_primitive_type): No longer template.
395 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
396 lambda instead of a std::function.
398 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
401 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
404 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
406 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
408 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
410 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
411 in `loop_cb` parameter.
412 * gdbarch.c: Re-generate.
413 * gdbarch.h: Re-generate.
414 * arch-utils.c (default_read_core_file_mappings): Remove `other`
416 * arch-utils.h (default_read_core_file_mappings): Likewise.
417 * corelow.c (core_target::build_file_mappings): Likewise.
418 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
419 (linux_core_info_proc_mappings): Likewise.
421 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
423 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
424 * NEWS: Mention new options.
425 * f-array-walker.h: New file.
426 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
427 (repack_array_slices): New static global.
428 (show_repack_array_slices): New function.
429 (fortran_array_slicing_debug): New static global.
430 (show_fortran_array_slicing_debug): New function.
431 (value_f90_subarray): Delete.
432 (skip_undetermined_arglist): Delete.
433 (class fortran_array_repacker_base_impl): New class.
434 (class fortran_lazy_array_repacker_impl): New class.
435 (class fortran_array_repacker_impl): New class.
436 (fortran_value_subarray): Complete rewrite.
437 (set_fortran_list): New static global.
438 (show_fortran_list): Likewise.
439 (_initialize_f_language): Register new commands.
440 (fortran_adjust_dynamic_array_base_address_hack): New function.
441 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
443 * f-valprint.c: Include 'f-array-walker.h'.
444 (class fortran_array_printer_impl): New class.
445 (f77_print_array_1): Delete.
446 (f77_print_array): Delete.
447 (fortran_print_array): New.
448 (f_value_print_inner): Update to call fortran_print_array.
449 * gdbtypes.c: Include 'f-lang.h'.
450 (resolve_dynamic_type_internal): Call
451 fortran_adjust_dynamic_array_base_address_hack.
453 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
455 * breakpoint.c (struct watch_options): New struct.
456 (watch_option_defs): New static global.
457 (make_watch_options_def_group): New function.
458 (watch_maybe_just_location): Convert option parsing.
459 (watch_command_completer): New function.
460 (_initialize_breakpoint): Build help text using options mechanism.
462 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
464 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
465 (watch_command_1): Update parameter types. Convert locals to
467 (watch_command_wrapper): Change parameter type.
468 (watch_maybe_just_location): Change locals to bool.
469 (rwatch_command_wrapper): Update parameter type.
470 (awatch_command_wrapper): Update parameter type.
471 * breakpoint.h (watch_command_wrapper): Change parameter type.
472 (rwatch_command_wrapper): Update parameter type.
473 (awatch_command_wrapper): Update parameter type.
474 * eval.c (fetch_subexp_value): Change parameter type.
475 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
477 * value.h (fetch_subexp_value): Change parameter type in
480 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
482 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
485 2020-11-18 Keith Seitz <keiths@redhat.com>
487 * linux-tdep.c (dump_note_entry_p): Return true instead of
490 2020-11-18 Tom de Vries <tdevries@suse.de>
492 * debuginfod-support.c (debuginfod_source_query)
493 (debuginfod_debuginfo_query): Also do early exit if
494 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
496 2020-11-18 Tom de Vries <tdevries@suse.de>
498 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
501 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
503 * gdbtypes.h (get_array_bounds): Return bool, adjust some
504 callers. Move doc here.
505 * gdbtypes.c (get_array_bounds): Return bool
507 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
509 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
511 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
512 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
515 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
517 * printcmd.c: Include 'safe-ctype.c'.
518 (skip_over_slash_fmt): New function.
519 (print_command_completer): Call skip_over_slash_fmt.
520 (display_and_x_command_completer): New function.
521 (_initialize_printcmd): Add command completion for 'x' and
524 2020-11-16 Pedro Alves <pedro@palves.net>
526 * frame.c (get_prev_frame): Move get_frame_id call from here ...
527 (get_prev_frame_always_1): ... to here.
528 * inline-frame.c (inline_frame_this_id): Mention
529 get_prev_frame_always_1 in comment.
531 2020-11-15 Joel Brobecker <brobecker@adacore.com>
533 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
535 (value_less): Add fixed-point handling.
537 2020-11-15 Joel Brobecker <brobecker@adacore.com>
539 * eval.c (binop_promote): Add fixed-point type handling.
540 * valarith.c (fixed_point_binop): New function.
541 (scalar_binop): Add fixed-point type handling.
542 (value_neg): Add fixed-point type handling.
543 * valops.c (value_cast_to_fixed_point): New function.
544 (value_cast): Add fixed-point type handling.
546 2020-11-15 Joel Brobecker <brobecker@adacore.com>
548 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
550 * c-typeprint.c (c_type_print_varspec_prefix)
551 (c_type_print_varspec_suffix, c_type_print_base_1): Add
552 TYPE_CODE_FIXED_POINT handling.
553 * p-typeprint.c (pascal_type_print_varspec_prefix)
554 (pascal_type_print_varspec_suffix): Likewise.
555 * typeprint.c (print_type_fixed_point): New function.
556 * typeprint.h (print_type_fixed_point): Add declaration.
558 2020-11-15 Joel Brobecker <brobecker@adacore.com>
560 * printcmd.c (print_scalar_formatted): Add fixed-point type
561 handling when options->format is set.
563 2020-11-15 Joel Brobecker <brobecker@adacore.com>
565 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
566 * dwarf2/read.c (get_dwarf2_rational_constant)
567 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
568 (has_zero_over_zero_small_attribute): New functions.
569 read_base_type, set_die_type): Add fixed-point type handling.
570 * gdb-gdb.py.in: Add fixed-point type handling.
571 * gdbtypes.c: #include "gmp-utils.h".
572 (create_range_type, set_type_code): Add fixed-point type handling.
573 (init_fixed_point_type): New function.
574 (is_integral_type, is_scalar_type): Add fixed-point type handling.
575 (print_fixed_point_type_info): New function.
576 (recursive_dump_type, copy_type_recursive): Add fixed-point type
578 (fixed_point_type_storage): New typedef.
579 (fixed_point_objfile_key): New static global.
580 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
581 (fixed_point_type_base_type, fixed_point_scaling_factor): New
583 * gdbtypes.h: #include "gmp-utils.h".
584 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
585 (union type_specific) <fixed_point_info>: New field.
586 (struct fixed_point_type_info): New struct.
587 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
588 (init_fixed_point_type, is_fixed_point_type)
589 (fixed_point_type_base_type, fixed_point_scaling_factor)
590 (allocate_fixed_point_type_info): Add declarations.
591 * valprint.c (generic_val_print_fixed_point): New function.
592 (generic_value_print): Add fixed-point type handling.
593 * value.c (value_as_address, unpack_long): Add fixed-point type
596 2020-11-15 Joel Brobecker <brobecker@adacore.com>
598 * utils.h (uinteger_pow): Add declaration.
599 * utils.c (uinteger_pow): Moved here (without changes)...
600 * valarith.c (uinteger_pow): ... from here.
602 2020-11-15 Joel Brobecker <brobecker@adacore.com>
604 * gmp-utils.h, gmp-utils.c: New file.
605 * unittests/gmp-utils-selftests.c: New file.
606 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
607 unittests/gmp-utils-selftests.c.
608 (COMMON_SFILES) Add gmp-utils.c.
609 (HFILES_NO_SRCDIR): Add gmp-utils.h.
611 2020-11-15 Joel Brobecker <brobecker@adacore.com>
613 * configure.ac: Generate an error if a usable GMP library
615 * configure: Regenerate.
617 2020-11-15 Joel Brobecker <brobecker@adacore.com>
619 * configure.ac: Add support for --with-libgmp-prefix.
620 * Makefile.in (LIBGMP): New variable.
621 (CLIBS): Include $(LIBGMP).
622 * configure, config.in: Regenerate
624 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
627 * f-exp.y (COMPLETE): New token.
628 (exp): Two new rules for tab-completion.
629 (saw_name_at_eof): New static global.
630 (last_was_structop): Likewise.
631 (yylex): Set new variables, and return COMPLETE token at the end
632 of the input stream in some cases.
634 2020-11-14 Tom Tromey <tom@tromey.com>
636 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
638 2020-11-14 Tom Tromey <tom@tromey.com>
640 * opencl-lang.c (opencl_component_ref): Make "comps" const.
642 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
644 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
646 2020-11-13 Tom Tromey <tom@tromey.com>
648 * c-lang.c (convert_ucn, convert_octal, convert_hex)
649 (convert_escape, parse_one_string): Constify.
651 2020-11-13 Keith Seitz <keiths@redhat.com>
653 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
654 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
655 outside of ELF segments" warning for debugin
657 2020-11-13 Keith Seitz <keiths@redhat.com>
660 * elfread.c (elf_symfile_segments): Output a BFD file name
661 for the "Loadable section ... outside of ELF segments" warning.
663 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
666 * arm-tdep.c (class arm_instruction_reader): New.
667 (target_arm_instruction_reader): New.
668 (arm_analyze_prologue): Add instruction reader parameter and use
669 it. Use arm_expand_immediate.
670 (class target_arm_instruction_reader): Adjust.
671 (arm_skip_prologue): Adjust.
672 (arm_expand_immediate): New.
673 (arm_scan_prologue): Adjust.
674 (arm_analyze_prologue_test): New.
675 (class test_arm_instruction_reader): New.
677 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
679 * f-lang.c (fortran_argument_convert): Add declaration. Add
680 header comment, taken from f-lang.h. Make static.
681 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
682 (fortran_argument_convert): Delete declaration.
684 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
686 * ada-exp.y (find_primitive_type): Make parameter const.
687 * ada-lang.c (enum ada_primitive_types): Delete.
688 (ada_language::language_arch_info): Update.
689 * c-lang.c (enum c_primitive_types): Delete.
690 (c_language_arch_info): Update.
691 (enum cplus_primitive_types): Delete.
692 (cplus_language::language_arch_info): Update.
693 * d-lang.c (enum d_primitive_types): Delete.
694 (d_language::language_arch_info): Update.
695 * f-lang.c (enum f_primitive_types): Delete.
696 (f_language::language_arch_info): Update.
697 * go-lang.c (enum go_primitive_types): Delete.
698 (go_language::language_arch_info): Update.
699 * language.c (auto_or_unknown_language::language_arch_info):
701 (language_gdbarch_post_init): Use obstack_new, use array indexing.
702 (language_string_char_type): Add header comment, call function in
704 (language_bool_type): Likewise
705 (language_arch_info::bool_type): Define.
706 (language_lookup_primitive_type_1): Delete.
707 (language_lookup_primitive_type): Rewrite as a templated function
708 to call function in language_arch_info, then instantiate twice.
709 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
710 (language_arch_info::lookup_primitive_type_and_symbol): Define.
711 (language_arch_info::lookup_primitive_type): Define twice with
712 different signatures.
713 (language_arch_info::lookup_primitive_type_as_symbol): Define.
714 (language_lookup_primitive_type_as_symbol): Rewrite to call a
715 member function in language_arch_info.
716 * language.h (language_arch_info): Complete rewrite.
717 (language_lookup_primitive_type): Make templated.
718 * m2-lang.c (enum m2_primitive_types): Delete.
719 (m2_language::language_arch_info): Update.
720 * opencl-lang.c (OCL_P_TYPE): Delete.
721 (enum opencl_primitive_types): Delete.
722 (opencl_type_data): Delete.
723 (builtin_opencl_type): Delete.
724 (lookup_opencl_vector_type): Update.
725 (opencl_language::language_arch_info): Update, lots of content
727 (build_opencl_types): ...here. This function is now deleted.
728 (_initialize_opencl_language): Delete.
729 * p-lang.c (enum pascal_primitive_types): Delete.
730 (pascal_language::language_arch_info): Update.
731 * rust-lang.c (enum rust_primitive_types): Delete.
732 (rust_language::language_arch_info): Update.
734 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
736 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
739 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
741 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
744 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
746 * dwarf2/read.c (dwarf_read_debug_printf,
747 dwarf_read_debug_printf_v): New macros, use throughout the file.
749 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
752 * arc-linux-tdep.c (collect_register): Populate "eret" by
753 "pc" value from the regcache when asked for "pc" value.
755 2020-11-12 Tom Tromey <tom@tromey.com>
758 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
761 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
763 * features/Makefile (XMLTOC): Add rx.xml.
764 (FEATURE_XMLFILES): Remove rx.xml.
765 (FEATURE_CFILES rule): Pass '-single-feature' flag.
766 * features/rx.c: Regenerate.
767 * features/rx.xml: Wrap in `target` tags, and reindent.
768 * target-descriptions.c (struct maint_print_c_tdesc_options): New
770 (maint_print_c_tdesc_opt_def): New typedef.
771 (maint_print_c_tdesc_opt_defs): New static global.
772 (make_maint_print_c_tdesc_options_def_group): New function.
773 (maint_print_c_tdesc_cmd): Make use of command line flags, only
774 print single feature C file for target descriptions containing a
776 (maint_print_c_tdesc_cmd_completer): New function.
777 (_initialize_target_descriptions): Update call to register command
778 completer, and include command line flag in help text.
780 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
782 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
784 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
787 2020-11-10 Tom Tromey <tom@tromey.com>
789 * value.h (internalvar_name): Update.
790 * value.c (internalvar_name): Make return type const.
792 2020-11-10 Tom Tromey <tom@tromey.com>
794 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
795 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
798 2020-11-10 Tom Tromey <tom@tromey.com>
800 * objc-lang.h (value_nsstring): Update.
801 * objc-lang.c (value_nsstring): Make "ptr" const.
803 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
805 * expprint.c (print_subexp_funcall): Increment expression position
806 after reading argument count.
807 * f-lang.c (print_subexp_f): Skip over opcode before calling
809 (dump_subexp_body_f): Likewise.
811 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
814 * configure: Regenerate.
815 * configure.ac: Check for python modules ctypes instead of
818 2020-11-06 Pedro Alves <pedro@palves.net>
820 * macroexp.c (struct macro_buffer): Split in two classes. Add
822 (struct shared_macro_buffer): New, factored out from struct
824 (struct growable_macro_buffer): New, factored out from struct
826 (set_token, get_comment, get_identifier, get_pp_number)
827 (get_character_constant, get_string_literal, get_punctuator)
828 (get_next_token_for_substitution): Constify parameters.
829 (substitute_args): Constify locals.
831 2020-11-05 Tom Tromey <tom@tromey.com>
833 * dwarf2/read.c (read_cutu_die_from_dwo)
834 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
835 (build_type_psymtabs_1): Update.
836 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
838 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
839 Don't read section. Add assert.
841 2020-11-04 Tom Tromey <tromey@adacore.com>
843 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
845 2020-11-04 Tom Tromey <tromey@adacore.com>
847 * ada-typeprint.c (ada_print_type): Handle __T types.
849 2020-11-04 Tom Tromey <tromey@adacore.com>
851 * dwarf2/read.c (add_partial_symbol, process_die):
852 Handle DW_TAG_array_type.
853 (is_type_tag_for_partial): Add "lang" parameter.
854 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
856 2020-11-04 Tom Tromey <tromey@adacore.com>
858 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
860 2020-11-04 Tom Tromey <tromey@adacore.com>
862 * dwarf2/read.c (read_array_type): Only apply stride to innermost
865 2020-11-04 Tom Tromey <tromey@adacore.com>
867 * gdbtypes.c (update_static_array_size): Handle bit stride.
869 2020-11-04 Tom Tromey <tromey@adacore.com>
871 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
873 2020-11-04 Tom Tromey <tromey@adacore.com>
875 * ada-lang.c (ada_is_any_packed_array_type): New function.
876 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
878 2020-11-04 Tom Tromey <tromey@adacore.com>
880 * dwarf2/read.c (recognize_bound_expression)
881 (quirk_ada_thick_pointer): New functions.
882 (read_array_type): Call quirk_ada_thick_pointer.
883 (set_die_type): Add "skip_data_location" parameter.
884 (quirk_ada_thick_pointer): New function.
885 (process_structure_scope): Call quirk_ada_thick_pointer.
886 * ada-lang.c (ada_is_unconstrained_packed_array_type)
887 (decode_packed_array_bitsize): Handle thick pointers without
889 (ada_is_gnat_encoded_packed_array_type): Rename from
890 ada_is_packed_array_type.
891 (ada_is_constrained_packed_array_type): Update.
892 * ada-valprint.c (ada_val_print_gnat_array): Remove.
893 (ada_value_print_1): Use ada_get_decoded_value.
895 2020-11-04 Tom Tromey <tromey@adacore.com>
897 * ada-lang.c (recursively_update_array_bitsize): New function.
898 (decode_constrained_packed_array_type): Call it.
900 2020-11-04 Tom Tromey <tromey@adacore.com>
902 * ada-lang.c (to_fixed_array_type): Error if
903 decode_constrained_packed_array_type returns NULL.
905 2020-11-04 Tom Tromey <tromey@adacore.com>
907 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
909 2020-11-02 Tom Tromey <tromey@adacore.com>
911 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
912 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
913 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
914 * amd64-ravenscar-thread.c: New file.
915 * amd64-ravenscar-thread.h: New file.
916 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
917 * configure.tgt (amd64_tobjs): Add ravenscar objects.
919 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
921 * main.c (execute_cmdargs): New function.
922 (captured_main_1): Make use of execute_cmdargs.
924 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
926 * NEWS: Mention changes to config file search path.
929 2020-11-02 Tom Tromey <tromey@adacore.com>
931 * python/python.c: Consolidate two HAVE_PYTHON blocks.
932 (python_GdbModuleDef): Move earlier. Now static.
933 (do_start_initialization): Consolidate some IS_PY3K blocks.
935 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
937 * aarch64-linux-tdep.c: Fix indentation.
938 * aarch64-ravenscar-thread.c: Fix indentation.
939 * aarch64-tdep.c: Fix indentation.
940 * aarch64-tdep.h: Fix indentation.
941 * ada-lang.c: Fix indentation.
942 * ada-lang.h: Fix indentation.
943 * ada-tasks.c: Fix indentation.
944 * ada-typeprint.c: Fix indentation.
945 * ada-valprint.c: Fix indentation.
946 * ada-varobj.c: Fix indentation.
947 * addrmap.c: Fix indentation.
948 * addrmap.h: Fix indentation.
949 * agent.c: Fix indentation.
950 * aix-thread.c: Fix indentation.
951 * alpha-bsd-nat.c: Fix indentation.
952 * alpha-linux-tdep.c: Fix indentation.
953 * alpha-mdebug-tdep.c: Fix indentation.
954 * alpha-nbsd-tdep.c: Fix indentation.
955 * alpha-obsd-tdep.c: Fix indentation.
956 * alpha-tdep.c: Fix indentation.
957 * amd64-bsd-nat.c: Fix indentation.
958 * amd64-darwin-tdep.c: Fix indentation.
959 * amd64-linux-nat.c: Fix indentation.
960 * amd64-linux-tdep.c: Fix indentation.
961 * amd64-nat.c: Fix indentation.
962 * amd64-obsd-tdep.c: Fix indentation.
963 * amd64-tdep.c: Fix indentation.
964 * amd64-windows-tdep.c: Fix indentation.
965 * annotate.c: Fix indentation.
966 * arc-tdep.c: Fix indentation.
967 * arch-utils.c: Fix indentation.
968 * arch/arm-get-next-pcs.c: Fix indentation.
969 * arch/arm.c: Fix indentation.
970 * arm-linux-nat.c: Fix indentation.
971 * arm-linux-tdep.c: Fix indentation.
972 * arm-nbsd-tdep.c: Fix indentation.
973 * arm-pikeos-tdep.c: Fix indentation.
974 * arm-tdep.c: Fix indentation.
975 * arm-tdep.h: Fix indentation.
976 * arm-wince-tdep.c: Fix indentation.
977 * auto-load.c: Fix indentation.
978 * auxv.c: Fix indentation.
979 * avr-tdep.c: Fix indentation.
980 * ax-gdb.c: Fix indentation.
981 * ax-general.c: Fix indentation.
982 * bfin-linux-tdep.c: Fix indentation.
983 * block.c: Fix indentation.
984 * block.h: Fix indentation.
985 * blockframe.c: Fix indentation.
986 * bpf-tdep.c: Fix indentation.
987 * break-catch-sig.c: Fix indentation.
988 * break-catch-syscall.c: Fix indentation.
989 * break-catch-throw.c: Fix indentation.
990 * breakpoint.c: Fix indentation.
991 * breakpoint.h: Fix indentation.
992 * bsd-uthread.c: Fix indentation.
993 * btrace.c: Fix indentation.
994 * build-id.c: Fix indentation.
995 * buildsym-legacy.h: Fix indentation.
996 * buildsym.c: Fix indentation.
997 * c-typeprint.c: Fix indentation.
998 * c-valprint.c: Fix indentation.
999 * c-varobj.c: Fix indentation.
1000 * charset.c: Fix indentation.
1001 * cli/cli-cmds.c: Fix indentation.
1002 * cli/cli-decode.c: Fix indentation.
1003 * cli/cli-decode.h: Fix indentation.
1004 * cli/cli-script.c: Fix indentation.
1005 * cli/cli-setshow.c: Fix indentation.
1006 * coff-pe-read.c: Fix indentation.
1007 * coffread.c: Fix indentation.
1008 * compile/compile-cplus-types.c: Fix indentation.
1009 * compile/compile-object-load.c: Fix indentation.
1010 * compile/compile-object-run.c: Fix indentation.
1011 * completer.c: Fix indentation.
1012 * corefile.c: Fix indentation.
1013 * corelow.c: Fix indentation.
1014 * cp-abi.h: Fix indentation.
1015 * cp-namespace.c: Fix indentation.
1016 * cp-support.c: Fix indentation.
1017 * cp-valprint.c: Fix indentation.
1018 * cris-linux-tdep.c: Fix indentation.
1019 * cris-tdep.c: Fix indentation.
1020 * darwin-nat-info.c: Fix indentation.
1021 * darwin-nat.c: Fix indentation.
1022 * darwin-nat.h: Fix indentation.
1023 * dbxread.c: Fix indentation.
1024 * dcache.c: Fix indentation.
1025 * disasm.c: Fix indentation.
1026 * dtrace-probe.c: Fix indentation.
1027 * dwarf2/abbrev.c: Fix indentation.
1028 * dwarf2/attribute.c: Fix indentation.
1029 * dwarf2/expr.c: Fix indentation.
1030 * dwarf2/frame.c: Fix indentation.
1031 * dwarf2/index-cache.c: Fix indentation.
1032 * dwarf2/index-write.c: Fix indentation.
1033 * dwarf2/line-header.c: Fix indentation.
1034 * dwarf2/loc.c: Fix indentation.
1035 * dwarf2/macro.c: Fix indentation.
1036 * dwarf2/read.c: Fix indentation.
1037 * dwarf2/read.h: Fix indentation.
1038 * elfread.c: Fix indentation.
1039 * eval.c: Fix indentation.
1040 * event-top.c: Fix indentation.
1041 * exec.c: Fix indentation.
1042 * exec.h: Fix indentation.
1043 * expprint.c: Fix indentation.
1044 * f-lang.c: Fix indentation.
1045 * f-typeprint.c: Fix indentation.
1046 * f-valprint.c: Fix indentation.
1047 * fbsd-nat.c: Fix indentation.
1048 * fbsd-tdep.c: Fix indentation.
1049 * findvar.c: Fix indentation.
1050 * fork-child.c: Fix indentation.
1051 * frame-unwind.c: Fix indentation.
1052 * frame-unwind.h: Fix indentation.
1053 * frame.c: Fix indentation.
1054 * frv-linux-tdep.c: Fix indentation.
1055 * frv-tdep.c: Fix indentation.
1056 * frv-tdep.h: Fix indentation.
1057 * ft32-tdep.c: Fix indentation.
1058 * gcore.c: Fix indentation.
1059 * gdb_bfd.c: Fix indentation.
1060 * gdbarch.sh: Fix indentation.
1061 * gdbarch.c: Re-generate
1062 * gdbarch.h: Re-generate.
1063 * gdbcore.h: Fix indentation.
1064 * gdbthread.h: Fix indentation.
1065 * gdbtypes.c: Fix indentation.
1066 * gdbtypes.h: Fix indentation.
1067 * glibc-tdep.c: Fix indentation.
1068 * gnu-nat.c: Fix indentation.
1069 * gnu-nat.h: Fix indentation.
1070 * gnu-v2-abi.c: Fix indentation.
1071 * gnu-v3-abi.c: Fix indentation.
1072 * go32-nat.c: Fix indentation.
1073 * guile/guile-internal.h: Fix indentation.
1074 * guile/scm-cmd.c: Fix indentation.
1075 * guile/scm-frame.c: Fix indentation.
1076 * guile/scm-iterator.c: Fix indentation.
1077 * guile/scm-math.c: Fix indentation.
1078 * guile/scm-ports.c: Fix indentation.
1079 * guile/scm-pretty-print.c: Fix indentation.
1080 * guile/scm-value.c: Fix indentation.
1081 * h8300-tdep.c: Fix indentation.
1082 * hppa-linux-nat.c: Fix indentation.
1083 * hppa-linux-tdep.c: Fix indentation.
1084 * hppa-nbsd-nat.c: Fix indentation.
1085 * hppa-nbsd-tdep.c: Fix indentation.
1086 * hppa-obsd-nat.c: Fix indentation.
1087 * hppa-tdep.c: Fix indentation.
1088 * hppa-tdep.h: Fix indentation.
1089 * i386-bsd-nat.c: Fix indentation.
1090 * i386-darwin-nat.c: Fix indentation.
1091 * i386-darwin-tdep.c: Fix indentation.
1092 * i386-dicos-tdep.c: Fix indentation.
1093 * i386-gnu-nat.c: Fix indentation.
1094 * i386-linux-nat.c: Fix indentation.
1095 * i386-linux-tdep.c: Fix indentation.
1096 * i386-nto-tdep.c: Fix indentation.
1097 * i386-obsd-tdep.c: Fix indentation.
1098 * i386-sol2-nat.c: Fix indentation.
1099 * i386-tdep.c: Fix indentation.
1100 * i386-tdep.h: Fix indentation.
1101 * i386-windows-tdep.c: Fix indentation.
1102 * i387-tdep.c: Fix indentation.
1103 * i387-tdep.h: Fix indentation.
1104 * ia64-libunwind-tdep.c: Fix indentation.
1105 * ia64-libunwind-tdep.h: Fix indentation.
1106 * ia64-linux-nat.c: Fix indentation.
1107 * ia64-linux-tdep.c: Fix indentation.
1108 * ia64-tdep.c: Fix indentation.
1109 * ia64-tdep.h: Fix indentation.
1110 * ia64-vms-tdep.c: Fix indentation.
1111 * infcall.c: Fix indentation.
1112 * infcmd.c: Fix indentation.
1113 * inferior.c: Fix indentation.
1114 * infrun.c: Fix indentation.
1115 * iq2000-tdep.c: Fix indentation.
1116 * language.c: Fix indentation.
1117 * linespec.c: Fix indentation.
1118 * linux-fork.c: Fix indentation.
1119 * linux-nat.c: Fix indentation.
1120 * linux-tdep.c: Fix indentation.
1121 * linux-thread-db.c: Fix indentation.
1122 * lm32-tdep.c: Fix indentation.
1123 * m2-lang.c: Fix indentation.
1124 * m2-typeprint.c: Fix indentation.
1125 * m2-valprint.c: Fix indentation.
1126 * m32c-tdep.c: Fix indentation.
1127 * m32r-linux-tdep.c: Fix indentation.
1128 * m32r-tdep.c: Fix indentation.
1129 * m68hc11-tdep.c: Fix indentation.
1130 * m68k-bsd-nat.c: Fix indentation.
1131 * m68k-linux-nat.c: Fix indentation.
1132 * m68k-linux-tdep.c: Fix indentation.
1133 * m68k-tdep.c: Fix indentation.
1134 * machoread.c: Fix indentation.
1135 * macrocmd.c: Fix indentation.
1136 * macroexp.c: Fix indentation.
1137 * macroscope.c: Fix indentation.
1138 * macrotab.c: Fix indentation.
1139 * macrotab.h: Fix indentation.
1140 * main.c: Fix indentation.
1141 * mdebugread.c: Fix indentation.
1142 * mep-tdep.c: Fix indentation.
1143 * mi/mi-cmd-catch.c: Fix indentation.
1144 * mi/mi-cmd-disas.c: Fix indentation.
1145 * mi/mi-cmd-env.c: Fix indentation.
1146 * mi/mi-cmd-stack.c: Fix indentation.
1147 * mi/mi-cmd-var.c: Fix indentation.
1148 * mi/mi-cmds.c: Fix indentation.
1149 * mi/mi-main.c: Fix indentation.
1150 * mi/mi-parse.c: Fix indentation.
1151 * microblaze-tdep.c: Fix indentation.
1152 * minidebug.c: Fix indentation.
1153 * minsyms.c: Fix indentation.
1154 * mips-linux-nat.c: Fix indentation.
1155 * mips-linux-tdep.c: Fix indentation.
1156 * mips-nbsd-tdep.c: Fix indentation.
1157 * mips-tdep.c: Fix indentation.
1158 * mn10300-linux-tdep.c: Fix indentation.
1159 * mn10300-tdep.c: Fix indentation.
1160 * moxie-tdep.c: Fix indentation.
1161 * msp430-tdep.c: Fix indentation.
1162 * namespace.h: Fix indentation.
1163 * nat/fork-inferior.c: Fix indentation.
1164 * nat/gdb_ptrace.h: Fix indentation.
1165 * nat/linux-namespaces.c: Fix indentation.
1166 * nat/linux-osdata.c: Fix indentation.
1167 * nat/netbsd-nat.c: Fix indentation.
1168 * nat/x86-dregs.c: Fix indentation.
1169 * nbsd-nat.c: Fix indentation.
1170 * nbsd-tdep.c: Fix indentation.
1171 * nios2-linux-tdep.c: Fix indentation.
1172 * nios2-tdep.c: Fix indentation.
1173 * nto-procfs.c: Fix indentation.
1174 * nto-tdep.c: Fix indentation.
1175 * objfiles.c: Fix indentation.
1176 * objfiles.h: Fix indentation.
1177 * opencl-lang.c: Fix indentation.
1178 * or1k-tdep.c: Fix indentation.
1179 * osabi.c: Fix indentation.
1180 * osabi.h: Fix indentation.
1181 * osdata.c: Fix indentation.
1182 * p-lang.c: Fix indentation.
1183 * p-typeprint.c: Fix indentation.
1184 * p-valprint.c: Fix indentation.
1185 * parse.c: Fix indentation.
1186 * ppc-linux-nat.c: Fix indentation.
1187 * ppc-linux-tdep.c: Fix indentation.
1188 * ppc-nbsd-nat.c: Fix indentation.
1189 * ppc-nbsd-tdep.c: Fix indentation.
1190 * ppc-obsd-nat.c: Fix indentation.
1191 * ppc-ravenscar-thread.c: Fix indentation.
1192 * ppc-sysv-tdep.c: Fix indentation.
1193 * ppc64-tdep.c: Fix indentation.
1194 * printcmd.c: Fix indentation.
1195 * proc-api.c: Fix indentation.
1196 * producer.c: Fix indentation.
1197 * producer.h: Fix indentation.
1198 * prologue-value.c: Fix indentation.
1199 * prologue-value.h: Fix indentation.
1200 * psymtab.c: Fix indentation.
1201 * python/py-arch.c: Fix indentation.
1202 * python/py-bpevent.c: Fix indentation.
1203 * python/py-event.c: Fix indentation.
1204 * python/py-event.h: Fix indentation.
1205 * python/py-finishbreakpoint.c: Fix indentation.
1206 * python/py-frame.c: Fix indentation.
1207 * python/py-framefilter.c: Fix indentation.
1208 * python/py-inferior.c: Fix indentation.
1209 * python/py-infthread.c: Fix indentation.
1210 * python/py-objfile.c: Fix indentation.
1211 * python/py-prettyprint.c: Fix indentation.
1212 * python/py-registers.c: Fix indentation.
1213 * python/py-signalevent.c: Fix indentation.
1214 * python/py-stopevent.c: Fix indentation.
1215 * python/py-stopevent.h: Fix indentation.
1216 * python/py-threadevent.c: Fix indentation.
1217 * python/py-tui.c: Fix indentation.
1218 * python/py-unwind.c: Fix indentation.
1219 * python/py-value.c: Fix indentation.
1220 * python/py-xmethods.c: Fix indentation.
1221 * python/python-internal.h: Fix indentation.
1222 * python/python.c: Fix indentation.
1223 * ravenscar-thread.c: Fix indentation.
1224 * record-btrace.c: Fix indentation.
1225 * record-full.c: Fix indentation.
1226 * record.c: Fix indentation.
1227 * reggroups.c: Fix indentation.
1228 * regset.h: Fix indentation.
1229 * remote-fileio.c: Fix indentation.
1230 * remote.c: Fix indentation.
1231 * reverse.c: Fix indentation.
1232 * riscv-linux-tdep.c: Fix indentation.
1233 * riscv-ravenscar-thread.c: Fix indentation.
1234 * riscv-tdep.c: Fix indentation.
1235 * rl78-tdep.c: Fix indentation.
1236 * rs6000-aix-tdep.c: Fix indentation.
1237 * rs6000-lynx178-tdep.c: Fix indentation.
1238 * rs6000-nat.c: Fix indentation.
1239 * rs6000-tdep.c: Fix indentation.
1240 * rust-lang.c: Fix indentation.
1241 * rx-tdep.c: Fix indentation.
1242 * s12z-tdep.c: Fix indentation.
1243 * s390-linux-tdep.c: Fix indentation.
1244 * score-tdep.c: Fix indentation.
1245 * ser-base.c: Fix indentation.
1246 * ser-mingw.c: Fix indentation.
1247 * ser-uds.c: Fix indentation.
1248 * ser-unix.c: Fix indentation.
1249 * serial.c: Fix indentation.
1250 * sh-linux-tdep.c: Fix indentation.
1251 * sh-nbsd-tdep.c: Fix indentation.
1252 * sh-tdep.c: Fix indentation.
1253 * skip.c: Fix indentation.
1254 * sol-thread.c: Fix indentation.
1255 * solib-aix.c: Fix indentation.
1256 * solib-darwin.c: Fix indentation.
1257 * solib-frv.c: Fix indentation.
1258 * solib-svr4.c: Fix indentation.
1259 * solib.c: Fix indentation.
1260 * source.c: Fix indentation.
1261 * sparc-linux-tdep.c: Fix indentation.
1262 * sparc-nbsd-tdep.c: Fix indentation.
1263 * sparc-obsd-tdep.c: Fix indentation.
1264 * sparc-ravenscar-thread.c: Fix indentation.
1265 * sparc-tdep.c: Fix indentation.
1266 * sparc64-linux-tdep.c: Fix indentation.
1267 * sparc64-nbsd-tdep.c: Fix indentation.
1268 * sparc64-obsd-tdep.c: Fix indentation.
1269 * sparc64-tdep.c: Fix indentation.
1270 * stabsread.c: Fix indentation.
1271 * stack.c: Fix indentation.
1272 * stap-probe.c: Fix indentation.
1273 * stubs/ia64vms-stub.c: Fix indentation.
1274 * stubs/m32r-stub.c: Fix indentation.
1275 * stubs/m68k-stub.c: Fix indentation.
1276 * stubs/sh-stub.c: Fix indentation.
1277 * stubs/sparc-stub.c: Fix indentation.
1278 * symfile-mem.c: Fix indentation.
1279 * symfile.c: Fix indentation.
1280 * symfile.h: Fix indentation.
1281 * symmisc.c: Fix indentation.
1282 * symtab.c: Fix indentation.
1283 * symtab.h: Fix indentation.
1284 * target-float.c: Fix indentation.
1285 * target.c: Fix indentation.
1286 * target.h: Fix indentation.
1287 * tic6x-tdep.c: Fix indentation.
1288 * tilegx-linux-tdep.c: Fix indentation.
1289 * tilegx-tdep.c: Fix indentation.
1290 * top.c: Fix indentation.
1291 * tracefile-tfile.c: Fix indentation.
1292 * tracepoint.c: Fix indentation.
1293 * tui/tui-disasm.c: Fix indentation.
1294 * tui/tui-io.c: Fix indentation.
1295 * tui/tui-regs.c: Fix indentation.
1296 * tui/tui-stack.c: Fix indentation.
1297 * tui/tui-win.c: Fix indentation.
1298 * tui/tui-winsource.c: Fix indentation.
1299 * tui/tui.c: Fix indentation.
1300 * typeprint.c: Fix indentation.
1301 * ui-out.h: Fix indentation.
1302 * unittests/copy_bitwise-selftests.c: Fix indentation.
1303 * unittests/memory-map-selftests.c: Fix indentation.
1304 * utils.c: Fix indentation.
1305 * v850-tdep.c: Fix indentation.
1306 * valarith.c: Fix indentation.
1307 * valops.c: Fix indentation.
1308 * valprint.c: Fix indentation.
1309 * valprint.h: Fix indentation.
1310 * value.c: Fix indentation.
1311 * value.h: Fix indentation.
1312 * varobj.c: Fix indentation.
1313 * vax-tdep.c: Fix indentation.
1314 * windows-nat.c: Fix indentation.
1315 * windows-tdep.c: Fix indentation.
1316 * xcoffread.c: Fix indentation.
1317 * xml-syscall.c: Fix indentation.
1318 * xml-tdesc.c: Fix indentation.
1319 * xstormy16-tdep.c: Fix indentation.
1320 * xtensa-config.c: Fix indentation.
1321 * xtensa-linux-nat.c: Fix indentation.
1322 * xtensa-linux-tdep.c: Fix indentation.
1323 * xtensa-tdep.c: Fix indentation.
1325 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1326 Craig Blackmore <craig.blackmore@embecosm.com>
1328 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1329 as an unsigned value.
1331 2020-11-01 Tom Tromey <tom@tromey.com>
1333 * dbxread.c (dbx_end_psymtab): Update.
1334 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1335 (build_type_psymtabs_reader): Update.
1336 * xcoffread.c (xcoff_end_psymtab): Update.
1337 * ctfread.c (scan_partial_symbols): Update.
1338 * psymtab.c (sort_pst_symbols): Remove.
1339 (partial_symtab::end): Rename from end_psymtab_common. Inline
1341 * psympriv.h (struct partial_symtab) <end>: New method.
1342 (end_psymtab_common): Don't declare.
1344 2020-11-01 Tom Tromey <tom@tromey.com>
1346 * symmisc.c (count_psyms): New function.
1347 (print_objfile_statistics): Use it.
1348 * psymtab.c (append_psymbol_to_list): Remove.
1349 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1350 * objfiles.h (struct objstats) <n_psyms>: Remove.
1352 2020-11-01 Tom Tromey <tom@tromey.com>
1354 * dbxread.c (dbx_end_psymtab): Update.
1355 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1356 (build_type_psymtabs_reader): Update.
1357 * xcoffread.c (xcoff_end_psymtab): Update.
1358 * ctfread.c (scan_partial_symbols): Update.
1359 * psympriv.h (end_psymtab_common): Update.
1360 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1361 (sort_pst_symbols): Likewise.
1363 2020-11-01 Tom Tromey <tom@tromey.com>
1365 * dbxread.c (dbx_symfile_read): Update.
1366 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1367 * xcoffread.c (xcoff_initial_scan): Update.
1368 * psympriv.h (init_psymbol_list): Don't declare.
1369 * psymtab.c (init_psymbol_list): Remove.
1371 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1373 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1374 gnat_encoded_fixed_type_info. Update all callers.
1376 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1378 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1381 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1383 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1384 cast_from_fixed. Update all callers.
1385 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1387 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1389 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1391 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1392 to print_gnat_encoded_fixed_point_type.
1393 * ada-valprint.c: Likewise.
1395 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1397 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1398 (debug_prefixed_printf): Add check of debug_displaced flag.
1399 * linux-nat.c (linux_nat_debug_printf): Add check of
1400 debug_linux_nat flag.
1402 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1404 * infrun.c (infrun_debug_printf_1): Remove.
1405 (displaced_debug_printf_1): Remove.
1406 (stop_all_threads): Use debug_prefixed_printf.
1407 * infrun.h (infrun_debug_printf_1): Remove.
1408 (infrun_debug_printf): Use debug_prefixed_printf.
1409 (displaced_debug_printf_1): Remove.
1410 (displaced_debug_printf): Use debug_prefixed_printf.
1411 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1412 (linux_nat_debug_printf): Use debug_prefixed_printf.
1414 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1416 * configure: Re-generate.
1417 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1420 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1422 * configure: Re-generate.
1424 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1426 * configure: Re-generate.
1428 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1430 * configure: Re-generate.
1432 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1434 * configure: Re-generate.
1436 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1438 * acinclude.m4: Modernize.
1439 * configure: Re-generate.
1441 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1443 * configure.ac: Modernize.
1444 * configure: Re-generate.
1446 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1448 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1449 * configure: Re-generate.
1450 * configure.ac: Remove AM_PROG_CC_STDC.
1452 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1454 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1455 AC_CANONICAL_SYSTEM.
1456 * configure: Re-generate.
1458 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1460 * infrun.h (displaced_debug_printf): New macro. Replace
1461 displaced debug prints throughout to use it.
1462 (displaced_debug_printf_1): New declaration.
1463 (displaced_step_dump_bytes): Return string, remove ui_file
1464 parameter, update all callers.
1465 * infrun.c (displaced_debug_printf_1): New function.
1466 (displaced_step_dump_bytes): Return string, remove ui_file
1469 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1471 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1473 2020-10-30 Tom Tromey <tromey@adacore.com>
1475 * Makefile.in (stamp-init): Depend on config.status.
1477 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1479 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1481 2020-10-30 Pedro Alves <pedro@palves.net>
1483 * thread.c (lookup_selected_frame): Move ...
1484 * frame.c (lookup_selected_frame): ... here.
1486 2020-10-30 Pedro Alves <pedro@palves.net>
1488 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1490 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1491 Use save_selected_frame. Save language as well.
1492 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1493 Use restore_selected_frame, and restore language as well.
1494 (selected_frame_id, selected_frame_level): New.
1495 (selected_frame): Update comments.
1496 (save_selected_frame, restore_selected_frame): New.
1497 (get_selected_frame): Use lookup_selected_frame.
1498 (get_selected_frame_if_set): Delete.
1499 (select_frame): Record selected_frame_level and selected_frame_id.
1500 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1502 (get_selected_frame): Make 'message' parameter optional.
1503 (get_selected_frame_if_set): Delete declaration.
1504 (select_frame): Update comments.
1505 (save_selected_frame, restore_selected_frame)
1506 (lookup_selected_frame): Declare.
1507 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1508 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1510 (save_infcall_control_state): Use save_selected_frame.
1511 (restore_selected_frame): Delete.
1512 (restore_infcall_control_state): Use restore_selected_frame.
1513 * stack.c (select_frame_command_core, frame_command_core): Use
1515 * thread.c (restore_selected_frame): Rename to ...
1516 (lookup_selected_frame): ... this and make extern. Select the
1517 current frame if the frame level is -1.
1518 (scoped_restore_current_thread::restore): Also restore the
1520 (scoped_restore_current_thread::~scoped_restore_current_thread):
1522 (scoped_restore_current_thread::scoped_restore_current_thread):
1523 Save the language as well. Use save_selected_frame.
1525 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1527 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1529 * gdbarch.h: Re-generate.
1531 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1533 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1535 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1537 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1539 * arch-utils.c (default_displaced_step_hw_singlestep):
1541 * arch-utils.h (default_displaced_step_hw_singlestep):
1543 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1545 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1547 * gdbarch.c: Re-generate.
1548 * gdbarch.h: Re-generate.
1549 * infrun.c (resume_1): Adjust.
1551 2020-10-29 Tom Tromey <tom@tromey.com>
1553 * progspace.c (program_space::~program_space): Don't call
1556 2020-10-29 Tom Tromey <tom@tromey.com>
1558 * exec.c (exec_target::close): Don't change current program
1561 2020-10-29 Tom Tromey <tom@tromey.com>
1563 * symfile.c (add_symbol_file_command): Update.
1564 * exec.c (program_space::add_target_sections): Rename.
1565 * symfile-mem.c (symbol_file_add_from_memory): Update.
1566 * progspace.h (struct program_space) <add_target_sections>:
1567 Declare new overload.
1568 * exec.h (add_target_sections_of_objfile): Don't declare.
1570 2020-10-29 Tom Tromey <tom@tromey.com>
1572 * solib.c (solib_map_sections): Update.
1573 * exec.c (program_space::add_target_sections): Now a method.
1574 (exec_file_attach): Update.
1575 * exec.h (add_target_sections): Don't declare.
1576 * progspace.h (struct program_space) <add_target_sections>:
1579 2020-10-29 Tom Tromey <tom@tromey.com>
1581 * progspace.h (struct program_space) <remove_target_sections>:
1583 * exec.c (program_space::remove_target_sections): Now a method.
1584 * exec.h (remove_target_sections): Don't declare.
1586 2020-10-29 Tom Tromey <tom@tromey.com>
1588 * inferior.c (delete_inferior): Update.
1589 * progspace.c (program_space::empty): Rename from
1590 program_space_empty_p. Return bool.
1591 * progspace.h (struct program_space) <empty>: New method.
1592 (program_space_empty_p): Don't declare.
1594 2020-10-29 Tom Tromey <tom@tromey.com>
1596 * progspace.c (program_space::~program_space): Don't call
1597 clear_program_space_solib_cache.
1598 (program_space::clear_solib_cache): Rename from
1600 * solib.c (handle_solib_event): Update.
1601 * progspace.h (struct program_space) <clear_solib_cache>: New
1603 (clear_program_space_solib_cache): Don't declare.
1605 2020-10-29 Tom Tromey <tom@tromey.com>
1607 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1608 * target.c (info_target_command): Update.
1609 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1610 (symbol_file_clear, reread_symbols): Update.
1611 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1612 * stabsread.c (scan_file_globals): Update.
1613 * solib.c (update_solib_list): Update.
1614 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1615 (svr4_fetch_objfile_link_map, enable_break)
1616 (svr4_relocate_main_executable)
1617 (svr4_iterate_over_objfiles_in_search_order): Update.
1618 * solib-frv.c (lm_base, enable_break)
1619 (frv_relocate_main_executable): Update.
1620 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1621 (frv_fetch_objfile_link_map): Update.
1622 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1623 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1624 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1625 * remote.c (remote_target::get_offsets): Update.
1626 (remote_target::start_remote)
1627 (extended_remote_target::post_attach): Update.
1628 * objfiles.c (entry_point_address_query): Update.
1629 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1630 * minsyms.c (get_symbol_leading_char): Update.
1631 * frame.c (inside_main_func): Update.
1632 * progspace.h (symfile_objfile): Remove macro.
1634 2020-10-29 Tom Tromey <tom@tromey.com>
1636 * exec.c (exec_file_attach): Update.
1637 * progspace.c (program_space::exec_close): Update.
1638 * progspace.h (struct program_space) <ebfd>: Now a
1640 <set_exec_bfd>: Change argument type.
1643 2020-10-29 Tom Tromey <tom@tromey.com>
1645 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1646 * symfile.c (reread_symbols): Update.
1647 * symfile-mem.c (add_symbol_file_from_memory_command)
1648 (add_vsyscall_page): Update.
1649 * source-cache.c (source_cache::get_plain_source_lines): Update.
1650 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1651 (svr4_current_sos_direct, svr4_exec_displacement)
1652 (svr4_relocate_main_executable): Update.
1653 (svr4_iterate_over_objfiles_in_search_order): Update.
1654 * solib-frv.c (enable_break2, enable_break): Update.
1655 * solib-dsbt.c (lm_base, enable_break): Update.
1656 * solib-darwin.c (find_program_interpreter)
1657 (darwin_solib_create_inferior_hook): Update.
1658 * sol-thread.c (rw_common, ps_pdmodel): Update.
1659 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1660 * remote.c (compare_sections_command)
1661 (remote_target::trace_set_readonly_regions): Update.
1662 * remote-sim.c (get_sim_inferior_data)
1663 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1664 (gdbsim_target_open, gdbsim_target::files_info): Update.
1665 * exec.h (exec_bfd): Remove macro.
1666 * progspace.c (initialize_progspace): Update.
1667 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1669 * nto-procfs.c (nto_procfs_target::post_attach)
1670 (nto_procfs_target::create_inferior): Update.
1671 * maint.c (maintenance_info_sections): Update.
1672 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1674 * infcmd.c (post_create_inferior): Update.
1675 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1676 (objfile_find_memory_regions): Update.
1677 * exec.c (validate_exec_file, exec_file_attach)
1678 (exec_read_partial_read_only, print_section_info): Update.
1679 * corelow.c (core_target_open): Update.
1680 * corefile.c (reopen_exec_file, validate_files): Update.
1681 * arm-tdep.c (gdb_print_insn_arm): Update.
1682 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1683 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1686 2020-10-29 Tom Tromey <tom@tromey.com>
1688 * progspace.h (current_target_sections): Remove macro.
1689 * solib-svr4.c (scan_dyntag): Update.
1690 * solib-dsbt.c (scan_dyntag): Update.
1691 * exec.c (exec_target::close): Update.
1692 (add_target_sections, add_target_sections_of_objfile)
1693 (remove_target_sections, exec_target::get_section_table)
1694 (exec_target::files_info, set_section_command)
1695 (exec_set_section_address, exec_target::has_memory)
1696 (exec_target::has_memory): Update.
1698 2020-10-29 Tom Tromey <tom@tromey.com>
1700 * source-cache.c (source_cache::get_plain_source_lines): Use
1701 current_program_space.
1702 * corefile.c (reopen_exec_file): Use current_program_space.
1703 * exec.c (exec_file_attach): Use current_program_space.
1704 * exec.h (exec_bfd_mtime): Remove.
1706 2020-10-29 Tom Tromey <tom@tromey.com>
1708 * gcore.c (default_gcore_mach): Remove.
1709 (create_gcore_bfd): Update.
1711 2020-10-29 Tom Tromey <tom@tromey.com>
1713 * progspace.c (program_space::exec_close): New method, from
1714 exec_close in exec.c.
1715 * exec.c (exec_close): Move to progspace.c.
1716 (exec_target::close, exec_file_attach): Update.
1717 * progspace.h (struct program_space) <exec_close>: Declare
1720 2020-10-29 Tom Tromey <tom@tromey.com>
1722 * progspace.h (struct program_space) <exec_filename>: Rename from
1723 pspace_exec_filename. Now a unique_xmalloc_ptr.
1724 * inferior.c (print_selected_inferior): Update.
1725 (print_inferior): Update.
1726 * mi/mi-main.c (print_one_inferior): Update.
1727 * exec.h (exec_filename): Remove macro.
1728 * corefile.c (get_exec_file): Update.
1729 * exec.c (exec_close): Update.
1730 (exec_file_attach): Update.
1731 * progspace.c (clone_program_space): Update.
1732 (print_program_space): Update.
1734 2020-10-29 Tom Tromey <tom@tromey.com>
1736 * target-section.h (struct target_section): Add constructor.
1737 * exec.c (build_section_table, add_target_sections_of_objfile):
1739 * corelow.c (core_target::build_file_mappings): Update.
1741 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1744 * inferior.c (detach_inferior_command): Restore the current thread.
1745 (kill_inferior_command): Ditto.
1747 2020-10-28 Tom de Vries <tdevries@suse.de>
1750 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1751 map, check it in the "best match" loop.
1753 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1755 * m32c-tdep.c: Remove unused includes.
1757 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1759 * xtensa-tdep.c: Remove includes.
1761 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1763 * breakpoint.c (struct condition_command_opts): New struct.
1764 (condition_command_option_defs): New static global.
1765 (make_condition_command_options_def_group): New function.
1766 (condition_completer): Update to consider the '-force' flag.
1767 (condition_command): Use gdb::option for the '-force' flag.
1769 2020-10-27 Tom de Vries <tdevries@suse.de>
1771 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1772 symbols in section check.
1774 2020-10-27 Tom de Vries <tdevries@suse.de>
1776 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1778 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1780 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1781 * breakpoint.c: Update the help text of the 'condition' and 'break'
1783 (set_breakpoint_condition): Take a new bool parameter
1784 to control whether condition definition should be forced even when
1785 the condition expression is invalid in all of the current locations.
1786 (condition_command): Update the call to 'set_breakpoint_condition'.
1787 (find_condition_and_thread): Take the "-force-condition" flag into
1789 * linespec.c (linespec_keywords): Add "-force-condition" as an
1791 (FORCE_KEYWORD_INDEX): New #define.
1792 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1794 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1795 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1796 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1797 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1799 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1802 * breakpoint.c (set_breakpoint_location_condition): New function.
1803 (set_breakpoint_condition): Disable a breakpoint location if parsing
1804 the condition string gives an error.
1805 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1806 (build_target_condition_list): Ditto.
1807 (build_target_command_list): Ditto.
1808 (build_bpstat_chain): Ditto.
1809 (print_one_breakpoint_location): Ditto.
1810 (print_one_breakpoint): Ditto.
1811 (breakpoint_1): Ditto.
1812 (bp_location::bp_location): Ditto.
1813 (locations_are_equal): Ditto.
1814 (update_breakpoint_locations): Ditto.
1815 (enable_disable_bp_num_loc): Ditto.
1816 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1817 (find_condition_and_thread_for_sals): New static function.
1818 (create_breakpoint): Call find_condition_and_thread_for_sals.
1819 (location_to_sals): Call find_condition_and_thread_for_sals instead
1820 of find_condition_and_thread.
1822 2020-10-26 Tom de Vries <tdevries@suse.de>
1824 * dwarf2/read.c (process_full_comp_unit): Call
1825 dwarf2_find_base_address.
1827 2020-10-26 Tom Tromey <tromey@adacore.com>
1829 * gdbtypes.c (create_range_type): Revert previous patch. Add
1832 2020-10-26 Pedro Alves <pedro@palves.net>
1834 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1835 (my_waitpid): Use gdb::handle_eintr.
1837 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1839 * acinclude.m4: Update ptrace.m4 path.
1840 * ptrace.m4: Moved to gdbsupport.
1842 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1844 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1845 instead of target_gdbarch.
1847 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1849 * jit.c (jit_reader_load_command): Pass current inferior.
1850 (jit_inferior_init): Change parameter type to inferior, use it.
1851 (jit_inferior_created): Remove.
1852 (jit_inferior_created_hook): Pass inferior parameter down.
1853 (_initialize_jit): Use jit_inferior_created_hook instead of
1854 jit_inferior_created.
1855 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1856 * infrun.c (follow_exec): Pass inferior to
1857 jit_inferior_created_hook.
1859 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1861 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1862 parameter and use it.
1863 (thread_db_inferior_created): Pass inferior argument.
1865 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1867 * aix-thread.c (aix_thread_inferior_created): Add inferior
1869 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1870 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1871 * jit.c (jit_inferior_created): Likewise.
1872 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1873 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1874 * observable.h (inferior_created): Likewise.
1875 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1876 * symfile-mem.c (add_vsyscall_page): Likewise.
1877 * infcmd.c (post_create_inferior): Pass inferior argument.
1879 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1883 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1885 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1886 to ada_check_typedef.
1888 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1890 * f-exp.y (f_parse): Rename to...
1891 (f_language::parser): ...this.
1892 * f-lang.c (f_get_encoding): Rename to...
1893 (f_language::get_encoding): ...this.
1894 (f_op_print_tab): Rename to...
1895 (f_language::op_print_tab): ...this.
1896 (exp_descriptor_f): Rename to...
1897 (f_language::exp_descriptor_tab): ...this.
1898 (class f_language): Moved to f-lang.h.
1899 (f_language::language_arch_info): New function, moved out of class
1901 (f_language::search_name_hash): Likewise.
1902 (f_language::lookup_symbol_nonlocal): Likewise.
1903 (f_language::get_symbol_name_matcher_inner): Likewise.
1904 * f-lang.h: Add 'valprint.h' include.
1905 (class f_language): Moved here from f-lang.c.
1906 * f-typeprint.c (f_type_print_args): Delete commented out
1908 (f_print_typedef): Rename to...
1909 (f_language::print_typedef): ...this.
1910 (f_print_type): Rename to...
1911 (f_language::print_type): ...this.
1912 (f_type_print_varspec_prefix): Delete declaration and rename to...
1913 (f_language::f_type_print_varspec_prefix): ...this.
1914 (f_type_print_varspec_suffix): Delete declaration and rename to...
1915 (f_language::f_type_print_varspec_suffix): ...this.
1916 (f_type_print_base): Delete declaration and rename to...
1917 (f_language::f_type_print_base): ...this.
1918 * f-valprint.c (f_value_print_inner): Rename to...
1919 (f_language::value_print_inner): ...this.
1920 * parse.c: Delete 'f-lang.h' include.
1922 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1924 * language.h (language_defn::print_type): Add variable names in
1925 declaration, and update header comment.
1927 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1929 * ada-lang.c (ada_language::demangle): Rename to...
1930 (ada_language::demangle_symbol): ...this.
1931 * c-lang.c (cplus_language::demangle): Rename to...
1932 (cplus_language::demangle_symbol): ...this.
1933 * d-lang.c (d_language::demangle): Rename to...
1934 (d_language::demangle_symbol): ...this.
1935 * f-lang.c (f_language::demangle): Rename to...
1936 (f_language::demangle_symbol): ...this.
1937 * go-lang.c (go_language::demangle): Rename to...
1938 (go_language::demangle_symbol): ...this.
1939 * language.c (language_demangle): Update call to demangle_symbol.
1940 (auto_or_unknown_language::demangle): Rename to...
1941 (auto_or_unknown_language::demangle_symbol): ...this.
1942 * language.h (language_defn::demangle): Rename to...
1943 (language_defn::demangle_symbol): ...this.
1944 * objc-lang.c (objc_language::demangle): Rename to...
1945 (objc_language::demangle_symbol): ...this.
1946 * rust-lang.c (rust_language::demangle): Rename to...
1947 (rust_language::demangle_symbol): ...this.
1949 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1951 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1952 (iterate_over_file_blocks): Replace use of macro with the macros
1955 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1957 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1958 * valprint.c (maybe_print_array_index): Replace use of macro with
1959 the macros definition.
1961 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963 * ada-lang.c (ada_language::print_array_index): Call value_print
1965 * language.c (language_defn::print_array_index): Likewise.
1966 * language.h (LA_VALUE_PRINT): Delete.
1967 * valprint.c (value_print): Call value_print on the
1968 current_language directly.
1970 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1972 * language.h (LA_PRINT_TYPEDEF): Delete.
1973 * typeprint.c (typedef_print): Call print_typedef directly on the
1974 current_language object.
1976 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * m2-exp.y (m2_parse): Rename to...
1979 (m2_language::parser): ...this. Update function signature.
1980 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1981 (m2_op_print): Rename to...
1982 (m2_language::op_print_tab): ...this, and make const.
1983 (exp_descriptor_modula2): Rename to...
1984 (m2_language::exp_descriptor_modula2): ...this.
1985 (class m2_language): Move to m2-lang.h.
1986 (m2_language::language_arch_info): New function, moved out of
1988 (m2_language::printchar): New function, body from m2_printchar.
1989 (m2_language::printstr): New function, moved out of class
1991 (m2_language::emitchar): Likewise.
1992 * m2-lang.h (m2_parse): Delete declaration.
1993 (m2_print_typedef): Delete declaration.
1994 (m2_value_print_inner): Delete declaration.
1995 (class m2_language): Class declaration moved from m2-lang.c,
1996 larger functions are left in m2-lang.c.
1997 * m2-typeprint.c (m2_print_typedef): Rename to...
1998 (m2_language::print_typedef): ...this, and update function
2000 * m2-valprint.c (m2_value_print_inner): Rename to...
2001 (m2_language::value_print_inner): ...this, replace use of
2002 LA_PRINT_STRING with a direct call to printstr member function,
2003 and update recursive call.
2005 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2007 * language.c (default_is_string_type_p): Delete, implementation
2008 moved into auto_or_unknown_language::is_string_type_p.
2009 (unk_op_print_tab): Moved into
2010 auto_or_unknown_language::opcode_print_table.
2011 (unknown_language_arch_info): Delete, implementation moved into
2012 auto_or_unknown_language::language_arch_info.
2013 (class auto_or_unknown_language): New class, member functions
2014 copied from unknown_language class, with some updates.
2015 (class unknown_language): Most member functions moved into
2016 auto_or_unknown_language class. Inherit from
2017 auto_or_unknown_language class.
2018 (class auto_language): Inherit from auto_or_unknown_language.
2019 Delete most member functions.
2021 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2023 * stabsread.c (read_member_functions): Remove gdb_assert.
2025 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2027 * gdbtypes.c (init_complex_type): Check target type name.
2029 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2031 * target-debug.h (target_debug_print_struct_target_ops_p):
2033 (target_debug_print_async_callback_ftype_p): Remove.
2034 (target_debug_print_struct_trace_state_variable_p): Remove.
2035 (target_debug_print_struct_traceframe_info_p): Remove.
2036 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2037 (target_debug_print_enum_btrace_format): Remove.
2038 (target_debug_print_enum_info_proc_what): Remove.
2039 (target_debug_print_thread_info_pp): Remove.
2041 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2043 * target.h (struct target_ops) <make_corefile_notes>:
2044 Change return type to unique pointer.
2045 * target.c (dummy_make_corefile_notes): Likewise.
2046 * exec.c (struct exec_target) <make_corefile_notes>:
2048 (exec_target::make_corefile_notes): Likewise.
2049 * procfs.c (class procfs_target) <make_corefile_notes>:
2051 (procfs_do_thread_registers): Adjust to unique pointer.
2052 (struct procfs_corefile_thread_data): Add constructor.
2053 <note_data>: Change type to unique pointer.
2054 (procfs_corefile_thread_callback): Adjust to unique pointer.
2055 (procfs_target::make_corefile_notes): Change return type to
2057 * target-delegates.c: Re-generate.
2058 * gcore.c (write_gcore_file_1): Adjust.
2059 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2062 2020-10-22 Tom de Vries <tdevries@suse.de>
2064 * block.c (find_block_in_blockvector): Make sure the returned block
2067 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2070 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2072 (load_cu): Pass existing CU.
2073 (process_imported_unit_die): Likewise.
2074 (follow_die_offset): Likewise.
2076 2020-10-22 Luis Machado <luis.machado@linaro.org>
2078 * corelow.c (core_target::xfer_partial): Also check for an empty
2079 m_core_unavailable_mappings vector.
2081 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2083 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2084 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2085 * f-exp.y (arglist): Allow for a series of subranges.
2086 (subrange): Add cases for subranges with strides.
2087 * f-lang.c (value_f90_subarray): Catch use of array strides and
2089 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2091 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2093 * expprint.c (print_subexp_standard): Change enum range_type to
2094 range_flag and rename variables to match.
2095 (dump_subexp_body_standard): Likewise.
2096 * expression.h (enum range_type): Rename to...
2097 (enum range_flag): ...this.
2098 (range_types): Rename to...
2099 (range_flags): ...this.
2100 * f-lang.c (value_f90_subarray): Change enum range_type to
2101 range_flag and rename variables to match.
2102 * parse.c (operator_length_standard): Likewise.
2103 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2104 range_type to range_flag.
2105 * rust-lang.c (rust_evaluate_funcall): Likewise.
2106 (rust_range): Likewise.
2107 (rust_compute_range): Likewise.
2108 (rust_subscript): Likewise.
2110 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2112 * expprint.c (print_subexp_standard): Update to reflect changes to
2114 (dump_subexp_body_standard): Likewise.
2115 * expression.h (enum range_type): Convert to a bit field enum, and
2116 make the enum unsigned.
2117 * f-exp.y (subrange): Update to reflect changes to enum
2119 * f-lang.c (value_f90_subarray): Likewise.
2120 * parse.c (operator_length_standard): Likewise.
2121 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2122 * rust-lang.c (rust_range): Likewise.
2123 (rust_compute_range): Likewise.
2124 (rust_subscript): Likewise.
2126 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2128 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2129 (displaced_step_in_progress): Fix comment.
2131 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2133 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2134 * gdbarch.c: Re-generate.
2135 * gdbarch.h: Re-generate.
2136 * gcore.c (write_gcore_file_1): Adjust.
2137 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2139 <note_data>: Change type to unique pointer.
2140 <abort_iteration>: Change type to bool.
2141 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2142 (fbsd_collect_thread_registers): Return void, adjust.
2143 (struct fbsd_corefile_thread_data): Add construtor.
2144 <note_data>: Change type to unique pointer.
2145 (fbsd_corefile_thread): Adjust.
2146 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2147 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2148 to unique pointer, adjust.
2149 (struct linux_collect_regset_section_cb_data): Add constructor.
2150 <note_data>: Change type to unique pointer.
2151 <abort_iteration>: Change type to bool.
2152 (linux_collect_thread_registers): Return void, adjust.
2153 (struct linux_corefile_thread_data): Add constructor.
2154 <note_data>: Change type to unique pointer.
2155 (linux_corefile_thread): Adjust.
2156 (linux_make_corefile_notes): Return unique pointer, adjust.
2158 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2160 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2161 * gdbarch.c: Re-generate.
2162 * gdbarch.h: Re-generate.
2163 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2165 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2167 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2168 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2169 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2170 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2172 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2174 * gdbarch.sh: Make generated predicates return bool.
2175 * gdbarch.c: Re-generate.
2176 * gdbarch.h: Re-generate.
2178 2020-10-20 Tom Tromey <tom@tromey.com>
2180 * varobj-iter.h (struct varobj_item): Remove typedef.
2182 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2184 * infrun.c (currently_stepping): Change int to bool
2185 (maybe_software_singlestep): Likewise.
2186 (show_stop_on_solib_events): Likewise.
2187 (stepping_past_nonsteppable_watchpoint): Likewise.
2188 (displaced_step_in_progress_any_inferior): Likewise.
2189 (displaced_step_in_progress_thread): Likewise.
2190 (keep_going_stepped_thread): Likewise.
2191 (thread_still_needs_step_over): Likewise.
2192 (start_step_over): Likewise.
2193 (do_target_resume): Likewise.
2194 (resume_1): Likewise.
2195 (clear_proceed_status): Likewise.
2196 (thread_still_needs_step_over_bp): Likewise.
2197 (proceed): Likewise.
2198 (switch_back_to_stepped_thread): Likewise.
2199 (adjust_pc_after_break): Likewise.
2200 (stepped_in_from): Likewise.
2201 (handle_stop_requested): Likewise.
2202 (handle_syscall_event): Likewise.
2203 (handle_no_resumed): Likewise.
2204 (handle_inferior_event): Likewise.
2205 (finish_step_over): Likewise.
2206 (handle_signal_stop): Likewise.
2207 (process_event_stop_test): Likewise.
2209 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2211 * infrun.c (get_displaced_stepping_state): Fix comment.
2213 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2215 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2217 2020-10-19 Tom Tromey <tromey@adacore.com>
2220 * tui/tui-winsource.h (struct tui_source_window_base)
2221 <refresh_window>: Rename from refresh_pad.
2222 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2223 Rename from refresh_pad.
2224 (tui_source_window_base::show_source_content)
2225 (tui_source_window_base::do_scroll_horizontal): Update.
2227 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2229 * thread.c (_initialize_thread): Fine-tune the help text of
2232 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2234 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2236 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2238 * breakpoint.c (handle_jit_event): Add an argument, change how
2239 `jit_event_handler` is called.
2241 2020-10-17 Tom Tromey <tom@tromey.com>
2243 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2244 (scan_xcoff_symtab): Update.
2245 * psymtab.h (class psymtab_storage) <global_psymbols,
2246 static_psymbols, current_global_psymbols,
2247 current_static_psymbols>: Remove.
2248 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2249 (match_partial_symbol, lookup_partial_symbol): Update.
2250 (print_partial_symbols): Change parameters.
2251 (dump_psymtab, recursively_search_psymtabs)
2252 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2253 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2255 (end_psymtab_common): Simplify.
2256 (append_psymbol_to_list): Change parameters.
2257 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2258 (init_psymbol_list): Simplify.
2259 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2260 * psympriv.h (struct partial_symtab) <empty>: New method.
2261 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2263 <global_psymbols, static_psymbols>: New members.
2264 <add_psymbol>: New methods.
2265 (add_psymbol_to_list): Don't declare.
2266 (psymbol_placement): Move earlier.
2267 * mdebugread.c (parse_partial_symbols): Update.
2268 (handle_psymbol_enumerators): Change parameters.
2269 (mdebug_expand_psymtab): Update.
2270 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2271 (add_partial_symbol): Update.
2272 * dwarf2/index-write.c (write_psymbols): Change parameters.
2273 (write_one_signatured_type): Update.
2274 (recursively_count_psymbols): Update.
2275 (recursively_write_psymbols): Update.
2276 (class debug_names) <recursively_write_psymbols>: Update.
2277 <write_psymbols>: Change parameters.
2278 <write_one_signatured_type>: Update.
2279 * dbxread.c (read_dbx_symtab): Update.
2280 (dbx_end_psymtab): Use partial_symtab::empty.
2281 * ctfread.c (struct ctf_context) <pst>: New member.
2282 (create_partial_symtab): Set it.
2283 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2284 (scan_partial_symbols): Use the psymtab's context. Update.
2286 2020-10-17 Tom Tromey <tom@tromey.com>
2288 * valprint.c (generic_value_print): Remove comment.
2289 * m2-valprint.c (m2_value_print_inner): Remove comment.
2290 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2293 2020-10-17 Tom de Vries <tdevries@suse.de>
2296 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2299 2020-10-14 Tom de Vries <tdevries@suse.de>
2302 * solib.c (solib_contains_address_p): Handle
2303 'solib->sections == nullptr'.
2305 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2308 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2309 target can't do async.
2310 * target.c (target_wait): Assert that we don't pass
2311 TARGET_WNOHANG to a target that can't async.
2313 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2315 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2316 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2317 * alpha-bsd-nat.c: Adjust include.
2318 * alpha-bsd-tdep.h: Adjust comment.
2319 * alpha-nbsd-tdep.c: Rename to ...
2320 * alpha-netbsd-tdep.c: ... this, adjust include.
2321 * amd64-nbsd-nat.c: Rename to ...
2322 * amd64-netbsd-nat.c: ... this, adjust include.
2323 * amd64-nbsd-tdep.c: Rename to ...
2324 * amd64-netbsd-tdep.c: ... this, adjust include.
2325 * amd64-tdep.h: Adjust include.
2326 * arm-nbsd-nat.c: Rename to ...
2327 * arm-netbsd-nat.c: ... this, adjust include.
2328 * arm-nbsd-tdep.c: Rename to ...
2329 * arm-netbsd-tdep.c: ... this, adjust include.
2330 * arm-nbsd-tdep.h: Rename to ...
2331 * arm-netbsd-tdep.h: ... this, adjust include.
2332 * configure.nat: Adjust file lists.
2333 * configure.tgt: Likewise.
2334 * hppa-nbsd-nat.c: Rename to ...
2335 * hppa-netbsd-nat.c: ... this, adjust include.
2336 * hppa-nbsd-tdep.c: Rename to ...
2337 * hppa-netbsd-tdep.c: ... this, adjust include.
2338 * i386-nbsd-nat.c: Rename to ...
2339 * i386-netbsd-nat.c: ... this, adjust include.
2340 * i386-nbsd-tdep.c: Rename to ...
2341 * i386-netbsd-tdep.c: ... this, adjust include.
2342 * m68k-bsd-nat.c: Adjust include.
2343 * mips-nbsd-nat.c: Rename to ...
2344 * mips-netbsd-nat.c: ... this, adjust include.
2345 * mips-nbsd-tdep.c: Rename to ...
2346 * mips-netbsd-tdep.c: ... this, adjust include.
2347 * mips-nbsd-tdep.h: Rename to ...
2348 * mips-netbsd-tdep.h: ... this.
2349 * nbsd-nat.c: Rename to ...
2350 * netbsd-nat.c: ... this, adjust include.
2351 * nbsd-nat.h: Rename to ...
2352 * netbsd-nat.h: ... this, adjust include.
2353 * nbsd-tdep.c: Rename to ...
2354 * netbsd-tdep.c: ... this, adjust include.
2355 * nbsd-tdep.h: Rename to ...
2356 * netbsd-tdep.h: ... this.
2357 * ppc-nbsd-nat.c: Rename to ...
2358 * ppc-netbsd-nat.c: ... this, adjust include.
2359 * ppc-nbsd-tdep.c: Rename to ...
2360 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2361 * ppc-nbsd-tdep.h: Rename to ...
2362 * ppc-netbsd-tdep.h: ... this.
2363 * sh-nbsd-nat.c: Rename to ...
2364 * sh-netbsd-nat.c: ... this, adjust include.
2365 * sh-nbsd-tdep.c: Rename to ...
2366 * sh-netbsd-tdep.c: ... this, adjust include.
2367 * sparc-nbsd-nat.c: Rename to ...
2368 * sparc-netbsd-nat.c: ... this.
2369 * sparc-nbsd-tdep.c: Rename to ...
2370 * sparc-netbsd-tdep.c: ... this, adjust include.
2371 * sparc64-nbsd-nat.c: Rename to ...
2372 * sparc64-netbsd-nat.c: ... this.
2373 * sparc64-nbsd-tdep.c: Rename to ...
2374 * sparc64-netbsd-tdep.c: ... this, adjust include.
2375 * sparc64-tdep.h: Adjust comment.
2376 * vax-bsd-nat.c: Adjust include.
2377 * vax-nbsd-tdep.c: Rename to ...
2378 * vax-netbsd-tdep.c: ... this, adjust include.
2380 2020-10-12 Tom Tromey <tom@tromey.com>
2382 * target.h (struct target_ops) <get_section_table>: Update.
2383 (target_get_section_table): Update.
2384 * target.c (target_get_section_table, target_section_by_addr)
2385 (memory_xfer_partial_1): Update.
2386 * target-section.h (target_section_table): Now an alias.
2387 * target-delegates.c: Rebuild.
2388 * target-debug.h (target_debug_print_target_section_table_p):
2389 Rename from target_debug_print_struct_target_section_table_p.
2390 * symfile.c (build_section_addr_info_from_section_table): Update.
2391 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2392 * solib-svr4.c (scan_dyntag): Update.
2393 * solib-dsbt.c (scan_dyntag): Update.
2394 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2396 * record-full.c (record_full_core_target::xfer_partial): Update.
2397 * progspace.h (struct program_space) <target_sections>: Update.
2398 * exec.h (print_section_info): Update.
2399 * exec.c (exec_target::close, build_section_table)
2400 (add_target_sections, add_target_sections_of_objfile)
2401 (remove_target_sections, exec_on_vfork)
2402 (section_table_available_memory)
2403 (section_table_xfer_memory_partial)
2404 (exec_target::get_section_table, exec_target::xfer_partial)
2405 (print_section_info, set_section_command)
2406 (exec_set_section_address, exec_target::has_memory): Update.
2407 * corelow.c (core_target::build_file_mappings)
2408 (core_target::xfer_partial, core_target::info_proc_mappings)
2409 (core_target::info_proc_mappings): Update.
2410 * bfd-target.c (class target_bfd): Update
2412 2020-10-12 Tom Tromey <tom@tromey.com>
2414 * progspace.c (program_space::~program_space): Don't call
2415 clear_section_table.
2416 * exec.h (clear_section_table): Don't declare.
2417 * exec.c (exec_target::close): Update.
2418 (clear_section_table): Remove.
2420 2020-10-12 Tom Tromey <tom@tromey.com>
2422 * exec.c (add_target_sections_of_objfile): Simplify.
2424 2020-10-12 Tom Tromey <tom@tromey.com>
2426 * solib.c (solib_map_sections): Update.
2427 * record-full.c (record_full_core_open_1): Update.
2428 * exec.h (build_section_table): Return a target_section_table.
2429 * exec.c (exec_file_attach): Update.
2430 (build_section_table): Return a target_section_table.
2431 * corelow.c (core_target::core_target): Update.
2432 * bfd-target.c (target_bfd::target_bfd): Update.
2434 2020-10-12 Tom Tromey <tom@tromey.com>
2436 * target.c (target_section_by_addr, memory_xfer_partial_1):
2438 * target-section.h (struct target_section_table): Use
2440 * symfile.h (build_section_addr_info_from_section_table): Take a
2441 target_section_table.
2442 * symfile.c (build_section_addr_info_from_section_table): Take a
2443 target_section_table.
2444 * solist.h (struct so_list) <sections>: Change type.
2445 <sections_end>: Remove.
2446 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2447 (solib_contains_address_p): Update.
2448 * solib-svr4.c (scan_dyntag): Update.
2449 * solib-dsbt.c (scan_dyntag): Update.
2450 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2452 * record-full.c (record_full_core_start, record_full_core_end):
2454 (record_full_core_sections): New global.
2455 (record_full_core_open_1, record_full_core_target::xfer_partial):
2457 * exec.h (build_section_table, section_table_xfer_memory_partial)
2458 (add_target_sections): Take a target_section_table.
2459 * exec.c (exec_file_attach, clear_section_table): Update.
2460 (resize_section_table): Remove.
2461 (build_section_table, add_target_sections): Take a
2462 target_section_table.
2463 (add_target_sections_of_objfile, remove_target_sections)
2464 (exec_on_vfork): Update.
2465 (section_table_available_memory): Take a target_section_table.
2466 (section_table_read_available_memory): Update.
2467 (section_table_xfer_memory_partial): Take a target_section_table.
2468 (print_section_info, set_section_command)
2469 (exec_set_section_address, exec_target::has_memory): Update.
2470 * corelow.c (class core_target) <m_core_section_table,
2471 m_core_file_mappings>: Remove braces.
2472 <~core_target>: Remove.
2473 (core_target::core_target): Update.
2474 (core_target::~core_target): Remove.
2475 (core_target::build_file_mappings)
2476 (core_target::xfer_memory_via_mappings)
2477 (core_target::xfer_partial, core_target::info_proc_mappings):
2479 * bfd-target.c (target_bfd::xfer_partial): Update.
2480 (target_bfd::target_bfd): Update.
2481 (target_bfd::~target_bfd): Remove.
2483 2020-10-12 Tom Tromey <tom@tromey.com>
2485 * target.h (struct target_section, struct target_section_table):
2486 Move to target-section.h.
2487 * target-section.h: New file.
2489 2020-10-12 Pedro Alves <pedro@palves.net>
2492 * valops.c (struct struct_field_searcher): New.
2493 (update_search_result): Rename to ...
2494 (struct_field_searcher::update_result): ... this. Simplify
2495 prototype. Record all found fields.
2496 (do_search_struct_field): Rename to ...
2497 (struct_field_searcher::search): ... this. Simplify prototype.
2498 Maintain stack of visited baseclass path. Call update_result for
2499 fields too. Keep searching fields in baseclasses instead of
2500 stopping at the first found field.
2501 (search_struct_field): Use struct_field_searcher. When looking
2502 for fields, report ambiguous access attempts.
2504 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2506 * frame.c (inside_main_func): Check full symbols as well as
2509 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2511 * ada-lang.c (advance_wild_match): Rewrite the function's
2512 description. Change the type of target0, t0 and t1 to char.
2514 2020-10-09 Tom Tromey <tromey@adacore.com>
2516 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2518 2020-10-09 Tom Tromey <tromey@adacore.com>
2520 * ada-lang.h (ada_encode): Return std::string.
2521 * ada-lang.c (ada_encode_1): Return std::string.
2522 (ada_encode): Likewise.
2523 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2525 * ada-exp.y (block_lookup, write_var_or_type): Update.
2527 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2530 * printcmd.c (print_formatted): Handle void results as
2533 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2535 * arch/aarch32.c (aarch32_create_target_description): Release the
2536 target_desc_up as late as possible.
2537 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2538 * arch/amd64.c (amd64_create_target_description): Likewise.
2539 * arch/arc.c (arc_create_target_description): Return a
2540 target_desc_up, don't release it.
2541 * arch/arc.h (arc_create_target_description): Update declaration.
2542 (arc_lookup_target_description): Move target_desc_up into the
2543 cache, and return a borrowed pointer.
2544 * arch/arm.c (arm_create_target_description): Release the
2545 target_desc_up as late as possible.
2546 * arch/i386.c (i386_create_target_description): Likewise.
2547 * arch/riscv.h (riscv_create_target_description): Update
2548 declaration to match definition.
2549 * arch/tic6x.c (tic6x_create_target_description): Release the
2550 target_desc_up as late as possible.
2552 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2554 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2555 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2557 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2559 * source.c (directory_command): Notify observers that "directories"
2560 parameter has changed.
2562 2020-10-08 Tom Tromey <tom@tromey.com>
2564 * cli/cli-cmds.c (print_disassembly): Style function name and
2565 addresses. Add _() wrappers.
2567 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2569 * NEWS: Mention ARC support in GDBserver.
2571 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2573 * arch/aarch32.c (aarch32_create_target_description): Release
2574 unique_ptr returned from allocate_target_description.
2575 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2576 * arch/amd64.c (amd64_create_target_description): Likewise.
2577 * arch/arc.c (arc_create_target_description): Likewise.
2578 * arch/arm.c (arm_create_target_description): Likewise.
2579 * arch/i386.c (i386_create_target_description): Likewise.
2580 * arch/riscv.c (riscv_create_target_description): Update return
2581 type. Handle allocate_target_description returning a unique_ptr.
2582 (riscv_lookup_target_description): Update to handle unique_ptr.
2583 * arch/tic6x.c (tic6x_create_target_description): Release
2584 unique_ptr returned from allocate_target_description.
2585 * features/microblaze-with-stack-protect.c: Regenerate.
2586 * features/microblaze.c: Regenerate.
2587 * features/mips-dsp-linux.c: Regenerate.
2588 * features/mips-linux.c: Regenerate.
2589 * features/mips64-dsp-linux.c: Regenerate.
2590 * features/mips64-linux.c: Regenerate.
2591 * features/nds32.c: Regenerate.
2592 * features/nios2.c: Regenerate.
2593 * features/or1k.c: Regenerate.
2594 * features/rs6000/powerpc-32.c: Regenerate.
2595 * features/rs6000/powerpc-32l.c: Regenerate.
2596 * features/rs6000/powerpc-403.c: Regenerate.
2597 * features/rs6000/powerpc-403gc.c: Regenerate.
2598 * features/rs6000/powerpc-405.c: Regenerate.
2599 * features/rs6000/powerpc-505.c: Regenerate.
2600 * features/rs6000/powerpc-601.c: Regenerate.
2601 * features/rs6000/powerpc-602.c: Regenerate.
2602 * features/rs6000/powerpc-603.c: Regenerate.
2603 * features/rs6000/powerpc-604.c: Regenerate.
2604 * features/rs6000/powerpc-64.c: Regenerate.
2605 * features/rs6000/powerpc-64l.c: Regenerate.
2606 * features/rs6000/powerpc-7400.c: Regenerate.
2607 * features/rs6000/powerpc-750.c: Regenerate.
2608 * features/rs6000/powerpc-860.c: Regenerate.
2609 * features/rs6000/powerpc-altivec32.c: Regenerate.
2610 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2611 * features/rs6000/powerpc-altivec64.c: Regenerate.
2612 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2613 * features/rs6000/powerpc-e500.c: Regenerate.
2614 * features/rs6000/powerpc-e500l.c: Regenerate.
2615 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2616 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2617 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2618 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2619 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2620 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2621 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2622 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2623 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2624 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2625 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2626 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2627 * features/rs6000/powerpc-vsx32.c: Regenerate.
2628 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2629 * features/rs6000/powerpc-vsx64.c: Regenerate.
2630 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2631 * features/rs6000/rs6000.c: Regenerate.
2632 * features/rx.c: Regenerate.
2633 * features/s390-gs-linux64.c: Regenerate.
2634 * features/s390-linux32.c: Regenerate.
2635 * features/s390-linux32v1.c: Regenerate.
2636 * features/s390-linux32v2.c: Regenerate.
2637 * features/s390-linux64.c: Regenerate.
2638 * features/s390-linux64v1.c: Regenerate.
2639 * features/s390-linux64v2.c: Regenerate.
2640 * features/s390-te-linux64.c: Regenerate.
2641 * features/s390-tevx-linux64.c: Regenerate.
2642 * features/s390-vx-linux64.c: Regenerate.
2643 * features/s390x-gs-linux64.c: Regenerate.
2644 * features/s390x-linux64.c: Regenerate.
2645 * features/s390x-linux64v1.c: Regenerate.
2646 * features/s390x-linux64v2.c: Regenerate.
2647 * features/s390x-te-linux64.c: Regenerate.
2648 * features/s390x-tevx-linux64.c: Regenerate.
2649 * features/s390x-vx-linux64.c: Regenerate.
2650 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2651 from allocate_target_description.
2652 * target-descriptions.c (allocate_target_description): Update
2654 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2655 allocate_target_description.
2657 2020-10-07 Tom Tromey <tromey@adacore.com>
2659 * unittests/search-memory-selftests.c: New file.
2660 * Makefile.in (SELFTESTS_SRCS): Add
2661 unittests/search-memory-selftests.c.
2663 2020-10-07 Tom Tromey <tromey@adacore.com>
2666 * findcmd.c (_initialize_mem_search): Mention that the range is
2669 2020-10-07 Tom Tromey <tromey@adacore.com>
2671 * target.h (simple_search_memory): Don't declare.
2672 * target.c (simple_search_memory): Move to gdbsupport.
2673 (default_search_memory): Update.
2674 * remote.c (remote_target::search_memory): Update.
2676 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2678 * Makefile.in (COMPILE): Add CXXFLAGS.
2679 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2680 (check-headers): Add CXXFLAGS.
2682 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2684 * arc-linux-tdep.h: New file.
2685 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2686 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2687 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2688 arc_linux_gregset, arc_linux_v2_regset,
2689 arc_linux_iterate_over_regset_sections,
2690 arc_linux_core_read_description): Implement.
2691 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2692 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2693 (arc_gdbarch_features_create): Add.
2694 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2696 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2698 * arch/arc.h: Rename "arc_gdbarch_features" to
2699 "arc_arch_features".
2700 * arc-tdep.h: Likewise.
2701 * arc-tdep.c: Likewise.
2703 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2705 * infcmd.c (attach_command): Remove the redundant call to
2706 `clear_proceed_status`.
2708 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2710 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2712 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2714 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2715 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2716 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2718 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2720 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2721 (_initialize_break_catch_sig): Don't allocate array.
2723 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2725 * symtab.c (find_pc_line): Return unmapped addresses when the
2726 requested address is also unmapped.
2728 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2730 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2733 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2735 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2736 type::is_vector instead of TYPE_VECTOR.
2738 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2740 * auto-load.c (auto_load_objfile_script_1): Don't use
2741 debugfile_holder as temporary variable when stripping drive
2744 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2746 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2747 Add TYPE_CODE_COMPLEX.
2748 (amd64_windows_return_value): Fix types returned via XMM0.
2750 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2752 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2753 AArch64/ARM maintainers.
2755 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2757 * NEWS: Mention set/show debug event-loop.
2759 2020-10-02 Tom Tromey <tromey@adacore.com>
2761 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2764 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2766 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2767 * procfs.c (procfs_inferior_created): Remove.
2768 (_initialize_procfs): Don't register procfs_inferior_created.
2770 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2772 * async-event.c (invoke_async_signal_handlers): Add debug
2774 (check_async_event_handlers): Likewise.
2775 * event-top.c (show_debug_event_loop): New function.
2776 (_initialize_event_top): Register "set debug event-loop"
2779 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2781 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2783 * infrun.c: Include gdbsupport/common-debug.h.
2784 * linux-nat.c: Likewise.
2786 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2788 * async-event.h (create_async_signal_handler): Add name
2790 (create_async_event_handler): Likewise.
2791 * async-event.c (struct async_signal_handler) <name>: New field.
2792 (struct async_event_handler) <name>: New field.
2793 (create_async_signal_handler): Assign name.
2794 (create_async_event_handler): Assign name.
2795 * event-top.c (async_init_signals): Pass name when creating
2797 * infrun.c (_initialize_infrun): Likewise.
2798 * record-btrace.c (record_btrace_push_target): Likewise.
2799 * record-full.c (record_full_open): Likewise.
2800 * remote-notif.c (remote_notif_state_allocate): Likewise.
2801 * remote.c (remote_target::open_1): Likewise.
2802 * tui/tui-win.c (tui_initialize_win): Likewise.
2804 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2806 * async-event.c (initialize_async_signal_handlers): Pass name to
2808 * event-top.c (ui_register_input_event_handler): Likewise.
2809 * linux-nat.c (linux_nat_target::async): Likewise.
2810 * run-on-main-thread.c (_initialize_run_on_main_thread):
2812 * ser-base.c (reschedule): Likewise.
2813 (ser_base_async): Likewise.
2814 * tui/tui-io.c: Likewise.
2815 * top.h (struct ui) <num>: New field.
2816 * top.c (highest_ui_num): New variable.
2817 (ui::ui): Initialize num.
2819 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2821 * observable.h <inferior_created>: Remove parameters. Update all
2823 * inferior.h (post_create_inferior): Remove target parameter.
2826 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2828 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2829 and DW_MACRO_undef_strx.
2830 (dwarf_decode_macros): Likewise
2831 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2832 which is the value of DW_AT_str_offsets_base.
2833 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2836 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2838 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2840 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2842 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2843 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2845 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2847 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2849 2020-09-30 Tom de Vries <tdevries@suse.de>
2852 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2854 2020-09-30 Tom Tromey <tromey@adacore.com>
2856 * dwarf2/read.c (handle_variant): Use constant_value.
2858 2020-09-29 Tom Tromey <tom@tromey.com>
2860 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2861 (read_file_scope, dwarf2_get_pc_bounds)
2862 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2863 (read_structure_type, handle_struct_member_die)
2864 (read_enumeration_type, read_array_type, read_set_type)
2865 (read_tag_pointer_type, read_tag_reference_type)
2866 (read_subroutine_type, read_base_type, read_subrange_type)
2867 (read_full_die_1, partial_die_info::read)
2868 (partial_die_info::read, by, new_symbol)
2869 (dwarf2_const_value_data, dwarf2_const_value_attr)
2870 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2871 (prepare_one_comp_unit): Update.
2872 * dwarf2/attribute.h (DW_UNSND): Remove.
2874 2020-09-29 Tom Tromey <tom@tromey.com>
2876 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2877 (read_subroutine_type, partial_die_info::read)
2878 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2879 (dwarf2_add_member_fn): Update.
2880 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2881 * dwarf2/attribute.c (attribute::as_boolean): New method.
2883 2020-09-29 Tom Tromey <tom@tromey.com>
2885 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2886 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2888 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2890 2020-09-29 Tom Tromey <tom@tromey.com>
2892 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2893 the attribute's form.
2895 2020-09-29 Tom Tromey <tom@tromey.com>
2897 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2898 (dwarf2_add_member_fn): Update.
2899 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2900 * dwarf2/attribute.c (attribute::defaulted): New method, from
2901 is_valid_DW_AT_defaulted.
2903 2020-09-29 Tom Tromey <tom@tromey.com>
2905 * dwarf2/read.c (dw2_get_file_names_reader)
2906 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2907 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2908 (dwarf2_symbol_mark_computed): Use as_unsigned.
2909 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2911 <form_is_section_offset>: Update comment.
2913 2020-09-29 Tom Tromey <tom@tromey.com>
2915 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2916 dwarf2_default_access_attribute. Look up attribute.
2917 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2920 2020-09-29 Tom Tromey <tom@tromey.com>
2922 * dwarf2/read.c (skip_one_die): Update.
2923 (read_full_die_1): Change how reprocessing is done.
2924 (partial_die_info::read): Update.
2925 (read_attribute_value): Remove need_reprocess parameter.
2926 (read_attribute): Likewise.
2927 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2930 2020-09-29 Tom Tromey <tom@tromey.com>
2932 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2933 (dwarf2_const_value_attr, dump_die_shallow)
2934 (dwarf2_fetch_constant_bytes): Update.
2935 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2937 <set_address>: New method.
2939 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2940 (attribute::as_string, attribute::as_address): Add assert.
2942 2020-09-29 Tom Tromey <tom@tromey.com>
2944 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2945 (read_attribute_reprocess, read_attribute_value): Update.
2946 (read_attribute): Clear requires_reprocessing.
2947 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2948 form_requires_reprocessing>: New methods.
2949 <string_init>: Clear requires_reprocessing.
2950 <set_unsigned_reprocess>: New method.
2951 <name>: Shrink by one bit.
2952 <requires_reprocessing>: New member.
2953 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2956 2020-09-29 Tom Tromey <tom@tromey.com>
2958 * dwarf2/read.c (read_attribute_value): Update.
2959 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2960 set_unsigned>: New methods.
2961 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2963 2020-09-29 Tom Tromey <tom@tromey.com>
2965 * dwarf2/read.c (get_alignment, read_array_order)
2966 (read_attribute_value, dwarf2_const_value_attr)
2967 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2968 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2972 2020-09-29 Tom Tromey <tom@tromey.com>
2974 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2975 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2977 * dwarf2/attribute.h (struct attribute) <as_signature,
2978 set_signature>: New methods.
2979 (DW_SIGNATURE): Remove.
2981 2020-09-29 Tom Tromey <tom@tromey.com>
2983 * dwarf2/read.c (read_call_site_scope)
2984 (handle_data_member_location, dwarf2_add_member_fn)
2985 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2986 (partial_die_info::read, read_attribute_value)
2987 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2988 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2989 (dwarf2_symbol_mark_computed): Update.
2990 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2993 * dwarf2/attribute.c (attribute::form_is_block): Add
2996 2020-09-29 Tom Tromey <tom@tromey.com>
2998 * dwarf2/read.c (read_cutu_die_from_dwo)
2999 (read_attribute_reprocess, read_attribute_value, read_attribute)
3000 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3001 (dwarf2_fetch_constant_bytes): Update.
3002 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3003 <set_string_noncanonical, set_string_canonical>: New methods.
3004 <string_is_canonical>: Update comment.
3005 <canonical_string_p>: Add assert.
3006 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3007 * dwarf2/attribute.c (attribute::form_is_string): New method.
3008 (attribute::string): Use it.
3010 2020-09-29 Tom Tromey <tom@tromey.com>
3012 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3013 (dump_die_shallow): Use canonical_string_p.
3014 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3017 2020-09-29 Tom Tromey <tom@tromey.com>
3019 * dwarf2/read.c (partial_die_info::read)
3020 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3021 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3022 attribute::as_string.
3024 2020-09-29 Tom Tromey <tom@tromey.com>
3026 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3028 (attribute::string): Don't use DW_STRING.
3029 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3030 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3032 2020-09-29 Tom Tromey <tom@tromey.com>
3034 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3035 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3036 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3037 * dwarf2/attribute.h (struct attribute): Rename methods.
3038 * dwarf2/attribute.c (attribute::as_address): Rename from
3040 (attribute::as_string): Rename from value_as_string.
3042 2020-09-29 Tom Tromey <tom@tromey.com>
3044 * dwarf2/read.c (partial_die_info::read) <case
3045 DW_AT_linkage_name>: Use value_as_string.
3046 (dwarf2_string_attr): Use value_as_string.
3047 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3049 * dwarf2/attribute.c (attribute::value_as_string): New method.
3051 2020-09-29 Pedro Alves <pedro@palves.net>
3053 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3054 defined before using '#pragma GCC diagnostic' instead of checking
3057 2020-09-28 Tom Tromey <tom@tromey.com>
3059 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3060 (handle_signal_stop): Update.
3061 * procfs.c (procfs_target::insert_watchpoint): Update.
3062 * target.h (target_have_steppable_watchpoint): Now a function.
3064 2020-09-28 Tom Tromey <tom@tromey.com>
3066 * infrun.c (set_schedlock_func): Update.
3067 * target.h (target_can_lock_scheduler): Now a function.
3069 2020-09-28 Tom Tromey <tom@tromey.com>
3071 * inferior.h (class inferior) <has_execution>: Update.
3072 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3073 * valops.c (find_function_in_inferior)
3074 (value_allocate_space_in_inferior): Update.
3075 * top.c (kill_or_detach): Update.
3076 * target.c (target_preopen, set_target_permissions): Update.
3077 (target_has_execution_current): Remove.
3078 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3080 * solib.c (update_solib_list, reload_shared_libraries): Update.
3081 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3082 * solib-dsbt.c (enable_break): Update.
3083 * score-tdep.c (score7_fetch_inst): Update.
3084 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3086 * remote.c (remote_target::start_remote)
3087 (remote_target::remote_check_symbols, remote_target::open_1)
3088 (remote_target::remote_detach_1, remote_target::verify_memory)
3089 (remote_target::xfer_partial, remote_target::read_description)
3090 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3091 * record-full.c (record_full_open_1): Update.
3092 * record-btrace.c (record_btrace_target_open): Update.
3093 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3094 (value_nsstring): Update.
3095 * linux-thread-db.c (add_thread_db_info)
3096 (thread_db_find_new_threads_silently, check_thread_db_callback)
3097 (try_thread_db_load_1, record_thread): Update.
3098 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3100 * linux-fork.c (checkpoint_command): Update.
3101 * infrun.c (set_non_stop, set_observer_mode)
3102 (check_multi_target_resumption, for_each_just_stopped_thread)
3103 (maybe_remove_breakpoints, normal_stop)
3104 (class infcall_suspend_state): Update.
3105 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3106 (info_program_command, attach_command): Update.
3107 * infcall.c (call_function_by_hand_dummy): Update.
3108 * inf-loop.c (inferior_event_handler): Update.
3109 * gcore.c (gcore_command, derive_heap_segment): Update.
3110 * exec.c (exec_file_command): Update.
3111 * eval.c (evaluate_subexp): Update.
3112 * compile/compile.c (compile_to_object): Update.
3113 * cli/cli-dump.c (restore_command): Update.
3114 * breakpoint.c (update_watchpoint)
3115 (update_inserted_breakpoint_locations)
3116 (insert_breakpoint_locations, get_bpstat_thread): Update.
3117 * target.h (target_has_execution): Remove macro.
3118 (target_has_execution_current): Don't declare.
3119 (target_has_execution): Rename from target_has_execution_1. Add
3122 2020-09-28 Tom Tromey <tom@tromey.com>
3124 * mi/mi-main.c (exec_reverse_continue)
3125 (mi_cmd_list_target_features): Update.
3126 * infrun.c (set_exec_direction_func): Update.
3127 * target.c (default_execution_direction): Update.
3128 * reverse.c (exec_reverse_once): Update.
3129 * target.h (target_can_execute_reverse): Now a function.
3131 2020-09-28 Tom Tromey <tom@tromey.com>
3133 * tui/tui-regs.c (tui_get_register)
3134 (tui_data_window::show_registers): Update.
3135 * thread.c (scoped_restore_current_thread::restore)
3136 (scoped_restore_current_thread::scoped_restore_current_thread):
3138 * regcache-dump.c (regcache_print): Update.
3139 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3141 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3142 * mep-tdep.c (current_me_module, current_options): Update.
3143 * linux-thread-db.c (thread_db_load): Update.
3144 * infcmd.c (registers_info, info_vector_command)
3145 (info_float_command): Update.
3146 * ia64-tdep.c (ia64_frame_prev_register)
3147 (ia64_sigtramp_frame_prev_register): Update.
3148 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3149 * gcore.c (derive_stack_segment): Update.
3150 * frame.c (get_current_frame, has_stack_frames): Update.
3151 * findvar.c (language_defn::read_var_value): Update.
3152 * arm-tdep.c (arm_pc_is_thumb): Update.
3153 * target.c (target_has_registers): Rename from
3154 target_has_registers_1.
3155 * target.h (target_has_registers): Remove macro.
3156 (target_has_registers): Rename from target_has_registers_1.
3158 2020-09-28 Tom Tromey <tom@tromey.com>
3160 * windows-tdep.c (tlb_make_value): Update.
3161 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3162 * thread.c (scoped_restore_current_thread::restore)
3163 (scoped_restore_current_thread::scoped_restore_current_thread)
3164 (thread_command): Update.
3165 * stack.c (backtrace_command_1, frame_apply_level_command)
3166 (frame_apply_all_command, frame_apply_command): Update.
3167 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3169 * gcore.c (derive_stack_segment): Update.
3170 * frame.c (get_current_frame, has_stack_frames): Update.
3171 * auxv.c (info_auxv_command): Update.
3172 * ada-tasks.c (ada_build_task_list): Update.
3173 * target.c (target_has_stack): Rename from target_has_stack_1.
3174 * target.h (target_has_stack): Remove macro.
3175 (target_has_stack): Rename from target_has_stack_1.
3177 2020-09-28 Tom Tromey <tom@tromey.com>
3179 * target.c (target_has_memory): Rename from target_has_memory_1.
3180 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3181 * thread.c (scoped_restore_current_thread::restore)
3182 (scoped_restore_current_thread::scoped_restore_current_thread):
3184 * frame.c (get_current_frame, has_stack_frames): Update.
3185 * target.h (target_has_memory): Remove macro.
3186 (target_has_memory): Rename from target_has_memory_1.
3188 2020-09-28 Tom Tromey <tom@tromey.com>
3190 * target.c (target_has_all_memory_1): Remove.
3191 * target.h (target_has_all_memory): Remove define.
3192 (target_has_all_memory_1): Don't declare.
3194 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3196 * ser-base.c: Adjust comments formatting.
3198 2020-09-27 Tom Tromey <tom@tromey.com>
3201 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3203 2020-09-27 Tom Tromey <tom@tromey.com>
3206 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3208 2020-09-27 Tom Tromey <tom@tromey.com>
3210 * unittests/tui-selftests.c: Update.
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <extra_margin, show_line_number, refresh_pad>: New methods.
3213 <m_max_length, m_pad>: New members.
3214 (tui_copy_source_line): Update.
3215 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3216 first_col, line_width, ndigits parameters. Add length.
3217 (tui_source_window_base::show_source_line): Write to pad. Line
3219 (tui_source_window_base::refresh_pad): New method.
3220 (tui_source_window_base::show_source_content): Write to pad. Call
3222 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3224 (tui_source_window_base::update_exec_info): Call
3226 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3228 <m_digits>: New member.
3229 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3231 (tui_source_window::show_line_number): New method.
3232 * tui/tui-io.h (tui_puts): Fix comment.
3233 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3236 2020-09-27 Tom Tromey <tom@tromey.com>
3238 * tui/tui-winsource.c
3239 (tui_source_window_base::set_is_exec_point_at): Don't call
3242 2020-09-27 Tom Tromey <tom@tromey.com>
3244 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3247 <cursor_x, cursor_y>: Remove.
3248 <m_inner_window>: New member.
3249 (tui_py_window::rerender): Create inner window.
3250 (tui_py_window::output): Write to inner window.
3252 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3255 * cli/cli-script.c (execute_control_commands): don't set
3256 instream to nullptr here as this breaks the from_tty argument
3257 to gdb.execute in Python.
3258 (execute_user_command): set instream to nullptr here instead.
3260 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3262 * infrun.h (infrun_debug_printf): Fix formatting.
3263 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3265 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3267 * compile/compile-object-load.h (struct munmap_list): Add
3268 explicitly-defined move constructor.
3270 2020-09-24 Tom Tromey <tromey@adacore.com>
3273 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3275 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3276 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3277 (tui_prev_win): Rewrite.
3279 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3281 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3282 in WOW64 processes as SIGINT.
3283 * nat/windows-nat.h: Make wow64_process a shared variable.
3284 * windows-nat.c: Remove static wow64_process variable.
3286 2020-09-23 Tom Tromey <tom@tromey.com>
3289 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3290 offset and bit size.
3291 * printcmd.c (print_scalar_formatted): Handle zero-length
3293 (print_scalar_formatted): Use bit_size_differs_p.
3294 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3296 (union type_specific): <int_stuff>: New member.
3297 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3299 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3300 TYPE_SPECIFIC_FIELD.
3301 (recursive_dump_type, copy_type_recursive): Update.
3302 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3303 DW_AT_data_bit_offset.
3305 2020-09-23 Tom Tromey <tom@tromey.com>
3307 * utils.h (class gdb_argv): Add move operators.
3308 <append>: New methods.
3309 * compile/compile.c (build_argc_argv): Remove.
3310 (compile_args_argc): Remove.
3311 (compile_args_argv): Change type.
3312 (set_compile_args): Simplify.
3313 (append_args): Remove.
3314 (filter_args): Remove argcp parameter.
3315 (get_args): Return gdb_argv. Simplify.
3316 (compile_to_object): Update.
3318 2020-09-23 Tom Tromey <tom@tromey.com>
3320 * compile/compile-object-run.c (do_module_cleanup)
3321 <~do_module_cleanup> :Remove.
3322 (do_module_cleanup): Update.
3323 * compile/compile-object-load.h (struct munmap_list): Add move
3324 assignment operator.
3325 <source_file>: Now a std::string.
3326 <munmap_list>: Rename. No longer a pointer.
3327 * compile/compile-object-load.c (struct setup_sections_data): Add
3329 <setup_one_section>: Declare.
3330 <munmap_list>: Move earlier.
3331 <m_bfd>: New member.
3332 <m_last_size, m_last_section_first, m_last_prot,
3333 m_last_max_alignment>: Rename, add initializers where needed.
3334 (setup_sections_data::setup_one_section): Rename from
3335 setup_sections. Update.
3336 (compile_object_load): Update. Don't use bfd_map_over_sections.
3338 2020-09-23 Tom Tromey <tom@tromey.com>
3340 * compile/compile-object-run.c (struct do_module_cleanup): Add
3341 parameters to constructor. Update destructor.
3342 <source_file, scope, scope_data, out_value_type, out_value_addr,
3343 munmap_list_head, objfile_name_string>: Remove.
3344 <module>: New member.
3345 (do_module_cleanup): Update.
3346 (compile_object_run): Update.
3348 2020-09-23 Tom Tromey <tom@tromey.com>
3350 * compile/compile.c (eval_compile_command): Update.
3351 * compile/compile-object-run.h (compile_object_run): Take a
3353 * compile/compile-object-run.c (compile_object_run): Take a
3355 * compile/compile-object-load.h (struct compile_module): Add
3356 constructor, destructor.
3357 (compile_module_up): New typedef.
3358 (compile_object_load): Return compile_object_up.
3359 * compile/compile-object-load.c (compile_object_load): Return
3362 2020-09-23 Tom Tromey <tom@tromey.com>
3364 * compile/compile-object-run.c (struct do_module_cleanup): Add
3365 constructor, destructor.
3366 <objfile_name_string>: Don't use struct hack.
3367 (do_module_cleanup): Use delete.
3368 (compile_object_run): Use new.
3370 2020-09-23 Tom Tromey <tom@tromey.com>
3372 * compile/compile-cplus-types.c
3373 (compile_cplus_convert_struct_or_union): Use std::vector.
3374 (compile_cplus_convert_func): Likewise.
3375 * compile/compile-c-types.c (convert_func): Use std::vector.
3377 2020-09-21 Tom Tromey <tromey@adacore.com>
3379 * sparc-tdep.c (sparc32_skip_prologue): Use
3380 skip_prologue_using_sal.
3382 2020-09-19 Tom Tromey <tom@tromey.com>
3384 * symfile.c (add_section_size_callback): Remove.
3385 (load_one_section): Rename from load_section_callback. Change
3387 (generic_load): Use foreach.
3389 2020-09-19 Tom Tromey <tom@tromey.com>
3391 * exec.c (add_to_section_table): Remove.
3392 (build_section_table): Use foreach.
3394 2020-09-19 Tom Tromey <tom@tromey.com>
3396 * elfread.c (elf_locate_sections): Change parameters.
3397 (elf_symfile_read): Use foreach.
3399 2020-09-19 Tom Tromey <tom@tromey.com>
3401 * cli/cli-dump.c (struct callback_data): Remove.
3402 (restore_one_section): Rename from restore_section_callback.
3404 (restore_binary_file): Change parameters.
3405 (restore_command): Use foreach.
3407 2020-09-19 Tom Tromey <tom@tromey.com>
3409 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3410 (gcore_copy_callback): Likewise.
3411 (gcore_memory_sections): Use foreach.
3413 2020-09-19 Tom Tromey <tom@tromey.com>
3415 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3416 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3418 (generic_elf_osabi_sniffer): Use foreach.
3419 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3420 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3422 2020-09-19 Tom Tromey <tom@tromey.com>
3424 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3425 (dwarf2_get_dwz_file): Use foreach.
3426 (dwarf2_locate_dwo_sections): Change parameters.
3427 (open_and_init_dwo_file): Use foreach.
3428 (dwarf2_locate_common_dwp_sections): Change parameters.
3429 (open_and_init_dwp_file): Use foreach.
3431 2020-09-19 Tom Tromey <tom@tromey.com>
3433 * symfile.h: (find_lowest_section): Don't declare.
3434 * symfile.c (find_lowest_section): Now static. Change
3436 (struct place_section_arg): Remove.
3437 (place_section): Change parameters.
3438 (addr_info_make_relative): Use foreach.
3439 (symfile_dummy_outputs): Remove.
3440 (default_symfile_relocate): Use foreach.
3442 2020-09-19 Tom Tromey <tom@tromey.com>
3444 * objfiles.c (add_to_objfile_sections): Rename from
3445 add_to_objfile_sections_full.
3446 (add_to_objfile_sections): Remove.
3447 (build_objfile_section_table): Use foreach.
3449 2020-09-19 Tom Tromey <tom@tromey.com>
3451 * stap-probe.c (get_stap_base_address_1): Remove.
3452 (get_stap_base_address): Use foreach.
3454 2020-09-19 Tom Tromey <tom@tromey.com>
3456 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3458 (gdb_bfd_close_or_warn): Use foreach.
3460 2020-09-19 Tom Tromey <tom@tromey.com>
3462 * corelow.c (add_to_thread_list): Change parameters.
3463 (core_target_open): Use foreach.
3465 2020-09-19 Tom Tromey <tom@tromey.com>
3467 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3470 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3472 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3475 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3477 * eval.c: Remove 'f-lang.h' include.
3478 (value_f90_subarray): Moved to f-lang.c.
3479 (eval_call): Renamed to...
3480 (evaluate_subexp_do_call): ...this, is no longer static, header
3481 comment moved into header file.
3482 (evaluate_funcall): Update call to eval_call.
3483 (skip_undetermined_arglist): Moved to f-lang.c.
3484 (fortran_value_subarray): Likewise.
3485 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3486 moved to evaluate_subexp_f.
3487 (calc_f77_array_dims): Moved to f-lang.c
3488 * expprint.c (print_subexp_funcall): New function.
3489 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3490 moved to print_subexp_f, OP_FUNCALL uses new function.
3491 (dump_subexp_body_funcall): New function.
3492 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3493 moved to dump_subexp_f, OP_FUNCALL uses new function.
3494 * expression.h (evaluate_subexp_do_call): Declare.
3495 * f-lang.c (value_f90_subarray): Moved from eval.c.
3496 (skip_undetermined_arglist): Likewise.
3497 (calc_f77_array_dims): Likewise.
3498 (fortran_value_subarray): Likewise.
3499 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3500 (operator_length_f): Likewise.
3501 (print_subexp_f): Likewise.
3502 (dump_subexp_body_f): Likewise.
3503 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3504 declaration of this operation to here.
3505 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3506 support moved to operator_length_f.
3507 * parser-defs.h (dump_subexp_body_funcall): Declare.
3508 (print_subexp_funcall): Declare.
3509 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3510 fortran-operator.def.
3512 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3514 * eval.c (fortran_value_subarray): New function, content is taken
3516 (evaluate_subexp_standard): ...here, in two places. Now arrays
3517 and strings both call the new function.
3518 (calc_f77_array_dims): Add header comment, handle strings.
3520 2020-09-18 Victor Collod <vcollod@nvidia.com>
3523 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3524 (i386_analyze_prologue): Call i386_skip_endbr.
3526 2020-09-18 Tom Tromey <tromey@adacore.com>
3528 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3529 (windows_nat_target::wait): Update.
3530 * target/wait.h (enum target_wait_flag): New. Use
3531 DEF_ENUM_FLAGS_TYPE.
3532 * target/target.h (target_wait): Change type of options.
3533 * target.h (target_options_to_string, default_target_wait):
3535 (struct target_ops) <wait>: Change type of options.
3536 * target.c (target_wait, default_target_wait, do_option): Change
3538 (target_options_to_string): Likewise.
3539 * target-delegates.c: Rebuild.
3540 * target-debug.h (target_debug_print_target_wait_flags): Rename
3541 from target_debug_print_options.
3542 * sol-thread.c (class sol_thread_target) <wait>: Update.
3543 (sol_thread_target::wait): Update.
3544 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3545 (rs6000_nat_target::wait): Update.
3546 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3548 (remote_target::wait_ns, remote_target::wait_as): Change type of
3550 (remote_target::wait): Update.
3551 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3552 (gdbsim_target::wait): Update.
3553 * record-full.c (class record_full_base_target) <wait>: Update.
3554 (record_full_wait_1): Change type of "options".
3555 (record_full_base_target::wait): Update.
3556 * record-btrace.c (class record_btrace_target) <wait>: Update.
3557 (record_btrace_target::wait): Update.
3558 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3560 (ravenscar_thread_target::wait): Update.
3561 * procfs.c (class procfs_target) <wait>: Update.
3562 (procfs_target::wait): Update.
3563 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3564 * obsd-nat.c (obsd_nat_target::wait): Update.
3565 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3566 (nto_procfs_target::wait): Update.
3567 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3568 * nbsd-nat.c (nbsd_wait): Change type of "options".
3569 (nbsd_nat_target::wait): Update.
3570 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3571 (thread_db_target::wait): Update.
3572 * linux-nat.h (class linux_nat_target) <wait>: Update.
3573 * linux-nat.c (linux_nat_target::wait): Update.
3574 (linux_nat_wait_1): Update.
3575 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3577 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3578 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3579 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3580 (go32_nat_target::wait): Update.
3581 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3582 * gnu-nat.c (gnu_nat_target::wait): Update.
3583 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3584 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3585 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3586 * darwin-nat.c (darwin_nat_target::wait): Update.
3587 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3588 (bsd_uthread_target::wait): Update.
3589 * aix-thread.c (class aix_thread_target) <wait>: Update.
3590 (aix_thread_target::wait): Update.
3592 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3594 * compile/compile-object-run.c (create_copied_type_recursive): New
3596 (compile_object_run): Use new function.
3598 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3600 * NEWS: Mention x86_64 Cygwin core file support.
3602 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3604 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3605 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3607 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3609 * windows-tdep.h: Add prototypes.
3610 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3611 (i386_windows_core_pid_to_str): Move and rename ...
3612 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3613 (windows_core_pid_to_str): ... and here.
3614 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3616 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3617 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3618 (amd64_windows_init_abi_common): ... and register.
3620 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3622 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3623 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3625 2020-09-18 Pedro Alves <pedro@palves.net>
3628 * thread.c (thread_find_command): Switch inferior before calling
3631 2020-09-17 Tom Tromey <tromey@adacore.com>
3633 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3634 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3635 (tdesc_arch_data_up): New typedef.
3636 (tdesc_use_registers, tdesc_data_alloc): Update.
3637 (tdesc_data_cleanup): Don't declare.
3638 * target-descriptions.c (tdesc_data_alloc): Return a
3640 (tdesc_arch_data_deleter::operator()): Rename from
3641 tdesc_data_cleanup. Change argument type.
3642 (tdesc_use_registers): Change early_data to an rvalue reference.
3643 (tdesc_use_registers): Don't use delete.
3644 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3645 * s390-tdep.c (s390_gdbarch_init): Update.
3646 * rx-tdep.c (rx_gdbarch_init): Update.
3647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3648 * riscv-tdep.c (riscv_gdbarch_init): Update.
3649 * or1k-tdep.c (or1k_gdbarch_init): Update.
3650 * nios2-tdep.c (nios2_gdbarch_init): Update.
3651 * nds32-tdep.c (nds32_gdbarch_init): Update.
3652 * mips-tdep.c (mips_gdbarch_init): Update.
3653 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3654 * m68k-tdep.c (m68k_gdbarch_init): Update.
3655 * i386-tdep.c (i386_gdbarch_init): Update.
3656 * arm-tdep.c (arm_gdbarch_init): Update.
3657 * arc-tdep.c (arc_tdesc_init): Update.
3658 (arc_gdbarch_init): Update.
3659 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3661 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3663 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3664 for WOW64 processes.
3666 2020-09-17 Tom Tromey <tom@tromey.com>
3668 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3670 2020-09-17 Tom Tromey <tom@tromey.com>
3672 * value.c (preserve_values): Update.
3673 * python/py-type.c (save_objfile_types): Update.
3674 * guile/scm-type.c (save_objfile_types): Update.
3675 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3676 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3677 * compile/compile-object-run.c (compile_object_run): Update.
3679 2020-09-17 Tom Tromey <tom@tromey.com>
3681 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3683 <m_table>: Now htab_up.
3684 * typeprint.c (typedef_hash_table::recursively_update)
3685 (typedef_hash_table::add_template_parameters)
3686 (typedef_hash_table::typedef_hash_table): Update.
3687 (typedef_hash_table::~typedef_hash_table): Remove.
3688 (typedef_hash_table::typedef_hash_table)
3689 (typedef_hash_table::find_global_typedef)
3690 (typedef_hash_table::find_typedef): Update.
3692 2020-09-17 Tom Tromey <tom@tromey.com>
3694 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3696 2020-09-17 Tom Tromey <tom@tromey.com>
3698 * linespec.c (class decode_compound_collector)
3699 <~decode_compound_collector>: Remove.
3700 <m_unique_syms>: Now htab_up.
3701 (decode_compound_collector::operator ()): Update.
3702 (class symtab_collector) <~symtab_collector>: Remove.
3703 <m_symtab_table>: Now htab_up.
3704 (symtab_collector::operator ()): Update.
3706 2020-09-17 Tom Tromey <tom@tromey.com>
3708 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3709 (filename_seen_cache::clear): Update.
3710 (~filename_seen_cache): Remove.
3711 (filename_seen_cache::seen): Update.
3712 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3714 <~filename_seen_cache>: Remove.
3717 2020-09-17 Tom Tromey <tom@tromey.com>
3719 * completer.c (completion_tracker::discard_completions)
3720 (completion_tracker::~completion_tracker)
3721 (completion_tracker::maybe_add_completion)
3722 (completion_tracker::remove_completion)
3723 (completion_tracker::recompute_lowest_common_denominator)
3724 (completion_tracker::build_completion_result): Update.
3725 * completer.h (class completion_tracker) <have_completions>:
3727 <m_entries_hash>: Now htab_up.
3729 2020-09-17 Tom Tromey <tom@tromey.com>
3731 * breakpoint.c (ambiguous_names_p): Use htab_up.
3733 2020-09-17 Tom Tromey <tom@tromey.com>
3735 * auto-load.c (struct auto_load_pspace_info)
3736 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3737 <loaded_script_files, loaded_script_texts>: Change type to
3739 (~auto_load_pspace_info) Remove.
3740 (init_loaded_scripts_info, maybe_add_script_file)
3741 (maybe_add_script_text, auto_load_info_scripts): Update.
3743 2020-09-17 Tom Tromey <tromey@adacore.com>
3745 * c-exp.y (name_obstack): Now static.
3747 2020-09-17 Chungyi Chi <demonic@csie.io>
3749 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3751 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3753 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3754 (add_solib_catchpoint): Likewise.
3755 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3757 (add_solib_catchpoint): Change int parameter/variable to bool.
3758 (catch_load_or_unload): Likewise.
3759 (init_catchpoint): Likewise.
3760 (create_fork_vfork_event_catchpoint): Likewise.
3761 (catch_fork_command_1): Likewise.
3762 (catch_exec_command_1): Likewise.
3764 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3766 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3767 Change instance_flags to m_instance_flags.
3769 2020-09-16 Tom Tromey <tromey@adacore.com>
3772 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3774 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3776 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3778 (fbsd_nat_target::insert_exec_catchpoint)
3779 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3780 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3781 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3783 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3785 * configure.ac: Remove check for kinfo_getvmmap().
3786 * configure, config.in: Regenerate.
3787 * fbsd-nat.c (fbsd_read_mapping): Remove
3788 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3789 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3790 kinfo_get_vmmap() are always present.
3792 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3794 * fbsd-nat.c: Always include support for
3795 TARGET_OBJECT_SIGNAL_INFO.
3797 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3799 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3800 sysctl and remove procfs fallback.
3802 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3804 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3805 * fbsd-nat.h: Likewise.
3807 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3812 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3814 * ada-lang.c (ada_language_data): Delete.
3815 (ada_language): Remove references to ada_language_data.
3816 * c-lang.c (c_language_data): Delete.
3817 (c_language): Remove references to c_language_data.
3818 (cplus_language_data): Delete.
3819 (cplus_language): Remove references to cplus_language_data.
3820 (asm_language_data): Delete.
3821 (asm_language): Remove references to asm_language_data.
3822 (minimal_language_data): Delete.
3823 (minimal_language): Remove references to minimal_language_data.
3824 * d-lang.c (d_language_data): Delete.
3825 (d_language): Remove references to d_language_data.
3826 * f-lang.c (f_language_data): Delete.
3827 (f_language): Remove references to f_language_data.
3828 * go-lang.c (go_language_data): Delete.
3829 (go_language): Remove references to go_language_data.
3830 * language.c (unknown_language_data): Delete.
3831 (unknown_language): Remove references to unknown_language_data.
3832 (auto_language_data): Delete.
3833 (auto_language): Remove references to auto_language_data.
3834 * language.h (language_data): Delete struct.
3835 (language_defn): No longer inherit from language_data.
3836 * m2-lang.c (m2_language_data): Delete.
3837 (m2_language): Remove references to m2_language_data.
3838 * objc-lang.c (objc_language_data): Delete.
3839 (objc_language): Remove references to objc_language_data.
3840 * opencl-lang.c (opencl_language_data): Delete.
3841 (opencl_language): Remove references to opencl_language_data.
3842 * p-lang.c (pascal_language_data): Delete.
3843 (pascal_language): Remove references to pascal_language_data.
3844 * rust-lang.c (rust_language_data): Delete.
3845 (rust_language): Remove references to rust_language_data.
3847 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3849 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3851 (ada_language::opcode_print_table): New member function.
3852 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3853 (c_language::opcode_print_table): New member function.
3854 (cplus_language_data): Remove la_op_print_tab initializer.
3855 (cplus_language::opcode_print_table): New member function.
3856 (asm_language_data): Remove la_op_print_tab initializer.
3857 (asm_language::opcode_print_table): New member function.
3858 (minimal_language_data): Remove la_op_print_tab initializer.
3859 (minimal_language::opcode_print_table): New member function.
3860 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3861 (d_language::opcode_print_table): New member function.
3862 * expprint.c (print_subexp_standard): Update call to
3864 (op_string): Likewise.
3865 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3866 (f_language::opcode_print_table): New member function.
3867 * go-lang.c (go_language_data): Remove la_op_print_tab
3869 (go_language::opcode_print_table): New member function.
3870 * language.c (unknown_language_data): Remove la_op_print_tab
3872 (unknown_language::opcode_print_table): New member function.
3873 (auto_language_data): Remove la_op_print_tab initializer.
3874 (auto_language::opcode_print_table): New member function.
3875 * language.h (language_data): Remove la_op_print_tab field.
3876 (language_defn::opcode_print_table): Declare new member function.
3877 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3879 (m2_language::opcode_print_table): New member function.
3880 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3882 (objc_language::opcode_print_table): New member function.
3883 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3885 (opencl_language::opcode_print_table): New member function.
3886 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3888 (pascal_language::opcode_print_table): New member function.
3889 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3891 (rust_language::opcode_print_table): New member function.
3893 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3895 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3896 (ada_language::expression_ops): New member function.
3897 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3898 (c_language::expression_ops): New member function.
3899 (cplus_language_data): Remove la_exp_desc initializer.
3900 (cplus_language::expression_ops): New member function.
3901 (asm_language_data): Remove la_exp_desc initializer.
3902 (asm_language::expression_ops): New member function.
3903 (minimal_language_data): Remove la_exp_desc initializer.
3904 (minimal_language::expression_ops): New member function.
3905 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3906 (d_language::expression_ops): New member function.
3907 * eval.c (evaluate_subexp): Update call to expression_ops.
3908 * expprint.c (print_subexp): Likewise.
3909 (op_name): Likewise.
3910 (dump_subexp_body): Likewise.
3911 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3912 (f_language::expression_ops): New member function.
3913 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3914 (go_language::expression_ops): New member function.
3915 * language.c (language_defn::expression_ops): New function.
3916 (unknown_language_data): Remove la_exp_desc initializer.
3917 (auto_language_data): Likewise.
3918 * language.h (language_data): Remove la_exp_desc field.
3919 (language_defn::expression_ops): Declare new member function.
3920 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3921 (m2_language::expression_ops): New member function.
3922 * objc-lang.c (objc_language_data): Remove la_exp_desc
3924 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3926 (opencl_language::expression_ops): New member function.
3927 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3928 * parse.c (operator_length): Update call to expression_ops.
3929 (exp_iterate): Likewise.
3930 * rust-lang.c (rust_language_data): Remove la_exp_desc
3932 (ruse_language::expression_ops): New member function.
3934 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3936 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3938 (ada_language::varobj_ops): New member function.
3939 * c-lang.c (c_language_data): Remove la_varobj_ops
3941 (cplus_language_data): Likewise.
3942 (cplus_language::varobj_ops): New member function.
3943 (asm_language_data): Remove la_varobj_ops initializer.
3944 (minimal_language_data): Likewise.
3945 * d-lang.c (d_language_data): Likewise.
3946 * f-lang.c (f_language_data): Likewise.
3947 * go-lang.c (go_language_data): Likewise.
3948 * language.c (language_defn::varobj_ops): New function.
3949 (unknown_language_data): Remove la_varobj_ops
3951 (auto_language_data): Likewise.
3952 * language.h (language_data): Remove la_varobj_ops field.
3953 (language_defn::varobj_ops): Declare new member function.
3954 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3955 * objc-lang.c (objc_language_data): Likewise.
3956 * opencl-lang.c (opencl_language_data): Likewise.
3957 * p-lang.c (pascal_language_data): Likewise.
3958 * rust-lang.c (rust_language_data): Likewise.
3959 * varobj.c (varobj_create): Update call to varobj_ops.
3960 * varobj.h (default_varobj_ops): Delete define.
3962 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3964 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3966 * c-lang.c (c_language_data): Likewise.
3967 (c_language::macro_expansion): New member function.
3968 (cplus_language_data): Likewise.
3969 (cplus_language::macro_expansion): New member function.
3970 (asm_language_data): Likewise.
3971 (asm_language::macro_expansion): New member function.
3972 (minimal_language_data): Likewise.
3973 (minimal_language::macro_expansion): New member function.
3974 * d-lang.c (d_language_data): Remove la_macro_expansion
3976 * f-lang.c (f_language_data): Likewise.
3977 * go-lang.c (go_language_data): Likewise.
3978 * language.c (unknown_language_data): Likewise.
3979 (auto_language_data): Likewise.
3980 * language.h (language_data): Remove la_macro_expansion field.
3981 (language_defn::macro_expansion): New member function.
3982 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3984 * objc-lang.c (objc_language_data): Likewise.
3985 (objc_language::macro_expansion): New member function.
3986 * opencl-lang.c (opencl_language_data): Likewise.
3987 (opencl_language::macro_expansion): New member function.
3988 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3990 * rust-lang.c (rust_language_data): Likewise.
3991 * symtab.c (default_collect_symbol_completion_matches_break_on):
3992 Update call to macro_expansion.
3994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3996 * ada-lang.c (ada_language_data): Remove la_array_ordering
3998 * c-lang.c (c_language_data): Likewise.
3999 (cplus_language_data): Likewise.
4000 (asm_language_data): Likewise.
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * dwarf2/read.c (read_array_order): Update for call to
4005 * f-lang.c (f_language_data): Remove la_array_ordering
4007 (f_language::array_ordering): New member function.
4008 * go-lang.c (go_language_data): Remove la_array_ordering
4010 * language.c (unknown_language_data): Likewise.
4011 (auto_language_data): Likewise.
4012 * language.h (language_data): Delete la_array_ordering field.
4013 (language_defn::array_ordering): New member function.
4014 * m2-lang.c (m2_language_data): Remove la_array_ordering
4016 * objc-lang.c (objc_language_data): Likewise.
4017 * opencl-lang.c (opencl_language_data): Likewise.
4018 * p-lang.c (pascal_language_data): Likewise.
4019 * rust-lang.c (rust_language_data): Likewise.
4021 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4023 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4025 * c-lang.c (c_language_data): Likewise.
4026 (cplus_language_data): Likewise.
4027 (asm_language_data): Likewise.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * f-lang.c (f_language_data): Likewise.
4031 (f_language::case_sensitivity): New member function.
4032 * go-lang.c (go_language_data): Remove la_case_sensitivity
4034 * language.c (enum case_mode): Moved here from language.h.
4035 (case_mode): Make static.
4036 (show_case_command): Update for case_sensitivity being a method.
4037 (set_case_command): Likewise.
4038 (set_range_case): Likewise.
4039 (unknown_language_data): Remove la_case_sensitivity initializer.
4040 (auto_language_data): Likewise.
4041 * language.h (case_mode): Delete, move enum declaration to
4043 (language_data): Delete la_case_sensitivity field.
4044 (language_defn::case_sensitivity): New member function.
4045 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4047 * objc-lang.c (objc_language_data): Likewise.
4048 * opencl-lang.c (opencl_language_data): Likewise.
4049 * p-lang.c (pascal_language_data): Likewise.
4050 * rust-lang.c (rust_language_data): Likewise.
4052 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4054 * ada-lang.c (ada_language_data): Remove la_range_check
4056 * c-lang.c (c_language_data): Likewise.
4057 (cplus_language_data): Likewise.
4058 (asm_language_data): Likewise.
4059 (minimal_language_data): Likewise.
4060 * d-lang.c (d_language_data): Likewise.
4061 * f-lang.c (f_language_data): Likewise.
4062 (f_language::range_checking_on_by_default): New member function.
4063 * go-lang.c (go_language_data): Remove la_range_check initializer.
4064 * language.c (enum range_mode): Moved here from language.h.
4065 (range_mode): Made static.
4066 (show_range_command): Update to use
4067 range_checking_on_by_default.
4068 (set_range_command): Likewise.
4069 (set_range_case): Likewise.
4070 (unknown_language_data): Remove la_range_check initializer.
4071 (auto_language_data): Likewise.
4072 * language.h (range_mode): Delete. Enum definition moved to
4074 (language_data): Remove la_range_check field.
4075 (language_defn::range_checking_on_by_default): New member
4077 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4078 (m2_language::range_checking_on_by_default): New member function.
4079 * objc-lang.c (objc_language_data): Remove la_range_check
4081 * opencl-lang.c (opencl_language_data): Likewise.
4082 * p-lang.c (pascal_language_data): Likewise.
4083 (pascal_language::range_checking_on_by_default): New member
4085 * rust-lang.c (rust_language_data): Remove la_range_check
4087 (rust_language::range_checking_on_by_default): New member
4090 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * dwarf2/read.c (dwarf2_physname): Remove special case for
4094 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4097 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4099 * ada-lang.c (ada_language_data): Remove
4100 la_store_sym_names_in_linkage_form_p initializer.
4101 (ada_language::store_sym_names_in_linkage_form_p): New member
4103 * c-lang.c (c_language_data): Remove
4104 la_store_sym_names_in_linkage_form_p initializer.
4105 (c_language::store_sym_names_in_linkage_form_p): New member
4107 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4109 (asm_language_data): Likewise.
4110 (asm_language::store_sym_names_in_linkage_form_p): New member
4112 (minimal_language_data): Remove
4113 la_store_sym_names_in_linkage_form_p initializer.
4114 (minimal_language::store_sym_names_in_linkage_form_p): New member
4116 * d-lang.c (d_language_data): Remove
4117 la_store_sym_names_in_linkage_form_p initializer.
4118 * dwarf2/read.c (dwarf2_physname): Update call to
4119 store_sym_names_in_linkage_form_p.
4120 * f-lang.c (f_language_data): Remove
4121 la_store_sym_names_in_linkage_form_p initializer.
4122 * go-lang.c (go_language_data): Remove
4123 la_store_sym_names_in_linkage_form_p initializer.
4124 * language.c (unknown_language_data): Remove
4125 la_store_sym_names_in_linkage_form_p initializer.
4126 (unknown_language::store_sym_names_in_linkage_form_p): New member
4128 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4130 (auto_language::store_sym_names_in_linkage_form_p): New member
4132 * language.h (language_data): Remove
4133 la_store_sym_names_in_linkage_form_p member variable.
4134 (language_defn::store_sym_names_in_linkage_form_p): New member
4136 * m2-lang.c (m2_language_data): Remove
4137 la_store_sym_names_in_linkage_form_p initializer.
4138 * objc-lang.c (objc_language_data): Likewise.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 * rust-lang.c (rust_language_data): Likewise.
4143 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4145 * ada-lang.c (ada_language_data): Remove string_lower_bound
4147 * c-lang.c (c_language_data): Likewise.
4148 (cplus_language_data): Likewise.
4149 (asm_language_data): Likewise.
4150 (minimal_language_data): Likewise.
4151 * d-lang.c (d_language_data): Likewise.
4152 * f-lang.c (f_language_data): Likewise.
4153 * go-lang.c (go_language_data): Likewise.
4154 * language.c (unknown_language_data): Likewise.
4155 (auto_language_data): Likewise.
4156 * language.h (language_data): Remove string_lower_bound field.
4157 (language_defn::string_lower_bound): New member function.
4158 * m2-lang.c (m2_language_data): Remove string_lower_bound
4160 (m2_language::string_lower_bound): New member function.
4161 * objc-lang.c (objc_language_data): Remove string_lower_bound
4163 * opencl-lang.c (opencl_language_data): Likewise.
4164 * p-lang.c (pascal_language_data): Likewise.
4165 * rust-lang.c (rust_language_data): Likewise.
4166 * valops.c (value_cstring): Update call to string_lower_bound.
4167 (value_string): Likewise.
4168 * value.c (allocate_repeated_value): Likewise.
4170 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4172 * valops.c (value_repeat): Fix incorrect argument name in comment.
4174 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4176 * ada-lang.c (ada_language_data): Remove c_style_arrays
4178 (ada_language::c_style_arrays_p): New member fuction.
4179 * c-lang.c (c_language_data): Remove c_style_arrays
4181 (cplus_language_data): Likewise.
4182 (asm_language_data): Likewise.
4183 (minimal_language_data): Likewise.
4184 * d-lang.c (d_language_data): Likewise.
4185 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4186 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4187 (f_language::c_style_arrays_p): New member function.
4188 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4189 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4190 * language.c (unknown_language_data): Remove c_style_arrays
4192 (auto_language_data): Likewise.
4193 * language.h (language_data): Remove c_style_arrays field.
4194 (language_defn::c_style_arrays_p): New member function.
4195 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4196 (m2_language::c_style_arrays_p): New member function.
4197 * objc-lang.c (objc_language_data): Remove c_style_arrays
4199 * opencl-lang.c (opencl_language_data): Likewise.
4200 * p-lang.c (pascal_language_data): Likewise.
4201 * rust-lang.c (rust_language_data): Likewise.
4202 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4203 and update local variable to a bool.
4204 * valops.c (value_cast): Update call to c_style_arrays_p.
4205 (value_array): Likewise.
4206 * value.c (coerce_array): Likewise.
4208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4210 * ada-lang.c (ada_language_data): Remove la_language initializer.
4211 * c-lang.c (c_language_data): Likewise.
4212 (cplus_language_data): Likewise.
4213 (asm_language_data): Likewise.
4214 (minimal_language_data): Likewise.
4215 * d-lang.c (d_language_data): Likewise.
4216 * f-lang.c (f_language_data): Likewise.
4217 * go-lang.c (go_language_data): Likewise.
4218 * language.c (unknown_language_data): Likewise.
4219 (auto_language_data): Likewise.
4220 * language.h (language_data): Remove la_language field.
4221 (language_defn::language_defn): Initialise la_language field.
4222 (language_defn::la_language): New member variable.
4223 * m2-lang.c (m2_language_data): Remove la_language field.
4224 * objc-lang.c (objc_language_data): Likewise.
4225 * opencl-lang.c (opencl_language_data): Likewise.
4226 * p-lang.c (pascal_language_data): Likewise.
4227 * rust-lang.c (rust_language_data): Likewise.
4229 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4231 * ada-lang.c (ada_extensions): Delete, moved into
4232 ada_language::filename_extensions.
4233 (ada_language_data): Remove la_filename_extensions initializer.
4234 (ada_language::filename_extensions): New member function.
4235 * c-lang.c (c_extensions): Delete, moved into
4236 c_language::filename_extensions.
4237 (c_language_data): Remove la_filename_extensions initializer.
4238 (c_language::filename_extensions): New member function.
4239 (cplus_extensions): Delete, moved into
4240 cplus_language::filename_extensions.
4241 (cplus_language_data): Remove la_filename_extensions initializer.
4242 (cplus_language::filename_extensions): New member function.
4243 (asm_extensions): Delete, moved into
4244 asm_language::filename_extensions.
4245 (asm_language_data): Remove la_filename_extensions initializer.
4246 (asm_language::filename_extensions): New member function.
4247 (minimal_language_data): Remove la_filename_extensions
4249 * d-lang.c (d_extensions): Delete, moved into
4250 d_language::filename_extensions.
4251 (d_language_data): Remove la_filename_extensions initializer.
4252 (d_language::filename_extensions): New member function.
4253 * f-lang.c (f_extensions): Delete, moved into
4254 f_language::filename_extensions.
4255 (f_language_data): Remove la_filename_extensions initializer.
4256 (f_language::filename_extensions): New member function.
4257 * go-lang.c (go_language_data): Remove la_filename_extensions
4259 * language.c (add_set_language_command): Update now that
4260 filename_extensions returns a vector.
4261 (unknown_language_data): Remove la_filename_extensions
4263 (auto_language_data): Likewise.
4264 * language.h (language_data): Remove la_filename_extensions field.
4265 (language_defn::filename_extensions): New member function.
4266 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4268 * objc-lang.c (objc_extensions): Delete, moved into
4269 objc_language::filename_extensions.
4270 (objc_language_data): Remove la_filename_extensions initializer.
4271 (objc_language::filename_extensions): New member function.
4272 * opencl-lang.c (opencl_language_data): Remove
4273 la_filename_extensions initializer.
4274 * p-lang.c (pascal_extensions): Delete, moved into
4275 pascal_language::filename_extensions.
4276 (pascal_language_data): Remove la_filename_extensions initializer.
4277 (pascal_language::filename_extensions): New member function.
4278 * rust-lang.c (rust_extensions): Delete, moved into
4279 rust_language::filename_extensions.
4280 (rust_language_data): Remove la_filename_extensions initializer.
4281 (rust_language::filename_extensions): New member function.
4282 * symfile.c (add_filename_language): Add new assert.
4284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4286 * ada-lang.c (ada_language_data): Remove la_name and
4287 la_natural_name initializers.
4288 (ada_language::name): New member function.
4289 (ada_language::natural_name): New member function.
4290 * c-lang.c (c_language_data): Remove la_name and
4291 la_natural_name initializers.
4292 (c_language::name): New member function.
4293 (c_language::natural_name): New member function.
4294 (cplus_language_data): Remove la_name and
4295 la_natural_name initializers.
4296 (cplus_language::name): New member function.
4297 (cplus_language::natural_name): New member function.
4298 (asm_language_data): Remove la_name and
4299 la_natural_name initializers.
4300 (asm_language::name): New member function.
4301 (asm_language::natural_name): New member function.
4302 (minimal_language_data): Remove la_name and
4303 la_natural_name initializers.
4304 (minimal_language::name): New member function.
4305 (minimal_language::natural_name): New member function.
4306 * compile/compile.c (compile_to_object): Update call to
4307 lanugage_defn::name.
4308 * d-lang.c (d_language_data): Remove la_name and
4309 la_natural_name initializers.
4310 (d_language::name): New member function.
4311 (d_language::natural_name): New member function.
4312 * expprint.c (print_subexp_standard): Update call to
4313 language_defn::name.
4314 (dump_raw_expression): Likewise
4315 (dump_prefix_expression): Likewise.
4316 * f-lang.c (f_language_data): Remove la_name and
4317 la_natural_name initializers.
4318 (f_language::name): New member function.
4319 (f_language::natural_name): New member function.
4320 * go-lang.c (go_language_data): Remove la_name and
4321 la_natural_name initializers.
4322 (go_language::name): New member function.
4323 (go_language::natural_name): New member function.
4324 * language.c (show_language_command): Update call to
4325 language_defn::name.
4326 (set_language_command): Likewise.
4327 (language_enum): Likewise.
4328 (language_str): Likewise.
4329 (add_set_language_command): Likewise, use
4330 language_defn::natural_name in the doc string.
4331 (unknown_language_data): Remove la_name and
4332 la_natural_name initializers.
4333 (unknown_language::name): New member function.
4334 (unknown_language::natural_name): New member function.
4335 (auto_language_data): Remove la_name and
4336 la_natural_name initializers.
4337 (auto_language::name): New member function.
4338 (auto_language::natural_name): New member function.
4339 (language_lookup_primitive_type_as_symbol): Update call to
4340 language_defn::name.
4341 * language.h (language_data): Remove la_name and la_natural_name
4343 (language_defn::name): New member function.
4344 (language_defn::natural_name): New member function.
4345 * m2-lang.c (m2_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (m2_language::name): New member function.
4348 (m2_language::natural_name): New member function.
4349 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4350 language_defn::natural_name.
4351 * objc-lang.c (objc_language_data): Remove la_name and
4352 la_natural_name initializers.
4353 (objc_language::name): New member function.
4354 (objc_language::natural_name): New member function.
4355 * opencl-lang.c (opencl_language_data): Remove la_name and
4356 la_natural_name initializers.
4357 (opencl_language::name): New member function.
4358 (opencl_language::natural_name): New member function.
4359 * p-lang.c (pascal_language_data): Remove la_name and
4360 la_natural_name initializers.
4361 (pascal_language::name): New member function.
4362 (pascal_language::natural_name): New member function.
4363 * rust-lang.c (rust_language_data): Remove la_name and
4364 la_natural_name initializers.
4365 (rust_language::name): New member function.
4366 (rust_language::natural_name): New member function.
4367 * symtab.c (lookup_language_this): Update call to
4368 language_defn::name.
4370 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * ada-lang.c (ada_language_data): Remove la_name_of_this
4374 * ax-gdb.c (gen_expr): Update call to name_of_this.
4375 * c-exp.y (classify_name): Likewise.
4376 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4377 (cplus_language_data): Likewise.
4378 (cplus_language::name_of_this): New member function.
4379 (asm_language_data): Remove la_name_of_this initializer.
4380 (minimal_language_data): Likewise.
4381 * d-lang.c (d_language_data): Likewise.
4382 (d_language::name_of_this): New member function.
4383 * expprint.c (print_subexp_standard): Update call to name_of_this.
4384 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4385 * go-lang.c (go_language_data): Likewise.
4386 * language.c (unknown_language_data): Likewise.
4387 (unknown_language::name_of_this): New member function.
4388 (auto_language_data): Remove la_name_of_this initializer.
4389 (auto_language::name_of_this): New member function.
4390 * language.h (language_data): Delete la_name_of_this member
4392 (language_defn::name_of_this): New member function.
4393 * m2-lang.c (m2_language_data): Remove la_name_of_this
4395 * objc-lang.c (objc_language_data): Likewise.
4396 (objc_language::name_of_this): New member function.
4397 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4399 * p-lang.c (pascal_language_data): Likewise.
4400 (pascal_language::name_of_this): New member function.
4401 * rust-lang.c (rust_language_data): Remove la_name_of_this
4403 * symtab.c (lookup_language_this): Update call to name_of_this.
4404 (lookup_symbol_aux): Likewise.
4405 * valops.c (value_of_this): Likewise.
4407 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4409 * ada-lang.c (ada_language_data): Remove
4410 la_struct_too_deep_ellipsis initializer.
4411 (ada_language::struct_too_deep_ellipsis): New member function.
4412 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4414 (cplus_language_data): Likewise.
4415 (asm_language_data): Likewise.
4416 (minimal_language_data): Likewise.
4417 * cp-valprint.c (cp_print_value): Update call to
4418 struct_too_deep_ellipsis.
4419 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4421 * f-lang.c (f_language_data): Likewise.
4422 (f_language::struct_too_deep_ellipsis): New member function.
4423 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4425 * language.c (unknown_language_data): Likewise.
4426 (auto_language_data): Likewise.
4427 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4429 (language_defn::struct_too_deep_ellipsis): New member function.
4430 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4432 * objc-lang.c (objc_language_data): Likewise.
4433 * opencl-lang.c (opencl_language_data): Likewise.
4434 * p-lang.c (pascal_language_data): Likewise.
4435 * rust-lang.c (rust_language_data): Likewise.
4436 * valprint.c (val_print_check_max_depth): Update call to
4437 struct_too_deep_ellipsis.
4439 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4441 * MAINTAINERS (Write After Approval): Add myself.
4443 2020-09-15 Tom Tromey <tom@tromey.com>
4445 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4448 2020-09-15 Tom Tromey <tom@tromey.com>
4450 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4451 and TYPE_CODE_METHODPTR cases.
4452 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4453 (c_value_print_inner): Update.
4454 * valprint.c (generic_value_print_memberptr): New function, from
4455 c_value_print_memberptr.
4456 (generic_value_print): Use it. Call cplus_print_method_ptr.
4458 2020-09-15 Tom Tromey <tromey@adacore.com>
4460 * python/python-internal.h (PyInt_FromLong): Remove define.
4461 * python/py-value.c (convert_value_from_python): Use
4462 gdb_py_object_from_longest.
4463 * python/py-type.c (typy_get_code): Use
4464 gdb_py_object_from_longest.
4465 * python/py-symtab.c (salpy_get_line): Use
4466 gdb_py_object_from_longest.
4467 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4468 gdb_py_object_from_longest.
4469 * python/py-record.c (recpy_gap_reason_code): Use
4470 gdb_py_object_from_longest.
4471 * python/py-record-btrace.c (recpy_bt_insn_size)
4472 (recpy_bt_func_level, btpy_list_count): Use
4473 gdb_py_object_from_longest.
4474 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4475 gdb_py_object_from_longest. Fix error handling.
4476 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4477 gdb_py_object_from_longest.
4478 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4479 gdb_py_object_from_longest.
4480 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4481 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4482 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4484 2020-09-15 Tom Tromey <tromey@adacore.com>
4486 * python/python.c (gdbpy_parameter_value): Use
4487 gdb_py_object_from_ulongest.
4489 2020-09-15 Tom Tromey <tromey@adacore.com>
4491 * python/py-infevents.c (create_register_changed_event_object):
4492 Use gdb_py_object_from_longest.
4493 * python/py-exitedevent.c (create_exited_event_object): Use
4494 gdb_py_object_from_longest.
4496 2020-09-15 Tom Tromey <tromey@adacore.com>
4498 * python/python.c (gdbpy_parameter_value): Use
4499 gdb_py_object_from_longest.
4500 * python/py-type.c (convert_field, typy_range): Use
4501 gdb_py_object_from_longest.
4502 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4503 gdb_py_object_from_longest.
4504 * python/py-lazy-string.c (stpy_get_length): Use
4505 gdb_py_object_from_longest.
4506 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4507 gdb_py_object_from_longest.
4508 * python/py-infevents.c (create_memory_changed_event_object): Use
4509 gdb_py_object_from_longest.
4510 * python/py-inferior.c (infpy_get_num): Use
4511 gdb_py_object_from_longest.
4512 (infpy_get_pid): Likewise.
4514 2020-09-15 Tom Tromey <tromey@adacore.com>
4516 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4518 * python/py-value.c (valpy_long): Use
4519 gdb_py_object_from_ulongest.
4520 * python/py-symtab.c (salpy_get_pc): Use
4521 gdb_py_object_from_ulongest.
4522 (salpy_get_last): Likewise.
4523 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4524 gdb_py_object_from_ulongest.
4525 * python/py-lazy-string.c (stpy_get_address): Use
4526 gdb_py_object_from_ulongest.
4527 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4528 * python/py-arch.c (archpy_disassemble): Use
4529 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4532 2020-09-15 Tom Tromey <tromey@adacore.com>
4534 * python/python-internal.h (gdb_py_long_from_longest): Remove
4536 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4537 * python/py-type.c (convert_field, typy_get_sizeof): Use
4538 gdb_py_object_from_longest.
4539 * python/py-record-btrace.c (btpy_list_index): Use
4540 gdb_py_object_from_longest.
4542 2020-09-15 Tom Tromey <tromey@adacore.com>
4544 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4545 * python/py-record.c (recpy_element_number): Use
4546 gdb_py_object_from_longest.
4547 (recpy_gap_number): Likewise.
4549 2020-09-15 Tom Tromey <tromey@adacore.com>
4551 * top.c (ui::ui): Update.
4552 (highest_ui_num): Remove.
4553 * top.h (struct ui) <num>: Remove.
4555 2020-09-15 Tom Tromey <tromey@adacore.com>
4557 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4558 * ui-style.c (ansi_regex_text): Now array.
4559 * rust-exp.y (number_regex_text): Now array.
4560 * linespec.c (linespec_quote_characters): Now array.
4561 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4564 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4566 * debuginfod-support.c (debuginfod_client_deleter): New.
4567 (debuginfod_client_up): New.
4568 (debuginfod_init): Return debuginfod_client_up.
4569 (debuginfod_source_query): Adjust.
4570 (debuginfod_debuginfo_query): Adjust.
4572 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4574 * debuginfod-support.c (debuginfod_source_query): Use
4575 make_unique_xstrdup.
4577 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4579 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4580 with `type::instance_flags`.
4582 2020-09-14 Michael Mullin <masmullin@gmail.com>
4584 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4585 Remove baton parameter.
4587 2020-09-14 Pedro Alves <pedro@palves.net>
4589 * Makefile.in (SELFTESTS_SRCS): Add
4590 unittests/enum-flags-selftests.c.
4591 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4592 btrace_function_flags instead of enum btrace_function_flag.
4593 * compile/compile-c-types.c (convert_qualified): Use
4595 * compile/compile-cplus-symbols.c (convert_one_symbol)
4596 (convert_symbol_bmsym):
4597 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4598 (compile_cplus_convert_struct_or_union_methods)
4599 (compile_cplus_instance::convert_qualified_base):
4600 * go-exp.y (parse_string_or_char): Add cast to int.
4601 * unittests/enum-flags-selftests.c: New file.
4602 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4603 type to btrace_thread_flags from btrace_thread_flag.
4604 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4605 local's type to btrace_thread_flags from btrace_thread_flag. Add
4608 2020-09-14 Pedro Alves <pedro@palves.net>
4610 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4611 * gdbtypes.c (address_space_name_to_int): Rename to ...
4612 (address_space_name_to_type_instance_flags): ... this.
4613 (address_space_int_to_name): Rename to ...
4614 (address_space_type_instance_flags_to_name): ... this.
4615 * gdbtypes.h (address_space_name_to_int): Rename to ...
4616 (address_space_name_to_type_instance_flags): ... this.
4617 (address_space_int_to_name): Rename to ...
4618 (address_space_type_instance_flags_to_name): ... this.
4619 * type-stack.c (type_stack::insert): Adjust to rename.
4620 * type-stack.h (type_stack::insert): Likewise.
4622 2020-09-14 Pedro Alves <pedro@palves.net>
4623 Andrew Burgess <andrew.burgess@embecosm.com>
4625 * avr-tdep.c (avr_address_class_type_flags): Return
4626 type_instance_flags.
4627 (avr_address_class_type_flags_to_name): Take a
4628 type_instance_flags.
4629 (avr_address_class_name_to_type_flags): Return bool and take a
4630 type_instance_flags.
4631 * d-lang.c (build_d_types): Use type::set_instance_flags.
4632 * ft32-tdep.c (ft32_address_class_type_flags): Return
4633 type_instance_flags.
4634 (ft32_address_class_type_flags_to_name): Take a
4635 type_instance_flags.
4636 (ft32_address_class_name_to_type_flags): Return bool and take a
4637 type_instance_flags.
4638 (ft32_gdbarch_init): Use type::set_instance_flags.
4639 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4642 (address_class_name_to_type_flags): Use type_instance_flags and
4644 * gdbtypes.c (address_space_name_to_int)
4645 (address_space_int_to_name, make_qualified_type): Use
4646 type_instance_flags.
4647 (make_qualified_type): Use type_instance_flags and
4648 type::set_instance_flags.
4649 (make_type_with_address_space, make_cv_type, make_vector_type)
4650 (check_typedef): Use type_instance_flags.
4651 (recursive_dump_type): Cast type_instance_flags to unsigned for
4653 (copy_type_recursive): Use type::set_instance_flags.
4654 (gdbtypes_post_init): Use type::set_instance_flags.
4655 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4656 <m_instance_flags>: ... this.
4657 <instance_flags, set_instance_flags>: New methods.
4658 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4659 (SET_TYPE_INSTANCE_FLAGS): New.
4660 (address_space_name_to_int, address_space_int_to_name)
4661 (make_type_with_address_space): Pass flags using
4662 type_instance_flags instead of int.
4663 * stabsread.c (cleanup_undefined_types_noname): Use
4664 type::set_instance_flags.
4665 * s390-tdep.c (s390_address_class_type_flags): Return
4666 type_instance_flags.
4667 (s390_address_class_type_flags_to_name): Take a
4668 type_instance_flags.
4669 (s390_address_class_name_to_type_flags): Return bool and take a
4670 type_instance_flags.
4671 * type-stack.c (type_stack::follow_types): Use
4672 type_instance_flags.
4673 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4675 2020-09-14 Tom Tromey <tromey@adacore.com>
4677 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4678 * x86-tdep.c (x86_is_thunk_register_name)
4679 (x86_in_indirect_branch_thunk): Update.
4680 * sparc64-tdep.c (sparc64_fpu_register_names)
4681 (sparc64_cp0_register_names, sparc64_register_names)
4682 (sparc64_pseudo_register_names): Now const.
4683 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4684 cp0_registers_num>: Now const.
4685 * sparc-tdep.c (sparc_core_register_names)
4686 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4687 (sparc32_pseudo_register_names): Now const.
4688 (validate_tdesc_registers): Update.
4689 * rust-lang.c (rust_extensions): Now const.
4690 * p-lang.c (p_extensions): Now const.
4691 * objc-lang.c (objc_extensions): Now const.
4692 * nto-tdep.c (nto_thread_state_str): Now const.
4693 * moxie-tdep.c (moxie_register_names): Now const.
4694 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4696 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4697 (mips_linux_reg_names): Now const.
4698 (mips_gdbarch_init): Update.
4699 * microblaze-tdep.c (microblaze_register_names): Now const.
4700 * m68k-tdep.c (m68k_register_names): Now const.
4701 * m32r-tdep.c (m32r_register_names): Now const.
4702 * ia64-tdep.c (ia64_register_names): Now const.
4703 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4704 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4705 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4706 ymm_avx512_register_names, pkeys_register_names>: Now const.
4707 * i386-tdep.c (i386_register_names, i386_zmm_names)
4708 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4709 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4710 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4711 * f-lang.c (f_extensions): Now const.
4712 * d-lang.c (d_extensions): Now const.
4713 * csky-tdep.c (csky_register_names): Now const.
4714 * charset.c (default_charset_names, charset_enum): Now const.
4715 (_initialize_charset): Update.
4716 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4718 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4719 (bsd_uthread_solib_loaded): Update.
4720 (bsd_uthread_state): Now const.
4721 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4722 (amd64_ymm_avx512_names, amd64_ymmh_names)
4723 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4724 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4725 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4726 (amd64_dword_names): Now const.
4727 * agent.c (can_use_agent_enum): Now const.
4728 * ada-tasks.c (task_states, long_task_states): Now const.
4729 * ada-lang.c (known_runtime_file_name_patterns)
4730 (known_auxiliary_function_name_patterns, attribute_names)
4731 (standard_exc, ada_extensions): Now const.
4733 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4735 * bcache.h (struct bcache) <bcache>: Remove constructor.
4736 <m_hash_function, m_compare_function>: Remove.
4737 <~bcache>: Make virtual.
4738 <compare>: Remove static method, introduce virtual method.
4739 <default_hash>: Remove.
4740 <hash>: New virtual method.
4741 * bcache.c (bcache::expand_hash_table): Update.
4742 (bcache::insert): Update.
4743 (bcache::hash): New.
4744 (bcache::compare): Update comment and parameter names.
4745 * gdbtypes.c (types_deeply_equal): Update.
4746 * psymtab.h (struct psymbol_bcache): New struct.
4747 (class psymtab_storage) <psymtab_storage>: Make default.
4748 <psymbol_cache>: Change type to psymbol_bcache.
4749 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4750 (psymbol_hash): Change to...
4751 (psymbol_bcache::hash): ... this.
4752 (psymbol_compare): Change to...
4753 (psymbol_bcache::compare): ... this.
4755 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4757 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4758 checking for initial lwp.
4760 2020-09-14 Tom Tromey <tromey@adacore.com>
4762 * m68k-tdep.c (m68k_extract_return_value): Use
4763 pointer_result_regnum.
4764 (m68k_store_return_value): Likewise.
4765 (m68k_reg_struct_return_p): Handle vectors and arrays.
4766 (m68k_return_value): Handle arrays.
4767 (m68k_svr4_return_value): Fix single-element aggregate handling.
4768 Handle long double. Adjust for embedded ABI.
4769 (m68k_svr4_init_abi): Set pointer_result_regnum.
4770 (m68k_embedded_init_abi): New function.
4771 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4772 (m68k_osabi_sniffer): New function.
4773 (_initialize_m68k_tdep): Register osabi sniffer.
4774 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4777 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4779 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4780 with gdb::unique_xmalloc_ptr<char>.
4782 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4784 * xml-support.h (xml_fetch_another): Change type to be a
4786 (xml_process_xincludes): Remove baton parameter.
4787 (xml_fetch_content_from_file): Change baton parameter to
4789 * xml-support.c (struct xinclude_parsing_data)
4790 <xinclude_parsing_data>: Remove baton parameter.
4791 <fetcher_baton>: Remove.
4792 (xinclude_start_include): Adjust.
4793 (xml_process_xincludes): Adjust.
4794 (xml_fetch_content_from_file): Replace baton parameter with
4796 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4797 (xml_init_syscalls_info): Use a lambda.
4798 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4799 (file_read_description_xml): Use a lambda.
4800 (fetch_available_features_from_target): Change baton parameter
4802 (target_read_description_xml): Use a lambda.
4803 (target_fetch_description_xml): Use a lambda.
4804 (string_read_description_xml): Update.
4806 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4808 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4809 uses with type::endianity_is_not_default.
4811 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4813 * gdbtypes.h (struct type) <endianity_is_not_default,
4814 set_endianity_is_not_default>: New methods.
4815 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4816 type::endianity_is_not_default, change all write call sites to
4817 use type::set_endianity_is_not_default.
4819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4821 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4822 uses with type::is_fixed_instance.
4824 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4826 * gdbtypes.h (struct type) <is_fixed_instance,
4827 set_is_fixed_instance>: New methods.
4828 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4829 write call sites to use type::set_is_fixed_instance.
4831 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4833 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4834 uses with type::is_gnu_ifunc.
4836 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4838 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4839 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4840 use type::set_is_gnu_ifunc.
4842 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4844 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4845 uses with type::stub_is_supported.
4847 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4849 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4850 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4851 use type::set_stub_is_supported.
4853 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4855 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4856 uses with type::is_vector.
4858 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4860 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4861 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4862 use type::set_is_vector.
4864 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4866 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4867 uses with type::has_varargs.
4869 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4871 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4872 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4873 use type::set_has_varargs.
4875 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4877 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4878 uses with type::is_prototyped.
4880 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4882 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4884 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4885 call sites to use type::set_is_prototyped.
4887 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4889 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4890 uses with type::target_is_stub.
4892 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4894 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4896 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4897 sites to use type::set_target_is_stub.
4899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4901 * gdbtypes.h (TYPE_STUB): Remove, replace all
4902 uses with type::is_stub.
4904 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4906 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4907 (TYPE_STUB): Use type::is_stub, change all write call sites to
4908 use type::set_is_stub.
4910 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4912 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4913 type::has_no_signedness.
4915 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4917 * gdbtypes.h (struct type) <has_no_signedness,
4918 set_has_no_signedness>: New methods.
4919 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4920 call sites to use type::set_has_no_signedness.
4922 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4924 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4927 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4929 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4931 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4932 sites to use type::set_is_unsigned.
4934 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4935 Adam Renquinha <arenquinha@cimeq.qc.ca>
4937 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4938 pointer and stack frame offset when unwinding.
4940 2020-09-13 Pedro Alves <pedro@palves.net>
4942 * NEWS: Document "-break-insert --qualified".
4943 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4945 2020-09-13 Pedro Alves <pedro@palves.net>
4947 * linespec.c (classify_mtype, compare_msyms): Delete.
4948 (search_minsyms_for_name): Remove classification logic. Instead
4949 filter out trampoline symbols if we also found an external
4950 function of the same name.
4952 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4954 * NEWS: Create a new section for the next release branch.
4955 Rename the section of the current branch, now that it has
4958 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4960 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4961 * version.in: Bump version to 11.0.50.DATE-git.
4963 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4965 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4967 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4968 Felix Willgerodt <Felix.Willgerodt@intel.com>
4970 * gdbarch.sh: Added bfloat16 type.
4971 * gdbarch.c: Regenerated.
4972 * gdbarch.h: Regenerated.
4973 * gdbtypes.c (floatformats_bfloat16): New struct.
4974 (gdbtypes_post_init): Add builtin_bfloat16.
4975 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4976 (floatformats_bfloat16): New struct.
4977 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4978 (i386_ymm_type): Add field "v16_bfloat16"
4979 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4980 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4981 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4982 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4983 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4984 * features/i386/64bit-avx512.c: Regenerated.
4985 * features/i386/64bit-sse.xml: Add bfloat16 type.
4986 * features/i386/64bit-sse.c: Regenerated.
4988 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4990 * i386-tdep.c (i386_zmm_type): Fix field names.
4991 (i386_ymm_type): Fix field names.
4993 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4995 * breakpoint.c: Fix typo in the help message of the
4996 "set breakpoint condition-evaluation" command.
4998 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5000 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5001 * (nbsd_nat_target::pid_to_exec_file)
5002 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5003 (nbsd_nat_target::post_startup_inferior)
5004 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5005 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5006 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5007 * (nbsd_thread_lister): Remove.
5009 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5011 * fork-inferior.c (startup_inferior): Avoid double free.
5013 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5015 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5016 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5018 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5020 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5021 * netbsd-nat.c: Include <sys/ptrace.h>.
5022 * (netbsd_nat::enable_proc_events): Add.
5024 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5026 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5027 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5028 (netbsd_nat::for_each_thread): Add.
5029 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5030 "gdbsupport/common-debug.h".
5031 * (netbsd_nat::netbsd_thread_lister)
5032 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5033 (netbsd_nat::for_each_thread): Add.
5035 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5037 * netbsd-nat.h: Include <unistd.h>.
5038 * (netbsd_nat::pid_to_exec_file): Add.
5039 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5040 * (netbsd_nat::pid_to_exec_file) Add.
5042 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5044 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5046 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5048 * netbsd-nat.h: New file.
5049 * netbsd-nat.c: Likewise.
5051 2020-09-09 Tom Tromey <tromey@adacore.com>
5053 * ada-lang.c (remove_extra_symbols): Do not increment when
5056 2020-09-08 Tom Tromey <tromey@adacore.com>
5058 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5060 2020-09-08 Tom Tromey <tromey@adacore.com>
5063 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5064 (gdb_bfd_init_data): New function.
5065 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5067 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5069 * infrun.c (fetch_inferior_event): Use
5070 `switch_to_target_no_thread` to switch the target.
5072 2020-09-06 Tom Tromey <tom@tromey.com>
5074 * symfile.h (dwarf2_free_objfile): Don't declare.
5076 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5078 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5079 to match 16 byte real/complex type generated by Flang compiler.
5081 2020-09-03 Tom de Vries <tdevries@suse.de>
5084 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5085 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5087 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5089 * maint.c (index_digits): New function.
5090 (struct maint_print_section_data): Remove.
5091 (print_bfd_section_info): Remove print_data parameter, add arg
5093 (print_objfile_section_info): Likewise.
5094 (print_bfd_section_info_maybe_relocated): Likewise (plus
5096 (maintenance_info_sections): Adjust calls.
5098 2020-09-02 Tom Tromey <tromey@adacore.com>
5100 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5102 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5104 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5106 * bcache.h (struct bcache) <insert>: Change type of `added` to
5108 * bcache.c (bcache::insert): Likewise.
5109 * gdbtypes.c (check_types_worklist): Adjust.
5110 * psymtab.c (add_psymbol_to_bcache): Adjust.
5112 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5114 * corelow.c (unordered_set): Include.
5115 (class core_target): Add field 'm_core_unavailable_mappings'.
5116 (core_target::build_file_mappings): Print only one warning
5117 per inaccessible file. Add unavailable/broken mappings
5118 to m_core_unavailable_mappings.
5119 (core_target::xfer_partial): Call...
5120 (core_target::xfer_memory_via_mappings): New method.
5122 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5124 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5127 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5129 * dwarf2/read.c (struct field_info): Fix indentation.
5131 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5133 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5134 ordering in comment.
5135 * frame.c (frame_id_eq): Fix indentation.
5137 2020-08-31 Scott Linder <scott@scottlinder.com>
5138 Simon Marchi <simon.marchi@efficios.com>
5140 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5141 inline frame ids in outer frame.
5143 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5145 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5146 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5147 (outer_frame_id): Use FID_STACK_OUTER instead of
5149 (frame_id_p): Don't check for outer_frame_id.
5151 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5153 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5154 regnum/frame in value. Call allocate_value_lazy.
5155 * frame.c (frame_unwind_register_value): Use
5156 val_print_not_saved.
5158 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5160 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5162 2020-08-29 Pedro Alves <pedro@palves.net>
5164 * progspace.c (print_program_space): Use all_inferiors. Switch to
5165 the inferior before calling target_pid_to_str.
5167 2020-08-28 Tom Tromey <tom@tromey.com>
5169 * xcoffread.c (xcoff_end_psymtab): Update comment.
5170 * dbxread.c (dbx_end_psymtab): Update comment.
5172 2020-08-28 Tom de Vries <tdevries@suse.de>
5175 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5177 (create_breakpoint): Same.
5178 (base_breakpoint_decode_location): Same.
5179 (bkpt_create_sals_from_location): Same.
5180 (bkpt_decode_location): Same.
5181 (bkpt_probe_create_sals_from_location): Same.
5182 (bkpt_probe_decode_location): Same.
5183 (tracepoint_create_sals_from_location): Same.
5184 (tracepoint_decode_location): Same.
5185 (tracepoint_probe_decode_location): Same.
5186 (strace_marker_create_sals_from_location): Same.
5187 (strace_marker_decode_location): Same.
5188 (create_sals_from_location_default): Same.
5189 (decode_location_default): Same.
5190 * breakpoint.h (struct breakpoint_ops): Same.
5191 (create_breakpoint): Same.
5192 * linespec.h (decode_line_full): Same.
5193 * linespec.c (decode_line_full): Same. Throw error if
5194 result.size () == 0.
5196 2020-08-27 Pedro Alves <pedro@palves.net>
5199 * breakpoint.c (until_break_fsm) <location_breakpoint,
5200 caller_breakpoint>: Delete fields.
5201 <breakpoints>: New field.
5202 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5203 two individual breakpoints.
5204 (until_break_fsm::should_stop): Loop over breakpoints in the
5206 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5208 (until_break_command): Handle location expanding into multiple
5211 2020-08-27 Pedro Alves <pedro@palves.net>
5214 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5215 bp_until breakpoints user-specified locations. Update intro
5218 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5220 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5221 gdb_bfd_sections): New.
5222 * maint.c (print_bfd_section_info): Change param type to
5223 maint_print_section_data.
5224 (print_objfile_section_info): Likewise.
5225 (print_bfd_section_info_maybe_relocated): Likewise.
5226 (maintenance_info_sections): Use gdb_bfd_sections.
5228 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5230 * MAINTAINERS: Add ARC target and maintainer.
5232 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5234 * configure.tgt: ARC support for GNU/Linux.
5235 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5236 * arc-linux-tdep.c: New file.
5237 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5238 * arc-tdep.c (arc_write_pc): Use it.
5240 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5242 * arc-tdep.c (arc_check_for_hardware_loop): New.
5243 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5245 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5247 * arc-tdep.h: Include "gdbarch.h".
5249 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5252 (arc_gdbarch_features): New class to stir the selection of target XML.
5253 (arc_create_target_description): Use FEATURES to choose XML target.
5254 (arc_lookup_target_description): Use arc_create_target_description
5255 to create _new_ target descriptions or return the already created
5256 ones if the FEATURES is the same.
5257 * arch/arc.c: Implementation of prototypes described above.
5258 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5259 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5260 * arc-tdep.c (*_feature_name): Make feature names consistent.
5261 (arc_register_feature): A new struct to hold information about
5262 registers of a particular target/feature.
5263 (arc_check_tdesc_feature): Check if XML provides registers in
5264 compliance with ARC_REGISTER_FEATURE structs.
5265 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5266 (determine_*_reg_feature_set): Which feature name to look for.
5267 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5268 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5269 to expected ISA enums to be used in arc_gdbarch_features structs.
5270 * features/Makefile (FEATURE_XMLFILES): Add new files.
5271 * gdb/features/arc/v1-aux.c: New file.
5272 * gdb/features/arc/v1-aux.xml: Likewise.
5273 * gdb/features/arc/v1-core.c: Likewise.
5274 * gdb/features/arc/v1-core.xml: Likewise.
5275 * gdb/features/arc/v2-aux.c: Likewise.
5276 * gdb/features/arc/v2-aux.xml: Likewise.
5277 * gdb/features/arc/v2-core.c: Likewise.
5278 * gdb/features/arc/v2-core.xml: Likewise.
5279 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5281 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5282 Andrew Burgess <andrew.burgess@embecosm.com>
5285 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5286 an assert. Remove single element array indexing pattern as the
5287 MULTI_SUBSCRIPT support will handle this case too.
5289 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5291 * value.h (valprint_check_validity): Move declaration from
5293 * valprint.h (valprint_check_validity): ... to here.
5295 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5297 * debug.h: New file.
5298 * debug.c (debug_prefixed_vprintf): New function.
5299 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5300 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5302 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5304 * infrun.h (infrun_debug_printf_1): New function declaration.
5305 (infrun_debug_printf): New macro.
5306 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5308 (infrun_debug_printf): New function.
5309 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5310 (handle_jit_event): Likewise.
5312 2020-08-21 Mark Wielaard <mark@klomp.org>
5314 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5316 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5318 * frame.c (enum class frame_id_status): New.
5319 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5320 (fprintf_frame): Update.
5321 (compute_frame_id): Set frame id status to "computing" on entry.
5322 Set it back to "not_computed" on failure and to "computed" on
5324 (get_frame_id): Assert the frame id is not being computed.
5325 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5326 (create_new_frame): Likewise.
5327 (frame_cleanup_after_sniffer): Update assert.
5329 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5331 * regcache.c (pid_ptid_regcache_map): New type.
5332 (target_ptid_regcache_map): Remove.
5333 (target_pid_ptid_regcache_map): New type.
5334 (regcaches): Change type to target_pid_ptid_regcache_map.
5335 (get_thread_arch_aspace_regcache): Update.
5336 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5338 (regcaches_size): Update.
5339 (regcache_count): Update.
5340 (registers_changed_ptid_target_pid_test): New.
5341 (_initialize_regcache): Register new test.
5343 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5345 * regcache.c (regcache_count): New.
5346 (struct regcache_test_data): New.
5347 (regcache_test_data_up): New.
5348 (populate_regcaches_for_test): New.
5349 (regcaches_test): Remove.
5350 (get_thread_arch_aspace_regcache_test): New.
5351 (registers_changed_ptid_all_test): New.
5352 (registers_changed_ptid_target_test): New.
5353 (registers_changed_ptid_target_ptid_test): New.
5354 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5355 (_initialize_regcache): Register new tests.
5357 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5359 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5360 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5361 gdbarch and aspace parameter. Use current inferior's aspace.
5362 Validate regcache's arch value.
5363 (regcaches_test): Update.
5365 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5367 * regcache.c (regcaches_test): Call registers_changed.
5369 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5371 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5373 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5375 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5376 to find the end of prologue for flang compiled binaries.
5377 * arm-tdep.c (arm_skip_prologue): Likewise.
5378 * i386-tdep.c (i386_skip_prologue): Likewise.
5379 * producer.c (producer_is_llvm): New function.
5380 (producer_parsing_tests): Added new tests for clang/flang.
5381 * producer.h (producer_is_llvm): New declaration.
5383 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5385 * linux-nat.c (linux_nat_debug_printf): New function.
5386 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5388 2020-08-18 Aaron Merey <amerey@redhat.com>
5390 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5391 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5392 (CLIBS): Add DEBUGINFOD_LIBS.
5394 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5396 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5399 2020-08-17 Tom Tromey <tromey@adacore.com>
5401 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5402 ada_get_decoded_value returns NULL.
5404 2020-08-17 Tom Tromey <tromey@adacore.com>
5406 * python/py-inferior.c (infpy_search_memory): Use
5407 gdb_py_object_from_ulongest.
5408 * python/py-infevents.c (create_inferior_call_event_object)
5409 (create_memory_changed_event_object): Use
5410 gdb_py_object_from_ulongest.
5411 * python/py-linetable.c (ltpy_entry_get_pc): Use
5412 gdb_py_object_from_ulongest.
5414 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5416 * loc.c (class symbol_needs_eval_context): Fix indentation.
5418 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5420 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5423 2020-08-17 Tom de Vries <tdevries@suse.de>
5426 * gdbtypes.c (dump_dynamic_prop): New function.
5427 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5429 2020-08-15 Tom de Vries <tdevries@suse.de>
5432 * stack.c (print_frame_args): Temporarily set the selected
5433 frame to FRAME while printing the frame's arguments.
5435 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5437 PR breakpoints/26385
5438 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5439 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5441 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5443 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5444 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5445 and >= to check return value instead of == -1 and != -1.
5447 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5449 * utils.h (class gdb_argv) <as_array_view>: New method.
5450 * utils.c (gdb_argv_as_array_view_test): New.
5451 (_initialize_utils): Register selftest.
5452 * maint.c (maintenance_selftest): Use the new method.
5454 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5456 * target.h (supports_dumpcore, dumpcore): New
5457 function declarations.
5458 * target.c (supports_dumpcore, dumpcore): New
5460 * target-delegates.c: Rebuild.
5461 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5462 and target_dumpcore ().
5464 2020-08-13 Aaron Merey <amerey@redhat.com>
5466 * debuginfod-support.c: Replace global variables with user_data.
5468 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5470 * maint.c (maintenance_selftest): Split args and pass array_view
5473 2020-08-12 Luis Machado <luis.machado@linaro.org>
5475 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5477 Use %s and pulongest to print the length.
5479 2020-08-12 Pedro Alves <palves@redhat.com>
5481 * NEWS: Move "Multi-target debugging support" item to the
5482 "Changes since GDB 9" section.
5484 2020-08-12 Pedro Alves <palves@redhat.com>
5487 * progspace.c (program_space::remove_objfile): Invalidate the
5490 2020-08-11 Tom de Vries <tdevries@suse.de>
5492 * MAINTAINERS: Mark ms1 as deleted.
5494 2020-08-10 Luis Machado <luis.machado@linaro.org>
5498 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5500 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5501 movz/str/stur/stp skipping behavior.
5503 2020-08-10 Luis Machado <luis.machado@linaro.org>
5505 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5506 struct user_sve_header instead of struct sve_context.
5508 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5510 * read.h (dwarf2_fetch_die_loc_sect_off,
5511 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5512 `void *` parameter with function_view.
5513 * read.c (dwarf2_fetch_die_loc_sect_off,
5514 dwarf2_fetch_die_loc_cu_off): Likewise.
5515 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5516 (per_cu_dwarf_call): Adjust.
5517 (get_frame_address_in_block_wrapper): Remove.
5518 (indirect_synthetic_pointer): Adjust.
5519 (get_ax_pc): Remove.
5520 (dwarf2_compile_expr_to_ax): Adjust.
5522 2020-08-08 Tom de Vries <tdevries@suse.de>
5525 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5527 * regcache.c (get_thread_arch_aspace_regcache): Same.
5529 2020-08-07 Tom Tromey <tromey@adacore.com>
5531 * ravenscar-thread.c
5532 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5534 (ravenscar_thread_target::wait): Check
5535 runtime_initialized.
5536 (ravenscar_thread_target::prepare_to_store)
5537 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5538 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5539 (ravenscar_thread_target::stopped_by_watchpoint)
5540 (ravenscar_thread_target::stopped_data_address)
5541 (ravenscar_thread_target::core_of_thread): Use
5542 scoped_restore_current_thread and
5543 set_base_thread_from_ravenscar_task.
5545 2020-08-07 Tom Tromey <tromey@adacore.com>
5547 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5549 2020-08-07 Tom Tromey <tromey@adacore.com>
5551 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5552 update_inferior_ptid before update_thread_list.
5553 (temporarily_change_regcache_ptid): New class.
5554 (ravenscar_thread_target::fetch_registers)
5555 (ravenscar_thread_target::store_registers)
5556 (ravenscar_thread_target::prepare_to_store): Use base thread when
5557 forwarding operation.
5559 2020-08-07 Tom Tromey <tromey@adacore.com>
5561 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5564 2020-08-07 Tom Tromey <tromey@adacore.com>
5566 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5568 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5570 (ravenscar_thread_target::add_thread): Rename from
5571 ravenscar_add_thread.
5572 (ravenscar_thread_target::update_thread_list): Use a lambda.
5573 (ravenscar_thread_target::xfer_partial): New method.
5575 2020-08-07 Tom Tromey <tromey@adacore.com>
5577 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5579 (iterate_over_live_ada_tasks): Change type of argument.
5580 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5583 2020-08-07 Tom Tromey <tromey@adacore.com>
5585 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5587 (ravenscar_thread_target::extra_thread_info): Remove.
5588 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5589 defer to target beneath for non-Ravenscar threads.
5591 2020-08-07 Tom Tromey <tromey@adacore.com>
5593 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5594 get_base_thread_from_ravenscar_task>: Now methods.
5595 <m_cpu_map>: New member.
5596 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5597 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5598 (ravenscar_thread_target::task_is_currently_active): Update.
5599 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5601 (ravenscar_thread_target::add_active_thread): Put initial thread
5604 2020-08-07 Tom Tromey <tromey@adacore.com>
5606 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5609 2020-08-07 Tom Tromey <tromey@adacore.com>
5611 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5612 runtime_initialized.
5614 2020-08-07 Tom Tromey <tromey@adacore.com>
5616 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5618 (ravenscar_thread_target::add_active_thread): Now public.
5619 (ravenscar_inferior_created): Call add_active_thread after pushing
5622 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5624 * regcache.c (ptid_regcache_map): New type.
5625 (target_ptid_regcache_map): New type.
5626 (regcaches): Change type to target_ptid_regcache_map.
5627 (get_thread_arch_aspace_regcache): Update to regcaches' new
5629 (regcache_thread_ptid_changed): Likewise.
5630 (registers_changed_ptid): Likewise.
5631 (regcaches_size): Likewise.
5632 (regcaches_test): Update.
5633 (regcache_thread_ptid_changed): Update.
5634 * regcache.h (regcache_up): New type.
5635 * gdbsupport/ptid.h (hash_ptid): New struct.
5637 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5639 * observable.h (thread_ptid_changed): Add parameter
5640 `process_stratum_target *`.
5641 * infrun.c (infrun_thread_ptid_changed): Add parameter
5642 `process_stratum_target *` and use it.
5643 (selftests): New namespace.
5644 (infrun_thread_ptid_changed): New function.
5645 (_initialize_infrun): Register selftest.
5646 * regcache.c (regcache_thread_ptid_changed): Add parameter
5647 `process_stratum_target *` and use it.
5648 (regcache_thread_ptid_changed): New function.
5649 (_initialize_regcache): Register selftest.
5650 * thread.c (thread_change_ptid): Pass target to
5651 thread_ptid_changed observable.
5653 2020-08-06 Caroline Tice <cmtice@google.com>
5655 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5656 (struct dwp_sections): Update field comments. Add loclists and
5658 (struct virtual_v2_dwo_sections): Rename struct to
5659 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5660 size & offset fields for loclists and rnglists.
5661 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5662 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5663 skipping dummy type units.
5664 (create_dwp_hash_table): Update the large comment above the function to
5665 discuss Version 5 DWP files as well, with references. Update all the
5666 version checks in the function to check for version 5 as well. Add new
5667 section at the end to create dwp hash table for version 5.
5668 (create_dwp_v2_section): Rename function to
5669 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5670 Add V5 to error message text.
5671 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5672 into calls to create_dwp_v2_or_v5_section.
5673 (create_dwo_unit_in_dwp_v5): New function.
5674 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5675 check for version2; add else clause to handle version 5.
5676 (open_and_init_dwo_file): Add code to check dwarf version & only call
5677 create_debug_types_hash_table (with sections.types) if version is not 5;
5678 else call create_debug_type_hash_table, with sections.info.
5679 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5681 (dwarf2_locate_v5_dwp_sections): New function.
5682 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5683 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5685 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5687 * regcache.h (class regcache): Remove friend
5688 registers_changed_ptid.
5689 <regcache_thread_ptid_changed>: Remove.
5690 <regcaches>: Remove.
5691 * regcache.c (regcache::regcaches): Rename to...
5692 (regcaches): ... this. Make static.
5693 (get_thread_arch_aspace_regcache): Update.
5694 (regcache::regcache_thread_ptid_changed): Rename to...
5695 (regcache_thread_ptid_changed): ... this. Update.
5696 (class regcache_access): Remove.
5697 (regcaches_test): Update.
5698 (_initialize_regcache): Update.
5699 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5702 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5704 * regcache.h (class regcache) <current_regcache>: Rename to...
5705 <regcaches>: ... this. Move doc here.
5706 * regcache.c (regcache::current_regcache) Rename to...
5707 (regcache::regcaches): ... this. Move doc to header.
5708 (get_thread_arch_aspace_regcache): Update.
5709 (regcache::regcache_thread_ptid_changed): Update.
5710 (registers_changed_ptid): Update.
5711 (class regcache_access) <current_regcache_size>: Rename to...
5712 <regcaches_size>: ... this.
5713 (current_regcache_test): Rename to...
5714 (regcaches_test): ... this.
5715 (_initialize_regcache): Update.
5717 2020-08-06 Victor Collod <vcollod@nvidia.com>
5719 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5721 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5723 * corelow.c (core_target::build_file_mappings): Don't output
5724 null pathname in warning.
5726 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5728 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5729 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5730 gdb.dwarf2/dw2-single-line-discriminators.exp,
5731 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5733 2020-08-05 Tom Tromey <tromey@adacore.com>
5736 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5737 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5738 Fix off-by-one and type size errors in ordinary case.
5740 2020-08-05 Tom de Vries <tdevries@suse.de>
5742 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5743 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5745 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5747 * frame.h (frame_id_p): Return bool.
5748 (frame_id_artificial_p): Return bool.
5749 (frame_id_eq): Return bool.
5750 (has_stack_frames): Return bool.
5751 (get_selected_frame): Fix typo in comment.
5752 (get_frame_pc_if_available): Return bool.
5753 (get_frame_address_in_block_if_available): Return bool.
5754 (get_frame_func_if_available): Return bool.
5755 (read_frame_register_unsigned): Return bool.
5756 (get_frame_register_bytes): Return bool.
5757 (safe_frame_unwind_memory): Return bool.
5758 (deprecated_frame_register_read): Return bool.
5759 (frame_unwinder_is): Return bool.
5760 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5762 <this_id::p>: Likewise.
5764 (frame_stash_add): Return bool.
5765 (get_frame_id): Use bool.
5766 (frame_id_build_special) Use bool.
5767 (frame_id_build_unavailable_stack): Use bool.
5768 (frame_id_build): Use bool.
5769 (frame_id_p): Return bool, use true/false instead of 1/0.
5770 (frame_id_artificial_p): Likewise.
5771 (frame_id_eq): Likewise.
5772 (frame_id_inner): Likewise.
5773 (get_frame_func_if_available): Likewise.
5774 (read_frame_register_unsigned): Likewise.
5775 (deprecated_frame_register_read): Likewise.
5776 (get_frame_register_bytes): Likewise.
5777 (has_stack_frames): Likewise.
5778 (inside_main_func): Likewise.
5779 (inside_entry_func): Likewise.
5780 (get_frame_pc_if_available): Likewise.
5781 (get_frame_address_in_block_if_available): Likewise.
5782 (frame_unwinder_is): Likewise.
5783 (safe_frame_unwind_memory): Likewise.
5784 (frame_unwind_arch): Likewise.
5786 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5788 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5789 type to cached_copy_status.
5790 (fprintf_frame): Adjust.
5791 (get_frame_func_if_available): Adjust.
5792 (frame_cleanup_after_sniffer): Adjust.
5794 2020-08-04 Mark Wielaard <mark@klomp.org>
5796 * MAINTAINERS (Write After Approval): Update email address.
5798 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5800 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5801 dynamic_prop::const_val.
5803 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5805 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5808 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5810 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5812 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5814 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5816 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5817 Jose E. Marchesi <jose.marchesi@oracle.com>
5819 * configure.tgt: Add entry for bpf-*-*.
5820 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5821 (ALLDEPFILES): Add bpf-tdep.c.
5822 * bpf-tdep.c: New file.
5823 * MAINTAINERS: Add bpf target and maintainer.
5824 * NEWS: Mention the support for the new target.
5826 2020-08-04 Tom de Vries <tdevries@suse.de>
5829 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5832 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5834 * syscalls/freebsd.xml: Regenerate.
5836 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5838 * syscalls/update-freebsd.sh: Fix usage and year range.
5840 2020-08-03 Tom de Vries <tdevries@suse.de>
5843 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5844 DW_LNE_lo_user/DW_LNE_hi_user range.
5846 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5849 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5852 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5854 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5856 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5858 * breakpoint.c (set_breakpoint_condition): Update the condition
5859 expressions after checking that the input condition string parses
5860 successfully and does not contain junk at the end.
5862 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5864 * breakpoint.c (set_breakpoint_condition): Update the
5865 condition string after parsing the new condition successfully.
5867 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5869 * proc-api.c (_STRUCTURED_PROC): Don't define.
5870 * proc-events.c: Likewise.
5871 * proc-flags.c: Likewise.
5872 * proc-why.c: Likewise.
5873 * procfs.c: Likewise.
5875 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5876 * configure, config.in: Regenerate.
5878 2020-07-30 Tom de Vries <tdevries@suse.de>
5881 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5882 m_red/m_green/m_blue in a union.
5884 2020-07-29 Tom de Vries <tdevries@suse.de>
5887 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5889 2020-07-28 Tom Tromey <tromey@adacore.com>
5892 * symtab.h (find_pc_partial_function_sym): Declare.
5893 * cli/cli-cmds.c (disassemble_command): Use
5894 find_pc_partial_function_sym. Check asm_demangle.
5895 * blockframe.c (cache_pc_function_sym): New global.
5896 (cache_pc_function_name): Remove.
5897 (clear_pc_function_cache): Update.
5898 (find_pc_partial_function_sym): New function, from
5899 find_pc_partial_function.
5900 (find_pc_partial_function): Rewrite using
5901 find_pc_partial_function_sym.
5903 2020-07-28 Tom Tromey <tromey@adacore.com>
5905 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5908 2020-07-28 Tom Tromey <tromey@adacore.com>
5910 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5911 <DW_OP_GNU_variable_value>: Cast to address type.
5913 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5915 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5916 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5917 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5918 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5919 (nbsd_get_siginfo_type): New.
5920 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5921 (_initialize_nbsd_tdep): New.
5923 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5926 * configure: Regenerated.
5928 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5931 * configure: Regenerated.
5933 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5935 * python/py-frame.c: Remove 'user-regs.h' include.
5936 (frapy_read_register): Rewrite to make use of
5937 gdbpy_parse_register_id.
5938 * python/py-registers.c (gdbpy_parse_register_id): New function,
5939 moved here from python/py-unwind.c. Updated the return type, and
5940 also accepts register descriptor objects.
5941 * python/py-unwind.c: Remove 'user-regs.h' include.
5942 (pyuw_parse_register_id): Moved to python/py-registers.c.
5943 (unwind_infopy_add_saved_register): Update to use
5944 gdbpy_parse_register_id.
5945 (pending_framepy_read_register): Likewise.
5946 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5948 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5950 * python/py-registers.c: Add 'user-regs.h' include.
5951 (register_descriptor_iter_find): New function.
5952 (register_descriptor_iterator_object_methods): New static global
5954 (register_descriptor_iterator_object_type): Add pointer to methods
5957 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5959 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5960 for all architectures on FreeBSD 11.3 and later.
5962 2020-07-27 Tom Tromey <tromey@adacore.com>
5964 * gcore.h (load_corefile): Don't declare.
5966 2020-07-27 Tom de Vries <tdevries@suse.de>
5968 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5969 * config.in: Regenerate.
5970 * configure: Regenerate.
5972 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5974 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5975 ws2tcpip.h. When checking whether socklen_t type is defined, use
5976 ws2tcpip.h if it is available and sys/socket.h isn't.
5977 * configure: Regenerate.
5978 * config.in: Regenerate.
5980 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5984 * valops.c (value_ind): Pass address to
5985 readjust_indirect_value_type.
5986 * value.c (readjust_indirect_value_type): Make parameter
5987 non-const, and add extra address parameter. Resolve original type
5989 * value.h (readjust_indirect_value_type): Update function
5990 signature and comment.
5992 2020-07-25 Tom de Vries <tdevries@suse.de>
5995 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5998 2020-07-24 Aaron Merey <amerey@redhat.com>
6000 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6001 * configure: Rebuild.
6003 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6006 * corelow.c (_initialize_corelow): Add period to help text
6007 for "maintenance print core-file-backed-mappings".
6009 2020-07-23 Pedro Alves <pedro@palves.net>
6011 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6012 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6014 * frame.c (frame_cache_generation, get_frame_cache_generation):
6016 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6017 (get_prev_frame_if_no_cycle): On exception, don't touch
6018 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6019 * frame.h (get_frame_cache_generation): Declare.
6021 2020-07-23 Tom de Vries <tdevries@suse.de>
6024 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6025 New default constructor.
6027 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6029 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6030 exclude non-statement entries.
6032 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6034 * NEWS (New commands): Mention new command
6035 "maintenance print core-file-backed-mappings".
6037 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6039 * corelow.c (gdbcmd.h): Include.
6040 (core_target::info_proc_mappings): New method.
6041 (get_current_core_target): New function.
6042 (maintenance_print_core_file_backed_mappings): New function.
6043 (_initialize_corelow): Add core-file-backed-mappings to
6044 "maint print" commands.
6046 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6048 * linux-tdep.c (dump_note_entry_p): New function.
6049 (linux_dump_mapping_p_ftype): New typedef.
6050 (linux_find_memory_regions_full): Add new parameter,
6051 should_dump_mapping_p.
6052 (linux_find_memory_regions): Adjust call to
6053 linux_find_memory_regions_full.
6054 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6055 call to linux_find_memory_regions_full.
6057 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6059 * corelow.c (solist.h, unordered_map): Include.
6060 (class core_target): Add field m_core_file_mappings and
6061 method build_file_mappings.
6062 (core_target::core_target): Call build_file_mappings.
6063 (core_target::~core_target): Free memory associated with
6064 m_core_file_mappings.
6065 (core_target::build_file_mappings): New method.
6066 (core_target::xfer_partial): Use m_core_file_mappings
6067 for memory transfers.
6068 * linux-tdep.c (linux_read_core_file_mappings): New
6070 (linux_core_info_proc_mappings): Rewrite to use
6071 linux_read_core_file_mappings.
6072 (linux_init_abi): Register linux_read_core_file_mappings.
6074 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6076 * arch-utils.c (default_read_core_file_mappings): New function.
6077 * arch-utils.c (default_read_core_file_mappings): Declare.
6078 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6079 * gdbarch.h, gdbarch.c: Regenerate.
6081 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6084 * corelow.c (core_target:xfer_partial): Revise
6085 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6086 case after first checking the stratum beneath the core
6088 (has_all_memory): Return true.
6089 * target.c (raw_memory_xfer_partial): Revise comment
6090 regarding use of has_all_memory.
6092 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6094 * exec.h (section_table_xfer_memory): Revise declaration,
6095 replacing section name parameter with an optional callback
6097 * exec.c (section_table_xfer_memory): Likewise.
6098 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6099 of section_table_xfer_memory.
6101 2020-07-22 Tom Tromey <tromey@adacore.com>
6103 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6104 lookup_symbol_search_name.
6106 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6108 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6109 redundant local variable.
6110 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6111 reference, not pointer, update code accordingly.
6113 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6114 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6116 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6117 * jit.c (jit_breakpoint_re_set_internal): Use the
6118 `skip_jit_symbol_lookup` field.
6120 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6121 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6123 * jit.c (jit_read_descriptor): Define the descriptor address once,
6125 (jit_breakpoint_deleted): Move the declaration of the loop variable
6126 `iter` into the loop header.
6127 (jit_breakpoint_re_set_internal): Move the declaration of the local
6128 variable `objf_data` to the first point of definition.
6129 (jit_event_handler): Move the declaration of local variables
6130 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6131 Rename `objf` to `jited`.
6133 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6135 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6137 * jit.c (get_jiter_objfile_data): Update.
6139 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6140 Simon Marchi <simon.marchi@polymtl.ca>
6142 * jit.c (struct jit_program_space_data): Remove.
6143 (jit_program_space_key): Remove.
6144 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6146 (get_jit_program_space_data): Remove.
6147 (jit_breakpoint_deleted): Iterate on all of the program space's
6149 (jit_inferior_init): Likewise.
6150 (jit_breakpoint_re_set_internal): Likewise. Also change return
6152 (jit_breakpoint_re_set): Pass current_program_space to
6153 jit_breakpoint_re_set_internal.
6155 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6157 * jit.h (struct jiter_objfile_data) <cached_code_address,
6158 jit_breakpoint>: Move to here from ...
6159 * jit.c (jit_program_space_data): ... here.
6160 (jiter_objfile_data::~jiter_objfile_data): Update.
6161 (jit_breakpoint_deleted): Update.
6162 (jit_breakpoint_re_set_internal): Update.
6164 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6166 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6168 (jit_read_descriptor): Remove NULL check.
6169 (jit_event_handler): Add an assertion.
6171 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6173 * jit.h (struct jit_objfile_data): Split into...
6174 (struct jiter_objfile_data): ... this ...
6175 (struct jited_objfile_data): ... and this.
6176 * objfiles.h (struct objfile) <jit_data>: Remove.
6177 <jiter_data, jited_data>: New fields.
6178 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6179 (jiter_objfile_data::~jiter_objfile_data): ... this.
6180 (get_jit_objfile_data): Rename to ...
6181 (get_jiter_objfile_data): ... this.
6182 (add_objfile_entry): Update.
6183 (jit_read_descriptor): Use get_jiter_objfile_data.
6184 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6185 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6186 (jit_inferior_exit_hook): Use objfile's jited_data field.
6188 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6190 * jit.h: Forward-declare `struct minimal_symbol`.
6191 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6192 constructor, destructor, and an objfile* field.
6193 * jit.c (jit_objfile_data): Remove.
6194 (struct jit_objfile_data): Migrate from here to jit.h.
6195 (jit_objfile_data::~jit_objfile_data): New destructor
6196 implementation with code moved from free_objfile_data.
6197 (free_objfile_data): Delete.
6198 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6199 (jit_find_objf_with_entry_addr): Ditto.
6200 (jit_inferior_exit_hook): Ditto.
6201 (_initialize_jit): Remove the call to
6202 register_objfile_data_with_cleanup.
6203 * objfiles.h (struct objfile) <jit_data>: New field.
6205 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6207 * jit.h: Forward-declare `struct objfile`.
6208 (jit_event_handler): Add a second parameter, the JITer objfile.
6209 * jit.c (jit_read_descriptor): Change the signature to take the
6210 JITer objfile as an argument instead of the jit_program_space_data.
6211 (jit_inferior_init): Update the call to jit_read_descriptor.
6212 (jit_event_handler): Use the new JITer objfile argument when calling
6213 jit_read_descriptor.
6214 * breakpoint.c (handle_jit_event): Update the call to
6215 jit_event_handler to pass the JITer objfile.
6217 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6219 * gdbarch.c: Regenerate.
6220 * gdbarch.h: Regenerate.
6221 * gdbarch.sh (handle_segmentation_fault): Remove method.
6222 * infrun.c (handle_segmentation_fault): Remove.
6223 (print_signal_received_reason): Remove call to
6224 handle_segmentation_fault.
6226 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6228 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6229 Rename to sparc64_linux_report_signal_info and add siggnal
6231 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6232 instead of sparc64_linux_handle_segmentation_fault.
6234 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6236 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6237 i386_linux_report_signal_info instead of
6238 i386_linux_handle_segmentation_fault.
6239 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6240 to i386_linux_report_signal_info and add siggnal argument.
6241 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6242 of i386_linux_handle_segmentation_fault.
6243 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6244 to i386_linux_report_signal_info and add siggnal argument.
6246 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6248 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6251 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6253 * gdbarch.c: Regenerate.
6254 * gdbarch.h: Regenerate.
6255 * gdbarch.sh (report_signal_info): New method.
6256 * infrun.c (print_signal_received_reason): Invoke gdbarch
6257 report_signal_info hook if present.
6259 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6261 * python/py-registers.c : Add 'unordered_map' include.
6262 (gdbpy_new_reggroup): Renamed to...
6263 (gdbpy_get_reggroup): ...this. Update to only create register
6264 group descriptors when needed.
6265 (gdbpy_reggroup_iter_next): Update.
6267 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6269 * python/py-registers.c (gdbpy_register_object_data): New static
6271 (gdbpy_register_object_data_init): New function.
6272 (gdbpy_new_register_descriptor): Renamed to...
6273 (gdbpy_get_register_descriptor): ...this, and update to reuse
6274 existing register descriptors where possible.
6275 (gdbpy_register_descriptor_iter_next): Update.
6276 (gdbpy_initialize_registers): Register new gdbarch data.
6278 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6280 * linux-nat.c (stopped_pids): Make static.
6282 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6285 * gdbtypes.c (ada_discrete_type_low_bound,
6286 ada_discrete_type_high_bound): Handle undefined bounds.
6288 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6290 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6292 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6295 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6297 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6298 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6299 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6300 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6301 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6304 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6306 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6307 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6308 which are deprecated in Guile 3.0.
6309 * configure.ac (try_guile_versions): Add "guile-3.0".
6310 * configure (try_guile_versions): Regenerate.
6311 * NEWS: Update entry.
6313 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6314 Doug Evans <dje@google.com>
6317 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6318 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6319 USING_GUILE_BEFORE_2_2.
6320 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6321 Change type to 'scm_t_port_type *'.
6322 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6323 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6324 parameter and honor it. Update callers.
6325 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6326 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6328 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6329 USING_GUILE_BEFORE_2_2.
6330 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6331 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6332 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6333 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6334 and 'SCM_PORT_TYPE'.
6335 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6336 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6337 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6338 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6339 [!USING_GUILE_BEFORE_2_2]: New functions.
6340 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6341 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6342 'gdbscm_memory_port_read'.
6343 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6344 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6345 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6347 (ioscm_init_memory_port): Remove.
6348 (ioscm_init_memory_port_stream): New function
6349 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6351 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6352 Return scm_from_uint (0).
6353 (gdbscm_set_memory_port_read_buffer_size_x)
6354 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6355 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6356 Return scm_from_uint (0).
6357 (gdbscm_set_memory_port_write_buffer_size_x)
6358 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6359 * configure.ac (try_guile_versions): Add "guile-2.2".
6360 * configure: Regenerate.
6363 2020-07-18 Tom Tromey <tom@tromey.com>
6365 * linux-nat.c (linux_multi_process): Remove.
6366 (linux_nat_target::supports_multi_process): Return true.
6368 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6370 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6371 (riscv_lookup_target_description): Return pointer out of
6373 * target-descriptions.c (allocate_target_description): Add
6375 (target_desc_deleter::operator()): Likewise.
6376 * target-descriptions.h (struct target_desc_deleter): Moved to
6378 (target_desc_up): Likewise.
6380 2020-07-17 Tom Tromey <tromey@adacore.com>
6382 * linux-nat.c (linux_nat_target::supports_non_stop)
6383 (linux_nat_target::always_non_stop_p): Use "true".
6384 (linux_nat_target::supports_disable_randomization): Use "true" and
6387 2020-07-16 Caroline Tice <cmtice@google.com>
6389 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6390 (RNGLIST_HEADER_SIZE64): New constant definition.
6391 (struct dwop_section_names): Add rnglists_dwo.
6392 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6393 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6394 (struct dwo_sections): Add rnglists field.
6395 (read_attribut_reprocess): Add tag parameter.
6396 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6397 (cu_debug_rnglists_section): New function (decl & definition).
6398 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6399 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6400 die whose range is being checked; get rnglist section from
6401 cu_debug_rnglists_section, to get from either objfile or dwo file as
6402 appropriate. Add cases for DW_RLE_base_addressx,
6403 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6404 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6405 test inside if-condition and updating complaint message.
6406 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6407 dwarf2_rnglists_process.
6408 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6409 dwarf2_ranges_process.
6410 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6411 need_ranges_base and update comment appropriately. Also pass die tag
6412 to dwarf2_ranges_read.
6413 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6414 need_ranges_base and update comment appropriately. Also pass die tag
6415 to dwarf2_ranges_process.
6416 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6417 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6418 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6419 need_ranges_base and update comment appropriately. Also pass die tag
6420 to read_attribute_reprocess and dwarf2_ranges_read.
6421 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6422 and update function comment appropriately.
6423 (read_loclist_index): Call read_loclists_rnglists_header instead of
6424 read_loclist_header.
6425 (read_rnglist_index): New function.
6426 (read_attribute_reprocess): Add tag parameter. Add code for
6427 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6428 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6430 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6432 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6435 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6437 * arch-utils.c (show_architecture): Update formatting of messages.
6439 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6441 * gdbtypes.h (struct type) <bounds>: Handle array and string
6443 * ada-lang.c (assign_aggregate): Use type::bounds on
6445 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6446 * c-varobj.c (c_number_of_children): Likewise.
6447 (c_describe_child): Likewise.
6448 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6449 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6450 (f_type_print_base): Likewise.
6451 * f-valprint.c (f77_array_offset_tbl): Likewise.
6452 (f77_get_upperbound): Likewise.
6453 (f77_print_array_1): Likewise.
6454 * guile/scm-type.c (gdbscm_type_range): Likewise.
6455 * m2-typeprint.c (m2_array): Likewise.
6456 (m2_is_long_set_of_type): Likewise.
6457 * m2-valprint.c (get_long_set_bounds): Likewise.
6458 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6459 * python/py-type.c (typy_range): Likewise.
6460 * rust-lang.c (rust_internal_print_type): Likewise.
6461 * type-stack.c (type_stack::follow_types): Likewise.
6462 * valarith.c (value_subscripted_rvalue): Likewise.
6463 * valops.c (value_cast): Likewise.
6465 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6467 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6468 callers to use the equivalent accessor methods.
6470 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6472 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6473 (struct type) <bit_stride>: New method.
6474 (TYPE_BIT_STRIDE): Remove.
6475 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6477 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6479 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6480 TYPE_ARRAY_UPPER_BOUND_VALUE): 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_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6486 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6487 callers to use the equivalent accessor methods instead.
6489 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6491 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6492 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6493 to use dynamic_prop::kind.
6495 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6497 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6498 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6499 to get the bound property's kind and check against
6502 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6504 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6505 all callers to use type::range_bounds followed by
6506 dynamic_prop::{low,high}.
6508 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6510 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6511 const_val, set_const_val, baton, set_locexpr, set_loclist,
6512 set_addr_offset, variant_parts, set_variant_parts,
6513 original_type, set_original_type>: New methods.
6514 <kind>: Rename to...
6515 <m_kind>: ... this. Update all users to use the new methods
6517 <data>: Rename to...
6518 <m_data>: ... this. Update all users to use the new methods
6521 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6523 * gdbtypes.c (get_discrete_bounds): Return failure if
6524 the range type's bounds are not both defined and constant
6526 (get_array_bounds): Update comment. Remove undefined bound check.
6528 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6530 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6531 the type::bounds method directly.
6533 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6535 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6536 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6537 are used to set the range type's bounds to use set_bounds.
6539 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6541 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6543 2020-07-10 Pedro Alves <pedro@palves.net>
6545 * gdbthread.h (inferior_ref): Define.
6546 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6547 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6549 (scoped_restore_current_thread::restore):
6550 Adjust to gdb::ref_ptr.
6551 (scoped_restore_current_thread::~scoped_restore_current_thread):
6552 Remove manual decref handling.
6553 (scoped_restore_current_thread::scoped_restore_current_thread):
6555 inferior_ref::new_reference/thread_info_ref::new_reference.
6556 Incref the thread before calling get_frame_id instead of after.
6557 Let TARGET_CLOSE_ERROR propagate.
6559 2020-07-10 Pedro Alves <pedro@palves.net>
6561 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6562 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6563 NOT_AVAILABLE_ERROR.
6564 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6565 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6567 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6568 Pedro Alves <pedro@palves.net>
6571 * infrun.c (threads_are_resumed_pending_p): Delete.
6572 (do_target_wait): Remove threads_are_executing and
6573 threads_are_resumed_pending_p checks from the inferior_matches
6574 lambda. Update comments.
6576 2020-07-10 Pedro Alves <pedro@palves.net>
6579 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6582 2020-07-10 Pedro Alves <pedro@palves.net>
6585 * infrun.c (handle_no_resumed): Handle multiple targets.
6587 2020-07-10 Pedro Alves <pedro@palves.net>
6590 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6593 2020-07-10 Pedro Alves <pedro@palves.net>
6596 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6597 threads, not all threads.
6599 2020-07-10 Pedro Alves <pedro@palves.net>
6602 * remote.c (remote_target::open_1): Pass remote target pointer as
6603 data to create_async_event_handler.
6604 (remote_async_inferior_event_handler): Mark async event handler
6605 before returning if the remote target still has either pending
6606 events or unacknowledged notifications.
6608 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6610 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6612 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6615 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6617 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6620 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6622 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6623 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6624 AT_FREEBSD_PS_STRINGS.
6626 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6628 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6629 of debugfile path on Windows.
6631 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6633 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6636 2020-07-08 Tom Tromey <tromey@adacore.com>
6638 * ada-lang.c (ada_exception_message_1): Use read_memory.
6640 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6643 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6644 special handling for inline frames.
6645 * findvar.c (value_of_register_lazy): Skip inline frames when
6646 creating lazy register values.
6647 * frame.c (frame_id_computed_p): Delete definition.
6648 * frame.h (frame_id_computed_p): Delete declaration.
6650 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6652 * NEWS: Mention additions to Python API.
6653 * python/py-arch.c (archpy_register_groups): New function.
6654 (arch_object_methods): Add 'register_groups' method.
6655 * python/py-registers.c (reggroup_iterator_object): New struct.
6656 (reggroup_object): New struct.
6657 (gdbpy_new_reggroup): New function.
6658 (gdbpy_reggroup_to_string): New function.
6659 (gdbpy_reggroup_name): New function.
6660 (gdbpy_reggroup_iter): New function.
6661 (gdbpy_reggroup_iter_next): New function.
6662 (gdbpy_new_reggroup_iterator): New function
6663 (gdbpy_initialize_registers): Register new types.
6664 (reggroup_iterator_object_type): Define new Python type.
6665 (gdbpy_reggroup_getset): New static global.
6666 (reggroup_object_type): Define new Python type.
6667 * python/python-internal.h
6669 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6671 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6672 * python/py-arch.c (archpy_registers): New function.
6673 (arch_object_methods): Add 'registers' method.
6674 * python/py-registers.c: New file.
6675 * python/python-internal.h
6676 (gdbpy_new_register_descriptor_iterator): Declare.
6677 (gdbpy_initialize_registers): Declare.
6678 * python/python.c (do_start_initialization): Call
6679 gdbpy_initialize_registers.
6680 * NEWS: Mention additions to the Python API.
6682 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6684 * NEWS: Mention new Python API method.
6685 * python/py-unwind.c (pending_framepy_architecture): New function.
6686 (pending_frame_object_methods): Add architecture method.
6688 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6690 * gdbarch.c: Regenerate.
6691 * gdbarch.h: Regenerate.
6692 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6693 (gdbarch_data): Use internal_error for the case where
6694 deprecated_set_gdbarch_data was originally needed.
6695 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6696 and use passed in obstack.
6697 (libunwind_frame_set_descr): Should no longer get back NULL from
6699 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6701 * user-regs.c (user_regs_init): Update parameters, and use passed
6703 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6704 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6706 2020-07-06 Tom de Vries <tdevries@suse.de>
6708 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6709 End-Of-Sequence in lte_is_less_than.
6710 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6711 "gdb: Don't reorder line table entries too much when sorting".
6713 2020-07-06 Tom de Vries <tdevries@suse.de>
6716 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6718 2020-07-05 Tom de Vries <tdevries@suse.de>
6721 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6722 std::uncaught_exceptions instead of deprecated
6723 std::uncaught_exception.
6725 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6727 * macroexp.h (macro_stringify): Return
6728 gdb::unique_xmalloc_ptr<char>.
6729 * macroexp.c (macro_stringify): Likewise.
6730 * macrotab.c (fixup_definition): Update.
6732 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6734 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6735 (lex_one_token): Update.
6736 * macroexp.c (struct macro_buffer) <release>: Return
6737 gdb::unique_xmalloc_ptr<char>.
6738 (macro_stringify): Update.
6739 (macro_expand): Update.
6740 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6741 * macroexp.h (macro_expand_next): Likewise.
6743 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6745 * macroexp.h (macro_lookup_ftype): Remove.
6746 (macro_expand, macro_expand_once, macro_expand_next): Remove
6747 lookup function parameters, add scope parameter.
6748 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6749 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6750 * macroscope.h (standard_macro_lookup): Change parameter type
6752 * macroscope.c (standard_macro_lookup): Likewise.
6753 * c-exp.y (lex_one_token): Update.
6754 * macrocmd.c (macro_expand_command): Likewise.
6755 (macro_expand_once_command): Likewise.
6757 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6759 * inf-loop.c (inferior_event_handler): Remove client_data param.
6760 * inf-loop.h (inferior_event_handler): Likewise.
6761 * infcmd.c (step_1): Adjust.
6762 * infrun.c (proceed): Adjust.
6763 (fetch_inferior_event): Remove client_data param.
6764 (infrun_async_inferior_event_handler): Adjust.
6765 * infrun.h (fetch_inferior_event): Remove `void *` param.
6766 * linux-nat.c (handle_target_event): Adjust.
6767 * record-btrace.c (record_btrace_handle_async_inferior_event):
6769 * record-full.c (record_full_async_inferior_event_handler):
6771 * remote.c (remote_async_inferior_event_handler): Adjust.
6773 2020-07-01 Tom Tromey <tom@tromey.com>
6775 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6776 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6778 2020-07-01 Tom Tromey <tom@tromey.com>
6780 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6782 (tui_win_info::make_window): Merge with
6783 tui_gen_win_info::make_window.
6784 (tui_win_info::make_visible): Move from tui_gen_win_info.
6785 * tui/tui-win.c (tui_win_info::max_width): Move from
6787 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6789 <window_factory>: Likewise.
6790 * tui/tui-layout.c (tui_win_info::resize): Move from
6792 (make_standard_window): Change return type.
6793 (get_locator_window, tui_get_window_by_name): Likewise.
6794 (tui_layout_window::apply): Remove a cast.
6795 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6796 (struct tui_win_info): Merge with tui_gen_win_info.
6797 (struct tui_gen_win_info): Remove.
6799 2020-07-01 Tom Tromey <tom@tromey.com>
6801 * tui/tui-stack.h (struct tui_locator_window): Derive from
6803 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6804 <can_box>: New method.
6806 2020-07-01 Tom Tromey <tom@tromey.com>
6808 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6810 2020-07-01 Tom Tromey <tom@tromey.com>
6812 * tui/tui-regs.c (tui_data_window::display_registers_from)
6813 (tui_data_window::display_registers_from)
6814 (tui_data_window::first_data_item_displayed)
6815 (tui_data_window::delete_data_content_windows): Update.
6816 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6818 (tui_data_window::check_register_values): Update.
6819 (tui_data_item_window::rerender): Add parameters. Update.
6820 (tui_data_item_window::refresh_window): Remove.
6821 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6823 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6825 <refresh_window, max_height, min_height>: Remove.
6826 <rerender>: Add parameters.
6827 <x, y, visible>: New members.
6828 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6829 <m_item_width>: New member.
6831 2020-07-01 Tom Tromey <tom@tromey.com>
6833 * tui/tui-regs.c (tui_data_window::show_register_group)
6834 (tui_data_window::check_register_values): Update.
6835 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6838 2020-07-01 Tom Tromey <tom@tromey.com>
6840 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6843 2020-07-01 Tom Tromey <tom@tromey.com>
6845 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6846 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6848 2020-07-01 Tom Tromey <tom@tromey.com>
6850 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6851 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6852 (struct tui_line_or_address): Move from tui-data.h.
6853 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6854 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6855 (tui_cmd_window, tui_source_window_base, tui_source_window)
6856 (tui_disasm_window): Don't declare.
6857 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6859 (SINGLE_KEY): Move to tui-stack.c.
6861 2020-07-01 Tom Tromey <tom@tromey.com>
6863 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6865 * tui/tui-regs.c (class tab_expansion_file): New.
6866 (tab_expansion_file::write): New method.
6867 (tui_register_format): Change return type. Use
6869 (tui_get_register, tui_data_window::display_registers_from)
6870 (tui_data_item_window::rerender): Update.
6871 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6872 * tui/tui-io.c (tui_expand_tabs): Remove.
6874 2020-07-01 Tom Tromey <tom@tromey.com>
6876 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6878 2020-07-01 Fangrui Song <maskray@google.com>
6880 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6882 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6884 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6885 forms for DW_AT_associated and DW_AT_allocated attributes,
6886 which is already checked in function attr_to_dynamic_prop.
6888 2020-06-30 Tom Tromey <tromey@adacore.com>
6890 * dwarf2/read.c (quirk_rust_enum): Correctly call
6891 alloc_rust_variant for default-less enum.
6893 2020-06-30 Tom Tromey <tromey@adacore.com>
6896 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6899 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6901 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6902 * gdbarch.h: Re-generate.
6904 2020-06-28 Tom Tromey <tom@tromey.com>
6906 * command.h (cmd_types): Remove.
6907 (cmd_type): Don't declare.
6908 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6910 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6911 * cli/cli-decode.c (cmd_type): Remove.
6913 2020-06-27 Pedro Alves <palves@redhat.com>
6915 * fork-child.c (prefork_hook): Adjust.
6916 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6918 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6919 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6920 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6921 Remove declarations.
6922 (struct inferior) <set_tty, tty>: New methods.
6923 (struct inferior) <terminal>: Rename to ...
6924 (struct inferior) <m_terminal>: ... this and make private.
6925 * main.c (captured_main_1): Adjust.
6926 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6927 (mi_cmd_inferior_tty_show): Adjust.
6928 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6929 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6931 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6933 * configure.ac: Add --enable-libctf: handle --disable-static
6935 * acinclude.m4: sinclude ../config/enable.m4.
6936 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6937 (LIBCTF): Substitute in.
6938 (CTF_DEPS): New, likewise.
6939 (CLIBS): libctf needs symbols from libbfd: move earlier.
6940 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6942 * ctfread.c: Surround in ENABLE_LIBCTF.
6943 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6944 * configure: Regenerate.
6945 * config.in: Likewise.
6947 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6949 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6951 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6953 * inferior.h (struct inferior) <terminal>: Change type to
6954 gdb::unique_xmalloc_ptr<char>.
6955 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6956 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6957 field, adjust to unique pointer.
6958 (get_inferior_io_terminal): Adjust to unique pointer.
6960 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6962 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6963 registers, not just the known core set of registers.
6965 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6967 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6968 fflags, frm, and fcsr registers.
6969 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6971 (riscv_tdesc_unknown_reg): New function.
6972 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6973 tdesc_use_registers.
6974 * riscv-tdep.h (struct gdbarch_tdep): Add
6975 unknown_csrs_first_regnum, unknown_csrs_count,
6976 duplicate_fflags_regnum, duplicate_frm_regnum, and
6977 duplicate_fcsr_regnum fields.
6979 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6981 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6982 callback, use the callback (when not null) to help number unknown
6984 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6985 (tdesc_use_registers): Add extra parameter to declaration.
6987 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6989 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6991 (class riscv_pending_register_alias): Likewise.
6992 (riscv_register_feature::register_info): Change 'required_p' field
6993 to 'required', and change its type. Add 'check' member function.
6994 (riscv_register_feature::register_info::check): Define new member
6996 (riscv_xreg_feature): Change initialisation of 'required' field.
6997 (riscv_freg_feature): Likewise.
6998 (riscv_virtual_feature): Likewise.
6999 (riscv_csr_feature): Likewise.
7000 (riscv_check_tdesc_feature): Take extra parameter, the csr
7001 tdesc_feature, rewrite the function to use the new
7002 riscv_register_feature::register_info::check function.
7003 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7005 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7007 * features/Makefile: Remove all references to the deleted files
7009 * features/riscv/32bit-csr.c: Deleted.
7010 * features/riscv/32bit-csr.xml: Deleted.
7011 * features/riscv/64bit-csr.c: Deleted.
7012 * features/riscv/64bit-csr.xml: Deleted.
7013 * features/riscv/rebuild-csr-xml.sh: Deleted.
7015 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7017 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7018 whitespace error for declaration of names member variable.
7019 (struct riscv_register_feature): Add new prefer_first_name member
7020 variable, and fix whitespace error in declaration of registers.
7021 (riscv_xreg_feature): Initialize prefer_first_name field.
7022 (riscv_freg_feature): Likewise.
7023 (riscv_virtual_feature): Likewise.
7024 (riscv_csr_feature): Likewise.
7025 (riscv_register_name): Expand on comments. Remove register name
7026 modifications for CSR and virtual registers.
7028 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7030 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7033 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7035 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7037 (class riscv_pending_register_alias): New class.
7038 (riscv_check_tdesc_feature): Take vector of pending aliases and
7039 populate it as appropriate.
7040 (riscv_setup_register_aliases): Delete.
7041 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7042 to riscv_check_tdesc_feature in all cases. Use the vector to
7043 create the register aliases.
7045 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7047 * sol2-tdep.c (sol2_static_transform_name): Remove.
7048 (sol2_init_abi): Don't register it.
7049 * gdbarch.sh (static_transform_name): Remove.
7050 * gdbarch.c, gdbarch.h: Regenerate.
7052 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7053 gdbarch_static_transform_name.
7054 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7055 * stabsread.c (define_symbol) <'X'>: Remove.
7056 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7059 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7060 <'S'>: Remove call to gdbarch_static_transform_name.
7062 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7064 * procfs.c (procfs_pre_trace): New function.
7065 (procfs_target::create_inferior): Pass it to fork_inferior.
7067 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7069 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7070 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7071 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7072 sol2-tdep.o, sparc-sol2-tdep.o.
7073 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7074 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7075 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7076 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7078 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7080 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7081 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7083 Remove calls to set_gdbarch_skip_solib_resolver,
7084 set_gdbarch_core_pid_to_str.
7085 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7086 (i386_sol2_static_transform_name): Remove.
7087 (i386_sol2_init_abi): Call sol2_init_abi.
7088 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7089 set_gdbarch_static_transform_name,
7090 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7091 Use sol2_sigtramp_p.
7092 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7093 (sol2_sigtramp_p): New function.
7094 (sol2_static_transform_name): New function.
7095 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7096 (sol2_init_abi): New function.
7097 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7098 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7099 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7100 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7101 (sparc_sol2_static_transform_name): Remove.
7102 (sparc32_sol2_init_abi): Call sol2_init_abi.
7103 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7104 set_gdbarch_static_transform_name,
7105 set_gdbarch_skip_solib_resolver,
7106 set_gdbarch_core_pid_to_str.
7107 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7108 (sparc_sol2_static_transform_name): Remove
7109 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7110 call sol2_sigtramp_p.
7111 (sparc64_sol2_init_abi): Call sol2_init_abi.
7112 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7113 set_gdbarch_static_transform_name,
7114 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7116 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7118 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7119 * exec.c (validate_exec_file): If from_tty, set both
7120 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7121 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7122 and from_tty, unconditionally ask a confirmation.
7124 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7126 * target-descriptions.c (tdesc_architecture_name): Protect against
7127 NULL pointer dereference.
7128 (maint_print_xml_tdesc_cmd): New function.
7129 (_initialize_target_descriptions): Register new 'maint print
7130 xml-tdesc' command and give it the filename completer.
7131 * NEWS: Mention new 'maint print xml-tdesc' command.
7133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7135 * target-descriptions.c (class tdesc_compatible_info): New class.
7136 (struct target_desc): Change type of compatible vector.
7137 (tdesc_compatible_p): Update for change in type of
7138 target_desc::compatible.
7139 (tdesc_compatible_info_list): New function.
7140 (tdesc_compatible_info_arch_name): New function.
7141 (tdesc_add_compatible): Update for change in type of
7142 target_desc::compatible.
7143 (print_c_tdesc::visit_pre): Likewise.
7145 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7147 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7148 whitespace to underscore.
7149 (maint_print_c_tdesc_cmd): Use fake filename for target
7150 descriptions that came from the target.
7151 (_initialize_target_descriptions): Add filename command completion
7152 for 'maint print c-tdesc'.
7154 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7156 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7159 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7161 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7163 (dwarf2_find_location_expression): Likewise.
7164 (call_site_parameter_matches): Likewise.
7165 (dwarf2_compile_expr_to_ax): Likewise.
7166 (disassemble_dwarf_expression): Likewise.
7167 (loclist_describe_location): Likewise.
7169 2020-06-23 Pedro Alves <palves@redhat.com>
7171 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7172 progspace-and-thread.h. Include scoped-mock-context.h instead.
7173 (register_to_value_test): Use scoped_mock_context.
7174 * regcache.c: Include "scoped-mock-context.h".
7175 (cooked_read_test): Don't error out if a target is already pushed.
7176 Use scoped_mock_context. Adjust.
7177 * scoped-mock-context.h: New file.
7179 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7181 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7183 (ada_language::is_string_type_p): New member function.
7184 * c-lang.c (c_language_data): Delete la_is_string_type_p
7186 (cplus_language_data): Likewise.
7187 (asm_language_data): Likewise.
7188 (minimal_language_data): Likewise.
7189 * d-lang.c (d_language_data): Likewise.
7190 * f-lang.c (f_is_string_type_p): Delete function, implementation
7191 moved to f_language::is_string_type_p.
7192 (f_language_data): Delete la_is_string_type_p initializer.
7193 (f_language::is_string_type_p): New member function,
7194 implementation from f_is_string_type_p.
7195 * go-lang.c (go_is_string_type_p): Delete function, implementation
7196 moved to go_language::is_string_type_p.
7197 (go_language_data): Delete la_is_string_type_p initializer.
7198 (go_language::is_string_type_p): New member function,
7199 implementation from go_is_string_type_p.
7200 * language.c (language_defn::is_string_type_p): Define new member
7202 (default_is_string_type_p): Make static, add comment copied from
7204 (unknown_language_data): Delete la_is_string_type_p initializer.
7205 (unknown_language::is_string_type_p): New member function.
7206 (auto_language_data): Delete la_is_string_type_p initializer.
7207 (auto_language::is_string_type_p): New member function.
7208 * language.h (language_data): Delete la_is_string_type_p field.
7209 (language_defn::is_string_type_p): Declare new function.
7210 (default_is_string_type_p): Delete desclaration, move comment to
7212 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7213 moved to m2_language::is_string_type_p.
7214 (m2_language_data): Delete la_is_string_type_p initializer.
7215 (m2_language::is_string_type_p): New member function,
7216 implementation from m2_is_string_type_p.
7217 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7219 * opencl-lang.c (opencl_language_data): Likewise.
7220 * p-lang.c (pascal_is_string_type_p): Delete function,
7221 implementation moved to pascal_language::is_string_type_p.
7222 (pascal_language_data): Delete la_is_string_type_p initializer.
7223 (pascal_language::is_string_type_p): New member function,
7224 implementation from pascal_is_string_type_p.
7225 * rust-lang.c (rust_is_string_type_p): Delete function,
7226 implementation moved to rust_language::is_string_type_p.
7227 (rust_language_data): Delete la_is_string_type_p initializer.
7228 (rust_language::is_string_type_p): New member function,
7229 implementation from rust_is_string_type_p.
7230 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7235 * ada-lang.c (ada_language_data): Delete la_print_typedef
7237 (ada_language::print_typedef): New member function.
7238 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7239 (cplus_language_data): Likewise.
7240 (asm_language_data): Likewise.
7241 (minimal_language_data): Likewise.
7242 * d-lang.c (d_language_data): Likewise.
7243 * f-lang.c (f_language_data): Likewise.
7244 (f_language::print_typedef): New member function.
7245 * go-lang.c (go_language_data): Delete la_print_typedef
7247 * language.c (language_defn::print_typedef): Define member
7249 (unknown_language_data): Delete la_print_typedef initializer.
7250 (unknown_language::print_typedef): New member function.
7251 (auto_language_data): Delete la_print_typedef initializer.
7252 (auto_language::print_typedef): New member function.
7253 * language.h (language_data): Delete la_print_typedef field.
7254 (language_defn::print_typedef): Declare new member function.
7255 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7256 (default_print_typedef): Delete declaration.
7257 * m2-lang.c (m2_language_data): Delete la_print_typedef
7259 (m2_language::print_typedef): New member function.
7260 * objc-lang.c (objc_language_data): Delete la_print_typedef
7262 * opencl-lang.c (opencl_language_data): Likewise.
7263 * p-lang.c (pascal_language_data): Likewise.
7264 (pascal_language::print_typedef): New member function.
7265 * rust-lang.c (rust_print_typedef): Delete function,
7266 implementation moved to rust_language::print_typedef.
7267 (rust_language): Delete la_print_typedef initializer.
7268 (rust_language::print_typedef): New member function,
7269 implementation from rust_print_typedef.
7270 * typeprint.c (default_print_typedef): Delete.
7272 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7274 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7275 (ada_language::printstr): New member function.
7276 * c-lang.c (c_language_data): Delete la_printstr initializer.
7277 (cplus_language_data): Likewise.
7278 (asm_language_data): Likewise.
7279 (minimal_language_data): Likewise.
7280 * d-lang.c (d_language_data): Likewise.
7281 * f-lang.c (f_printstr): Rename to f_language::printstr.
7282 (f_language_data): Delete la_printstr initializer.
7283 (f_language::printstr): New member function, implementation from
7285 * go-lang.c (go_language_data): Delete la_printstr initializer.
7286 * language.c (language_defn::printstr): Define new member
7288 (unk_lang_printstr): Delete.
7289 (unknown_language_data): Delete la_printstr initializer.
7290 (unknown_language::printstr): New member function.
7291 (auto_language_data): Delete la_printstr initializer.
7292 (auto_language::printstr): New member function.
7293 * language.h (language_data): Delete la_printstr field.
7294 (language_defn::printstr): Declare new member function.
7295 (LA_PRINT_STRING): Update call to printstr.
7296 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7297 (m2_language_data): Delete la_printstr initializer.
7298 (m2_language::printstr): New member function, implementation from
7300 * objc-lang.c (objc_language_data): Delete la_printstr
7302 * opencl-lang.c (opencl_language_data): Likewise.
7303 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7304 (pascal_language_data): Delete la_printstr initializer.
7305 (pascal_language::printstr): New member function, implementation
7306 from pascal_printstr.
7307 * p-lang.h (pascal_printstr): Delete declaration.
7308 * rust-lang.c (rust_printstr): Update header comment.
7309 (rust_language_data): Delete la_printstr initializer.
7310 (rust_language::printstr): New member function.
7312 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7314 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7315 (ada_language::printchar): New member function.
7316 * c-lang.c (c_language_data): Delete la_printchar initializer.
7317 (cplus_language_data): Likewise.
7318 (asm_language_data): Likewise.
7319 (minimal_language_data): Likewise.
7320 * d-lang.c (d_language_data): Likewise.
7321 * f-lang.c (f_printchar): Rename to f_language::printchar.
7322 (f_language_data): Delete la_printchar initializer.
7323 (f_language::printchar): New member function, implementation from
7325 * go-lang.c (go_language_data): Delete la_printchar initializer.
7326 * language.c (unk_lang_printchar): Delete.
7327 (language_defn::printchar): Define new member function.
7328 (unknown_language_data): Delete la_printchar initializer.
7329 (unknown_language::printchar): New member function.
7330 (auto_language_data): Delete la_printchar initializer.
7331 (auto_language::printchar): New member function.
7332 * language.h (language_data): Delete la_printchar field.
7333 (language_defn::printchar): Declare new member function.
7334 (LA_PRINT_CHAR): Update call to printchar.
7335 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7336 (m2_language::printchar): New member function.
7337 * objc-lang.c (objc_language_data): Delete la_printchar
7339 * opencl-lang.c (opencl_language_data): Likewise.
7340 * p-lang.c (pascal_language_data): Delete la_printchar
7342 (pascal_language::printchar): New member function.
7343 * rust-lang.c (rust_printchar): Rename to
7344 rust_language::printchar.
7345 (rust_language_data): Delete la_printchar initializer.
7346 (rust_language::printchar): New member function, implementation
7347 from rust_printchar.
7349 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7351 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7352 (ada_language_data): Delete la_emitchar initializer.
7353 (ada_language::emitchar): New member function, implementation from
7355 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7356 (cplus_language_data): Likewise.
7357 (asm_language_data): Likewise.
7358 (minimal_language_data): Likewise.
7359 * d-lang.c (d_language_data): Likewise.
7360 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7361 (f_language_data): Delete la_emitchar initializer.
7362 (f_language::emitchar): New member function, implementation from
7364 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7365 * language.c (unk_lang_emit_char): Delete.
7366 (language_defn::emitchar): New member function definition.
7367 (unknown_language_data): Delete la_emitchar initializer.
7368 (unknown_language::emitchar): New member function.
7369 (auto_language_data): Delete la_emitchar initializer.
7370 (auto_language::emitchar): New member function.
7371 * language.h (language_data): Delete la_emitchar field.
7372 (language_defn::emitchar): New member field declaration.
7373 (LA_EMIT_CHAR): Update call to emitchar.
7374 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7375 (m2_language_data): Delete la_emitchar initializer.
7376 (m2_language::emitchar): New member function, implementation from
7378 * objc-lang.c (objc_language_data): Delete la_emitchar
7380 * opencl-lang.c (opencl_language_data): Likewise.
7381 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7382 (pascal_language_data): Delete la_emitchar initializer.
7383 (pascal_language::emitchar): New member function, implementation
7384 from pascal_emit_char.
7385 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7386 (rust_language_data): Delete la_emitchar initializer.
7387 (rust_language::emitchar): New member function, implementation
7390 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7392 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7393 (ada_language_data): Delete la_post_parser initializer.
7394 (ada_language::post_parser): New member function.
7395 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7396 (cplus_language_data): Likewise.
7397 (asm_language_data): Likewise.
7398 (minimal_language_data): Likewise.
7399 * d-lang.c (d_language_data): Likewise.
7400 * f-lang.c (f_language_data): Likewise.
7401 * go-lang.c (go_language_data): Likewise.
7402 * language.c (unknown_language_data): Likewise.
7403 (auto_language_data): Likewise.
7404 * language.h (language_data): Delete la_post_parser field.
7405 (language_defn::post_parser): New member function.
7406 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7407 * objc-lang.c (objc_language_data): Likewise.
7408 * opencl-lang.c (opencl_language_data): Likewise.
7409 * p-lang.c (pascal_language_data): Likewise.
7410 * parse.c (parse_exp_in_context): Update call to post_parser.
7411 (null_post_parser): Delete definition.
7412 * parser-defs.h (null_post_parser): Delete declaration.
7413 * rust-lang.c (rust_language_data): Delete la_post_parser
7416 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7418 * ada-lang.c (parse): Rename to ada_language::parser.
7419 (ada_language_data): Delete la_parser initializer.
7420 (ada_language::parser): New member function, implementation from
7422 * c-lang.c (c_language_data): Delete la_parser initializer.
7423 (cplus_language_data): Likewise.
7424 (asm_language_data): Likewise.
7425 (minimal_language_data): Likewise.
7426 * d-lang.c (d_language_data): Likewise.
7427 (d_language::parser): New member function.
7428 * f-lang.c (f_language_data): Delete la_parser initializer.
7429 (f_language::parser): New member function.
7430 * go-lang.c (go_language_data): Delete la_parser initializer.
7431 (go_language::parser): New member function.
7432 * language.c (unk_lang_parser): Delete.
7433 (language_defn::parser): Define new member function.
7434 (unknown_language_data): Delete la_parser initializer.
7435 (unknown_language::parser): New member function.
7436 (auto_language_data): Delete la_parser initializer.
7437 (auto_language::parser): New member function.
7438 * language.h (language_data): Delete la_parser field.
7439 (language_defn::parser): Declare new member function.
7440 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7441 (m2_language::parser): New member function.
7442 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7443 * opencl-lang.c (opencl_language_data): Likewise.
7444 * p-lang.c (pascal_language_data): Likewise.
7445 (pascal_language::parser): New member function.
7446 * parse.c (parse_exp_in_context): Update call to parser.
7447 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7448 (rust_language::parser): New member function.
7450 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7452 * top.c (print_gdb_configuration): Print --with-python-libdir
7453 configuration value.
7455 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7457 * NEWS: Mention change to the alias command.
7459 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7461 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7462 (alias_command_completer)
7463 (make_alias_options_def_group): New functions.
7464 (alias_opts, alias_option_defs): New struct and array.
7465 (alias_usage_error): Update usage.
7466 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7467 Use option framework.
7468 (_initialize_cli_cmds): Update alias command help.
7469 Update aliases command help.
7471 Add NULL for new default_args lookup_cmd argument.
7472 (valid_command_p): Rename to validate_aliased_command.
7473 Add NULL for new default_args lookup_cmd argument. Verify that the
7474 aliased_command has no default args.
7475 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7476 (lookup_cmd_1, lookup_cmd): New argument default_args.
7478 Add NULL for new default_args lookup_cmd argument.
7479 (print_help_for_command): Show default args under the layout
7480 alias some_alias = some_aliased_cmd some_alias_default_arg.
7481 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7482 xfree default_args in destructor.
7483 * cli/cli-script.c (process_next_line, do_define_command):
7484 Add NULL for new default_args lookup_cmd argument.
7485 * command.h: Declare new default_args argument in lookup_cmd
7487 * completer.c (complete_line_internal_1):
7488 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7489 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7490 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7492 * infcmd.c (_initialize_infcmd): Likewise.
7493 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7494 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7495 * python/py-param.c (add_setshow_generic): Likewise.
7496 * remote.c (_initialize_remote): Likewise.
7497 * top.c (execute_command): Prepend default_args if command has some.
7499 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7500 * tracepoint.c (validate_actionline, encode_actions_1):
7501 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7503 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7505 * jit.c (jit_read_descriptor): Use bool as the return type.
7506 (jit_breakpoint_re_set_internal): Use bool as the return type.
7507 Invert the return value logic; return true if the jit breakpoint
7508 has been successfully initialized.
7509 (jit_inferior_init): Update the call to
7510 jit_breakpoint_re_set_internal.
7512 2020-06-22 Pedro Alves <palves@redhat.com>
7515 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7516 Use the current inferior instead. Don't return
7517 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7519 * sol-thread.c (sol_thread_target::wait): Don't reference
7521 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7522 (sol_update_thread_list_callback): Use the current inferior's pid
7523 instead of inferior_ptid.
7525 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7527 * procfs.c: Cleanup many comments.
7529 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7530 (AFTER_WATCHFLAG): Replace by value.
7532 (MAIN_PROC_NAME_FORMAT): Inline ...
7533 (create_procinfo): ... here.
7535 (procfs_debug_inferior): Remove SYS_exec handling.
7536 (syscall_is_exec): Likewise.
7537 (procfs_set_exec_trap): Likewise.
7539 (syscall_is_lwp_exit): Inline in callers.
7540 (syscall_is_exit): Likewise.
7541 (syscall_is_exec): Likewise.
7542 (syscall_is_lwp_create): Likewise.
7544 (invalidate_cache): Remove #if 0 code.
7546 (make_signal_thread_runnable): Remove.
7547 (procfs_target::resume): Remove #if 0 code.
7549 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7552 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7554 (procfs_target::create_inferior): ... here.
7556 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7558 * exec.c (validate_exec_file): Ensure the build-id is up to
7559 date by calling reopen_exec_file (that checks file timestamp
7560 to decide to re-read the file).
7562 2020-06-18 Pedro Alves <palves@redhat.com>
7565 * gdbthread.h (delete_thread, delete_thread_silent)
7566 (find_thread_ptid): Update comments.
7567 * thread.c (current_thread_): New global.
7568 (is_current_thread): Move higher, and reimplement.
7569 (inferior_thread): Reimplement.
7570 (set_thread_exited): Use bool. Add assertions.
7571 (add_thread_silent): Simplify thread-reuse handling by always
7572 calling delete_thread.
7573 (delete_thread): Remove intro comment.
7574 (find_thread_ptid): Skip exited threads.
7575 (switch_to_thread_no_regs): Write to current_thread_.
7576 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7577 INFERIOR_PTID. Clear current_thread_.
7579 2020-06-18 Pedro Alves <palves@redhat.com>
7581 * aix-thread.c (pd_update): Use switch_to_thread.
7583 2020-06-18 Pedro Alves <palves@redhat.com>
7585 * ravenscar-thread.c (ravenscar_thread_target): Update.
7586 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7587 (ravenscar_thread_target::add_active_thread): ... this. Don't
7588 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7589 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7591 2020-06-18 Pedro Alves <palves@redhat.com>
7593 * nat/windows-nat.c (current_windows_thread): Remove.
7594 * nat/windows-nat.h (current_windows_thread): Remove.
7595 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7597 (display_selectors): Adjust to fetch the current
7598 windows_thread_info based on inferior_ptid.
7599 (fake_create_process): No longer write to current_windows_thread.
7600 (windows_nat_target::get_windows_debug_event):
7601 Don't set inferior_ptid or current_windows_thread.
7602 (windows_nat_target::wait): Adjust to not rely on
7603 current_windows_thread.
7604 (do_initial_windows_stuff): Now a method of windows_nat_target.
7605 Switch to the last_ptid thread.
7606 (windows_nat_target::attach): Adjust.
7607 (windows_nat_target::detach): Use switch_to_no_thread instead of
7608 writing to inferior_ptid directly.
7609 (windows_nat_target::create_inferior): Adjust.
7611 2020-06-18 Pedro Alves <palves@redhat.com>
7613 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7615 2020-06-18 Pedro Alves <palves@redhat.com>
7617 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7618 after creating it, instead of writing to inferior_ptid. Don't
7619 write to inferior_ptid.
7621 2020-06-18 Pedro Alves <palves@redhat.com>
7623 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7625 2020-06-18 Pedro Alves <palves@redhat.com>
7627 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7628 it, instead of writing to inferior_ptid.
7630 2020-06-18 Pedro Alves <palves@redhat.com>
7632 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7635 2020-06-18 Pedro Alves <palves@redhat.com>
7637 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7638 instead of writing to inferior_ptid directly.
7640 2020-06-18 Pedro Alves <palves@redhat.com>
7642 * corelow.c (core_target::close): Use switch_to_no_thread instead
7643 of writing to inferior_ptid directly.
7644 (add_to_thread_list, core_target_open): Use switch_to_thread
7645 instead of writing to inferior_ptid directly.
7647 2020-06-18 Pedro Alves <palves@redhat.com>
7649 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7651 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7653 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7654 inferior_ptid directly.
7655 (darwin_nat_target::init_thread_list): Switch to thread, instead
7656 of writing to inferior_ptid.
7657 (darwin_nat_target::attach): Don't write to inferior_ptid.
7658 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7660 2020-06-18 Pedro Alves <palves@redhat.com>
7662 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7664 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7665 Instead use switch_to_thread.
7666 (gnu_nat_target::detach): Use switch_to_no_thread
7667 instead of writing to inferior_ptid directly. Used passed-in
7668 inferior instead of looking up the inferior by pid.
7670 2020-06-18 Pedro Alves <palves@redhat.com>
7672 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7675 2020-06-18 Pedro Alves <palves@redhat.com>
7677 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7679 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7681 (nto_procfs_target::detach): Avoid referencing
7682 inferior_ptid. Use switch_to_no_thread instead of writing to
7683 inferior_ptid directly.
7684 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7685 instead of writing to inferior_ptid directly.
7686 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7689 2020-06-18 Pedro Alves <palves@redhat.com>
7691 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7692 after creating it, instead of writing to inferior_ptid.
7693 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7694 to inferior_ptid directly.
7695 (gdbsim_target::wait): Don't write to inferior_ptid.
7697 2020-06-18 Pedro Alves <palves@redhat.com>
7699 * remote.c (remote_target::remote_notice_new_inferior): Use
7700 switch_to_thread instead of writing to inferior_ptid directly.
7701 (remote_target::add_current_inferior_and_thread): Use
7702 switch_to_no_thread instead of writing to inferior_ptid directly.
7703 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7704 and switch_to_thread instead of using set_current_inferior or
7705 writing to inferior_ptid directly.
7707 2020-06-18 Pedro Alves <palves@redhat.com>
7709 * tracectf.c (ctf_target_open): Switch to added thread instead of
7710 writing to inferior_ptid directly.
7711 (ctf_target::close): Use switch_to_no_thread instead of writing to
7712 inferior_ptid directly.
7714 2020-06-18 Pedro Alves <palves@redhat.com>
7716 * tracefile-tfile.c (tfile_target_open): Don't write to
7717 inferior_ptid directly, instead switch to added thread.
7718 (tfile_target::close): Use switch_to_no_thread instead of writing
7719 to inferior_ptid directly.
7721 2020-06-18 Pedro Alves <palves@redhat.com>
7723 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7724 (procfs_target::detach): Use switch_to_no_thread
7725 instead of writing to inferior_ptid directly.
7726 (do_attach): Change return type to void. Switch to the added
7728 (procfs_target::create_inferior): Switch to the added thread.
7729 (procfs_do_thread_registers): Don't write to inferior_ptid.
7731 2020-06-18 Pedro Alves <palves@redhat.com>
7733 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7734 of writing to inferior_ptid.
7735 (scoped_restore_exited_inferior): Delete.
7736 (handle_vfork_child_exec_or_exit): Simplify using
7737 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7738 instead of writing to inferior_ptid.
7739 (THREAD_STOPPED_BY): Delete.
7740 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7741 (thread_stopped_by_hw_breakpoint): Delete.
7742 (save_waitstatus): Use
7743 scoped_restore_current_thread+switch_to_thread, and call
7744 target_stopped_by_watchpoint instead of
7745 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7746 instead of thread_stopped_by_sw_breakpoint, and
7747 target_stopped_by_hw_breakpoint instead of
7748 thread_stopped_by_hw_breakpoint.
7749 (handle_inferior_event)
7750 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7751 inferior_ptid directly, nor
7752 set_current_inferior/set_current_program_space. Use
7753 switch_to_thread / switch_to_inferior_no_thread instead.
7755 2020-06-18 Pedro Alves <palves@redhat.com>
7757 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7758 instead of writing to inferior_ptid.
7760 2020-06-18 Pedro Alves <palves@redhat.com>
7762 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7764 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7765 to the added thread.
7766 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7767 instead of writing to inferior_ptid.
7769 2020-06-18 Pedro Alves <palves@redhat.com>
7771 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7772 (register_to_value_test): Mock a program_space too. Heap-allocate
7773 the address space. Don't write to inferior_ptid. Use
7774 switch_to_thread instead.
7776 2020-06-18 Pedro Alves <palves@redhat.com>
7778 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7780 (find_signalled_thread()): New, factored out from
7781 linux_make_corefile_notes and adjusted to handle exited threads.
7782 (linux_make_corefile_notes): Adjust to use the new
7783 find_signalled_thread.
7785 2020-06-18 Pedro Alves <palves@redhat.com>
7787 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7788 of saving/restoring inferior_ptid.
7790 2020-06-17 Tom Tromey <tom@tromey.com>
7792 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7793 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7795 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7797 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7799 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7802 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7804 * regformats/reg-arm.dat: Remove.
7805 * regformats/reg-bfin.dat: Remove.
7806 * regformats/reg-cris.dat: Remove.
7807 * regformats/reg-crisv32.dat: Remove.
7808 * regformats/reg-m32r.dat: Remove.
7809 * regformats/reg-tilegx.dat: Remove.
7810 * regformats/reg-tilegx32.dat: Remove.
7812 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7814 * features/Makefile (WHICH): Remove arm files.
7815 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7816 * regformats/arm/arm-with-neon.dat: Remove.
7817 * regformats/arm/arm-with-vfpv2.dat: Remove.
7818 * regformats/arm/arm-with-vfpv3.dat: Remove.
7820 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7822 * features/Makefile (XMLTOC): Remove rx.xml.
7824 2020-06-17 Pedro Alves <palves@redhat.com>
7826 * gdbthread.h (thread_control_state) <trap_expected> Update
7829 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7831 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7832 ada_language::lookup_symbol_nonlocal.
7833 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7834 (ada_language::lookup_symbol_nonlocal): New member function,
7835 implementation from ada_lookup_symbol_nonlocal.
7836 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7838 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7840 (cplus_language::lookup_symbol_nonlocal): New member function.
7841 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7842 (minimal_language_data) Likewise.
7843 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7844 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7846 (d_language::lookup_symbol_nonlocal): New member function.
7847 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7849 (f_language::lookup_symbol_nonlocal): New member function.
7850 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7852 * language.c (unknown_language_data): Likewise.
7853 (auto_language_data): Likewise.
7854 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7856 (language_defn::lookup_symbol_nonlocal): New member function.
7857 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7859 * objc-lang.c (objc_language_data): Likewise.
7860 * opencl-lang.c (opencl_language_data): Likewise.
7861 * p-lang.c (pascal_language_data): Likewise.
7862 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7863 rust_language::lookup_symbol_nonlocal.
7864 (rust_language_data): Delete la_lookup_symbol_nonlocal
7866 (rust_language::lookup_symbol_nonlocal): New member function,
7867 implementation from rust_lookup_symbol_nonlocal.
7868 * symtab.c (lookup_symbol_aux): Update call to
7869 lookup_symbol_nonlocal.
7870 (basic_lookup_symbol_nonlocal): Rename to...
7871 (language_defn::lookup_symbol_nonlocal): ...this, and update
7872 header comment. Remove language_defn parameter, and replace with
7874 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7876 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7878 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7880 (ada_language::value_print_inner): New member function.
7881 * c-lang.c (c_language_data): Delete la_value_print_inner
7883 (cplus_language_data): Likewise.
7884 (asm_language_data): Likewise.
7885 (minimal_language_data): Likewise.
7886 * d-lang.c (d_language_data): Likewise.
7887 (d_language::value_print_inner): New member function.
7888 * f-lang.c (f_language_data): Delete la_value_print_inner
7890 (f_language::value_print_inner): New member function.
7891 * f-lang.h (f_value_print_innner): Rename to...
7892 (f_value_print_inner): ...this (note spelling of 'inner').
7893 * f-valprint.c (f_value_print_innner): Rename to...
7894 (f_value_print_inner): ...this (note spelling of 'inner').
7895 * go-lang.c (go_language_data): Delete la_value_print_inner
7897 (go_language::value_print_inner): New member function.
7898 * language.c (language_defn::value_print_inner): Define new member
7900 (unk_lang_value_print_inner): Delete.
7901 (unknown_language_data): Delete la_value_print_inner initializer.
7902 (unknown_language::value_print_inner): New member function.
7903 (auto_language_data): Delete la_value_print_inner initializer.
7904 (auto_language::value_print_inner): New member function.
7905 * language.h (language_data): Delete la_value_print_inner field.
7906 (language_defn::value_print_inner): Delcare new member function.
7907 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7909 (m2_language::value_print_inner): New member function.
7910 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7912 * opencl-lang.c (opencl_language_data): Likewise.
7913 * p-lang.c (pascal_language_data): Likewise.
7914 (pascal_language::value_print_inner): New member function.
7915 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7917 (rust_language::value_print_inner): New member function.
7918 * valprint.c (do_val_print): Update call to value_print_inner.
7920 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7922 * ada-lang.c (ada_language_data): Delete la_value_print
7924 (ada_language::value_print): New member function.
7925 * c-lang.c (c_language_data): Delete la_value_print initializer.
7926 (cplus_language_data): Likewise.
7927 (asm_language_data): Likewise.
7928 (minimal_language_data): Likewise.
7929 * d-lang.c (d_language_data): Likewise.
7930 * f-lang.c (f_language_data): Likewise.
7931 * go-lang.c (go_language_data): Likewise.
7932 * language.c (unk_lang_value_print): Delete.
7933 (language_defn::value_print): Define new member function.
7934 (unknown_language_data): Delete la_value_print initializer.
7935 (unknown_language::value_print): New member function.
7936 (auto_language_data): Delete la_value_print initializer.
7937 (auto_language::value_print): New member function.
7938 * language.h (language_data): Delete la_value_print field.
7939 (language_defn::value_print): Declare new member function.
7940 (LA_VALUE_PRINT): Update call to value_print.
7941 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7942 * objc-lang.c (objc_language_data): Likewise.
7943 * opencl-lang.c (opencl_language_data): Likewise.
7944 * p-lang.c (pascal_language_data): Likewise.
7945 (pascal_language::value_print): New member function.
7946 * rust-lang.c (rust_language_data): Delete la_value_print
7949 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7951 * ada-lang.c (ada_watch_location_expression): Rename to
7952 ada_language::watch_location_expression.
7953 (ada_language_data): Delete la_watch_location_expression
7955 (ada_language::watch_location_expression): New member function,
7956 implementation from ada_watch_location_expression.
7957 * breakpoint.c (watch_command_1): Update call to
7958 watch_location_expression.
7959 * c-lang.c (c_watch_location_expression): Rename to
7960 language_defn::watch_location_expression.
7961 (c_language_data): Delete la_watch_location_expression
7963 (cplus_language_data): Likewise.
7964 (asm_language_data): Likewise.
7965 (minimal_language_data): Likewise.
7966 * c-lang.h (c_watch_location_expression): Delete declaration.
7967 * d-lang.c (d_language_data): Delete la_watch_location_expression
7969 * f-lang.c (f_language_data): Likewise.
7970 * go-lang.c (go_language_data): Likewise.
7971 * language.c (language_defn::watch_location_expression): Member
7972 function implementation from c_watch_location_expression.
7973 (unknown_language_data): Delete la_watch_location_expression
7975 (auto_language_data): Likewise.
7976 * language.h (language_data): Delete la_watch_location_expression
7978 (language_defn::watch_location_expression): Declare new member
7980 * m2-lang.c (m2_language_data): Delete
7981 la_watch_location_expression initializer.
7982 * objc-lang.c (objc_language_data): Likewise.
7983 * opencl-lang.c (opencl_language_data): Likewise.
7984 * p-lang.c (pascal_language_data): Likewise.
7985 * rust-lang.c (rust_watch_location_expression): Rename to
7986 rust_language::watch_location_expression.
7987 (rust_language_data): Delete la_watch_location_expression
7989 (rust_language::watch_location_expression): New member function,
7990 implementation from rust_watch_location_expression.
7992 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7994 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7995 ada_language::collect_symbol_completion_matches.
7996 (ada_language_data): Delete la_collect_symbol_completion_matches
7998 (ada_language::collect_symbol_completion_matches): New member
7999 function, implementation from
8000 ada_collect_symbol_completion_matches.
8001 * c-lang.c (c_language_data): Delete
8002 la_collect_symbol_completion_matches initializer.
8003 (cplus_language_data): Likewise.
8004 (asm_language_data): Likewise.
8005 (minimal_language_data): Likewise.
8006 * d-lang.c (d_language_data): Likewise.
8007 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8008 f_language::collect_symbol_completion_matches.
8009 (f_language_data): Delete la_collect_symbol_completion_matches
8011 (f_language::collect_symbol_completion_matches) New member
8012 function, implementation from f_collect_symbol_completion_matches.
8013 * go-lang.c (go_language_data): Delete
8014 la_collect_symbol_completion_matches initializer.
8015 * language.c (unknown_language_data): Likewise.
8016 (auto_language_data): Likewise.
8017 * language.h (language_data): Delete
8018 la_collect_symbol_completion_matches field.
8019 (language_defn::collect_symbol_completion_matches): New member
8021 * m2-lang.c (m2_language_data): Delete
8022 la_collect_symbol_completion_matches initializer.
8023 * objc-lang.c (objc_language_data): Likewise.
8024 * opencl-lang.c (opencl_language_data): Likewise.
8025 * p-lang.c (pascal_language_data): Likewise.
8026 * rust-lang.c (rust_language_data): Likewise.
8027 * symtab.c (default_collect_symbol_completion_matches): Delete.
8028 (collect_symbol_completion_matches): Update call to
8029 collect_symbol_completion_matches.
8030 (collect_symbol_completion_matches_type): Likewise.
8031 * symtab.h (default_collect_symbol_completion_matches): Delete
8034 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8036 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8037 (ada_language_data): Delete la_word_break_characters initializer.
8038 (ada_language::word_break_characters): New member function.
8039 * c-lang.c (c_language_data): Delete la_word_break_characters
8041 (cplus_language_data): Likewise.
8042 (asm_language_data): Likewise.
8043 (minimal_language_data): Likewise.
8044 * completer.c: Update global comment.
8045 (advance_to_expression_complete_word_point): Update call to
8046 word_break_characters.
8047 (complete_files_symbols): Likewise.
8048 (complete_line_internal_1): Likewise.
8049 (default_completer_handle_brkchars): Likewise.
8050 (skip_quoted_chars): Likewise.
8051 * d-lang.c (d_language_data): Delete la_word_break_characters
8053 * f-lang.c (f_word_break_characters): Delete.
8054 (f_language_data): Delete la_word_break_characters initializer.
8055 (f_language::word_break_characters): New member function.
8056 * go-lang.c (go_language_data): Delete la_word_break_characters
8058 * language.c (unknown_language_data): Likewise.
8059 (auto_language_data): Likewise.
8060 * language.h (default_word_break_characters): Move declaration to
8061 earlier in the file.
8062 (language_data): Delete la_word_break_characters field.
8063 (language_defn::word_break_characters): New member function.
8064 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8066 * objc-lang.c (objc_language_data): Likewise.
8067 * opencl-lang.c (opencl_language_data): Likewise.
8068 * p-lang.c (pascal_language_data): Likewise.
8069 * rust-lang.c (rust_language_data): Likewise.
8071 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8073 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8074 (ada_language_data): Delete la_get_symbol_name_matcher
8076 (language_defn::get_symbol_name_matcher_inner): New member
8078 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8080 (cplus_language_data): Likewise.
8081 (cplus_language::get_symbol_name_matcher_inner): New member
8083 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8084 (minimal_language_data): Likewise.
8085 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8086 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8088 * dictionary.c (iter_match_first_hashed): Update call to
8089 get_symbol_name_matcher.
8090 (iter_match_next_hashed): Likewise.
8091 (iter_match_next_linear): Likewise.
8092 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8093 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8095 (f_language::get_symbol_name_matcher_inner): New member function.
8096 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8098 * language.c (default_symbol_name_matcher): Update header comment,
8100 (language_defn::get_symbol_name_matcher): New definition.
8101 (language_defn::get_symbol_name_matcher_inner): Likewise.
8102 (get_symbol_name_matcher): Delete.
8103 (unknown_language_data): Delete la_get_symbol_name_matcher
8105 (auto_language_data): Likewise.
8106 * language.h (language_data): Delete la_get_symbol_name_matcher
8108 (language_defn::get_symbol_name_matcher): New member function.
8109 (language_defn::get_symbol_name_matcher_inner): Likewise.
8110 (default_symbol_name_matcher): Delete declaration.
8111 * linespec.c (find_methods): Update call to
8112 get_symbol_name_matcher.
8113 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8115 * minsyms.c (lookup_minimal_symbol): Update call to
8116 get_symbol_name_matcher.
8117 (iterate_over_minimal_symbols): Likewise.
8118 * objc-lang.c (objc_language_data): Delete
8119 la_get_symbol_name_matcher initializer.
8120 * opencl-lang.c (opencl_language_data): Likewise.
8121 * p-lang.c (pascal_language_data): Likewise.
8122 * psymtab.c (psymbol_name_matches): Update call to
8123 get_symbol_name_matcher.
8124 * rust-lang.c (rust_language_data): Delete
8125 la_get_symbol_name_matcher initializer.
8126 * symtab.c (symbol_matches_search_name): Update call to
8127 get_symbol_name_matcher.
8128 (compare_symbol_name): Likewise.
8130 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8132 * ada-lang.c (ada_language_data): Delete la_compute_program
8134 * c-lang.c (c_language_data): Likewise.
8135 (c_language::compute_program): New member function.
8136 (cplus_language_data): Delete la_compute_program initializer.
8137 (cplus_language::compute_program): New member function.
8138 (asm_language_data): Delete la_compute_program initializer.
8139 (minimal_language_data): Likewise.
8140 * c-lang.h (c_compute_program): Update comment.
8141 (cplus_compute_program): Likewise.
8142 * compile/compile-c-support.c (c_compute_program): Likewise.
8143 (cplus_compute_program): Likewise.
8144 * compile/compile.c (compile_to_object): Update call to
8146 * d-lang.c (d_language_data): Delete la_compute_program
8148 * f-lang.c (f_language_data): Likewise.
8149 * go-lang.c (go_language_data): Likewise.
8150 * language.c (unknown_language_data): Likewise.
8151 (auto_language_data): Likewise.
8152 * language.h (language_data): Delete la_compute_program field.
8153 (language_defn::compute_program): New member function.
8154 * m2-lang.c (m2_language_data): Delete la_compute_program
8156 * objc-lang.c (objc_language_data): Likewise.
8157 * opencl-lang.c (opencl_language_data): Likewise.
8158 * p-lang.c (pascal_language_data): Likewise.
8159 * rust-lang.c (rust_language_data): Likewise.
8161 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8163 * ada-lang.c (ada_language_data) Delete
8164 la_class_name_from_physname initializer.
8165 * c-lang.c (c_language_data): Likewise.
8166 (cplus_language_data): Likewise.
8167 (cplus_language::class_name_from_physname): New member function.
8168 (asm_language_data): Delete la_class_name_from_physname
8170 (minimal_language_data): Likewise.
8171 * d-lang.c (d_language_data): Likewise.
8172 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8173 method on language_defn class.
8174 (guess_full_die_structure_name): Likewise.
8175 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8177 * go-lang.c (go_language_data): Likewise.
8178 * language.c (language_class_name_from_physname): Delete.
8179 (unk_lang_class_name): Delete.
8180 (unknown_language_data): Delete la_class_name_from_physname
8182 (auto_language_data): Likewise.
8183 * language.h (language_data): Delete la_class_name_from_physname
8185 (language_defn::class_name_from_physname): New function.
8186 (language_class_name_from_physname): Delete declaration.
8187 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8189 * objc-lang.c (objc_language_data): Likewise.
8190 * opencl-lang.c (opencl_language_data): Likewise.
8191 * p-lang.c (pascal_language_data): Likewise.
8192 * rust-lang.c (rust_language_data): Likewise.
8194 2020-06-16 Tom Tromey <tom@tromey.com>
8196 * tui/tui-data.h (STATUS_NAME): New macro.
8197 * tui/tui-layout.c (tui_remove_some_windows)
8198 (initialize_known_windows, tui_register_window)
8199 (tui_layout_split::remove_windows, initialize_layouts)
8200 (tui_new_layout_command): Don't use hard-coded window names.
8202 2020-06-16 Tom Tromey <tom@tromey.com>
8205 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8206 tui_initialize_readline. Only run once. Call rl_initialize.
8207 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8208 tui_initialize_readline.
8209 * tui/tui-io.c (tui_setup_io): Call
8210 tui_ensure_readline_initialized.
8211 * tui/tui-interp.c (tui_interp::init): Update.
8213 2020-06-16 Tom Tromey <tom@tromey.com>
8215 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8216 Also preserve the status window.
8218 2020-06-16 Tom Tromey <tom@tromey.com>
8220 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8221 where m_window==nullptr.
8223 2020-06-15 Tom Tromey <tromey@adacore.com>
8225 * windows-nat.c (windows_nat::handle_output_debug_string):
8227 (windows_nat::handle_ms_vc_exception): Update.
8228 * target.h (target_read_string): Change API.
8229 * target.c (target_read_string): Change API.
8230 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8232 * solib-frv.c (frv_current_sos): Update.
8233 * solib-dsbt.c (dsbt_current_sos): Update.
8234 * solib-darwin.c (darwin_current_sos): Update.
8235 * linux-thread-db.c (inferior_has_bug): Update.
8236 * expprint.c (print_subexp_standard): Update.
8237 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8238 (ada_exception_message_1): Update.
8240 2020-06-15 Tom Tromey <tromey@adacore.com>
8242 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8244 2020-06-15 Tom Tromey <tromey@adacore.com>
8246 * valprint.c (read_string): Update comment.
8247 * target.c (MIN): Remove.
8248 (target_read_string): Rewrite.
8250 2020-06-15 Tom Tromey <tromey@adacore.com>
8252 * corefile.c (read_memory_string): Remove.
8253 * ada-valprint.c (ada_value_print_ptr): Update.
8254 * ada-lang.h (ada_tag_name): Change return type.
8255 * ada-lang.c (type_from_tag): Update.
8256 (ada_tag_name_from_tsd): Change return type. Use
8258 (ada_tag_name): Likewise.
8259 * gdbcore.h (read_memory_string): Don't declare.
8261 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8263 * symtab.c (rbreak_command): Ignore Windows drive colon.
8265 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8267 * NEWS: Mention removed GDBserver host support.
8269 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8271 * features/riscv/rebuild-csr-xml.sh: Updated.
8273 2020-06-11 Tom Tromey <tom@tromey.com>
8276 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8278 2020-06-09 Jonny Grant <jg@jguk.org>
8279 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8281 * main.c (captured_main_1): Don't print new line after help.
8282 (print_gdb_help): add mailing list and IRC channel information
8283 to --help. Add new lines between items in the footer. Remove
8284 quotes around bug url.
8286 2020-06-11 Keith Seitz <keiths@redhat.com>
8289 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8290 Resolve typedefs for type length calculations.
8292 2020-06-10 Tom de Vries <tdevries@suse.de>
8295 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8296 (write_psymbols): Enable .gdb_index for ada.
8297 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8300 2020-06-10 Tom de Vries <tdevries@suse.de>
8302 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8303 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8304 namei" instead of "const char *name" argument.
8305 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8306 dw2_symtab_iter_init.
8308 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8310 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8311 to use type::field and field::type instead.
8313 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8315 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8316 to use field::type instead.
8318 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8320 * gdbtypes.h (struct field) <type, set_type>: New methods.
8321 Rename `type` field to...
8322 <m_type>: ... this. Change references throughout to use type or
8324 (FIELD_TYPE): Use field::type. Change call sites that modify
8325 the field's type to use field::set_type instead.
8327 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8329 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8330 to use type::index_type instead.
8332 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8334 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8336 (TYPE_INDEX_TYPE): Use type::index_type.
8337 * gdbtypes.c (create_array_type_with_stride): Likewise.
8339 2020-06-07 Tom Tromey <tom@tromey.com>
8341 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8343 (generic_value_print): Update.
8345 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8347 Revert commit 982a38f60b0.
8348 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8350 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8352 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8353 avoid use after free.
8355 2020-06-05 Tom de Vries <tdevries@suse.de>
8359 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8361 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8363 (dwarf2_read_debug_names): Likewise.
8364 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8365 object when re-using a per_bfd object with an index.
8367 2020-06-03 Tom de Vries <tdevries@suse.de>
8370 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8372 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8375 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8377 * ada-lang.c (ada_language_data): Delete skip_trampoline
8379 * c-lang.c (c_language_data): Likewise.
8380 (cplus_language_data): Likewise.
8381 (cplus_language::skip_trampoline): New member function.
8382 (asm_language_data): Delete skip_trampoline initializer.
8383 (minimal_language_data): Likewise.
8384 * d-lang.c (d_language_data): Likewise.
8385 * f-lang.c (f_language_data): Likewise.
8386 * go-lang.c (go_language_data): Likewise.
8387 * language.c (unk_lang_trampoline): Delete function.
8388 (skip_language_trampoline): Update.
8389 (unknown_language_data): Delete skip_trampoline initializer.
8390 (auto_language_data): Likewise.
8391 * language.h (language_data): Delete skip_trampoline field.
8392 (language_defn::skip_trampoline): New function.
8393 * m2-lang.c (m2_language_data): Delete skip_trampoline
8395 * objc-lang.c (objc_skip_trampoline): Delete function, move
8396 implementation to objc_language::skip_trampoline.
8397 (objc_language_data): Delete skip_trampoline initializer.
8398 (objc_language::skip_trampoline): New member function with
8399 implementation from objc_skip_trampoline.
8400 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8402 * p-lang.c (pascal_language_data): Likewise.
8403 * rust-lang.c (rust_language_data): Likewise.
8405 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8407 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8408 (ada_language::demangle): New member function.
8409 * c-lang.c (c_language_data): Delete la_demangle initializer.
8410 (cplus_language_data): Delete la_demangle initializer.
8411 (cplus_language::demangle): New member function.
8412 (asm_language_data): Delete la_demangle initializer.
8413 (minimal_language_data): Delete la_demangle initializer.
8414 * d-lang.c (d_language_data): Delete la_demangle initializer.
8415 (d_language::demangle): New member function.
8416 * f-lang.c (f_language_data): Delete la_demangle initializer.
8417 (f_language::demangle): New member function.
8418 * go-lang.c (go_language_data): Delete la_demangle initializer.
8419 (go_language::demangle): New member function.
8420 * language.c (language_demangle): Update.
8421 (unk_lang_demangle): Delete.
8422 (unknown_language_data): Delete la_demangle initializer.
8423 (unknown_language::demangle): New member function.
8424 (auto_language_data): Delete la_demangle initializer.
8425 (auto_language::demangle): New member function.
8426 * language.h (language_data): Delete la_demangle field.
8427 (language_defn::demangle): New function.
8428 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8429 * objc-lang.c (objc_language_data): Delete la_demangle
8431 (objc_language::demangle): New member function.
8432 * opencl-lang.c (opencl_language_data): Delete la_demangle
8434 * p-lang.c (pascal_language_data): Likewise.
8435 * rust-lang.c (rust_language_data): Likewise.
8436 (rust_language::demangle): New member function.
8438 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8440 * ada-lang.c (ada_language_data): Delete la_print_type
8442 (ada_language::print_type): New member function.
8443 * c-lang.c (c_language_data): Delete la_print_type initializer.
8444 (c_language::print_type): New member function.
8445 (cplus_language_data): Delete la_print_type initializer.
8446 (cplus_language::print_type): New member function.
8447 (asm_language_data): Delete la_print_type initializer.
8448 (asm_language::print_type): New member function.
8449 (minimal_language_data): Delete la_print_type initializer.
8450 (minimal_language::print_type): New member function.
8451 * d-lang.c (d_language_data): Delete la_print_type initializer.
8452 (d_language::print_type): New member function.
8453 * f-lang.c (f_language_data): Delete la_print_type initializer.
8454 (f_language::print_type): New member function.
8455 * go-lang.c (go_language_data): Delete la_print_type initializer.
8456 (go_language::print_type): New member function.
8457 * language.c (unk_lang_print_type): Delete.
8458 (unknown_language_data): Delete la_print_type initializer.
8459 (unknown_language::print_type): New member function.
8460 (auto_language_data): Delete la_print_type initializer.
8461 (auto_language::print_type): New member function.
8462 * language.h (language_data): Delete la_print_type field.
8463 (language_defn::print_type): New function.
8464 (LA_PRINT_TYPE): Update.
8465 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8466 (m2_language::print_type): New member function.
8467 * objc-lang.c (objc_language_data): Delete la_print_type
8469 (objc_language::print_type): New member function.
8470 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8471 to opencl_language::print_type.
8472 (opencl_language_data): Delete la_print_type initializer.
8473 (opencl_language::print_type): New member function, implementation
8474 from opencl_print_type.
8475 * p-lang.c (pascal_language_data): Delete la_print_type
8477 (pascal_language::print_type): New member function.
8478 * rust-lang.c (rust_print_type): Delete, implementation moved to
8479 rust_language::print_type.
8480 (rust_language_data): Delete la_print_type initializer.
8481 (rust_language::print_type): New member function, implementation
8482 from rust_print_type.
8484 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8486 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8487 implementation moves to...
8488 (ada_language::sniff_from_mangled_name): ...here. Update return
8490 (ada_language_data): Delete la_sniff_from_mangled_name
8492 * c-lang.c (c_language_data): Likewise.
8493 (cplus_language_data): Likewise.
8494 (cplus_language::sniff_from_mangled_name): New member function,
8495 implementation taken from gdb_sniff_from_mangled_name.
8496 (asm_language_data): Delete la_sniff_from_mangled_name
8498 (minimal_language_data): Likewise.
8499 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8500 implementation moves to cplus_language::sniff_from_mangled_name.
8501 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8502 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8504 (d_language::sniff_from_mangled_name): ...here.
8505 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8506 * f-lang.c (f_language_data): Likewise.
8507 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8509 (go_language::sniff_from_mangled_name): ...here.
8510 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8511 * language.c (language_sniff_from_mangled_name): Delete.
8512 (unknown_language_data): Delete la_sniff_from_mangled_name
8514 (auto_language_data): Likewise.
8515 * language.h (language_data): Delete la_sniff_from_mangled_name
8517 (language_defn::sniff_from_mangled_name): New function.
8518 (language_sniff_from_mangled_name): Delete declaration.
8519 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8521 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8522 implementation moves to...
8523 (objc_language::sniff_from_mangled_name): ...here.
8524 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8525 * opencl-lang.c (opencl_language_data): Likewise.
8526 * p-lang.c (pascal_language_data): Likewise.
8527 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8528 implementation moves to...
8529 (rust_language::sniff_from_mangled_name): ...here.
8530 (rust_language_data): Delete la_sniff_from_mangled_name
8532 * symtab.c (symbol_find_demangled_name): Call
8533 sniff_from_mangled_name member function.
8535 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8537 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8539 * c-lang.c (c_language_data): Likewise.
8540 (cplus_language_data): Likewise.
8541 (cplus_language::search_name_hash): New member function.
8542 (asm_language_data): Delete la_search_name_hash initializer.
8543 (minimal_language_data): Likewise.
8544 * d-lang.c (d_language_data): Likewise.
8545 * dictionary.c (default_search_name_hash): Rename to...
8546 (language_defn::search_name_hash): ...this.
8547 * f-lang.c (f_language_data): Likewise.
8548 (f_language::search_name_hash): New member function.
8549 * go-lang.c (go_language_data): Delete la_search_name_hash
8551 * language.c (unknown_language_data): Likewise.
8552 (auto_language_data): Likewise.
8553 * language.h (struct language_data): Delete la_search_name_hash
8555 (language_defn::search_name_hash): Declare new member function.
8556 (default_search_name_hash): Delete declaration.
8557 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8559 * objc-lang.c (objc_language_data): Likewise.
8560 * opencl-lang.c (opencl_language_data): Likewise.
8561 * p-lang.c (pascal_language_data): Likewise.
8562 * rust-lang.c (rust_language_data): Likewise.
8563 * symtab.c (search_name_hash): Update call.
8565 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8567 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8569 * c-lang.c (class compile_instance): Declare.
8570 (c_language_data): Delete la_get_compile_instance initializer.
8571 (c_language::get_compile_instance): New member function.
8572 (cplus_language_data): Delete la_get_compile_instance initializer.
8573 (cplus_language::get_compile_instance): New member function.
8574 (asm_language_data): Delete la_get_compile_instance initializer.
8575 (minimal_language_data): Likewise.
8576 * c-lang.h (c_get_compile_context): Update comment.
8577 (cplus_get_compile_context): Update comment.
8578 * compile/compile.c (compile_to_object): Update calls, don't rely
8579 on function pointer being NULL.
8580 * d-lang.c (d_language_data): Delete la_get_compile_instance
8582 * f-lang.c (f_language_data): Likewise.
8583 * go-lang.c (go_language_data): Likewise.
8584 * language.c (unknown_language_data): Likewise.
8585 (auto_language_data): Likewise.
8586 * language.h (language_data): Delete la_get_compile_instance field.
8587 (language_defn::get_compile_instance): New member function.
8588 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8590 * objc-lang.c (objc_language_data): Likewise.
8591 * opencl-lang.c (opencl_language_data): Likewise.
8592 * p-lang.c (pascal_language_data): Likewise.
8593 * rust-lang.c (rust_language_data): Likewise.
8595 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8597 * ada-lang.c (ada_add_all_symbols): Update comment.
8598 (ada_iterate_over_symbols): Delete, move implementation to...
8599 (ada_language::iterate_over_symbols): ...here, a new member
8600 function, rewrite to use range based for loop.
8601 (ada_language_data): Delete la_iterate_over_symbols initializer.
8602 * c-lang.c (c_language_data): Likewise.
8603 (cplus_language_data): Likewise.
8604 (asm_language_data): Likewise.
8605 (minimal_language_data): Likewise.
8606 * d-lang.c (d_language_data): Likewise.
8607 * f-lang.c (f_language_data): Likewise.
8608 * go-lang.c (go_language_data): Likewise.
8609 * language.c (unknown_language_data): Likewise.
8610 (auto_language_data): Likewise.
8611 * language.h (language_data): Delete la_iterate_over_symbols field.
8612 (language_defn::iterate_over_symbols): New member function.
8613 (LA_ITERATE_OVER_SYMBOLS): Update.
8614 * linespec.c (iterate_over_all_matching_symtabs): Update.
8615 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8617 * objc-lang.c (objc_language_data): Likewise.
8618 * opencl-lang.c (opencl_language_data): Likewise.
8619 * p-lang.c (pascal_language_data): Likewise.
8620 * rust-lang.c (rust_language_data): Likewise.
8622 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8624 * ada-lang.c (ada_language_data): Delete
8625 la_lookup_transparent_type initializer.
8626 * c-lang.c (c_language_data): Likewise.
8627 (cplus_language_data): Likewise.
8628 (cplus_language::lookup_transparent_type): New member function.
8629 (asm_language_data): Delete la_lookup_transparent_type
8631 (minimal_language_data): Likewise.
8632 * d-lang.c (d_language_data): Likewise.
8633 * f-lang.c (f_language_data): Likewise.
8634 * go-lang.c (go_language_data): Likewise.
8635 * language.c (unknown_language_data): Likewise.
8636 (auto_language_data): Likewise.
8637 * language.h (struct language_data): Delete
8638 la_lookup_transparent_type field.
8639 (language_defn::lookup_transparent_type): New member function.
8640 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8642 * objc-lang.c (objc_language_data): Likewise.
8643 * opencl-lang.c (opencl_language_data): Likewise.
8644 * p-lang.c (pascal_language_data): Likewise.
8645 * rust-lang.c (rust_language_data): Likewise.
8646 * symtab.c (symbol_matches_domain): Update call.
8648 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8650 * ada-lang.c (ada_language_arch_info): Delete function, move
8651 implementation to...
8652 (ada_language::language_arch_info): ...here, a new member
8654 (ada_language_data): Delete la_language_arch_info.
8655 * c-lang.c (c_language_data): Likewise.
8656 (c_language::language_arch_info): New member function.
8657 (cplus_language_arch_info): Delete function, move
8658 implementation to...
8659 (cplus_language::language_arch_info): ...here, a new member
8661 (cplus_language_data): Delete la_language_arch_info.
8662 (asm_language_data): Likewise.
8663 (asm_language::language_arch_info): New member function.
8664 (minimal_language_data): Delete la_language_arch_info.
8665 (minimal_language::language_arch_info): New member function.
8666 * d-lang.c (d_language_arch_info): Delete function, move
8667 implementation to...
8668 (d_language::language_arch_info): ...here, a new member
8670 (d_language_data): Delete la_language_arch_info.
8671 * f-lang.c (f_language_arch_info): Delete function, move
8672 implementation to...
8673 (f_language::language_arch_info): ...here, a new member
8675 (f_language_data): Delete la_language_arch_info.
8676 * go-lang.c (go_language_arch_info): Delete function, move
8677 implementation to...
8678 (go_language::language_arch_info): ...here, a new member
8680 (go_language_data): Delete la_language_arch_info.
8681 * language.c (unknown_language_data): Likewise.
8682 (unknown_language::language_arch_info): New member function.
8683 (auto_language_data): Delete la_language_arch_info.
8684 (auto_language::language_arch_info): New member function.
8685 (language_gdbarch_post_init): Update call to
8686 la_language_arch_info.
8687 * language.h (language_data): Delete la_language_arch_info
8689 (language_defn::language_arch_info): New function.
8690 * m2-lang.c (m2_language_arch_info): Delete function, move
8691 implementation to...
8692 (m2_language::language_arch_info): ...here, a new member
8694 (m2_language_data): Delete la_language_arch_info.
8695 * objc-lang.c (objc_language_arch_info): Delete function, move
8696 implementation to...
8697 (objc_language::language_arch_info): ...here, a new member
8699 (objc_language_data): Delete la_language_arch_info.
8700 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8701 implementation to...
8702 (opencl_language::language_arch_info): ...here, a new member
8704 (opencl_language_data): Delete la_language_arch_info.
8705 * p-lang.c (pascal_language_arch_info): Delete function, move
8706 implementation to...
8707 (pascal_language::language_arch_info): ...here, a new member
8709 (pascal_language_data): Delete la_language_arch_info.
8710 * rust-lang.c (rust_language_arch_info): Delete function, move
8711 implementation to...
8712 (rust_language::language_arch_info): ...here, a new member
8714 (rust_language_data): Delete la_language_arch_info.
8716 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8718 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8720 * c-lang.c (c_language_data): Likewise.
8721 (cplus_language_data): Likewise.
8722 (cplus_language::pass_by_reference_info): New method.
8723 (asm_language_data): Delete la_pass_by_reference initializer.
8724 (minimal_language_data): Likewise.
8725 * cp-abi.c (cp_pass_by_reference): Remove use of
8726 default_pass_by_reference.
8727 * d-lang.c (d_language_data): Likewise.
8728 * f-lang.c (f_language_data): Likewise.
8729 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8730 default_pass_by_reference.
8731 * go-lang.c (go_language_data): Likewise.
8732 * language.c (language_pass_by_reference): Update.
8733 (default_pass_by_reference): Delete.
8734 (unknown_language_data): Delete la_pass_by_reference
8736 (auto_language_data): Likewise.
8737 * language.h (struct language_data): Delete la_pass_by_reference
8739 (language_defn::pass_by_reference_info): New member function.
8740 (default_pass_by_reference): Delete declaration.
8741 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8743 * objc-lang.c (objc_language_data): Likewise.
8744 * opencl-lang.c (opencl_language_data): Likewise.
8745 * p-lang.c (pascal_language_data): Likewise.
8746 * rust-lang.c (rust_language_data): Likewise.
8748 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8750 * ada-lang.c (ada_read_var_value): Delete function, move
8751 implementation to...
8752 (ada_language::read_var_value): ...here.
8753 (ada_language_data): Delete la_read_var_value initializer.
8754 * c-lang.c (c_language_data): Likewise.
8755 (cplus_language_data): Likewise.
8756 (minimal_language_data): Likewise.
8757 * d-lang.c (d_language_data): Likewise.
8758 * f-lang.c (f_language_data): Likewise.
8759 * findvar.c (default_read_var_value): Rename to...
8760 (language_defn::read_var_value): ...this.
8761 * findvar.c (read_var_value): Update header comment, and change to
8762 call member function instead of function pointer.
8763 * go-lang.c (go_language_data): Likewise.
8764 * language.c (unknown_language_data): Delete la_read_var_value
8766 (auto_language_data): Likewise.
8767 * language.h (struct language_data): Delete la_read_var_value
8769 (language_defn::read_var_value): New member function.
8770 (default_read_var_value): Delete declaration.
8771 * m2-lang.c (m2_language_data): Delete la_read_var_value
8773 * objc-lang.c (objc_language_data): Likewise.
8774 * opencl-lang.c (opencl_language_data): Likewise.
8775 * p-lang.c (pascal_language_data): Likewise.
8776 * rust-lang.c (rust_language_data): Likewise.
8777 * value.h (default_read_var_value): Delete declaration.
8779 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8781 * ada-lang.c (ada_print_array_index): Delete function, move
8782 implementation to...
8783 (ada_language::print_array_index): ...here.
8784 (ada_language_data): Delete la_print_array_index initializer.
8785 * c-lang.c (c_language_data): Likewise.
8786 (cplus_language_data): Likewise.
8787 (minimal_language_data): Likewise.
8788 * d-lang.c (d_language_data): Likewise.
8789 * f-lang.c (f_language_data): Likewise.
8790 * go-lang.c (go_language_data): Likewise.
8791 * language.c (default_print_array_index): Delete function, move
8792 implementation to...
8793 (language_defn::print_array_index): ...here.
8794 (unknown_language_data): Delete la_print_array_index initializer.
8795 (auto_language_data): Likewise.
8796 * language.h (struct language_data): Delete la_print_array_index
8798 (language_defn::print_array_index): New member function.
8799 (LA_PRINT_ARRAY_INDEX): Update.
8800 (default_print_array_index): Delete declaration.
8801 * m2-lang.c (m2_language_data): Delete la_print_array_index
8803 * objc-lang.c (objc_language_data): Likewise.
8804 * opencl-lang.c (opencl_language_data): Likewise.
8805 * p-lang.c (pascal_language_data): Likewise.
8806 * rust-lang.c (rust_language_data): Likewise.
8808 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8810 * gdb/ada-lang.c (ada_language_defn): Convert to...
8811 (ada_language_data): ...this.
8812 (class ada_language): New class.
8813 (ada_language_defn): New static global.
8814 * gdb/c-lang.c (c_language_defn): Convert to...
8815 (c_language_data): ...this.
8816 (class c_language): New class.
8817 (c_language_defn): New static global.
8818 (cplus_language_defn): Convert to...
8819 (cplus_language_data): ...this.
8820 (class cplus_language): New class.
8821 (cplus_language_defn): New static global.
8822 (asm_language_defn): Convert to...
8823 (asm_language_data): ...this.
8824 (class asm_language): New class.
8825 (asm_language_defn): New static global.
8826 (minimal_language_defn): Convert to...
8827 (minimal_language_data): ...this.
8828 (class minimal_language): New class.
8829 (minimal_language_defn): New static global.
8830 * gdb/d-lang.c (d_language_defn): Convert to...
8831 (d_language_data): ...this.
8832 (class d_language): New class.
8833 (d_language_defn): New static global.
8834 * gdb/f-lang.c (f_language_defn): Convert to...
8835 (f_language_data): ...this.
8836 (class f_language): New class.
8837 (f_language_defn): New static global.
8838 * gdb/go-lang.c (go_language_defn): Convert to...
8839 (go_language_data): ...this.
8840 (class go_language): New class.
8841 (go_language_defn): New static global.
8842 * gdb/language.c (unknown_language_defn): Remove declaration.
8843 (current_language): Initialize to nullptr, real initialization is
8844 moved to _initialize_language.
8845 (languages): Delete global.
8846 (language_defn::languages): Define.
8847 (set_language_command): Use language_defn::languages.
8848 (set_language): Likewise.
8849 (range_error): Likewise.
8850 (language_enum): Likewise.
8851 (language_def): Likewise.
8852 (add_set_language_command): Use language_def::languages for the
8853 language list, and language_def to lookup language pointers.
8854 (skip_language_trampoline): Use language_defn::languages.
8855 (unknown_language_defn): Convert to...
8856 (unknown_language_data): ...this.
8857 (class unknown_language): New class.
8858 (unknown_language_defn): New static global.
8859 (auto_language_defn): Convert to...
8860 (auto_language_data): ...this.
8861 (class auto_language): New class.
8862 (auto_language_defn): New static global.
8863 (language_gdbarch_post_init): Use language_defn::languages.
8864 (_initialize_language): Initialize current_language.
8865 * gdb/language.h (struct language_defn): Rename to...
8866 (struct language_data): ...this.
8867 (struct language_defn): New.
8868 (auto_language_defn): Delete.
8869 (unknown_language_defn): Delete.
8870 (minimal_language_defn): Delete.
8871 (ada_language_defn): Delete.
8872 (asm_language_defn): Delete.
8873 (c_language_defn): Delete.
8874 (cplus_language_defn): Delete.
8875 (d_language_defn): Delete.
8876 (f_language_defn): Delete.
8877 (go_language_defn): Delete.
8878 (m2_language_defn): Delete.
8879 (objc_language_defn): Delete.
8880 (opencl_language_defn): Delete.
8881 (pascal_language_defn): Delete.
8882 (rust_language_defn): Delete.
8883 * gdb/m2-lang.c (m2_language_defn): Convert to...
8884 (m2_language_data): ...this.
8885 (class m2_language): New class.
8886 (m2_language_defn): New static global.
8887 * gdb/objc-lang.c (objc_language_defn): Convert to...
8888 (objc_language_data): ...this.
8889 (class objc_language): New class.
8890 (objc_language_defn): New static global.
8891 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8892 (opencl_language_data): ...this.
8893 (class opencl_language): New class.
8894 (opencl_language_defn): New static global.
8895 * gdb/p-lang.c (pascal_language_defn): Convert to...
8896 (pascal_language_data): ...this.
8897 (class pascal_language): New class.
8898 (pascal_language_defn): New static global.
8899 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8900 language pointer, update comment format.
8901 * gdb/rust-lang.c (rust_language_defn): Convert to...
8902 (rust_language_data): ...this.
8903 (class rust_language): New class.
8904 (rust_language_defn): New static global.
8906 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8908 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8910 <m_stmt_at_address>: New member variable.
8911 (lnp_state_machine::record_line): Don't record some lines, update
8912 tracking of is_stmt at the same address.
8913 (lnp_state_machine::lnp_state_machine): Initialise new member
8916 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8918 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8919 "-include gnu-nat-mig.h".
8920 * gnu-nat-mig.h: New file.
8921 * gnu-nat.c: Include "gnu-nat-mig.h".
8922 (exc_server, msg_reply_server, notify_server,
8923 process_reply_server): Remove declarations.
8925 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8927 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8928 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8929 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8930 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8931 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8932 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8933 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8934 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8935 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8936 to gnu_nat_target class.
8937 * gnu-nat.c: Likewise.
8938 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8939 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8940 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8942 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8943 instead of `gnu_target'.
8945 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8947 * i386-gnu-tdep.c: Include "gdbcore.h"
8948 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8949 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8950 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8951 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8952 i386_gnu_sigcontext_addr): New functions
8953 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8954 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8957 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8959 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8960 before fork_inferior call. Avoid calling it if target_is_pushed returns
8963 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8965 * gnu-nat.h (gnu_target): New variable declaration.
8966 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8968 * gnu-nat.c (gnu_target): New variable.
8969 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8970 add_thread_silent, and add_thread calls.
8971 (gnu_nat_target::create_inferior): Pass gnu_target to
8972 add_thread_silent, thread_change_ptid call.
8973 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8976 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8978 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8979 (gnu_nat_target::find_memory_regions): Remove unused
8980 `old_address' variable.
8982 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8984 * gnu-nat.c: Include "gdbarch.h".
8986 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8988 * reply_mig_hack.awk (Error return): Cast function through
8989 void *, to bypass compiler function call check.
8991 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8993 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8994 $(srcdir)/reply_mig_hack.awk.
8996 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8998 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9000 2020-05-30 Jonny Grant <jg@jguk.org>
9002 * configure.ac (ACX_BUGURL): change bug URL to https.
9004 2020-05-30 Pedro Alves <palves@redhat.com>
9006 * cp-support.c (replace_typedefs_template): New.
9007 (replace_typedefs_qualified_name): Handle
9008 DEMANGLE_COMPONENT_TEMPLATE.
9010 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9012 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9013 dwarf2/index-cache.h, dwarf2/index-write.c,
9014 dwarf2/index-write.h, dwarf2/line-header.c,
9015 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9016 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9017 variables and fields from `dwarf2_per_objfile` to just
9018 `per_objfile` throughout.
9020 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9022 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9023 <push_dwarf_reg_entry_value>: Add comment.
9025 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9026 Keith Seitz <keiths@redhat.com>
9028 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9029 instead of PyEval_ReleaseLock.
9030 (class gdbpy_gil): Move to earlier in file.
9031 (finalize_python): Set gdb_python_initialized.
9032 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9033 when not initialized.
9035 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9038 <push_dwarf_reg_entry_value>: Remove assert. Override
9039 per_objfile with caller_per_objfile.
9041 2020-05-28 Tom de Vries <tdevries@suse.de>
9043 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9044 PR gold/15646 workaround to symbol kind "type".
9046 2020-05-27 Tom Tromey <tromey@adacore.com>
9048 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9050 2020-05-27 Tom Tromey <tromey@adacore.com>
9052 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9053 Use htab_find_with_hash.
9054 <add_abbrev>: Remove "abbrev_number" parameter.
9055 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9056 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9057 (hash_abbrev): Add comment.
9058 (abbrev_table::lookup_abbrev): Move to header file.
9059 (abbrev_table::read): Update.
9061 2020-05-27 Tom Tromey <tromey@adacore.com>
9063 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9065 <canonical_name>: New member.
9066 <raw_name>: Rename from "name".
9067 (partial_die_info): Initialize canonical_name.
9068 (scan_partial_symbols): Check raw_name.
9069 (partial_die_parent_scope, partial_die_full_name)
9070 (add_partial_symbol, add_partial_subprogram)
9071 (add_partial_enumeration, load_partial_dies): Use "name" method.
9072 (partial_die_info::name): New method.
9073 (partial_die_info::read, guess_partial_die_structure_name)
9074 (partial_die_info::fixup): Update.
9076 2020-05-27 Tom Tromey <tromey@adacore.com>
9078 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9079 <get_ref_die_offset>: Inline.
9080 <get_ref_die_offset_complaint>: New method.
9081 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9082 (attribute::get_ref_die_offset_complaint): Rename from
9083 get_ref_die_offset. Just issue complaint.
9085 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9087 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9089 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9091 * exec.c (exec_file_attach): Use errno value of first openp failure.
9093 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9095 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9096 Don't close thread handle.
9098 2020-05-27 Tom Tromey <tom@tromey.com>
9099 Simon Marchi <simon.marchi@efficios.com>
9101 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9103 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9105 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9106 dwarf2_per_bfd_objfile_data_key>: New globals.
9107 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9108 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9109 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9111 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9112 short-circuit when sharing.
9113 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9114 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9118 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9120 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9121 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9123 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9125 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9126 build_name_components, find_name_components_bounds>:
9127 Add per_objfile parameter.
9128 (struct mapped_index) <symbol_name_at>: Likewise.
9129 (struct mapped_debug_names): Remove constructor.
9130 <dwarf2_per_objfile>: Remove field.
9131 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9132 (mapped_index_base::find_name_components_bounds,
9133 mapped_index_base::build_name_components,
9134 dw2_expand_symtabs_matching_symbol): Likewise.
9135 (class mock_mapped_index) <symbol_name_at>: Likewise.
9136 (check_match): Likewise.
9137 (check_find_bounds_finds): Likewise.
9138 (test_mapped_index_find_name_component_bounds): Update.
9139 (CHECK_MATCH): Update.
9140 (dw2_expand_symtabs_matching): Update.
9141 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9142 per_objfile parameter.
9143 <find_vec_in_debug_names>: Likewise.
9144 <m_per_objfile>: New field.
9145 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9147 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9148 (dw2_debug_names_iterator::next): Update.
9149 (dw2_debug_names_lookup_symbol): Update.
9150 (dw2_debug_names_expand_symtabs_for_function): Update.
9151 (dw2_debug_names_map_matching_symbols): Update.
9152 (dw2_debug_names_expand_symtabs_matching): Update.
9153 (dwarf2_read_debug_names): Update.
9155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9157 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9158 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9159 move to dwarf2_per_objfile.
9160 <read_in_chain>: Remove.
9161 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9162 remove_all_cus, age_comp_units>: New methods.
9163 <m_dwarf2_cus>: New member.
9164 (struct dwarf2_per_cu_data) <cu>: Remove.
9165 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9166 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9167 moved to methods of dwarf2_per_objfile.
9168 (dwarf2_clear_marks): Remove.
9169 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9170 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9171 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9172 (dwarf2_per_objfile::remove_all_cus): New.
9173 (class free_cached_comp_units) <~free_cached_comp_units>:
9176 (dw2_do_instantiate_symtab): Adjust.
9177 (fill_in_sig_entry_from_dwo_entry): Adjust.
9178 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9179 (cutu_reader::cutu_reader): Likewise.
9180 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9181 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9182 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9183 and dwarf2_per_objfile::age_comp_units.
9184 (load_partial_comp_unit): Update.
9185 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9186 (process_queue): Likewise.
9187 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9189 (dwarf2_read_addr_index): Likewise.
9190 (follow_die_offset): Likewise.
9191 (dwarf2_fetch_die_loc_sect_off): Likewise.
9192 (dwarf2_fetch_constant_bytes): Likewise.
9193 (dwarf2_fetch_die_type_sect_off): Likewise.
9194 (follow_die_sig_1): Likewise.
9195 (load_full_type_unit): Likewise.
9196 (read_signatured_type): Likewise.
9197 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9198 (dwarf2_cu::~dwarf2_cu): Remove.
9199 (dwarf2_per_objfile::get_cu): New.
9200 (dwarf2_per_objfile::set_cu): New.
9201 (age_cached_comp_units): Rename to...
9202 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9203 to std::unordered_map.
9204 (free_one_cached_comp_unit): Rename to...
9205 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9206 to std::unordered_map.
9207 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9208 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9209 a dwarf2_per_objfile in data.
9210 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9211 (dwarf2_clear_marks): Remove.
9213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9215 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9216 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9217 (init_tu_and_read_dwo_dies): Likewise.
9218 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9219 (cutu_reader::cutu_reader): Likewise.
9220 (load_partial_comp_unit): Likewise.
9221 (process_psymtab_comp_unit): Update.
9222 (build_type_psymtabs_1): Update.
9223 (process_skeletonless_type_unit): Update.
9224 (load_full_comp_unit): Update.
9225 (find_partial_die): Update.
9226 (dwarf2_read_addr_index): Update.
9227 (read_signatured_type): Update.
9229 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9231 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9232 m_header_read_in>: New fields.
9233 <get_header>: New method.
9234 * dwarf2/read.c (per_cu_header_read_in): Remove.
9235 (dwarf2_per_cu_data::get_header): New.
9236 (dwarf2_per_cu_data::addr_size): Update.
9237 (dwarf2_per_cu_data::offset_size): Update.
9238 (dwarf2_per_cu_data::ref_addr_size): Update.
9240 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9242 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9243 (dw2_do_instantiate_symtab): Update.
9244 (queue_and_load_all_dwo_tus): Change parameter from
9245 dwarf2_per_cu_data to dwarf2_cu.
9246 (dwarf2_fetch_die_loc_sect_off): Update.
9247 (dwarf2_fetch_constant_bytes): Update.
9248 (dwarf2_fetch_die_type_sect_off): Update.
9250 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9252 * dwarf2/read.c (process_full_comp_unit,
9253 process_full_type_unit): Remove per_cu, per_objfile paramters.
9254 Add dwarf2_cu parameter.
9255 (process_queue): Update.
9257 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9259 * dwarf2/read.c (create_cu_from_index_list): Replace
9260 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9261 (create_cus_from_index_list): Likewise.
9262 (create_cus_from_index): Likewise.
9263 (create_signatured_type_table_from_index): Likewise.
9264 (create_cus_from_debug_names_list): Likewise.
9265 (create_cus_from_debug_names): Likewise.
9266 (dwarf2_read_gdb_index): Update.
9267 (dwarf2_read_debug_names): Update.
9269 2020-05-27 Tom Tromey <tom@tromey.com>
9270 Simon Marchi <simon.marchi@efficios.com>
9272 * dwarf2/read.h (struct dwarf2_per_objfile)
9273 <get_type_for_signatured_type, set_type_for_signatured_type>:
9275 <m_type_map>: New member.
9276 (struct signatured_type) <type>: Remove.
9278 (dwarf2_per_objfile::get_type_for_signatured_type,
9279 dwarf2_per_objfile::set_type_for_signatured_type): New.
9280 (get_signatured_type): Use new methods.
9282 2020-05-27 Tom Tromey <tom@tromey.com>
9283 Simon Marchi <simon.marchi@efficios.com>
9285 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9286 (struct dwarf2_per_objfile) <type_units>: New member.
9287 <get_type_unit_group_unshareable>: New method.
9288 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9289 num_symtabs, symtabs>: Remove; move to
9290 type_unit_group_unshareable.
9291 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9292 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9293 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9297 * dwarf2/read.h (struct dwarf2_per_cu_data):
9298 <dwarf2_per_objfile>: Remove.
9299 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9301 (create_signatured_type_table_from_index): Likewise.
9302 (create_signatured_type_table_from_debug_names): Likewise.
9303 (create_debug_type_hash_table): Likewise.
9304 (fill_in_sig_entry_from_dwo_entry): Likewise.
9305 (create_type_unit_group): Likewise.
9306 (read_comp_units_from_section): Likewise.
9307 (create_cus_hash_table): Likewise.
9309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9311 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9312 dwarf2_per_cu_data::dwarf2_per_objfile.
9313 (compute_compunit_symtab_includes): Likewise.
9314 (dwarf2_cu::start_symtab): Likewise.
9316 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9318 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9320 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9321 (read_namespace_alias): Update.
9322 (lookup_die_type): Update.
9323 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9324 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9326 (disassemble_dwarf_expression): Update.
9328 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9330 * dwarf2/read.h (struct dwarf2_queue_item): Add
9331 dwarf2_per_objfile parameter, assign new parameter.
9332 <per_objfile>: New field.
9333 * dwarf2/read.c (free_one_cached_comp_unit): Add
9334 dwarf2_per_objfile parameter.
9335 (queue_comp_unit): Likewise.
9336 (dw2_do_instantiate_symtab): Update.
9337 (process_psymtab_comp_unit): Update.
9338 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9339 (process_imported_unit_die): Update.
9340 (queue_and_load_dwo_tu): Update.
9341 (follow_die_offset): Update.
9342 (follow_die_sig_1): Update.
9344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9346 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9347 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9348 (read_call_site_scope): Assign per_objfile.
9349 (dwarf2_per_cu_data::objfile): Remove.
9350 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9351 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9352 dwarf2_per_objfile parameter.
9353 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9354 dwarf2_per_objfile parameter.
9355 (dwarf_expr_reg_to_entry_parameter): Add output
9356 dwarf2_per_objfile parameter.
9357 (locexpr_get_frame_base): Update.
9358 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9359 <push_dwarf_reg_entry_value>: Update.
9360 <call_site_to_target_addr>: Update.
9361 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9363 (value_of_dwarf_reg_entry): Update.
9364 (rw_pieced_value): Update.
9365 (indirect_synthetic_pointer): Update.
9366 (dwarf2_evaluate_property): Update.
9367 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9369 (locexpr_read_variable): Update.
9370 (locexpr_get_symbol_read_needs): Update.
9371 (loclist_read_variable): Update.
9373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9375 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9376 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9377 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9379 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9380 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9381 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9383 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9384 sect_variable_value): Add dwarf2_per_objfile parameter.
9385 (class dwarf_evaluate_loc_desc) <dwarf_call,
9386 dwarf_variable_value>: Update.
9387 (fetch_const_value_from_synthetic_pointer): Add
9388 dwarf2_per_objfile parameter.
9389 (fetch_const_value_from_synthetic_pointer): Update.
9390 (coerced_pieced_ref): Update.
9391 (class symbol_needs_eval_context) <dwarf_call,
9392 dwarf_variable_value>: Update.
9393 (dwarf2_compile_expr_to_ax): Update.
9395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9397 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9399 (dwarf2_evaluate_loc_desc_full): Update.
9401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9403 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9405 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9406 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9407 dwarf2_per_objfile parameter.
9408 (decode_debug_loc_dwo_addresses): Likewise.
9409 (dwarf2_find_location_expression): Update.
9410 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9411 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9413 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9415 (locexpr_describe_location_1): Likewise.
9416 (locexpr_describe_location): Update.
9418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9420 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9422 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9423 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9424 (dwarf2_compile_property_to_c): Update.
9425 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9426 use text offset from objfile.
9427 (locexpr_tracepoint_var_ref): Update.
9428 (locexpr_generate_c_location): Update.
9429 (loclist_describe_location): Update.
9430 (loclist_tracepoint_var_ref): Update.
9431 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9432 dwarf2_per_objfile parameter.
9433 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9434 use text offset from objfile.
9435 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9437 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9439 * dwarf2/expr.h (struct dwarf_expr_context)
9440 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9442 <per_objfile>: New member.
9443 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9444 dwarf2_per_objfile parameter. Don't set offset, set
9446 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9447 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9448 a dwarf2_per_objfile object instead of an offset.
9449 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9451 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9452 to dwarf2_expr_executor constructor. Don't set offset.
9453 (dwarf2_fetch_cfa_info): Update.
9454 (struct dwarf2_frame_cache) <text_offset>: Remove.
9455 <per_objfile>: New field.
9456 (dwarf2_frame_cache): Update.
9457 (dwarf2_frame_prev_register): Update.
9458 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9459 <dwarf_evaluate_loc_desc>: Add constructor.
9460 (dwarf2_evaluate_loc_desc_full): Update.
9461 (dwarf2_locexpr_baton_eval): Update.
9462 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9464 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9468 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9469 addr_sized_int_type>: Move to dwarf2_cu.
9470 <int_type>: Move to dwarf2_per_objfile.
9471 (struct dwarf2_per_objfile) <int_type>: Move here.
9472 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9473 addr_sized_int_type>: Move here.
9474 (read_func_scope): Update.
9475 (read_array_type): Update.
9476 (read_tag_string_type): Update.
9477 (attr_to_dynamic_prop): Update.
9478 (dwarf2_per_cu_data::int_type): Rename to...
9479 (dwarf2_per_objfile::int_type): ... this.
9480 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9481 (dwarf2_cu::addr_sized_int_type): ... this.
9482 (read_subrange_type): Update.
9483 (dwarf2_per_cu_data::addr_type): Rename to...
9484 (dwarf2_cu::addr_type): ... this.
9485 (set_die_type): Update.
9487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9489 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9490 data through per_cu->cu.
9492 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9494 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9495 dwarf2_per_cu_data parameter fo dwarf2_cu.
9496 (lookup_dwo_type_unit): Likewise.
9497 (read_cutu_die_from_dwo): Likewise.
9498 (lookup_dwo_unit): Likewise.
9499 (open_and_init_dwo_file): Likewise.
9500 (lookup_dwo_cutu): Likewise.
9501 (lookup_dwo_comp_unit): Likewise.
9502 (lookup_dwo_type_unit): Likewise.
9503 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9504 (cutu_reader::cutu_reader): Update.
9506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9508 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9510 (process_full_type_unit): Likewise.
9511 (process_queue): Update.
9513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9515 * dwarf2/read.c (recursively_compute_inclusions): Add
9516 dwarf2_per_objfile parameter.
9517 (compute_compunit_symtab_includes): Likewise.
9518 (process_cu_includes): Update.
9520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9522 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9524 (create_type_unit_group): Update.
9525 (process_psymtab_comp_unit_reader): Update.
9526 (build_type_psymtabs_reader): Update.
9528 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9530 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9531 object through m_this_cu->cu.
9533 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9535 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9537 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9539 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9541 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9542 per_objfile parameter.
9543 (load_full_type_unit): Add per_objfile parameter.
9544 (read_signatured_type): Likewise.
9545 (load_full_comp_unit): Likewise.
9546 (load_cu): Likewise.
9547 (dw2_do_instantiate_symtab): Likewise.
9548 (dw2_get_file_names): Likewise.
9549 (dw2_map_symtabs_matching_filename): Update.
9550 (dw_expand_symtabs_matching_file_matcher): Update.
9551 (dw2_map_symbol_filenames): Update.
9552 (process_psymtab_comp_unit): Add per_objfile parameter.
9553 (build_type_psymtabs_1): Update.
9554 (process_skeletonless_type_unit): Update.
9555 (dwarf2_build_psymtabs_hard): Update.
9556 (load_partial_comp_unit): Add per_objfile parameter.
9557 (scan_partial_symbols): Update.
9558 (load_full_comp_unit): Add per_objfile parameter.
9559 (process_imported_unit_die): Update.
9560 (create_cus_hash_table): Update.
9561 (find_partial_die): Update.
9562 (dwarf2_read_addr_index): Update.
9563 (follow_die_offset): Update.
9564 (dwarf2_fetch_die_loc_sect_off): Update.
9565 (dwarf2_fetch_constant_bytes): Update.
9566 (dwarf2_fetch_die_type_sect_off): Update.
9567 (follow_die_sig_1): Update.
9568 (load_full_type_unit): Add per_objfile parameter.
9569 (read_signatured_type): Likewise.
9571 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9573 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9576 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9578 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9579 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9580 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9582 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9583 (create_cus_from_index): Update.
9584 (dwarf2_read_gdb_index): Update.
9585 (create_cus_from_debug_names): Update.
9586 (dwarf2_read_debug_names): Update.
9587 (get_abbrev_section_for_cu): Update.
9588 (create_all_comp_units): Update.
9589 (read_attribute_value): Update.
9590 (get_debug_line_section): Update.
9591 * dwarf2/index-cache.c (index_cache::store): Update.
9592 * dwarf2/index-write.c (save_gdb_index_command): Update.
9593 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9595 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9597 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9599 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9600 dwarf2_per_cu_data::per_bfd.
9601 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9602 (create_type_unit_group): Likewise.
9603 (queue_comp_unit): Remove reference to
9604 per_cu->dwarf2_per_objfile.
9605 (maybe_queue_comp_unit): Likewise.
9606 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9607 (create_cus_hash_table): Assign new field.
9609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9611 * dwarf2/read.c: Replace
9612 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9613 dwarf2_cu->per_objfile throughout.
9615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9617 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9618 parameter, don't use per_cu->dwarf2_per_objfile.
9619 (dw2_instantiate_symtab): Likewise.
9620 (dw2_find_last_source_symtab): Update.
9621 (dw2_map_expand_apply): Update.
9622 (dw2_lookup_symbol): Update.
9623 (dw2_expand_symtabs_for_function): Update.
9624 (dw2_expand_all_symtabs): Update.
9625 (dw2_expand_symtabs_with_fullname): Update.
9626 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9627 don't use per_cu->dwarf2_per_objfile.
9628 (dw2_expand_marked_cus): Update.
9629 (dw2_find_pc_sect_compunit_symtab): Update.
9630 (dw2_debug_names_lookup_symbol): Update.
9631 (dw2_debug_names_expand_symtabs_for_function): Update.
9632 (dw2_debug_names_map_matching_symbols): Update.
9633 (dwarf2_psymtab::expand_psymtab): Update.
9635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9637 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9638 <per_objfile>: New member.
9639 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9640 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9642 (cutu_reader::cutu_reader): Update.
9643 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9645 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9647 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9648 struct dwarf2_per_objfile.
9649 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9651 * dwarf2/read.c (set_die_type): Update.
9652 (get_die_type_at_offset): Update.
9654 2020-05-27 Tom Tromey <tom@tromey.com>
9655 Simon Marchi <simon.marchi@efficios.com>
9657 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9659 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9660 get_symtab, set_symtab>: New methods.
9661 <m_symtabs>: New field.
9662 (struct dwarf2_psymtab): Derive from partial_symtab.
9663 <readin_p, get_compunit_symtab>: Declare methods.
9664 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9665 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9667 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9668 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9669 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9670 (dw2_symtab_iter_next, dw2_print_stats)
9671 (dw2_expand_symtabs_with_fullname)
9672 (dw2_expand_symtabs_matching_one)
9673 (dw_expand_symtabs_matching_file_matcher)
9674 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9675 (dw2_debug_names_iterator::next)
9676 (dw2_debug_names_map_matching_symbols)
9677 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9678 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9679 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9681 (get_compunit_symtab, process_full_comp_unit)
9682 (process_full_type_unit): Update.
9683 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9685 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9687 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9688 then introduce a new dwarf2_per_objfile type.
9689 <read_line_string>: Move to the new dwarf2_per_objfile type.
9690 <objfile>: Likewise.
9691 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9692 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9693 dwarf2_per_objfile->per_bfd.
9694 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9695 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9696 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9697 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9698 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9699 (dwarf2_per_objfile::locate_sections): Rename to...
9700 (dwarf2_per_bfd::locate_sections): ... this.
9701 (dwarf2_per_objfile::get_cutu): Rename to...
9702 (dwarf2_per_bfd::get_cutu): ... this.
9703 (dwarf2_per_objfile::get_cu): Rename to...
9704 (dwarf2_per_bfd::get_cu): ... this.
9705 (dwarf2_per_objfile::get_tu): Rename to...
9706 (dwarf2_per_bfd::get_tu): ... this.
9707 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9708 (dwarf2_per_bfd::allocate_per_cu): ... this.
9709 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9710 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9711 (get_gdb_index_contents_ftype): Change parameter from
9712 dwarf2_per_objfile to dwarf2_per_bfd.
9713 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9714 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9716 2020-05-27 Tom Tromey <tom@tromey.com>
9717 Simon Marchi <simon.marchi@efficios.com>
9719 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9720 (allocate_piece_closure): Set "per_objfile" member.
9721 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9722 (locexpr_describe_location, loclist_describe_location): Use new
9724 * dwarf2/read.c (read_call_site_scope)
9725 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9726 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9727 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9728 handle_data_member_location): Set per_objfile member.
9729 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9731 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9733 2020-05-27 Tom Tromey <tom@tromey.com>
9735 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9736 allocate_signatured_type>: Declare new methods.
9737 <m_num_psymtabs>: New member.
9738 (struct dwarf2_per_cu_data) <index>: New member.
9739 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9740 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9741 (create_cu_from_index_list): Use allocate_per_cu.
9742 (create_signatured_type_table_from_index)
9743 (create_signatured_type_table_from_debug_names)
9744 (create_debug_type_hash_table, add_type_unit)
9745 (read_comp_units_from_section): Use allocate_signatured_type.
9747 2020-05-27 Tom Tromey <tom@tromey.com>
9749 * psymtab.c (partial_map_expand_apply)
9750 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9751 (psym_lookup_global_symbol_language)
9752 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9753 (psym_print_stats, psym_expand_symtabs_for_function)
9754 (psym_map_symbol_filenames, psym_map_matching_symbols)
9755 (psym_expand_symtabs_matching)
9756 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9757 (maintenance_check_psymtabs): Update.
9758 * psympriv.h (struct partial_symtab) <readin_p,
9759 get_compunit_symtab>: Add objfile parameter.
9760 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9762 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9763 get_compunit_symtab>: Likewise.
9764 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9766 2020-05-27 Tom Tromey <tom@tromey.com>
9768 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9770 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9771 (create_cu_from_index_list)
9772 (create_signatured_type_table_from_index)
9773 (create_signatured_type_table_from_debug_names)
9774 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9775 (dwarf2_create_include_psymtab)
9776 (create_debug_type_hash_table, add_type_unit)
9777 (create_type_unit_group, read_comp_units_from_section)
9778 (dwarf2_compute_name, create_cus_hash_table)
9779 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9780 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9782 (dw2_get_real_path): Likewise. Change argument to
9785 2020-05-27 Luis Machado <luis.machado@linaro.org>
9788 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9789 for ldrd (immediate).
9791 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9793 * command.h: Add comment giving the name of class_tui.
9794 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9795 create the fake command for the help for class_tui.
9797 2020-05-26 Tom Tromey <tromey@adacore.com>
9799 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9800 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9801 (val_atr): New function.
9802 (value_val_atr): Use it.
9803 * ada-valprint.c (print_optional_low_bound): Change low bound
9805 (val_print_packed_array_elements): Don't call discrete_position.
9806 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9807 discrete_position for enum types.
9808 * language.c (default_print_array_index): Change type.
9809 * language.h (struct language_defn) <la_print_array_index>: Add
9810 index_type parameter, change type of index_value.
9811 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9812 (default_print_array_index): Update.
9813 * valprint.c (maybe_print_array_index): Don't call
9814 value_from_longest. Update.
9815 (value_print_array_elements): Don't call discrete_position.
9817 2020-05-26 Tom Tromey <tromey@adacore.com>
9819 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9820 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9822 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9825 * avr-tdep.c (avr_integer_to_address): Return data or code
9826 address accordingly to the second 'type' argument of the
9829 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9831 * infcmd.c, inferior.h: (construct_inferior_arguments):
9832 Moved function from here to gdbsupport/common-inferior.{h,cc}
9834 2020-05-23 Tom Tromey <tom@tromey.com>
9836 Revert commit eca1f90c:
9837 * NEWS: Remove entry for completion styling.
9838 * completer.c (_rl_completion_prefix_display_length): Move
9840 (gdb_fnprint): Revert.
9841 (gdb_display_match_list_1): Likewise.
9842 * cli/cli-style.c (completion_prefix_style)
9843 (completion_difference_style, completion_suffix_style): Remove.
9844 (_initialize_cli_style): Revert.
9845 * cli/cli-style.h (completion_prefix_style)
9846 (completion_difference_style, completion_suffix_style): Don't
9849 2020-05-24 Pedro Alves <palves@redhat.com>
9851 * symtab.c (completion_list_add_name): Return boolean indication
9852 of whether the symbol matched.
9853 (completion_list_add_symbol): Don't try to remove C++ aliases if
9854 the symbol didn't match in the first place.
9855 * symtab.h (completion_list_add_name): Return bool.
9857 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9859 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9862 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9866 2020-05-23 Tom Tromey <tom@tromey.com>
9868 * NEWS: Add entry for completion styling.
9869 * completer.c (_rl_completion_prefix_display_length): Move
9870 declaration earlier.
9871 (gdb_fnprint): Use completion_style.
9872 (gdb_display_match_list_1): Likewise.
9873 * cli/cli-style.c (completion_prefix_style)
9874 (completion_difference_style, completion_suffix_style): New
9876 (_initialize_cli_style): Register new globals.
9877 * cli/cli-style.h (completion_prefix_style)
9878 (completion_difference_style, completion_suffix_style): Declare.
9880 2020-05-23 Pedro Alves <palves@redhat.com>
9882 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9883 (parse_escape): Use ISDIGIT instead of isdigit.
9884 (puts_debug): Use gdb_isprint instead of isprint.
9885 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9886 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9887 ISSPACE instead of isspace.
9888 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9890 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9891 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9892 instead of isxdigit and ISDIGIT instead of isdigit.
9894 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9896 * gdbtypes.h (struct type) <field>: New method.
9897 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9900 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9902 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9903 (TYPE_FIELDS): Use type::fields. Change all call sites that
9904 modify the propery to use type::set_fields instead.
9906 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9908 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9909 type::num_fields instead.
9911 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9913 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9915 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9916 that modify the number of fields to use type::set_num_fields
9919 2020-05-22 Tom Tromey <tromey@adacore.com>
9921 * compile/compile-object-load.h (munmap_list_free): Don't
9924 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9926 * annotate.c (annotate_source_line): Update return type, add call
9927 to update current symtab and line.
9928 * annotate.h (annotate_source_line): Update return type, and
9929 extend header comment.
9930 * source.c (info_line_command): Check annotation_level before
9931 calling annotate_source_line.
9932 * stack.c (print_frame_info): If calling annotate_source_line
9933 returns true, then don't print any other source line information.
9935 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9937 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9939 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9941 * coffread.c (patch_type): Remove NULL check before xfree.
9942 * corefile.c (set_gnutarget): Likewise.
9943 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9944 * exec.c (build_section_table): Likewise.
9945 * remote.c (remote_target::pass_signals): Likewise.
9946 * utils.c (n_spaces): Likewise.
9947 * cli/cli-script.c (document_command): Likewise.
9948 * i386-windows-tdep.c (core_process_module_section): Likewise.
9949 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9951 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9953 * symfile.c (reread_symbols): Clear objfile's section_offsets
9954 vector and section indices, re-compute them by calling
9957 2020-05-20 Tom Tromey <tromey@adacore.com>
9959 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9960 (desc_one_bound, desc_index_type): Compute field name.
9962 2020-05-20 Tom de Vries <tdevries@suse.de>
9965 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9967 2020-05-20 Alan Modra <amodra@gmail.com>
9970 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9972 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9973 passed to bfd_set_filename.
9974 * symfile-mem.c (add_vsyscall_page): Likewise for string
9975 passed to symbol_file_add_from_memory.
9976 (symbol_file_add_from_memory): Make name param a const char* and
9979 2020-05-20 Alan Modra <amodra@gmail.com>
9981 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9982 rather than accessing bfd->filename directly.
9983 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9984 and use bfd_section_name.
9985 * dwarf2/frame.c (decode_frame_entry): Likewise.
9986 * exec.c (exec_set_section_address): Likewise.
9987 * solib-aix.c (solib_aix_bfd_open): Likewise.
9988 * stap-probe.c (get_stap_base_address): Likewise.
9989 * symfile.c (reread_symbols): Likewise.
9991 2020-05-19 Tom Tromey <tromey@adacore.com>
9993 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9995 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9997 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9999 2020-05-19 Pedro Alves <palves@redhat.com>
10001 * NEWS (set exec-file-mismatch): Adjust entry.
10002 * exec.c: Include "build-id.h".
10003 (validate_exec_file): Try to match build IDs instead of filenames.
10004 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10005 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10006 and pass down 'warn_if_slow'.
10007 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10008 gdb_bfd_open_closure to pass it down.
10009 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10011 2020-05-19 Pedro Alves <palves@redhat.com>
10013 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10014 * target.c (target_fileio_open_1): Rename to target_fileio_open
10015 and make extern. Use bool.
10016 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10017 (target_fileio_read_alloc_1): Adjust.
10018 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10019 (target_fileio_open_warn_if_slow): Delete declaration.
10021 2020-05-19 Pedro Alves <palves@redhat.com>
10023 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10024 Adjust all callers.
10026 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10028 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10029 whether disp is negative.
10031 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10033 * symfile.h (struct symfile_segment_data)
10034 <~symfile_segment_data>: Remove.
10035 <segment_info>: Change to std::vector.
10036 * symfile.c (default_symfile_segments): Update.
10037 * elfread.c (elf_symfile_segments): Update.
10039 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10041 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10043 <segment_bases, segment_sizes>: Remove.
10044 * symfile.c (default_symfile_segments): Update.
10045 * elfread.c (elf_symfile_segments): Update.
10046 * remote.c (remote_target::get_offsets): Update.
10047 * solib-target.c (solib_target_relocate_section_addresses):
10050 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10052 * symfile.h (struct symfile_segment_data): Initialize fields.
10053 <~symfile_segment_data>: Add.
10054 (symfile_segment_data_up): New.
10055 (struct sym_fns) <sym_segments>: Return a
10056 symfile_segment_data_up.
10057 (default_symfile_segments): Return a symfile_segment_data_up.
10058 (free_symfile_segment_data): Remove.
10059 (get_symfile_segment_data): Return a symfile_segment_data_up.
10060 * symfile.c (default_symfile_segments): Likewise.
10061 (get_symfile_segment_data): Likewise.
10062 (free_symfile_segment_data): Remove.
10063 (symfile_find_segment_sections): Update.
10064 * elfread.c (elf_symfile_segments): Return a
10065 symfile_segment_data_up.
10066 * remote.c (remote_target::get_offsets): Update.
10067 * solib-target.c (solib_target_relocate_section_addresses):
10069 * symfile-debug.c (debug_sym_segments): Return a
10070 symfile_segment_data_up.
10072 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10075 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10076 Hardcode register numbers.
10079 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10080 procfs_find_LDT_entry): Remove.
10081 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10082 procfs_find_LDT_entry): Remove.
10083 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10086 2020-05-17 Pedro Alves <palves@redhat.com>
10087 Andrew Burgess <andrew.burgess@embecosm.com>
10088 Keno Fischer <keno@juliacomputing.com>
10091 * breakpoint.c (build_target_condition_list): Update comments.
10092 (build_target_command_list): Update comments and skip matching
10094 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10095 a separate function. Simplify "set breakpoint auto-hw off"
10097 (insert_breakpoints): Update comment.
10098 (tracepoint_locations_match): New parameter. For breakpoints,
10099 compare location types too, if the caller wants to.
10100 (handle_automatic_hardware_breakpoints): New functions.
10101 (bp_location_is_less_than): Also sort by location type and
10102 hardware breakpoint length.
10103 (update_global_location_list): Handle "set breakpoint auto-hw on"
10105 (update_breakpoint_locations): Ask breakpoint_locations_match to
10106 ignore location types.
10108 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10110 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10111 type::name instead.
10113 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10115 * gdbtypes.h (struct type) <name, set_name>: New methods.
10116 (TYPE_CODE): Use type::name. Change all call sites used to set
10117 the name to use type::set_name instead.
10119 2020-05-16 Tom Tromey <tom@tromey.com>
10121 * top.c (quit_force): Update.
10122 * infrun.c (handle_no_resumed): Update.
10123 * top.h (all_uis): New function.
10126 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10128 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10130 2020-05-16 Pedro Alves <palves@redhat.com>
10133 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10135 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10137 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10139 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10140 (sparc64_adi_info): Likewise.
10142 2020-05-15 Tom Tromey <tom@tromey.com>
10144 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10146 (lookup_objfile_from_block): Remove.
10147 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10148 (lookup_global_symbol): Use block_objfile.
10149 * symtab.h (lookup_objfile_from_block): Don't declare.
10150 * printcmd.c (clear_dangling_display_expressions): Use
10152 * parse.c (operator_check_standard): Use block_objfile.
10154 2020-05-15 Tom Tromey <tom@tromey.com>
10156 * language.c (language_alloc_type_symbol): Set
10158 * symtab.c (initialize_objfile_symbol): Remove.
10159 (allocate_symbol): Remove.
10160 (allocate_template_symbol): Remove.
10161 * dwarf2/read.c (fixup_go_packaging): Use "new".
10162 (new_symbol): Use "new".
10163 (read_variable): Don't call initialize_objfile_symbol. Use
10165 (read_func_scope): Use "new".
10166 * xcoffread.c (process_xcoff_symbol): Don't call
10167 initialize_objfile_symbol.
10168 (SYMBOL_DUP): Remove.
10169 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10171 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10172 (allocate_template_symbol): Don't declare.
10173 (struct symbol): Add copy constructor. Change defaults.
10174 * jit.c (finalize_symtab): Use "new".
10175 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10177 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10178 (common_block_end): Use "new".
10179 * mdebugread.c (parse_symbol): Use "new".
10180 (new_symbol): Likewise.
10182 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10184 * NEWS: Mention changes to help and apropos.
10186 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10188 * command.h (enum command_class): Improve comments, document
10189 that class_alias is for user-defined aliases, give the class
10190 name for each class, remove unused class_xdb.
10191 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10192 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10193 by a precise class.
10194 * infcmd.c (_initialize_infcmd): Likewise.
10195 * reverse.c (_initialize_reverse): Likewise.
10196 * stack.c (_initialize_stack): Likewise.
10197 * symfile.c (_initialize_symfile): Likewise.
10198 * tracepoint.c (_initialize_tracepoint): Likewise.
10200 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10202 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10203 when their aliased command is traversed.
10204 (help_cmd): Add fput_command_names_styled call to
10205 output command name and aliases when command has an alias.
10207 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10209 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10210 * cli/cli-decode.c (help_cmd_list): Declare as static,
10211 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10212 a command together with the command.
10213 (fput_command_name_styled, fput_command_names_styled): New functions.
10214 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10215 fput_command_name_styled.
10216 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10217 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10219 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10221 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10222 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10223 * command.h (cmd_show_list): Likewise.
10224 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10225 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10227 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10229 * unittests/command-def-selftests.c (traverse_command_structure):
10230 Verify all commands of a list have the same prefix command and
10231 that only the top cmdlist commands have a null prefix.
10233 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10236 as prefix, not one of its aliases.
10237 (set_cmd_prefix): Remove.
10238 (do_add_cmd): Centralize the setting of the prefix of a command, when
10239 command is defined after its full chain of prefix commands.
10240 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10241 (add_setshow_cmd_full): Likewise.
10242 (update_prefix_field_of_prefixed_commands): New function.
10243 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10244 update_prefix_field_of_prefixed_commands.
10245 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10246 addresses of remote_set_cmdlist and remote_show_cmdlist given
10247 as argument, not the address of an argument.
10248 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10249 * gdb/remote.c (_initialize_remote): Likewise.
10251 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10253 * cli/cli-cmds.c (alias_command): Check for an existing alias
10254 using lookup_cmd_composition, as valid_command_p is too strict
10255 and forbids aliases that are the prefix of an existing alias
10257 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10258 command is properly recognised as a valid command.
10260 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10262 * unittests/help-doc-selftests.c: Rename to
10263 unittests/command-def-selftests.c
10264 * unittests/command-def-selftests.c (help_doc_tests): Update some
10266 (command_structure_tests, traverse_command_structure): New namespace
10268 (command_structure_invariants_tests): New function.
10269 (_initialize_command_def_selftests) Renamed from
10270 _initialize_help_doc_selftests, register command_structure_invariants
10273 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10275 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10276 an alias of 'show'.
10278 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10280 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10281 ada_is_fixed_point_type. Update all callers.
10282 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10284 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10285 Update all callers.
10286 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10287 print_fixed_point_type. Update all callers.
10288 * ada-valprint.c (ada_value_print_num): Replace call to
10289 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10291 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10293 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10295 (cpu_supports_bts): Add CV_AMD case.
10297 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10298 Simon Marchi <simon.marchi@efficios.com>
10300 * infrun.c (stop_all_threads): Collect multiple wait events at
10303 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10305 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10306 type::code instead.
10308 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10310 * gdbtypes.h (struct type) <code, set_code>: New methods.
10311 (TYPE_CODE): Use type::code. Change all call sites used to set
10312 the code to use type::set_code instead.
10314 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10315 Tom de Vries <tdevries@suse.de>
10316 Pedro Alves <palves@redhat.com>
10319 * infrun.c (stop_all_threads): Do NOT ignore
10320 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10321 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10323 (handle_no_resumed): Remove code handling a live inferior with no
10325 * remote.c (has_single_non_exited_thread): New.
10326 (remote_target::update_thread_list): Do not delete a thread if is
10327 the last thread of the process.
10328 * thread.c (thread_select): Call delete_exited_threads instead of
10331 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10333 * infrun.c (stop_all_threads): Enable/disable thread events of all
10334 targets. Move a debug message denoting the end of the function
10335 into the SCOPED_EXIT block.
10337 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10339 * process-stratum-target.h: Include <set>.
10340 (all_non_exited_process_targets, switch_to_target_no_thread): New
10341 function declarations.
10342 * process-stratum-target.c (all_non_exited_process_targets)
10343 (switch_to_target_no_thread): New function implementations.
10345 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10347 * infrun.c (handle_inferior_event): Extract out a piece of code
10349 (mark_non_executing_threads): ...this new function.
10351 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10353 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10356 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10358 * regcache.c (regcache_read_pc_protected): New function
10359 implementation that returns 0 if the PC cannot read via
10360 'regcache_read_pc'.
10361 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10362 instead of 'regcache_read_pc'.
10363 (keep_going_pass_signal): Ditto.
10365 2020-05-13 Tom Tromey <tromey@adacore.com>
10367 * ada-lang.c (align_value): Remove.
10368 (ada_template_to_fixed_record_type_1): Use align_up.
10370 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10372 * async-event.c: Update the copyright year.
10373 * async-event.h: Update the copyright year.
10375 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10377 * objfiles.h (is_addr_in_objfile,
10378 shared_objfile_contains_address_p): Return bool.
10379 * objfile.c (is_addr_in_objfile,
10380 shared_objfile_contains_address_p): Return bool.
10382 2020-05-11 Tom Tromey <tromey@adacore.com>
10384 * cli/cli-cmds.c (info_command): Restore.
10385 (_initialize_cli_cmds): Use add_prefix_command for "info".
10386 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10388 2020-05-11 Tom Tromey <tromey@adacore.com>
10390 * ada-lang.c (ada_value_primitive_field): Now public.
10391 * ada-lang.h (ada_value_primitive_field): Declare.
10392 * ada-valprint.c (print_field_values): Use
10393 ada_value_primitive_field for wrapper fields.
10395 2020-05-11 Tom de Vries <tdevries@suse.de>
10397 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10400 2020-05-11 Tom de Vries <tdevries@suse.de>
10403 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10404 with length 0, if not gdb-produced.
10405 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10407 2020-05-09 Tom de Vries <tdevries@suse.de>
10410 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10413 2020-05-09 Tom Tromey <tom@tromey.com>
10415 * top.c (server_command): Now bool.
10416 * top.h (server_command): Now bool.
10418 2020-05-08 Tom Tromey <tromey@adacore.com>
10420 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10421 already being processed.
10423 2020-05-08 Tom Tromey <tom@tromey.com>
10425 * printcmd.c (struct display) <next>: Remove.
10426 <display>: New constructor.
10427 <exp_string>: Now a std::string.
10428 <enabled_p>: Now a bool.
10429 (display_number): Move definition earlier.
10430 (displays): Rename from display_chain. Now a std::vector.
10431 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10432 (display_command): Update.
10433 (do_one_display, disable_display)
10434 (enable_disable_display_command, do_enable_disable_display):
10436 (free_display): Remove.
10437 (clear_displays): Rewrite.
10438 (delete_display): Update.
10439 (map_display_numbers): Use function_view. Remove "data"
10441 (do_delete_display): Remove.
10442 (undisplay_command): Update.
10443 (do_one_display, do_displays, disable_display)
10444 (info_display_command): Update.
10445 (do_enable_disable_display): Remove.
10446 (enable_disable_display_command)
10447 (clear_dangling_display_expressions): Update.
10449 2020-05-08 Tom Tromey <tom@tromey.com>
10451 * symtab.c (set_symbol_cache_size)
10452 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10453 (maintenance_print_symbol_cache_statistics): Update.
10454 * symmisc.c (print_symbol_bcache_statistics)
10455 (print_objfile_statistics, maintenance_print_objfiles)
10456 (maintenance_info_symtabs, maintenance_check_symtabs)
10457 (maintenance_expand_symtabs, maintenance_info_line_tables):
10459 * symfile-debug.c (set_debug_symfile): Update.
10460 * source.c (forget_cached_source_info): Update.
10461 * python/python.c (gdbpy_progspaces): Update.
10462 * psymtab.c (maintenance_info_psymtabs): Update.
10463 * probe.c (parse_probes): Update.
10464 * linespec.c (iterate_over_all_matching_symtabs)
10465 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10466 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10467 * exec.c (exec_target::close): Update.
10468 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10469 * breakpoint.c (print_one_breakpoint_location)
10470 (create_longjmp_master_breakpoint)
10471 (create_std_terminate_master_breakpoint): Update.
10472 * progspace.c (program_spaces): Now a std::vector.
10473 (maybe_new_address_space): Update.
10474 (add_program_space): Remove.
10475 (program_space::program_space): Update.
10476 (remove_program_space): Update.
10477 (number_of_program_spaces): Remove.
10478 (print_program_space, update_address_spaces): Update.
10479 * progspace.h (program_spaces): Change type.
10480 (ALL_PSPACES): Remove.
10481 (number_of_program_spaces): Don't declare.
10482 (struct program_space) <next>: Remove.
10484 2020-05-08 Tom Tromey <tom@tromey.com>
10486 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10487 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10488 (enable_break): Update.
10489 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10490 (frv_fdpic_find_canonical_descriptor): Update.
10491 (frv_fetch_objfile_link_map): Update.
10492 * progspace.c (program_space::free_all_objfiles): Update.
10493 (program_space::solibs): New method.
10494 * progspace.h (struct program_space) <solibs>: New method.
10495 * solist.h (master_so_list): Don't declare.
10496 (ALL_SO_LIBS): Remove.
10497 * solib.h (so_list_head): Remove.
10498 (update_solib_list): Update comment.
10499 * solib.c (master_so_list): Remove.
10500 (solib_used, update_solib_list, solib_add)
10501 (info_sharedlibrary_command, clear_solib)
10502 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10504 2020-05-08 Tom Tromey <tom@tromey.com>
10506 * extension.c (extension_languages): Now a std::array.
10507 (ALL_EXTENSION_LANGUAGES): Remove.
10508 (get_ext_lang_defn, get_ext_lang_of_file)
10509 (eval_ext_lang_from_control_command): Update.
10510 (finish_ext_lang_initialization)
10511 (auto_load_ext_lang_scripts_for_objfile)
10512 (ext_lang_type_printers::ext_lang_type_printers)
10513 (apply_ext_lang_type_printers)
10514 (ext_lang_type_printers::~ext_lang_type_printers)
10515 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10516 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10517 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10518 (get_matching_xmethod_workers, ext_lang_colorize)
10519 (ext_lang_before_prompt): Update.
10520 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10522 2020-05-08 Tom Tromey <tom@tromey.com>
10524 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10526 <swap_string, m_string>: Remove.
10527 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10529 * stabsread.c (define_symbol, read_type): Update.
10530 * linespec.c (find_linespec_symbols): Update.
10531 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10532 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10533 * dbxread.c (read_dbx_symtab): Update.
10534 * cp-support.h (cp_canonicalize_string_full)
10535 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10536 Return unique_xmalloc_ptr.
10537 * cp-support.c (inspect_type): Update.
10538 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10539 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10541 * c-typeprint.c (print_name_maybe_canonical): Update.
10542 * break-catch-throw.c (check_status_exception_catchpoint):
10545 2020-05-08 Tom de Vries <tdevries@suse.de>
10547 * infrun.c (follow_fork): Copy current_line and current_symtab to
10550 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10552 * async-event.c (struct async_signal_handler, struct
10553 async_event_handler): Reformat, remove typedef.
10555 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10557 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10558 access thistype->main_type->dyn_prop_list directly.
10560 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10562 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10563 (remove_dyn_prop): Remove. Update all users to use
10564 type::remove_dyn_prop.
10565 * gdbtypes.c (remove_dyn_prop): Rename to...
10566 (type::remove_dyn_prop): ... this.
10568 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10570 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10571 (add_dyn_prop): Remove. Update all users to use
10572 type::add_dyn_prop.
10573 * gdbtypes.c (add_dyn_prop): Rename to...
10574 (type::add_dyn_prop): ... this.
10576 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10578 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10579 (get_dyn_prop): Remove. Update all users to use
10581 * gdbtypes.c (get_dyn_prop): Rename to...
10582 (type::dyn_prop): ... this.
10584 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10586 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10588 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10590 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10591 instruction, skip it if it's there.
10593 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10595 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10597 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10599 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10600 * gdbtypes.c (recursive_dump_type): Remove use of
10603 2020-05-03 Tom Tromey <tom@tromey.com>
10605 * breakpoint.c (catch_command, tcatch_command): Remove.
10606 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10607 add_show_prefix_cmd.
10608 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10609 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10611 (add_internal_problem_command): Use add_basic_prefix_cmd,
10612 add_show_prefix_cmd.
10613 * mips-tdep.c (set_mipsfpu_command): Remove.
10614 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10615 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10616 (_initialize_index_cache): Use add_basic_prefix_cmd.
10617 * memattr.c (dummy_cmd): Remove.
10618 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10619 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10620 (_initialize_tui_win): Use add_basic_prefix_cmd,
10621 add_show_prefix_cmd.
10622 * cli/cli-logging.c (set_logging_command): Remove.
10623 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10624 add_show_prefix_cmd.
10625 (show_logging_command): Remove.
10626 * target.c (target_command): Remove.
10627 (add_target): Use add_basic_prefix_cmd.
10629 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10631 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10633 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10635 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10638 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10640 * nbsd-nat.c (nbsd_enable_proc_events)
10641 (nbsd_nat_target::post_startup_inferior): Add.
10642 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10643 (nbsd_nat_target::update_thread_list): Rewrite.
10644 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10645 "PTRACE_LWP_CREATE".
10646 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10648 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10650 * stack.c (_initialize_stack): Remove duplicated creation
10651 of "frame" command and "f" alias.
10653 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10656 * gdbtypes.c (check_typedef): Calculate size of array of
10659 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10662 * i386-tdep.c (i386_push_dummy_call): Call
10663 i386_thiscall_push_dummy_call.
10664 (i386_thiscall_push_dummy_call): New function.
10665 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10666 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10667 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10669 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10671 * gdbarch.sh (do_read): Add shellcheck disable directive for
10674 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10676 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10677 "referenced but not assigned" warning.
10679 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10681 * gdbarch.sh: Remove code that sets fallbackdefault.
10683 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10685 * gdbarch.sh: Use shell operators && and || instead of
10688 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10690 * gdbarch.sh: Use $(...) instead of `...`.
10692 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10694 * gdbarch.sh: Use double quotes around variables.
10696 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10698 * gdbarch.sh: Use %s with printf, instead of variables in the
10701 2020-04-29 Tom Tromey <tromey@adacore.com>
10704 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10706 (read_enumeration_type): Call
10707 update_enumeration_type_from_children later. Update comments.
10708 (process_enumeration_scope): Don't create type fields.
10710 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10712 * nbsd-tdep.c: Include "xml-syscall.h".
10713 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10715 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10717 * nbsd-nat.c: Include "sys/wait.h".
10718 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10719 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10720 (nbsd_nat_target::remove_exec_catchpoint)
10721 (nbsd_nat_target::set_syscall_catchpoint): Add.
10722 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10723 (nbsd_nat_target::insert_exec_catchpoint)
10724 (nbsd_nat_target::remove_exec_catchpoint)
10725 (nbsd_nat_target::set_syscall_catchpoint): Add.
10726 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10727 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10728 `nbsd_get_syscall_number'.
10730 2020-04-29 Tom Tromey <tom@tromey.com>
10732 * stack.c (print_block_frame_labels): Remove.
10734 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10737 * ada-valprint.c (val_print_packed_array_elements): Move array
10738 end bracket to new line.
10739 (ada_val_print_string): Remove extra spaces before first array
10741 * c-valprint.c (c_value_print_array): Likewise.
10742 * m2-valprint.c (m2_print_array_contents): Likewise.
10743 (m2_value_print_inner): Likewise.
10744 * p-valprint.c (pascal_value_print_inner): Likewise.
10745 * valprint.c (generic_val_print_array): Likewise.
10746 (value_print_array_elements): Move first array element and array
10747 end bracket to new line.
10749 2020-04-29 Tom de Vries <tdevries@suse.de>
10752 * linespec.c (find_method): Fix ix calculation.
10754 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10756 * syscalls/update-netbsd.sh: New file.
10757 * syscalls/netbsd.xml: Regenerate.
10758 * data-directory/Makefile.in: Register `netbsd.xml' in
10761 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10763 * syscalls/update-freebsd.sh: Add double quotes.
10765 2020-04-28 Tom Tromey <tom@tromey.com>
10768 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10769 (cmdpy_init): Allow class_tui.
10771 2020-04-28 Mark Williams <mark@myosotissp.com>
10774 * dwarf2read.c: Add missing assingments to list_in_scope when
10775 start_symtab was already called.
10777 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10780 * dwarf2/read.c (offset_map_type): Use
10781 gdb:hash_enum<sect_offset> as hash function.
10783 2020-04-28 Tom de Vries <tdevries@suse.de>
10785 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10786 with DW_AT_signature.
10788 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10790 * configure.ac: Remove check for fs_base/gs_base in
10792 * configure: Re-generate.
10793 * config.in: Re-generate.
10794 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10795 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10796 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10798 2020-04-27 Luis Machado <luis.machado@linaro.org>
10800 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10801 problematic inline frame unwinding situation.
10802 * frame.c (frame_id_computed_p): New function.
10803 * frame.h (frame_id_computed_p): New prototype.
10805 2020-04-26 Tom Tromey <tom@tromey.com>
10807 * command.h (enum command_class) <class_pseudo>: Remove.
10809 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10811 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10814 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10816 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10817 `PT_GET_PROCESS_STATE' block.
10819 2020-04-24 Tom Tromey <tom@tromey.com>
10821 * symtab.h (symbol_get_demangled_name): Don't declare.
10822 * symtab.c (symbol_get_demangled_name): Remove.
10823 (general_symbol_info::natural_name)
10824 (general_symbol_info::demangled_name): Update.
10826 2020-04-24 Tom Tromey <tom@tromey.com>
10829 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10831 2020-04-24 Tom Tromey <tom@tromey.com>
10834 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10836 (new_symbol): Likewise.
10837 * compile/compile-object-load.c (get_out_value_type): Use
10838 symbol_matches_search_name.
10840 2020-04-24 Tom Tromey <tom@tromey.com>
10842 * dwarf2/read.c (add_partial_symbol): Do not call
10843 compute_and_set_names.
10845 2020-04-24 Tom Tromey <tom@tromey.com>
10847 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10850 2020-04-24 Tom Tromey <tom@tromey.com>
10852 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10853 (add_psymbol_to_list): New overload. Make old overload call new
10855 * psympriv.h (add_psymbol_to_list): New overload.
10857 2020-04-24 Tom Tromey <tom@tromey.com>
10859 * dwarf2/read.c (partial_die_info::read) <case
10860 DW_AT_linkage_name>: Use value_as_string.
10861 (dwarf2_string_attr): Use value_as_string.
10862 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10864 * dwarf2/attribute.c (attribute::value_as_string): New method.
10866 2020-04-24 Tom Tromey <tom@tromey.com>
10868 * symtab.c (general_symbol_info::natural_name)
10869 (general_symbol_info::demangled_name): Check for language_rust.
10871 2020-04-24 Tom Tromey <tom@tromey.com>
10873 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10874 (dwarf2_physname): ... from here.
10875 (partial_die_info::read): Add Rust "{" hack.
10877 2020-04-24 Tom Tromey <tom@tromey.com>
10879 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10881 (symbol_set_demangled_name): Don't declare.
10882 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10883 symbol_set_demangled_name.
10884 (general_symbol_info::set_language)
10885 (general_symbol_info::compute_and_set_names): Update.
10886 * minsyms.c (minimal_symbol_reader::install): Update.
10887 * dwarf2/read.c (new_symbol): Update.
10889 2020-04-24 Tom Tromey <tromey@adacore.com>
10892 * python/py-type.c (convert_field): Handle
10893 FIELD_LOC_KIND_DWARF_BLOCK.
10894 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10895 (typy_get_dynamic): Nw function.
10896 (type_object_getset): Add "dynamic".
10899 2020-04-24 Tom Tromey <tromey@adacore.com>
10901 * ada-typeprint.c (print_choices, print_variant_part)
10902 (print_record_field_types_dynamic): New functions.
10903 (print_record_field_types): Use print_record_field_types_dynamic.
10905 2020-04-24 Tom Tromey <tromey@adacore.com>
10907 * dwarf2/read.c (handle_data_member_location): New overload.
10908 (dwarf2_add_field): Use it.
10909 (decode_locdesc): Add "computed" parameter. Update comment.
10910 * gdbtypes.c (is_dynamic_type_internal): Also look for
10911 FIELD_LOC_KIND_DWARF_BLOCK.
10912 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10913 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10914 virtual base classes.
10915 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10916 FIELD_LOC_KIND_DWARF_BLOCK.
10918 2020-04-24 Tom Tromey <tromey@adacore.com>
10920 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10921 * gdbtypes.c (is_dynamic_type_internal): Check
10922 TYPE_HAS_DYNAMIC_LENGTH.
10923 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10924 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10926 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10929 2020-04-24 Tom Tromey <tromey@adacore.com>
10931 * dwarf2/read.c (struct variant_field): Rewrite.
10932 (struct variant_part_builder): New.
10933 (struct nextfield): Remove "variant" field. Add "offset".
10934 (struct field_info): Add "current_variant_part" and
10936 (alloc_discriminant_info): Remove.
10937 (alloc_rust_variant): New function.
10938 (quirk_rust_enum): Update.
10939 (dwarf2_add_field): Set "offset" member. Don't handle
10940 DW_TAG_variant_part.
10941 (offset_map_type): New typedef.
10942 (convert_variant_range, create_one_variant)
10943 (create_one_variant_part, create_variant_parts)
10944 (add_variant_property): New functions.
10945 (dwarf2_attach_fields_to_type): Call add_variant_property.
10946 (read_structure_type): Don't handle DW_TAG_variant_part.
10947 (handle_variant_part, handle_variant): New functions.
10948 (handle_struct_member_die): Use them.
10949 (process_structure_scope): Don't handle variant parts.
10950 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10951 (struct discriminant_info): Remove.
10952 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10953 (struct main_type) <flag_discriminated_union>: Remove.
10954 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10955 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10956 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10958 * valops.c (value_union_variant): Remove.
10959 * value.h (value_union_variant): Don't declare.
10961 2020-04-24 Tom Tromey <tromey@adacore.com>
10963 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10964 (ada_value_primitive_packed_val): Update.
10965 * ada-valprint.c (ada_value_print_1): Update.
10966 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10967 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10968 just an address. Use evaluate_for_locexpr_baton.
10969 (dwarf2_evaluate_property): Update.
10970 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10972 * findvar.c (default_read_var_value): Update.
10973 * gdbtypes.c (compute_variant_fields_inner)
10974 (resolve_dynamic_type_internal): Update.
10975 (resolve_dynamic_type): Change type of valaddr parameter.
10976 * gdbtypes.h (resolve_dynamic_type): Update.
10977 * valarith.c (value_subscripted_rvalue): Update.
10978 * value.c (value_from_contents_and_address): Update.
10980 2020-04-24 Tom Tromey <tromey@adacore.com>
10982 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10983 "push_initial_value" parameter.
10984 (dwarf2_evaluate_property): Likewise.
10985 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10987 2020-04-24 Tom Tromey <tromey@adacore.com>
10989 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10990 (variant::matches, compute_variant_fields_recurse)
10991 (compute_variant_fields_inner, compute_variant_fields): New
10993 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10994 Use resolved_type after type is made.
10995 (operator==): Add new cases.
10996 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10997 (struct discriminant_range, struct variant, struct variant_part):
10999 (union dynamic_prop_data) <variant_parts, original_type>: New
11001 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11002 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11004 * value.c (unpack_bits_as_long): Now public.
11005 * value.h (unpack_bits_as_long): Declare.
11007 2020-04-24 Tom Tromey <tromey@adacore.com>
11009 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11010 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11012 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11014 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11016 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11018 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11019 (remove_fork_catchpoint, post_startup_inferior)
11020 (post_attach): Move...
11021 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11022 (remove_fork_catchpoint, post_startup_inferior)
11023 (post_attach): ...here.
11024 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11025 (remove_fork_catchpoint, post_startup_inferior)
11026 (post_attach): Move...
11027 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11028 (remove_fork_catchpoint, post_startup_inferior)
11029 (post_attach): ...here.
11031 2020-04-24 Tom Tromey <tromey@adacore.com>
11033 * nat/windows-nat.h (struct windows_thread_info)
11034 <pc_adjusted>: New member.
11035 * windows-nat.c (windows_fetch_one_register): Check
11037 (windows_nat_target::get_windows_debug_event)
11038 (windows_nat_target::wait): Set pc_adjusted.
11040 2020-04-24 Tom de Vries <tdevries@suse.de>
11042 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11043 Run gdb-add-index inside temp dir.
11045 2020-04-23 Tom Tromey <tromey@adacore.com>
11047 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11050 2020-04-23 Luis Machado <luis.machado@linaro.org>
11052 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11053 get_frame_register instead of gdbarch_unwind_pc.
11055 2020-04-23 Tom de Vries <tdevries@suse.de>
11057 * symtab.c (lookup_global_symbol): Prefer def over decl.
11059 2020-04-23 Tom de Vries <tdevries@suse.de>
11062 * block.c (best_symbol, better_symbol): Promote to external.
11063 * block.h (best_symbol, better_symbol): Declare.
11064 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11067 2020-04-23 Tom Tromey <tromey@adacore.com>
11070 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11071 "const char *", not a "const std::string &".
11072 <name_and_matcher::operator==>: Update.
11073 * unittests/lookup_name_info-selftests.c: Change type of
11076 2020-04-23 Tom Tromey <tom@tromey.com>
11078 * inferior.h (iterate_over_inferiors): Don't declare.
11079 * inferior.c (iterate_over_inferiors): Remove.
11080 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11082 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11083 use iterate_over_inferiors.
11084 (darwin_resume_inferior_it)
11085 (struct resume_inferior_threads_param)
11086 (darwin_resume_inferior_threads_it): Remove.
11087 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11089 2020-04-23 Tom de Vries <tdevries@suse.de>
11091 * blockframe.c (find_pc_partial_function): Use
11092 find_pc_sect_compunit_symtab rather than
11093 objfile->sf->qf->find_pc_sect_compunit_symtab.
11095 2020-04-22 Tom de Vries <tdevries@suse.de>
11098 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11101 2020-04-22 Tom de Vries <tdevries@suse.de>
11104 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11107 2020-04-22 Tom de Vries <tdevries@suse.de>
11110 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11111 CU if already created.
11113 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11115 * infrun.c (displaced_step_fixup): Switch to the event_thread
11116 before calling displaced_step_restore, not after.
11118 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11120 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11121 its inferior is not recorded by us.
11122 (record_btrace_target_open): Replace call to
11123 all_non_exited_threads () with call to current_inferior
11124 ()->non_exited_threads ().
11125 (record_btrace_target::stop_recording): Likewise.
11126 (record_btrace_target::close): Likewise.
11127 (record_btrace_target::wait): Likewise.
11128 (record_btrace_target::record_stop_replaying): Likewise.
11130 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11132 * btrace.c (btrace_enable): Throw an error on double enables and
11133 when enabling recording fails.
11134 (btrace_disable): Throw an error if the thread is not recorded.
11136 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11138 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11139 request if we do not have a thread_info.
11141 2020-04-21 Tom de Vries <tdevries@suse.de>
11145 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11146 exception in get_frame_id.
11148 2020-04-20 Tom Tromey <tromey@adacore.com>
11150 * python/python.c (struct gdbpy_event): Mark move constructor as
11152 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11153 constructor as noexcept.
11154 * completer.h (struct completion_result): Mark move constructor as
11156 * completer.c (completion_result::completion_result): Use
11157 initialization style. Don't call reset_match_list.
11159 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11161 * MAINTAINERS (Write After Approval): Add myself.
11163 2020-04-18 Tom Tromey <tom@tromey.com>
11165 * windows-tdep.c (init_w32_command_list)
11166 (w32_prefix_command_valid): Restore.
11167 (_initialize_windows_tdep): Call init_w32_command_list.
11169 2020-04-18 Tom Tromey <tom@tromey.com>
11171 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11172 * value.c (value_fn_field): Update.
11173 * valops.c (find_function_in_inferior)
11174 (value_allocate_space_in_inferior): Update.
11175 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11177 * tui/tui-source.c (tui_source_window::set_contents): Update.
11178 * symtab.c (lookup_global_or_static_symbol)
11179 (find_function_start_sal_1, skip_prologue_sal)
11180 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11181 * symmisc.c (dump_msymbols, dump_symtab_1)
11182 (maintenance_print_one_line_table): Update.
11183 * symfile.c (init_entry_point_info, section_is_mapped)
11184 (list_overlays_command, simple_read_overlay_table)
11185 (simple_overlay_update_1): Update.
11186 * stap-probe.c (handle_stap_probe): Update.
11187 * stabsread.c (dbx_init_float_type, define_symbol)
11188 (read_one_struct_field, read_enum_type, read_range_type): Update.
11189 * source.c (info_line_command): Update.
11190 * python/python.c (gdbpy_source_objfile_script)
11191 (gdbpy_execute_objfile_script): Update.
11192 * python/py-type.c (save_objfile_types): Update.
11193 * python/py-objfile.c (py_free_objfile): Update.
11194 * python/py-inferior.c (python_new_objfile): Update.
11195 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11196 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11197 (maintenance_check_psymtabs): Update.
11198 * printcmd.c (info_address_command): Update.
11199 * objfiles.h (struct objfile) <arch>: New method, from
11201 (get_objfile_arch): Don't declare.
11202 * objfiles.c (get_objfile_arch): Remove.
11203 (filter_overlapping_sections): Update.
11204 * minsyms.c (msymbol_is_function): Update.
11205 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11206 (output_nondebug_symbol): Update.
11207 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11208 (mdebug_expand_psymtab): Update.
11209 * machoread.c (macho_add_oso_symfile): Update.
11210 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11212 * linux-fork.c (checkpoint_command): Update.
11213 * linespec.c (convert_linespec_to_sals): Update.
11214 * jit.c (finalize_symtab): Update.
11215 * infrun.c (insert_exception_resume_from_probe): Update.
11216 * ia64-tdep.c (ia64_find_unwind_table): Update.
11217 * hppa-tdep.c (internalize_unwinds): Update.
11218 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11220 * gcore.c (call_target_sbrk): Update.
11221 * elfread.c (record_minimal_symbol, elf_symtab_read)
11222 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11223 (elf_gnu_ifunc_resolve_by_got): Update.
11224 * dwarf2/read.c (create_addrmap_from_index)
11225 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11226 (read_debug_names_from_section)
11227 (process_psymtab_comp_unit_reader, add_partial_symbol)
11228 (add_partial_subprogram, process_full_comp_unit)
11229 (read_file_scope, read_func_scope, read_lexical_block_scope)
11230 (read_call_site_scope, dwarf2_ranges_read)
11231 (dwarf2_record_block_ranges, dwarf2_add_field)
11232 (mark_common_block_symbol_computed, read_tag_pointer_type)
11233 (read_tag_string_type, dwarf2_init_float_type)
11234 (dwarf2_init_complex_target_type, read_base_type)
11235 (partial_die_info::read, partial_die_info::read)
11236 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11237 (dwarf2_fetch_die_loc_sect_off): Update.
11238 * dwarf2/loc.c (dwarf2_find_location_expression)
11239 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11240 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11241 (dwarf2_loc_desc_get_symbol_read_needs)
11242 (locexpr_describe_location_piece, locexpr_describe_location_1)
11243 (loclist_describe_location): Update.
11244 * dwarf2/index-write.c (write_debug_names): Update.
11245 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11246 * dtrace-probe.c (dtrace_process_dof): Update.
11247 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11248 (process_one_symbol): Update.
11249 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11250 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11251 (coff_read_enum_type): Update.
11252 * cli/cli-cmds.c (edit_command, list_command): Update.
11253 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11254 * breakpoint.c (create_overlay_event_breakpoint)
11255 (create_longjmp_master_breakpoint)
11256 (create_std_terminate_master_breakpoint)
11257 (create_exception_master_breakpoint, get_sal_arch): Update.
11258 * block.c (block_gdbarch): Update.
11259 * annotate.c (annotate_source_line): Update.
11261 2020-04-17 Tom Tromey <tromey@adacore.com>
11263 * auto-load.c (show_auto_load_cmd): Remove.
11264 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11265 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11266 (maintenance_print_arc_command): Remove.
11267 * tui/tui-win.c (tui_command): Remove.
11268 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11269 * tui/tui-layout.c (tui_layout_command): Remove.
11270 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11271 * python/python.c (user_set_python, user_show_python): Remove.
11272 (_initialize_python): Use add_basic_prefix_cmd,
11273 add_show_prefix_cmd.
11274 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11275 (install_gdb_commands): Use add_basic_prefix_cmd,
11276 add_show_prefix_cmd.
11277 (info_guile_command): Remove.
11278 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11279 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11280 add_show_prefix_cmd.
11281 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11282 Remove do_set and do_show parameters.
11283 * cli/cli-style.c (set_style, show_style): Remove.
11284 (_initialize_cli_style): Use add_basic_prefix_cmd,
11285 add_show_prefix_cmd.
11286 (cli_style_option::add_setshow_commands): Remove do_set and
11287 do_show parameters.
11288 (cli_style_option::add_setshow_commands): Use
11289 add_basic_prefix_cmd, add_show_prefix_cmd.
11290 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11291 (set_style_name): Remove.
11292 * cli/cli-dump.c (dump_command, append_command): Remove.
11293 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11294 (tekhex_dump_command, binary_dump_command)
11295 (binary_append_command): Remove.
11296 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11297 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11298 (init_w32_command_list): Remove; move into ...
11299 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11300 * valprint.c (set_print, show_print, set_print_raw)
11301 (show_print_raw): Remove.
11302 (_initialize_valprint): Use add_basic_prefix_cmd,
11303 add_show_prefix_cmd.
11304 * typeprint.c (set_print_type, show_print_type): Remove.
11305 (_initialize_typeprint): Use add_basic_prefix_cmd,
11306 add_show_prefix_cmd.
11307 * record.c (set_record_command, show_record_command): Remove.
11308 (_initialize_record): Use add_basic_prefix_cmd,
11309 add_show_prefix_cmd.
11310 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11311 add_show_prefix_cmd.
11312 (info_command, show_command, set_debug, show_debug): Remove.
11313 * top.h (set_history, show_history): Don't declare.
11314 * top.c (set_history, show_history): Remove.
11315 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11316 (unset_tdesc_cmd): Remove.
11317 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11318 add_show_prefix_cmd.
11319 * symtab.c (info_module_command): Remove.
11320 (_initialize_symtab): Use add_basic_prefix_cmd.
11321 * symfile.c (overlay_command): Remove.
11322 (_initialize_symfile): Use add_basic_prefix_cmd.
11323 * sparc64-tdep.c (info_adi_command): Remove.
11324 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11325 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11326 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11327 add_show_prefix_cmd.
11328 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11329 (_initialize_serial): Use add_basic_prefix_cmd,
11330 add_show_prefix_cmd.
11331 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11332 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11333 add_show_prefix_cmd.
11334 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11335 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11336 add_show_prefix_cmd.
11337 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11338 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11339 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 * remote.c (remote_command, set_remote_cmd): Remove.
11342 (_initialize_remote): Use add_basic_prefix_cmd.
11343 * record-full.c (set_record_full_command)
11344 (show_record_full_command): Remove.
11345 (_initialize_record_full): Use add_basic_prefix_cmd,
11346 add_show_prefix_cmd.
11347 * record-btrace.c (cmd_set_record_btrace)
11348 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11349 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11350 (cmd_show_record_btrace_pt): Remove.
11351 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11352 add_show_prefix_cmd.
11353 * ravenscar-thread.c (set_ravenscar_command)
11354 (show_ravenscar_command): Remove.
11355 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11356 add_show_prefix_cmd.
11357 * mips-tdep.c (show_mips_command, set_mips_command)
11358 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11359 add_show_prefix_cmd.
11360 * maint.c (maintenance_command, maintenance_info_command)
11361 (maintenance_check_command, maintenance_print_command)
11362 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11363 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 (show_per_command_cmd): Remove.
11366 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11368 (maintenance_show_test_settings_cmd): Remove.
11369 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11370 add_show_prefix_cmd.
11371 * maint-test-options.c (maintenance_test_options_command):
11373 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11374 * macrocmd.c (macro_command): Remove
11375 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11376 * language.c (set_check, show_check): Remove.
11377 (_initialize_language): Use add_basic_prefix_cmd,
11378 add_show_prefix_cmd.
11379 * infcmd.c (unset_command): Remove.
11380 (_initialize_infcmd): Use add_basic_prefix_cmd.
11381 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11382 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11383 add_show_prefix_cmd.
11384 * go32-nat.c (go32_info_dos_command): Remove.
11385 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11386 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11387 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11388 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11389 (_initialize_frame): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11392 (_initialize_dcache): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 * cp-support.c (maint_cplus_command): Remove.
11395 (_initialize_cp_support): Use add_basic_prefix_cmd.
11396 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11397 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11398 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11399 add_basic_prefix_cmd, add_show_prefix_cmd.
11400 * breakpoint.c (save_command): Remove.
11401 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11402 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11403 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11404 add_show_prefix_cmd.
11405 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11406 (set_ada_command, show_ada_command): Remove.
11407 (_initialize_ada_language): Use add_basic_prefix_cmd,
11408 add_show_prefix_cmd.
11409 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11411 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11413 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11414 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11416 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11418 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11421 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11423 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11424 import table is not at beginning of .idata section.
11426 2020-04-16 Pedro Alves <palves@redhat.com>
11428 * inferior.c (delete_inferior): Use delete operator directly
11429 instead of delete_program_space.
11430 * progspace.c (add_program_space): New, factored out from
11431 program_space::program_space.
11432 (remove_program_space): New, factored out from
11433 delete_program_space.
11434 (program_space::program_space): Remove intro comment. Rewrite.
11435 (program_space::~program_space): Remove intro comment. Call
11436 remove_program_space.
11437 (delete_program_space): Delete.
11438 * progspace.h (program_space::program_space): Make explicit. Move
11439 intro comment here, adjusted.
11440 (program_space::~program_space): Move intro comment here,
11442 (delete_program_space): Remove.
11444 2020-04-16 Tom Tromey <tromey@adacore.com>
11446 * windows-nat.c (windows_nat::handle_access_violation): New
11448 * nat/windows-nat.h (handle_access_violation): Declare.
11449 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11450 windows-nat.c. Call handle_access_violation.
11452 2020-04-16 Tom de Vries <tdevries@suse.de>
11455 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11456 CUs without psymtab.
11458 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11460 * python/python.c (do_start_initialization): Don't call
11461 PyEval_InitThreads for Python 3.9 and beyond.
11463 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11465 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11467 (obsd_nat_target::wait): Likewise.
11469 2020-04-15 Tom Tromey <tromey@adacore.com>
11471 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11472 (DEBUG_EXCEPT): Use debug_printf.
11474 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11476 * completer.c (class completion_tracker::completion_hash_entry)
11477 <hash_name>: New member function.
11478 (completion_tracker::discard_completions): New callback to hash a
11479 completion_hash_entry, pass this to htab_create_alloc.
11481 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11483 * windows-nat.c (windows_make_so): Warn rather than stopping with
11484 an error if realpath() fails.
11486 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11488 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11489 (nbsd_nat_target::info_proc): Add do_status.
11491 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11492 Tom de Vries <tdevries@suse.de>
11495 * psympriv.h (struct partial_symtab::read_symtab)
11496 (struct partial_symtab::expand_psymtab)
11497 (struct partial_symtab::read_dependencies): Update comments.
11498 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11499 read_symtab for includer.
11500 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11501 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11502 (struct dwarf2_include_psymtab::m_readin): Remove.
11503 (struct dwarf2_include_psymtab::includer): New member function.
11504 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11506 2020-04-14 Tom de Vries <tdevries@suse.de>
11509 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11510 with NULL symbol_matcher and lookup_name.
11511 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11513 * dwarf2/read.c (dw2_expand_symtabs_matching)
11514 (dw2_debug_names_expand_symtabs_matching): Same.
11515 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11516 Make lookup_name a pointer. Update comment.
11517 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11518 lookup_name being a pointer.
11519 * symfile.c (expand_symtabs_matching): Same.
11520 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11521 * linespec.c (iterate_over_all_matching_symtabs): Same.
11523 2020-04-13 Tom Tromey <tom@tromey.com>
11525 * run-on-main-thread.c: Update include.
11526 * unittests/main-thread-selftests.c: Update include.
11527 * tui/tui-win.c: Update include.
11528 * tui/tui-io.c: Update include.
11529 * tui/tui-interp.c: Update include.
11530 * tui/tui-hooks.c: Update include.
11531 * top.h: Update include.
11532 * top.c: Update include.
11533 * ser-base.c: Update include.
11534 * remote.c: Update include.
11535 * remote-notif.c: Update include.
11536 * remote-fileio.c: Update include.
11537 * record-full.c: Update include.
11538 * record-btrace.c: Update include.
11539 * python/python.c: Update include.
11540 * posix-hdep.c: Update include.
11541 * mingw-hdep.c: Update include.
11542 * mi/mi-main.c: Update include.
11543 * mi/mi-interp.c: Update include.
11544 * main.c: Update include.
11545 * linux-nat.c: Update include.
11546 * interps.c: Update include.
11547 * infrun.c: Update include.
11548 * inf-loop.c: Update include.
11549 * event-top.c: Update include.
11550 * event-loop.c: Move to ../gdbsupport/.
11551 * event-loop.h: Move to ../gdbsupport/.
11552 * async-event.h: Update include.
11553 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11555 2020-04-13 Tom Tromey <tom@tromey.com>
11557 * tui/tui-win.c: Include async-event.h.
11558 * remote.c: Include async-event.h.
11559 * remote-notif.c: Include async-event.h.
11560 * record-full.c: Include async-event.h.
11561 * record-btrace.c: Include async-event.h.
11562 * infrun.c: Include async-event.h.
11563 * event-top.c: Include async-event.h.
11564 * event-loop.h: Move some declarations to async-event.h.
11565 * event-loop.c: Don't include ser-event.h or top.h. Move some
11566 code to async-event.c.
11567 * async-event.h: New file.
11568 * async-event.c: New file.
11569 * Makefile.in (COMMON_SFILES): Add async-event.c.
11570 (HFILES_NO_SRCDIR): Add async-event.h.
11572 2020-04-13 Tom Tromey <tom@tromey.com>
11574 * utils.c (flush_streams): New function.
11575 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11577 2020-04-13 Tom Tromey <tom@tromey.com>
11579 * event-loop.c (handle_file_event): Use warning, not
11582 2020-04-13 Tom Tromey <tom@tromey.com>
11584 * event-loop.c: Include <chrono>.
11586 2020-04-13 Tom Tromey <tom@tromey.com>
11588 * gdb_select.h: Move to ../gdbsupport/.
11589 * event-loop.c: Update include path.
11590 * top.c: Update include path.
11591 * ser-base.c: Update include path.
11592 * ui-file.c: Update include path.
11593 * ser-tcp.c: Update include path.
11594 * guile/scm-ports.c: Update include path.
11595 * posix-hdep.c: Update include path.
11596 * ser-unix.c: Update include path.
11597 * gdb_usleep.c: Update include path.
11598 * mingw-hdep.c: Update include path.
11599 * inflow.c: Update include path.
11600 * infrun.c: Update include path.
11601 * event-top.c: Update include path.
11603 2020-04-13 Tom Tromey <tom@tromey.com>
11605 * configure: Rebuild.
11606 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11608 2020-04-13 Tom Tromey <tom@tromey.com>
11610 * event-loop.h (start_event_loop): Don't declare.
11611 * event-loop.c (start_event_loop): Move...
11612 * main.c (start_event_loop): ...here. Now static.
11614 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11616 * MAINTAINERS: Update my email address.
11618 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11620 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11623 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11625 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11626 (nbsd_nat_target::info_proc): Add do_cmdline.
11628 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11630 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11631 (nbsd_nat_target::info_proc): Add do_cwd.
11633 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11635 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11637 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11639 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11640 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11641 (nbsd_nat_target::info_proc): New functions.
11642 * nbsd-nat.c (kinfo_get_vmmap): New function.
11643 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11644 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11645 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11646 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11648 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11649 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11650 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11651 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11652 (KINFO_VME_FLAG_GROWS_DOWN): New.
11654 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11656 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11659 2020-04-10 Tom Tromey <tromey@adacore.com>
11661 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11663 2020-04-10 Tom Tromey <tromey@adacore.com>
11665 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11666 separate debug files.
11668 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11670 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11672 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11674 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11675 Check for STATUS_WX86_BREAKPOINT.
11676 (windows_nat_target::wait): Same.
11678 2020-04-10 Tom de Vries <tdevries@suse.de>
11681 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11683 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11685 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11686 (Write After Approval): Remove Tom de Vries.
11688 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11691 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11693 * buildsym.c (record_line): Fix undefined behavior and preserve
11696 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11698 * auxv.h (svr4_auxv_parse): New.
11699 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11700 and generic_auxv_parse.
11701 (svr4_auxv_parse): Add.
11702 * obsd-tdep.c: Include "auxv.h".
11703 (obsd_auxv_parse): Remove.
11704 (obsd_init_abi): Remove comment.
11705 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11706 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11707 * nbsd-tdep.c: Include "auxv.h".
11708 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11710 2020-04-08 Tom Tromey <tromey@adacore.com>
11712 * nat/windows-nat.h (last_wait_event): Don't declare.
11713 (wait_for_debug_event): Update comment.
11714 * nat/windows-nat.c (last_wait_event): Now static.
11716 2020-04-08 Tom Tromey <tromey@adacore.com>
11718 * windows-nat.c (wait_for_debug_event): Move to
11720 * nat/windows-nat.h (wait_for_debug_event): Declare.
11721 * nat/windows-nat.c (wait_for_debug_event): Move from
11722 windows-nat.c. No longer static.
11724 2020-04-08 Tom Tromey <tromey@adacore.com>
11726 * windows-nat.c (get_windows_debug_event): Use
11727 fetch_pending_stop.
11728 * nat/windows-nat.h (fetch_pending_stop): Declare.
11729 * nat/windows-nat.c (fetch_pending_stop): New function.
11731 2020-04-08 Tom Tromey <tromey@adacore.com>
11733 * windows-nat.c (windows_continue): Use matching_pending_stop and
11734 continue_last_debug_event.
11735 * nat/windows-nat.h (matching_pending_stop)
11736 (continue_last_debug_event): Declare.
11737 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11738 (matching_pending_stop, continue_last_debug_event): New
11741 2020-04-08 Tom Tromey <tromey@adacore.com>
11743 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11744 (handle_exception_result): Move to nat/windows-nat.h.
11745 (DEBUG_EXCEPTION_SIMPLE): Remove.
11746 (windows_nat::handle_ms_vc_exception): New function.
11747 (handle_exception): Move to nat/windows-nat.c.
11748 (get_windows_debug_event): Update.
11749 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11751 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11752 (handle_exception_result): Move from windows-nat.c.
11753 (handle_exception): Declare.
11754 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11755 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11758 2020-04-08 Tom Tromey <tromey@adacore.com>
11760 * windows-nat.c (exception_count, event_count): Remove.
11761 (handle_exception, get_windows_debug_event)
11762 (do_initial_windows_stuff): Update.
11764 2020-04-08 Tom Tromey <tromey@adacore.com>
11766 * windows-nat.c (windows_nat::handle_load_dll)
11767 (windows_nat::handle_unload_dll): Rename. No longer static.
11768 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11771 2020-04-08 Tom Tromey <tromey@adacore.com>
11773 * complaints.h (stop_whining): Declare at top-level.
11774 (complaint): Don't declare stop_whining.
11776 2020-04-08 Tom Tromey <tromey@adacore.com>
11778 * windows-nat.c (windows_nat::handle_output_debug_string):
11779 Rename. No longer static.
11780 * nat/windows-nat.h (handle_output_debug_string): Declare.
11782 2020-04-08 Tom Tromey <tromey@adacore.com>
11784 * windows-nat.c (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 to nat/windows-nat.c.
11788 (display_selectors, fake_create_process)
11789 (get_windows_debug_event): Update.
11790 * nat/windows-nat.h (current_process_handle, current_process_id)
11791 (main_thread_id, last_sig, current_event, last_wait_event)
11792 (current_windows_thread, desired_stop_thread_id, pending_stops)
11793 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11794 * nat/windows-nat.c (current_process_handle, current_process_id)
11795 (main_thread_id, last_sig, current_event, last_wait_event)
11796 (current_windows_thread, desired_stop_thread_id, pending_stops)
11797 (siginfo_er): New globals. Move from windows-nat.c.
11799 2020-04-08 Tom Tromey <tromey@adacore.com>
11801 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11802 (handle_load_dll): Update.
11803 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11805 2020-04-08 Tom Tromey <tromey@adacore.com>
11807 * windows-nat.c (enum thread_disposition_type): Move to
11809 (windows_nat::thread_rec): Rename from thread_rec. No longer
11811 (windows_add_thread, windows_nat_target::fetch_registers)
11812 (windows_nat_target::store_registers, handle_exception)
11813 (windows_nat_target::resume, get_windows_debug_event)
11814 (windows_nat_target::get_tib_address)
11815 (windows_nat_target::thread_name)
11816 (windows_nat_target::thread_alive): Update.
11817 * nat/windows-nat.h (enum thread_disposition_type): Move from
11819 (thread_rec): Declare.
11821 2020-04-08 Tom Tromey <tromey@adacore.com>
11823 * windows-nat.c: Add "using namespace".
11824 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11825 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11827 2020-04-08 Tom Tromey <tromey@adacore.com>
11829 * nat/windows-nat.h (struct windows_thread_info): Declare
11831 * nat/windows-nat.c (~windows_thread_info): New.
11833 2020-04-08 Tom Tromey <tromey@adacore.com>
11836 * windows-nat.c (current_event): Update comment.
11837 (last_wait_event, desired_stop_thread_id): New globals.
11838 (struct pending_stop): New.
11839 (pending_stops): New global.
11840 (windows_nat_target) <stopped_by_sw_breakpoint>
11841 <supports_stopped_by_sw_breakpoint>: New methods.
11842 (windows_fetch_one_register): Add assertions. Adjust PC.
11843 (windows_continue): Handle pending stops. Suspend other threads
11844 when stepping. Use last_wait_event
11845 (wait_for_debug_event): New function.
11846 (get_windows_debug_event): Use wait_for_debug_event. Handle
11847 pending stops. Queue spurious stops.
11848 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11849 (windows_nat_target::kill): Use wait_for_debug_event.
11850 * nat/windows-nat.h (struct windows_thread_info)
11851 <stopped_at_software_breakpoint>: New field.
11852 * nat/windows-nat.c (windows_thread_info::resume): Clear
11853 stopped_at_software_breakpoint.
11855 2020-04-08 Tom Tromey <tromey@adacore.com>
11857 * windows-nat.c (enum thread_disposition_type): New.
11858 (thread_rec): Replace "get_context" parameter with "disposition";
11860 (windows_add_thread, windows_nat_target::fetch_registers)
11861 (windows_nat_target::store_registers, handle_exception)
11862 (windows_nat_target::resume, get_windows_debug_event)
11863 (windows_nat_target::get_tib_address)
11864 (windows_nat_target::thread_name)
11865 (windows_nat_target::thread_alive): Update.
11867 2020-04-08 Tom Tromey <tromey@adacore.com>
11869 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11870 (windows_continue): Use windows_continue::resume.
11871 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11872 resume>: Declare new methods.
11873 * nat/windows-nat.c: New file.
11874 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11876 2020-04-08 Tom Tromey <tromey@adacore.com>
11878 * windows-nat.c (windows_add_thread, windows_delete_thread)
11879 (windows_nat_target::fetch_registers)
11880 (windows_nat_target::store_registers, fake_create_process)
11881 (windows_nat_target::resume, windows_nat_target::resume)
11882 (get_windows_debug_event, windows_nat_target::wait)
11883 (windows_nat_target::pid_to_str)
11884 (windows_nat_target::get_tib_address)
11885 (windows_nat_target::get_ada_task_ptid)
11886 (windows_nat_target::thread_name)
11887 (windows_nat_target::thread_alive): Use lwp, not tid.
11889 2020-04-08 Tom Tromey <tromey@adacore.com>
11891 * windows-nat.c (handle_exception)
11892 (windows_nat_target::thread_name): Update.
11893 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11894 <name>: Now unique_xmalloc_ptr.
11896 2020-04-08 Tom Tromey <tromey@adacore.com>
11898 * windows-nat.c (thread_rec)
11899 (windows_nat_target::fetch_registers): Update.
11900 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11902 <debug_registers_changed, reload_context>: Now bool.
11904 2020-04-08 Tom Tromey <tromey@adacore.com>
11906 * windows-nat.c (windows_add_thread): Use new.
11907 (windows_init_thread_list, windows_delete_thread): Use delete.
11908 (get_windows_debug_event): Update.
11909 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11910 destructor, and initializers.
11912 2020-04-08 Tom Tromey <tromey@adacore.com>
11914 * windows-nat.c (struct windows_thread_info): Remove.
11915 * nat/windows-nat.h: New file.
11917 2020-04-08 Tom Tromey <tromey@adacore.com>
11919 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11920 (thread_rec, windows_add_thread, windows_delete_thread)
11921 (windows_continue): Update.
11923 2020-04-08 Tom Tromey <tromey@adacore.com>
11925 * windows-nat.c (struct windows_thread_info): Remove typedef.
11926 (thread_head): Remove.
11927 (thread_list): New global.
11928 (thread_rec, windows_add_thread, windows_init_thread_list)
11929 (windows_delete_thread, windows_continue): Update.
11931 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11933 * windows-tdep.h (windows_init_abi): Add comment.
11934 (cygwin_init_abi): New declaration.
11935 * windows-tdep.c: Split signal enumeration in two, one for
11936 Windows and one for Cygwin.
11937 (windows_gdb_signal_to_target): Only deal with signal of the
11939 (cygwin_gdb_signal_to_target): New function.
11940 (windows_init_abi): Rename to windows_init_abi_common, don't set
11941 gdb_signal_to_target gdbarch method. Add new new function with
11943 (cygwin_init_abi): New function.
11944 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11945 comment. Don't call windows_init_abi.
11946 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11947 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11948 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11949 i386_windows_init_abi_common, don't call windows_init_abi. Add
11950 a new function of this name.
11951 (i386_cygwin_init_abi): New function.
11952 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11955 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11957 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11959 (dwarf2_read_gdb_index): Update.
11961 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11963 * nbsd-tdep.c: Include "objfiles.h".
11964 (nbsd_skip_solib_resolver): New.
11965 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11967 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11969 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11970 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11971 with DW_LLE_base_addressx are being emitted in DWARFv5.
11972 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11973 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11976 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11978 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11979 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11980 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11981 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11982 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11983 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11984 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11987 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11989 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11990 (read_loclist_index): New function definition.
11991 (lookup_loclist_base): New function definition.
11992 (read_loclist_header): New function definition.
11993 (dwarf2_cu): Add loclist_base and loclist_header field.
11994 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11995 (read_full_die_1): Read the value of DW_AT_loclists_base.
11996 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11997 (read_attribute_value): Handle DW_FORM_loclistx.
11998 (skip_one_die): Handle DW_FORM_loclistx.
11999 (loclist_header): New structure declaration.
12000 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12002 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12004 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12005 constructor. Remove `addr` parameter from other constructor and
12006 add `per_cu` parameter.
12007 * dwarf2/read.c (create_partial_symtab): Update.
12009 2020-04-07 Tom de Vries <tdevries@suse.de>
12012 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12013 (partial_die_info::fixup): Inherit has_const_value.
12015 2020-04-07 Tom de Vries <tdevries@suse.de>
12017 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12018 symbols without address.
12020 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12022 * nbsd-nat.h (struct thread_info): Add forward declaration.
12023 (nbsd_nat_target::thread_alive): Add.
12024 (nbsd_nat_target::thread_name): Likewise.
12025 (nbsd_nat_target::update_thread_list): Likewise.
12026 (update_thread_list::post_attach): Likewise.
12027 (post_attach::pid_to_str): Likewise.
12028 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12029 (nbsd_thread_lister): Add.
12030 (nbsd_nat_target::thread_alive): Likewise.
12031 (nbsd_nat_target::thread_name): Likewise.
12032 (nbsd_add_threads): Likewise.
12033 (update_thread_list::post_attach): Likewise.
12034 (nbsd_nat_target::update_thread_list): Likewise.
12035 (post_attach::pid_to_str): Likewise.
12037 2020-04-06 Tom Tromey <tromey@adacore.com>
12039 * ada-valprint.c (print_variant_part): Extract the variant field.
12040 (print_field_values): Use the field as the outer value when
12043 2020-04-06 Tom Tromey <tromey@adacore.com>
12045 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12046 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12047 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12048 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12049 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12051 2020-04-06 Tom Tromey <tromey@adacore.com>
12053 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12056 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12058 * nbsd-tdep.c: Include "gdbarch.h".
12059 Define enum with NetBSD signal numbers.
12060 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12061 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12062 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12063 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12064 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12065 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12066 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12067 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12068 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12069 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12070 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12071 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12073 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12076 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12078 2020-04-03 Tom Tromey <tromey@adacore.com>
12080 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12081 Read constant block.
12083 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12085 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12086 (gdb_bfd_get_full_section_contents): New declaration.
12087 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12088 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12089 gdb_bfd_get_full_section_contents.
12091 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12093 * exec.c (build_section_table): Replace internal_error with
12095 (section_table_xfer_memory_partial): Likewise.
12096 * mdebugread.c (parse_partial_symbols): Likewise.
12097 * psymtab.c (lookup_partial_symbol): Likewise.
12098 * utils.c (wrap_here): Likewise.
12100 2020-04-02 Tom Tromey <tromey@adacore.com>
12102 * f-lang.c (build_fortran_types): Use arch_type to initialize
12103 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12105 2020-04-02 Tom Tromey <tromey@adacore.com>
12107 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12110 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12111 Bernd Edlinger <bernd.edlinger@hotmail.de>
12112 Tom Tromey <tromey@adacore.com>
12114 * buildsym.c (buildsym_compunit::record_line): Remove
12115 deduplication code.
12117 2020-04-02 Tom de Vries <tdevries@suse.de>
12120 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12122 2020-04-02 Tom de Vries <tdevries@suse.de>
12124 * dwarf2/read.c (dwarf2_gdb_index_functions,
12125 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12127 * psymtab.c (psym_lookup_global_symbol_language): New function.
12128 (psym_functions): Init psym_lookup_global_symbol_language with
12129 psym_lookup_global_symbol_language.
12130 * symfile-debug.c (debug_sym_quick_functions): Init
12131 lookup_global_symbol_language with NULL.
12132 * symfile.c (set_initial_language): Remove fixme comment.
12133 * symfile.h (struct quick_symbol_functions): Add
12134 lookup_global_symbol_language.
12135 * symtab.c (find_quick_global_symbol_language): New function.
12136 (find_main_name): Use find_quick_global_symbol_language.
12138 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12140 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12142 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12144 * buildsym.c (record_line): Fix undefined behavior and preserve
12147 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12149 * buildsym.c (record_line): Fix the resizing condition.
12151 2020-04-01 Tom Tromey <tom@tromey.com>
12153 * value.h (value_literal_complex): Add comment.
12154 * valops.c (value_literal_complex): Refer to value.h.
12156 2020-04-01 Tom Tromey <tom@tromey.com>
12158 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12159 (scalar_type): New rule, from typebase.
12160 (typebase): Use scalar_type. Recognize complex types.
12161 (field_name): Handle FLOAT_KEYWORD.
12162 (ident_tokens): Add _Complex and __complex__.
12164 2020-04-01 Tom Tromey <tom@tromey.com>
12167 * valarith.c (promotion_type, complex_binop): New functions.
12168 (scalar_binop): Handle complex numbers. Use promotion_type.
12169 (value_pos, value_neg, value_complement): Handle complex numbers.
12171 2020-04-01 Tom Tromey <tom@tromey.com>
12173 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12174 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12175 (parse_number): Handle complex numbers.
12177 2020-04-01 Tom Tromey <tom@tromey.com>
12179 * c-valprint.c (c_decorations): Change complex suffix to "i".
12181 2020-04-01 Tom Tromey <tom@tromey.com>
12183 * valprint.c (generic_value_print_complex): Use accessors.
12184 * value.h (value_real_part, value_imaginary_part): Declare.
12185 * valops.c (value_real_part, value_imaginary_part): New
12187 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12189 2020-04-01 Tom Tromey <tom@tromey.com>
12191 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12192 (read_range_type): Update.
12193 * mdebugread.c (basic_type): Update.
12194 * go-lang.c (build_go_types): Use init_complex_type.
12195 * gdbtypes.h (struct main_type) <complex_type>: New member.
12196 (init_complex_type): Update.
12197 (arch_complex_type): Don't declare.
12198 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12199 Make name if none given. Use alloc_type_copy. Look for cached
12201 (arch_complex_type): Remove.
12202 (gdbtypes_post_init): Use init_complex_type.
12203 * f-lang.c (build_fortran_types): Use init_complex_type.
12204 * dwarf2/read.c (read_base_type): Update.
12205 * d-lang.c (build_d_types): Use init_complex_type.
12206 * ctfread.c (read_base_type): Update.
12208 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12210 * infrun.c (stop_all_threads): Update assertion, plus when
12211 stopping threads, take into account that we might be trying
12212 to stop an all-stop target.
12213 (stop_waiting): Call 'stop_all_threads' if there exists a
12216 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12218 * target.h (exists_non_stop_target): New function declaration.
12219 * target.c (exists_non_stop_target): New function.
12221 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12224 * eval.c (is_integral_or_integral_reference): New function.
12225 (evaluate_subexp_standard): Allow integer references in
12226 pointer arithmetic.
12228 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12230 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12231 check for no ptid in the stop reply when the target is non-stop.
12233 2020-04-01 Tom Tromey <tromey@adacore.com>
12235 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12236 "name" parameter to rvalue reference. Initialize m_name_holder.
12237 <lookup_name_info>: New overloads.
12238 <name>: Return gdb::string_view.
12239 <c_str>: New method.
12240 <make_ignore_params>: Update.
12241 <search_name_hash>: Update.
12242 <language_lookup_name>: Return const char *.
12243 <m_name>: Change type.
12244 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12245 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12246 (lookup_name_info::match_any): Update.
12247 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12249 * minsyms.c (linkage_name_str): Update.
12250 * language.c (default_symbol_name_matcher): Update.
12251 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12253 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12254 (ada_lookup_name_info::ada_lookup_name_info): Update.
12255 (literal_symbol_name_matcher): Update.
12257 2020-04-01 Tom Tromey <tromey@adacore.com>
12259 * psymtab.c (psymtab_search_name): Remove function.
12260 (psym_lookup_symbol): Create search name and lookup name here.
12261 (lookup_partial_symbol): Remove "name" parameter; add
12263 (psym_expand_symtabs_for_function): Update.
12265 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12268 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12270 2020-03-31 Tom Tromey <tromey@adacore.com>
12272 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12275 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12277 * features/riscv/32bit-csr.xml: Regenerated.
12278 * features/riscv/64bit-csr.xml: Regenerated.
12280 2020-03-30 Tom Tromey <tromey@adacore.com>
12282 * ada-valprint.c (print_variant_part): Update.
12283 * ada-lang.h (ada_which_variant_applies): Update.
12284 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12285 outer_valaddr parameters; replace with "outer" value parameter.
12286 (to_fixed_variant_branch_type): Update.
12288 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12290 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12291 <list>. Remove inclusion of observable.h.
12292 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12293 (struct arch_lwp_info): New struct.
12294 (class ppc_linux_dreg_interface): New class.
12295 (struct ppc_linux_process_info): New struct.
12296 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12297 <low_new_clone, low_forget_process, low_prepare_to_resume>
12298 <copy_thread_dreg_state, mark_thread_stale>
12299 <mark_debug_registers_changed, register_hw_breakpoint>
12300 <clear_hw_breakpoint, register_wp, clear_wp>
12301 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12302 <num_memory_accesses, get_trigger_type>
12303 <create_watchpoint_request, hwdebug_point_cmp>
12304 <init_arch_lwp_info, get_arch_lwp_info>
12305 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12307 <struct ptid_hash>: New inner struct.
12308 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12310 (saved_dabr_value, hwdebug_info, max_slots_number)
12311 (struct hw_break_tuple, struct thread_points, ppc_threads)
12312 (have_ptrace_hwdebug_interface)
12313 (hwdebug_find_thread_points_by_tid)
12314 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12315 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12316 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12317 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12318 use m_dreg_interface.
12319 (hwdebug_point_cmp): Change to...
12320 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12321 reference arguments instead of pointers.
12322 (ppc_linux_nat_target::ranged_break_num_registers): Use
12324 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12325 m_dreg_interface. Call register_hw_breakpoint.
12326 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12327 m_dreg_interface. Call clear_hw_breakpoint.
12328 (get_trigger_type): Change to...
12329 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12331 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12332 use m_dreg_interface. Call register_hw_breakpoint.
12333 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12334 use m_dreg_interface. Call clear_hw_breakpoint.
12335 (can_use_watchpoint_cond_accel): Change to...
12336 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12337 method. Update comment, use m_dreg_interface and
12339 (calculate_dvc): Change to...
12340 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12342 (num_memory_accesses): Change to...
12343 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12344 (check_condition): Change to...
12345 (ppc_linux_nat_target::check_condition): ...this method.
12346 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12347 comment, use m_dreg_interface.
12348 (create_watchpoint_request): Change to...
12349 (ppc_linux_nat_target::create_watchpoint_request): ...this
12350 method. Use m_dreg_interface.
12351 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12352 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12353 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12354 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12355 (ppc_linux_nat_target::low_forget_process)
12356 (ppc_linux_nat_target::low_new_fork)
12357 (ppc_linux_nat_target::low_new_clone)
12358 (ppc_linux_nat_target::low_delete_thread)
12359 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12360 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12361 only call mark_thread_stale.
12362 (ppc_linux_thread_exit): Remove.
12363 (ppc_linux_nat_target::stopped_data_address): Change to...
12364 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12365 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12366 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12367 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12368 comment. Call low_stopped_data_address.
12369 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12371 (ppc_linux_nat_target::masked_watch_num_registers): Use
12373 (ppc_linux_nat_target::copy_thread_dreg_state)
12374 (ppc_linux_nat_target::mark_thread_stale)
12375 (ppc_linux_nat_target::mark_debug_registers_changed)
12376 (ppc_linux_nat_target::register_hw_breakpoint)
12377 (ppc_linux_nat_target::clear_hw_breakpoint)
12378 (ppc_linux_nat_target::register_wp)
12379 (ppc_linux_nat_target::clear_wp)
12380 (ppc_linux_nat_target::init_arch_lwp_info)
12381 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12382 (_initialize_ppc_linux_nat): Remove observer callback.
12384 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12386 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12387 (ppc_linux_nat_target::auxv_parse)
12388 (ppc_linux_nat_target::read_description)
12389 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12392 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12394 * linux-nat.h (low_new_clone): New method.
12395 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12397 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12399 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12400 (dbx_expand_psymtab): ... this.
12401 (start_psymtab): Update.
12402 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12403 (mdebug_expand_psymtab): ... this.
12404 (parse_partial_symbols): Update.
12405 (new_psymtab): Update.
12406 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12407 (xcoff_expand_psymtab): ... this.
12408 (xcoff_start_psymtab): Update.
12410 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12412 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12413 <expand_dependencies>: ... this.
12414 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12415 (partial_symtab::expand_dependencies): ... this.
12416 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12418 (dwarf2_psymtab::expand_psymtab): Update.
12419 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12420 * mdebugread.c (psymtab_to_symtab_1): Update.
12421 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12423 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12425 * psympriv.h (discard_psymtab): Remove.
12426 * dbxread.c (dbx_end_psymtab): Update.
12427 * xcoffread.c (xcoff_end_psymtab): Update.
12429 2020-03-28 Tom Tromey <tom@tromey.com>
12431 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12434 2020-03-28 Tom Tromey <tom@tromey.com>
12436 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12438 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12440 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12442 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12444 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12446 2020-03-26 Tom Tromey <tom@tromey.com>
12448 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12449 (mark_common_block_symbol_computed, read_tag_string_type)
12450 (attr_to_dynamic_prop, read_subrange_type): Update.
12451 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12452 to be methods on struct attribute.
12453 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12454 (read_call_site_scope, partial_die_info::read)
12455 (partial_die_info::read, lookup_die_type, follow_die_ref):
12457 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12458 from dwarf2_get_ref_die_offset.
12459 (attribute::constant_value): New method, from
12460 dwarf2_get_attr_constant_value.
12461 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12463 <constant_value>: New method.
12465 2020-03-26 Tom Tromey <tom@tromey.com>
12467 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12468 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12469 (dwarf_type_encoding_name): Move to stringify.c.
12470 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12471 * dwarf2/stringify.c: New file.
12472 * dwarf2/stringify.h: New file.
12474 2020-03-26 Tom Tromey <tom@tromey.com>
12476 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12479 2020-03-26 Tom Tromey <tom@tromey.com>
12481 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12483 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12484 (lookup_ranges_base): Likewise.
12485 (read_cutu_die_from_dwo, read_full_die_1): Update.
12487 2020-03-26 Tom Tromey <tom@tromey.com>
12489 * dwarf2/read.c (read_import_statement, read_file_scope)
12490 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12491 (read_lexical_block_scope, read_call_site_scope)
12492 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12493 (handle_struct_member_die, process_structure_scope)
12494 (update_enumeration_type_from_children)
12495 (process_enumeration_scope, read_array_type, read_common_block)
12496 (read_namespace, read_module, read_subroutine_type): Update.
12497 (sibling_die): Remove.
12499 2020-03-26 Tom Tromey <tom@tromey.com>
12501 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12502 (build_type_psymtabs_reader, read_structure_type)
12503 (read_enumeration_type, read_full_die_1): Update.
12504 (dwarf2_attr_no_follow): Move to die.h.
12505 * dwarf2/die.h (struct die_info) <attr>: New method.
12507 2020-03-26 Tom Tromey <tom@tromey.com>
12509 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12510 <base_address>: Now an optional.
12511 (dwarf2_find_base_address, dwarf2_rnglists_process)
12512 (dwarf2_ranges_process, fill_in_loclist_baton)
12513 (dwarf2_symbol_mark_computed): Update.
12515 2020-03-26 Tom Tromey <tom@tromey.com>
12517 * dwarf2/read.c (struct die_info): Move to die.h.
12518 * dwarf2/die.h: New file.
12520 2020-03-26 Tom Tromey <tom@tromey.com>
12522 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12524 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12525 Move to line-header.c.
12526 (read_checked_initial_length_and_offset, read_formatted_entries):
12528 (dwarf_decode_line_header): Split into two.
12529 * dwarf2/line-header.c
12530 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12532 (read_checked_initial_length_and_offset, read_formatted_entries):
12534 (dwarf_decode_line_header): New function, split from read.c.
12536 2020-03-26 Tom Tromey <tom@tromey.com>
12538 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12540 * dwarf2/read.c (read_attribute_value): Update.
12541 (dwarf2_per_objfile::read_line_string): Rename from
12542 read_indirect_line_string.
12543 (read_formatted_entries): Update.
12545 2020-03-26 Tom Tromey <tom@tromey.com>
12547 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12550 2020-03-26 Tom Tromey <tom@tromey.com>
12552 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12554 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12555 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12558 2020-03-26 Tom Tromey <tom@tromey.com>
12560 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12561 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12562 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12563 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12565 2020-03-26 Tom Tromey <tom@tromey.com>
12567 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12568 file_names_size, file_full_name, file_file_name>: Use const.
12569 <file_name_at, file_names>: Add const overload.
12570 * dwarf2/line-header.c (line_header::file_file_name)
12571 (line_header::file_full_name): Update.
12573 2020-03-26 Tom Tromey <tom@tromey.com>
12575 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12576 (macro_start_file, consume_improper_spaces)
12577 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12578 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12579 (dwarf_decode_macros): Move to macro.c.
12580 * dwarf2/macro.c: New file.
12581 * dwarf2/macro.h: New file.
12582 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12584 2020-03-26 Tom Tromey <tom@tromey.com>
12586 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12588 * dwarf2/section.c: New method. From
12589 read_indirect_string_at_offset_from.
12590 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12591 (read_indirect_string_at_offset_from): Move to section.c.
12592 (read_indirect_string_at_offset): Rewrite.
12593 (read_indirect_line_string_at_offset): Remove.
12594 (read_indirect_string, read_indirect_line_string)
12595 (dwarf_decode_macro_bytes): Update.
12597 2020-03-26 Tom Tromey <tom@tromey.com>
12599 * dwarf2/section.h (struct dwarf2_section_info)
12600 <overload_complaint>: Declare.
12601 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12602 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12603 Rename from dwarf2_section_buffer_overflow_complaint.
12604 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12605 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12607 2020-03-26 Tom Tromey <tom@tromey.com>
12609 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12611 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12613 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12616 2020-03-26 Tom Tromey <tom@tromey.com>
12618 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12620 2020-03-26 Tom Tromey <tom@tromey.com>
12622 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12624 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12626 (dwarf_decode_macros): Update.
12628 2020-03-26 Tom Tromey <tom@tromey.com>
12630 * dwarf2/read.c (read_attribute_value): Update.
12631 (read_indirect_string_from_dwz): Move to dwz.c; change into
12633 (dwarf_decode_macro_bytes): Update.
12634 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12635 * dwarf2/dwz.c: New file.
12636 * Makefile.in (COMMON_SFILES): Add dwz.c.
12638 2020-03-26 Tom Tromey <tom@tromey.com>
12640 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12641 * dwarf2/read.c: Add include.
12642 * dwarf2/index-write.c: Add include.
12643 * dwarf2/index-cache.c: Add include.
12644 * dwarf2/dwz.h: New file.
12646 2020-03-25 Tom Tromey <tom@tromey.com>
12648 * compile/compile-object-load.c (get_out_value_type): Mention
12649 correct symbol name in error message.
12651 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12653 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12655 2020-03-25 Tom de Vries <tdevries@suse.de>
12657 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12658 * symmisc.c (dump_symtab_1): Print user and includes fields.
12659 (maintenance_info_symtabs): Same.
12661 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12664 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12665 (riscv_regcache_cooked_write): New function.
12666 (riscv_push_dummy_call): Use new function.
12667 (riscv_return_value): Likewise.
12669 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12671 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12672 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12673 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12674 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12675 * infrun.c (follow_fork): Likewise.
12676 (follow_fork_inferior): Likewise.
12677 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12678 * linux-nat.h (class linux_nat_target): Likewise.
12679 * remote.c (class remote_target) <follow_fork>: Likewise.
12680 (remote_target::follow_fork): Likewise.
12681 * target-delegates.c: Re-generate.
12682 * target.c (default_follow_fork): Likewise.
12683 (target_follow_fork): Likewise.
12684 * target.h (struct target_ops) <follow_fork>: Likewise.
12685 (target_follow_fork): Likewise.
12687 2020-03-24 Tom de Vries <tdevries@suse.de>
12689 * psymtab.c (maintenance_info_psymtabs): Print user field.
12691 2020-03-20 Tom Tromey <tromey@adacore.com>
12693 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12695 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12698 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12700 * ptrace.m4: Don't check for ptrace declaration.
12701 * config.in: Re-generate.
12702 * configure: Re-generate.
12703 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12706 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12708 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12710 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12711 * sparc-nat.c (gdb_ptrace): Likewise.
12712 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12714 2020-03-20 Tom Tromey <tromey@adacore.com>
12716 * c-exp.y (lex_one_token): Fix assert.
12718 2020-03-20 Tom Tromey <tromey@adacore.com>
12720 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12721 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12724 2020-03-20 Tom Tromey <tromey@adacore.com>
12726 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12728 2020-03-20 Tom Tromey <tromey@adacore.com>
12730 * ada-valprint.c (print_variant_part): Remove parameters; switch
12731 to value-based API.
12732 (print_field_values): Likewise.
12733 (ada_val_print_struct_union): Likewise.
12734 (ada_value_print_1): Update.
12736 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12738 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12739 nbsd_nat_target instead of inf_ptrace_target.
12740 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12743 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12745 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12746 it to the ptrace call.
12747 * (store_registers): Likewise.
12749 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12751 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12752 it to the ptrace call.
12753 * (store_registers): Likewise.
12755 2020-03-19 Luis Machado <luis.machado@linaro.org>
12757 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12758 valid, fetch vg value from ptrace.
12760 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12761 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12762 * inf-ptrace.c: Likewise.
12763 * (gdb_ptrace): Add.
12764 * (inf_ptrace_target::resume): Update.
12765 * (inf_ptrace_target::xfer_partial): Likewise.
12766 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12767 * (inf_ptrace_peek_poke): Update.
12769 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12771 * x86-bsd-nat.c (gdb_ptrace): New.
12772 * (x86bsd_dr_set): Add new argument `ptid'.
12773 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12774 x86bsd_dr_set_addr): Update.
12776 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12778 * remote.c (remote_target::process_stop_reply): Handle events for
12779 all threads differently.
12781 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12783 * completer.c (completion_tracker::remove_completion): Define new
12785 * completer.h (completion_tracker::remove_completion): Declare new
12787 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12788 when adding a C++ function symbol.
12790 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12792 * completer.c (completion_tracker::completion_hash_entry): Define
12794 (advance_to_filename_complete_word_point): Call
12795 recompute_lowest_common_denominator.
12796 (completion_tracker::completion_tracker): Call discard_completions
12797 to setup the hash table.
12798 (completion_tracker::discard_completions): Allow for being called
12799 from the constructor, pass new equal function, and element deleter
12800 when constructing the hash table. Initialise new class member
12802 (completion_tracker::maybe_add_completion): Remove use of
12803 m_entries_vec, and store more information into m_entries_hash.
12804 (completion_tracker::recompute_lcd_visitor): New function, most
12805 content taken from...
12806 (completion_tracker::recompute_lowest_common_denominator):
12807 ...here, this now just visits each item in the hash calling the
12809 (completion_tracker::build_completion_result): Remove use of
12810 m_entries_vec, call recompute_lowest_common_denominator.
12811 * completer.h (completion_tracker::have_completions): Remove use
12813 (completion_tracker::completion_hash_entry): Declare new class.
12814 (completion_tracker::recompute_lowest_common_denominator): Change
12815 function signature.
12816 (completion_tracker::recompute_lcd_visitor): Declare new function.
12817 (completion_tracker::m_entries_vec): Delete.
12818 (completion_tracker::m_entries_hash): Initialize to NULL.
12819 (completion_tracker::m_lowest_common_denominator_valid): New
12821 (completion_tracker::m_lowest_common_denominator_max_length): New
12824 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12826 * regformats/regdef.h: Put reg in gdb namespace.
12828 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12830 * i386-bsd-nat.c (gdb_ptrace): New.
12831 * (i386bsd_fetch_inferior_registers,
12832 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12833 * (i386bsd_fetch_inferior_registers,
12834 i386bsd_store_inferior_registers) Use gdb_ptrace.
12836 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12838 * amd64-bsd-nat.c (gdb_ptrace): New.
12839 * (amd64bsd_fetch_inferior_registers,
12840 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12841 * (amd64bsd_fetch_inferior_registers,
12842 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12844 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12846 * user-regs.c (user_reg::read): Rename to...
12847 (user_reg::xread): ...this.
12848 * (append_user_reg): Rename argument `read' to `xread'.
12849 * (user_reg_add_builtin): Likewise.
12850 * (user_reg_add): Likewise.
12851 * (value_of_user_reg): Likewise.
12853 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12855 * sparc-nat.c (gdb_ptrace): New.
12856 * sparc-nat.c (sparc_fetch_inferior_registers)
12857 (sparc_store_inferior_registers) Remove obsolete comment.
12858 * sparc-nat.c (sparc_fetch_inferior_registers)
12859 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12860 * sparc-nat.c (sparc_fetch_inferior_registers)
12861 (sparc_store_inferior_registers) Use gdb_ptrace.
12863 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12865 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12866 it to the ptrace call.
12867 * sh-nbsd-nat.c (store_registers): Likewise.
12869 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12871 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12872 nbsd_nat_target instead of inf_ptrace_target.
12873 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12876 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12878 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12880 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12882 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12884 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12886 2020-03-17 Tom de Vries <tdevries@suse.de>
12889 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12891 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12893 (process_imported_unit_die): Skip import of c++ CUs.
12895 2020-03-16 Tom Tromey <tom@tromey.com>
12897 * p-valprint.c (pascal_object_print_value): Initialize
12900 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12901 Shahab Vahedi <shahab@synopsys.com>
12903 * Makefile.in: Add arch/arc.o
12904 * configure.tgt: Likewise.
12905 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12906 (_initialize_arc_tdep): Don't initialize old target descriptions.
12907 (arc_read_description): New function to cache target descriptions.
12908 * arc-tdep.h (arc_read_description): Add proto type.
12909 * arch/arc.c: New file.
12910 * arch/arc.h: Likewise.
12911 * features/Makefile: Replace old target descriptions with new.
12912 * features/arc-arcompact.c: Remove.
12913 * features/arc-arcompact.xml: Likewise.
12914 * features/arc-v2.c: Likewise
12915 * features/arc-v2.xml: Likewise
12916 * features/arc/aux-arcompact.xml: New file.
12917 * features/arc/aux-v2.xml: Likewise.
12918 * features/arc/core-arcompact.xml: Likewise.
12919 * features/arc/core-v2.xml: Likewise.
12920 * features/arc/aux-arcompact.c: Generate.
12921 * features/arc/aux-v2.c: Likewise.
12922 * features/arc/core-arcompact.c: Likewise.
12923 * features/arc/core-v2.c: Likewise.
12924 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12926 2020-03-16 Tom Tromey <tromey@adacore.com>
12929 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12930 putting value into bcache.
12932 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12935 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12937 (amd64_windows_init_abi_common): ... this. Don't set size of
12939 (amd64_windows_init_abi): New function.
12940 (amd64_cygwin_init_abi): New function.
12941 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12943 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12946 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12948 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12949 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12950 (pe_import_directory_entry): New struct type.
12951 (is_linked_with_cygwin_dll): New function.
12952 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12953 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12954 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12956 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12958 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12959 i386_cygwin_core_osabi_sniffer.
12961 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12963 * i386-cygwin-tdep.c: Rename to...
12964 * i386-windows-tdep.c: ... this.
12965 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12966 i386-windows-tdep.c.
12967 * configure.tgt: Likewise.
12969 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12971 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12972 * osabi.c (gdb_osabi_names): Add "Windows".
12973 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12974 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12975 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12976 i386_cygwin_osabi_sniffer.
12977 (_initialize_i386_cygwin_tdep): Register OS ABI
12978 GDB_OSABI_WINDOWS for i386.
12979 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12980 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12981 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12983 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12984 when the target matches '*-*-mingw*'.
12986 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12988 * defs.h (enum gdb_osabi): Move to...
12989 * osabi.h (enum gdb_osabi): ... here.
12990 * gdbarch.sh: Include osabi.h in gdbarch.h.
12991 * gdbarch.h: Re-generate.
12993 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12995 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12997 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12999 2020-03-14 Tom Tromey <tom@tromey.com>
13001 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13003 (c_type_print_modifier): Likewise. Add "language" parameter.
13004 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13005 (c_type_print_base_1): Update.
13006 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13008 * type-stack.c (type_stack::insert): Handle tp_atomic and
13010 (type_stack::follow_type_instance_flags): Likewise.
13011 (type_stack::follow_types): Likewise. Merge type-following code.
13012 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13013 (space_identifier, cv_with_space_id)
13014 (const_or_volatile_or_space_identifier_noopt)
13015 (const_or_volatile_or_space_identifier): Remove.
13016 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13018 (ptr_operator, typebase): Update.
13019 (enum token_flag) <FLAG_C>: New constant.
13020 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13022 (lex_one_token): Handle FLAG_C.
13024 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13026 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13027 it to the ptrace call.
13028 * m68k-bsd-nat.c (store_registers): Likewise.
13030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13032 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13034 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13035 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13036 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13040 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13041 nbsd_nat_target instead of inf_ptrace_target.
13042 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13045 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13047 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13050 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13052 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13053 it to the ptrace call.
13054 * alpha-bsd-nat.c (store_registers): Likewise.
13056 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13058 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13060 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13061 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13062 fill_fpregset): Likewise.
13064 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13066 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13067 nbsd_nat_target instead of inf_ptrace_target.
13068 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13071 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13073 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13076 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13078 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13079 it to the ptrace call.
13080 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13081 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13082 * arm-nbsd-nat.c (store_register): Likewise.
13083 * arm-nbsd-nat.c (store_regs): Likewise.
13084 * arm-nbsd-nat.c (store_fp_register): Likewise.
13085 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13087 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13089 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13090 nbsd_nat_target instead of inf_ptrace_target.
13091 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13094 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13096 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13097 it to the ptrace call.
13098 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13100 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13102 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13103 it to the ptrace call.
13104 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13106 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13108 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13110 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13114 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13115 instead of inf_ptrace_target.
13116 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13119 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13121 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13124 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13126 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13129 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13131 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13134 2020-03-13 Tom Tromey <tom@tromey.com>
13136 * value.h (val_print): Don't declare.
13137 * valprint.h (val_print_array_elements)
13138 (val_print_scalar_formatted, generic_val_print): Don't declare.
13139 * valprint.c (generic_val_print_array): Take a struct value.
13140 (generic_val_print_ptr, generic_val_print_memberptr)
13141 (generic_val_print_bool, generic_val_print_int)
13142 (generic_val_print_char, generic_val_print_complex)
13143 (generic_val_print): Remove.
13144 (generic_value_print): Update.
13145 (do_val_print): Remove unused parameters. Don't call
13147 (val_print): Remove.
13148 (common_val_print): Update. Don't call value_check_printable.
13149 (val_print_scalar_formatted, val_print_array_elements): Remove.
13150 * rust-lang.c (rust_val_print): Remove.
13151 (rust_language_defn): Update.
13152 * p-valprint.c (pascal_val_print): Remove.
13153 (pascal_value_print_inner): Update.
13154 (pascal_object_print_val_fields, pascal_object_print_val):
13156 (pascal_object_print_static_field): Update.
13157 * p-lang.h (pascal_val_print): Don't declare.
13158 * p-lang.c (pascal_language_defn): Update.
13159 * opencl-lang.c (opencl_language_defn): Update.
13160 * objc-lang.c (objc_language_defn): Update.
13161 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13162 * m2-lang.h (m2_val_print): Don't declare.
13163 * m2-lang.c (m2_language_defn): Update.
13164 * language.h (struct language_defn) <la_val_print>: Remove.
13165 * language.c (unk_lang_value_print_inner): Rename. Change
13167 (unknown_language_defn, auto_language_defn): Update.
13168 * go-valprint.c (go_val_print): Remove.
13169 * go-lang.h (go_val_print): Don't declare.
13170 * go-lang.c (go_language_defn): Update.
13171 * f-valprint.c (f_val_print): Remove.
13172 * f-lang.h (f_value_print): Don't declare.
13173 * f-lang.c (f_language_defn): Update.
13174 * d-valprint.c (d_val_print): Remove.
13175 * d-lang.h (d_value_print): Don't declare.
13176 * d-lang.c (d_language_defn): Update.
13177 * cp-valprint.c (cp_print_value_fields)
13178 (cp_print_value_fields_rtti, cp_print_value): Remove.
13179 (cp_print_static_field): Update.
13180 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13181 (c_val_print_struct, c_val_print_union, c_val_print_int)
13182 (c_val_print_memberptr, c_val_print): Remove.
13183 * c-lang.h (c_val_print_array, cp_print_value_fields)
13184 (cp_print_value_fields_rtti): Don't declare.
13185 * c-lang.c (c_language_defn, cplus_language_defn)
13186 (asm_language_defn, minimal_language_defn): Update.
13187 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13188 (ada_val_print_enum): Take a struct value.
13189 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13190 (ada_val_print): Remove.
13191 (ada_value_print_1): Update.
13192 (printable_val_type): Remove.
13193 * ada-lang.h (ada_val_print): Don't declare.
13194 * ada-lang.c (ada_language_defn): Update.
13196 2020-03-13 Tom Tromey <tom@tromey.com>
13198 * valprint.c (do_val_print): Update.
13199 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13201 (value_to_value_object_no_release): Declare.
13202 * python/py-value.c (value_to_value_object_no_release): New
13204 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13206 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13208 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13210 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13212 (gdbscm_apply_val_pretty_printer): Take a struct value.
13213 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13215 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13217 * extension-priv.h (struct extension_language_ops)
13218 <apply_val_pretty_printer>: Take a struct value.
13219 * cp-valprint.c (cp_print_value): Create a struct value.
13220 (cp_print_value): Update.
13222 2020-03-13 Tom Tromey <tom@tromey.com>
13224 * ada-valprint.c (print_field_values): Call common_val_print.
13226 2020-03-13 Tom Tromey <tom@tromey.com>
13228 * ada-valprint.c (val_print_packed_array_elements): Remove
13229 bitoffset and val parameters. Call common_val_print.
13230 (ada_val_print_string): Remove offset, address, and original_value
13232 (ada_val_print_array): Update.
13233 (ada_value_print_array): New function.
13234 (ada_value_print_1): Call it.
13236 2020-03-13 Tom Tromey <tom@tromey.com>
13238 * ada-valprint.c (ada_value_print): Use common_val_print.
13240 2020-03-13 Tom Tromey <tom@tromey.com>
13242 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13244 2020-03-13 Tom Tromey <tom@tromey.com>
13246 * ada-valprint.c (ada_value_print_num): New function.
13247 (ada_value_print_1): Use it.
13249 2020-03-13 Tom Tromey <tom@tromey.com>
13251 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13255 * ada-valprint.c (ada_value_print_ptr): New function.
13256 (ada_value_print_1): Use it.
13258 2020-03-13 Tom Tromey <tom@tromey.com>
13260 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13261 call common_val_print.
13262 (ada_val_print_1): Update.
13263 (ada_value_print_1): New function.
13264 (ada_value_print_inner): Rewrite.
13266 2020-03-13 Tom Tromey <tom@tromey.com>
13268 * cp-valprint.c (cp_print_value_fields): Update.
13269 (cp_print_value): New function.
13271 2020-03-13 Tom Tromey <tom@tromey.com>
13273 * m2-valprint.c (m2_value_print_inner): Use
13274 cp_print_value_fields.
13275 * cp-valprint.c (cp_print_value_fields): New function.
13276 * c-valprint.c (c_value_print_struct): New function.
13277 (c_value_print_inner): Use c_value_print_struct.
13278 * c-lang.h (cp_print_value_fields): Declare.
13280 2020-03-13 Tom Tromey <tom@tromey.com>
13282 * c-valprint.c (c_value_print_array): New function.
13283 (c_value_print_inner): Use it.
13285 2020-03-13 Tom Tromey <tom@tromey.com>
13287 * c-valprint.c (c_value_print_memberptr): New function.
13288 (c_value_print_inner): Use it.
13290 2020-03-13 Tom Tromey <tom@tromey.com>
13292 * c-valprint.c (c_value_print_int): New function.
13293 (c_value_print_inner): Use it.
13295 2020-03-13 Tom Tromey <tom@tromey.com>
13297 * c-valprint.c (c_value_print_ptr): New function.
13298 (c_value_print_inner): Use it.
13300 2020-03-13 Tom Tromey <tom@tromey.com>
13302 * c-valprint.c (c_value_print_inner): Rewrite.
13304 2020-03-13 Tom Tromey <tom@tromey.com>
13306 * valprint.c (generic_value_print_complex): New function.
13307 (generic_value_print): Use it.
13309 2020-03-13 Tom Tromey <tom@tromey.com>
13311 * valprint.c (generic_val_print_float): Don't call
13312 val_print_scalar_formatted.
13313 (generic_val_print, generic_value_print): Update.
13315 2020-03-13 Tom Tromey <tom@tromey.com>
13317 * valprint.c (generic_value_print_char): New function
13318 (generic_value_print): Use it.
13320 2020-03-13 Tom Tromey <tom@tromey.com>
13322 * valprint.c (generic_value_print_int): New function.
13323 (generic_value_print): Use it.
13325 2020-03-13 Tom Tromey <tom@tromey.com>
13327 * valprint.c (generic_value_print_bool): New function.
13328 (generic_value_print): Use it.
13330 2020-03-13 Tom Tromey <tom@tromey.com>
13332 * valprint.c (generic_val_print_func): Simplify.
13333 (generic_val_print, generic_value_print): Update.
13335 2020-03-13 Tom Tromey <tom@tromey.com>
13337 * valprint.c (generic_val_print_flags): Remove.
13338 (generic_val_print, generic_value_print): Update.
13339 (val_print_type_code_flags): Add original_value parameter.
13341 2020-03-13 Tom Tromey <tom@tromey.com>
13343 * valprint.c (generic_val_print): Update.
13344 (generic_value_print): Update.
13345 * valprint.c (generic_val_print_enum): Don't call
13346 val_print_scalar_formatted.
13348 2020-03-13 Tom Tromey <tom@tromey.com>
13350 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13351 * valprint.c (generic_value_print_ptr): New function.
13353 2020-03-13 Tom Tromey <tom@tromey.com>
13355 * valprint.c (generic_value_print): Rewrite.
13357 2020-03-13 Tom Tromey <tom@tromey.com>
13359 * p-valprint.c (pascal_object_print_value_fields)
13360 (pascal_object_print_value): New functions.
13362 2020-03-13 Tom Tromey <tom@tromey.com>
13364 * p-valprint.c (pascal_value_print_inner): Rewrite.
13366 2020-03-13 Tom Tromey <tom@tromey.com>
13368 * f-valprint.c (f_value_print_innner): Rewrite.
13370 2020-03-13 Tom Tromey <tom@tromey.com>
13372 * m2-valprint.c (m2_print_unbounded_array): New overload.
13373 (m2_print_unbounded_array): Update.
13374 (m2_print_array_contents): Take a struct value.
13375 (m2_value_print_inner): Rewrite.
13377 2020-03-13 Tom Tromey <tom@tromey.com>
13379 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13380 (d_value_print_inner): New function.
13381 * d-lang.h (d_value_print_inner): Declare.
13382 * d-lang.c (d_language_defn): Use d_value_print_inner.
13384 2020-03-13 Tom Tromey <tom@tromey.com>
13386 * go-valprint.c (go_value_print_inner): New function.
13387 * go-lang.h (go_value_print_inner): Declare.
13388 * go-lang.c (go_language_defn): Use go_value_print_inner.
13390 2020-03-13 Tom Tromey <tom@tromey.com>
13392 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13394 (rust_val_print): Rewrite.
13395 (rust_value_print_inner): New function, from rust_val_print.
13396 (rust_language_defn): Use rust_value_print_inner.
13398 2020-03-13 Tom Tromey <tom@tromey.com>
13400 * ada-valprint.c (ada_value_print_inner): New function.
13401 * ada-lang.h (ada_value_print_inner): Declare.
13402 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13404 2020-03-13 Tom Tromey <tom@tromey.com>
13406 * f-valprint.c (f_value_print_innner): New function.
13407 * f-lang.h (f_value_print_innner): Declare.
13408 * f-lang.c (f_language_defn): Use f_value_print_innner.
13410 2020-03-13 Tom Tromey <tom@tromey.com>
13412 * p-valprint.c (pascal_value_print_inner): New function.
13413 * p-lang.h (pascal_value_print_inner): Declare.
13414 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13416 2020-03-13 Tom Tromey <tom@tromey.com>
13418 * m2-valprint.c (m2_value_print_inner): New function.
13419 * m2-lang.h (m2_value_print_inner): Declare.
13420 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13422 2020-03-13 Tom Tromey <tom@tromey.com>
13424 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13425 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13426 * c-valprint.c (c_value_print_inner): New function.
13427 * c-lang.h (c_value_print_inner): Declare.
13428 * c-lang.c (c_language_defn, cplus_language_defn)
13429 (asm_language_defn, minimal_language_defn): Use
13430 c_value_print_inner.
13432 2020-03-13 Tom Tromey <tom@tromey.com>
13434 * p-valprint.c (pascal_object_print_value_fields): Now static.
13435 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13437 2020-03-13 Tom Tromey <tom@tromey.com>
13439 * c-valprint.c (c_val_print_array): Simplify.
13441 2020-03-13 Tom Tromey <tom@tromey.com>
13443 * valprint.c (value_print_array_elements): New function.
13444 * valprint.h (value_print_array_elements): Declare.
13446 2020-03-13 Tom Tromey <tom@tromey.com>
13448 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13449 * mips-tdep.c (mips_print_register): Use
13450 value_print_scalar_formatted.
13452 2020-03-13 Tom Tromey <tom@tromey.com>
13454 * valprint.h (value_print_scalar_formatted): Declare.
13455 * valprint.c (value_print_scalar_formatted): New function.
13457 2020-03-13 Tom Tromey <tom@tromey.com>
13459 * valprint.h (generic_value_print): Declare.
13460 * valprint.c (generic_value_print): New function.
13462 2020-03-13 Tom Tromey <tom@tromey.com>
13464 * valprint.c (do_val_print): Call la_value_print_inner, if
13466 * rust-lang.c (rust_language_defn): Update.
13467 * p-lang.c (pascal_language_defn): Update.
13468 * opencl-lang.c (opencl_language_defn): Update.
13469 * objc-lang.c (objc_language_defn): Update.
13470 * m2-lang.c (m2_language_defn): Update.
13471 * language.h (struct language_defn) <la_value_print_inner>: New
13473 * language.c (unknown_language_defn, auto_language_defn): Update.
13474 * go-lang.c (go_language_defn): Update.
13475 * f-lang.c (f_language_defn): Update.
13476 * d-lang.c (d_language_defn): Update.
13477 * c-lang.c (c_language_defn, cplus_language_defn)
13478 (asm_language_defn, minimal_language_defn): Update.
13479 * ada-lang.c (ada_language_defn): Update.
13481 2020-03-13 Tom Tromey <tom@tromey.com>
13483 * c-valprint.c (c_value_print): Use common_val_print.
13485 2020-03-13 Tom Tromey <tom@tromey.com>
13487 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13489 2020-03-13 Tom Tromey <tom@tromey.com>
13491 * f-valprint.c (f77_print_array_1, f_val_print): Use
13494 2020-03-13 Tom Tromey <tom@tromey.com>
13496 * riscv-tdep.c (riscv_print_one_register_info): Use
13499 2020-03-13 Tom Tromey <tom@tromey.com>
13501 * mi/mi-main.c (output_register): Use common_val_print.
13503 2020-03-13 Tom Tromey <tom@tromey.com>
13505 * infcmd.c (default_print_one_register_info): Use
13508 2020-03-13 Tom Tromey <tom@tromey.com>
13510 * valprint.h (common_val_print_checked): Declare.
13511 * valprint.c (common_val_print_checked): New function.
13512 * stack.c (print_frame_arg): Use common_val_print_checked.
13514 2020-03-13 Tom Tromey <tom@tromey.com>
13516 * valprint.c (do_val_print): New function, from val_print.
13517 (val_print): Use do_val_print.
13518 (common_val_print): Use do_val_print.
13520 2020-03-13 Tom Tromey <tom@tromey.com>
13522 * valprint.c (value_print): Use scoped_value_mark.
13524 2020-03-13 Tom de Vries <tdevries@suse.de>
13527 * psymtab.c (partial_symtab::partial_symtab): Don't set
13528 globals_offset and statics_offset. Push element onto
13529 current_global_psymbols and current_static_psymbols stacks.
13530 (concat): New function.
13531 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13532 element from current_global_psymbols and current_static_psymbols
13533 stacks. Concat popped elements to global_psymbols and
13535 (add_psymbol_to_list): Use current_global_psymbols and
13536 current_static_psymbols stacks.
13537 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13538 current_static_psymbols fields.
13540 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13542 * corelow.c (sniff_core_bfd): Remove.
13543 (class core_target) <m_core_vec>: Remove.
13544 (core_target::core_target): Update.
13545 (core_file_fns): Remove.
13546 (deprecated_add_core_fns): Remove.
13547 (default_core_sniffer): Remove.
13548 (sniff_core_bfd): Remove.
13549 (default_check_format): Remove.
13550 (gdb_check_format): Remove.
13551 (core_target_open): Update.
13552 (core_target::get_core_register_section): Update.
13553 (get_core_registers_cb): Update.
13554 (core_target::fetch_registers): Update.
13555 * gdbcore.h (struct core_fns): Remove.
13556 (deprecated_add_core_fns): Remove.
13557 (default_core_sniffer): Remove.
13558 (default_check_format): Remove.
13560 2020-03-12 Tom Tromey <tom@tromey.com>
13562 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13564 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13566 2020-03-12 Tom Tromey <tom@tromey.com>
13568 * remote.c (remote_target::download_tracepoint)
13569 (remote_target::enable_tracepoint)
13570 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13571 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13574 2020-03-12 Tom Tromey <tom@tromey.com>
13576 * symfile-mem.c: Update CORE_ADDR size assert.
13578 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13580 * selftest.m4: Move to gdbsupport/.
13581 * acinclude.m4: Update path to selftest.m4.
13583 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13586 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13587 gdbarch-selfselftests.c and selftest-arch.c.
13588 (SUBDIR_UNITTESTS_OBS): Rename to...
13589 (SELFTESTS_OBS): ... this.
13590 (COMMON_SFILES): Remove disasm-selftests.c and
13591 gdbarch-selftests.c.
13592 * configure.ac: Don't add selftest-arch.{c,o} to
13594 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13595 preprocessor conditions.
13597 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13599 * configure.ac: Don't source bfd/development.sh.
13600 * selftest.m4: Modify comment.
13601 * configure: Re-generate.
13603 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13605 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13606 not "true" or "false".
13607 * configure: Re-generate.
13609 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13611 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13612 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13613 renamed to arm_nbsd_supply_gregset.
13614 (fetch_register): Update to call arm_nbsd_supply_gregset.
13615 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13616 (arm_netbsd_nat_target::fetch_registers): Update.
13617 (fetch_elfcore_registers): Removed.
13618 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13619 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13620 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13621 not require NetBSD system headers.
13622 (arm_nbsd_regset): New struct.
13623 (arm_nbsd_iterate_over_regset_sections): New function.
13624 (arm_netbsd_init_abi_common): Updated to call
13625 set_gdbarch_iterate_over_regset_sections.
13626 * arm-nbsd-tdep.h: New file.
13628 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13630 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13633 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13635 * configure: Re-generate.
13637 2020-03-11 Tom Tromey <tromey@adacore.com>
13639 * ada-typeprint.c (print_choices): Fix comment.
13641 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13643 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13644 previous item in the list, when the list has no items.
13646 2020-03-11 Tom de Vries <tdevries@suse.de>
13648 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13649 PROP_LOCLIST handling code.
13651 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13653 * buildsym-legacy.c (record_line): Pass extra parameter to
13655 * buildsym.c (buildsym_compunit::record_line): Take an extra
13656 parameter, reduce duplication in the line table, and record the
13657 is_stmt flag in the line table.
13658 * buildsym.h (buildsym_compunit::record_line): Add extra
13660 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13661 non-statement lines.
13662 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13663 this to the symtab builder.
13664 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13665 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13666 through to dwarf_record_line_1.
13667 * infrun.c (process_event_stop_test): When stepping, don't stop at
13668 a non-statement instruction, and only refresh the step info when
13669 we land in the middle of a line's range. Also add an extra
13671 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13673 * record-btrace.c (btrace_find_line_range): Only record lines
13674 marked as is-statement.
13675 * stack.c (frame_show_address): Show the frame address if we are
13676 in a non-statement sal.
13677 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13678 (maintenance_print_one_line_table): Print a header for the is_stmt
13679 column, and include is_stmt information in the output.
13680 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13681 preference to non-statements.
13682 (find_pcs_for_symtab_line): Prefer is-statement entries.
13683 (find_line_common): Likewise.
13684 * symtab.h (struct linetable_entry): Add is_stmt field.
13685 (struct symtab_and_line): Likewise.
13686 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13687 arranging the line table.
13689 2020-03-07 Tom de Vries <tdevries@suse.de>
13691 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13694 2020-03-07 Tom Tromey <tom@tromey.com>
13696 * valops.c (value_literal_complex): Remove obsolete comment.
13697 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13700 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13702 * infrun.h: Forward-declare thread_info.
13703 (set_step_info): Add thread_info parameter, add doc.
13704 * infrun.c (set_step_info): Add thread_info parameter, move doc
13706 * infrun.c (process_event_stop_test): Pass thread to
13707 set_step_info call.
13708 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13710 (prepare_one_step): Add thread_info parameter, pass it to
13711 set_step_frame and prepare_one_step (recursive) call.
13712 (step_1): Pass thread to prepare_one_step call.
13713 (step_command_fsm::should_stop): Pass thread to
13715 (until_next_fsm): Pass thread to set_step_frame call.
13716 (finish_command): Pass thread to set_step_info call.
13718 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13720 * windows-tdep.c (windows_solib_create_inferior_hook):
13721 Check if inferior is running.
13723 2020-03-06 Tom de Vries <tdevries@suse.de>
13725 * NEWS: Fix "the the".
13728 2020-03-06 Tom de Vries <tdevries@suse.de>
13730 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13732 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13734 * .dir-locals.el: Add a comment referencing the other copies of
13737 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13739 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13742 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13744 * .gitattributes: New file.
13746 2020-03-04 Tom Tromey <tom@tromey.com>
13748 * symmisc.c (print_symbol_bcache_statistics)
13749 (print_objfile_statistics): Update.
13750 * symfile.c (allocate_symtab): Use intern.
13751 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13752 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13753 macro_cache>: Remove.
13754 <string_cache>: New member.
13755 (struct objfile) <intern>: New methods.
13756 * elfread.c (elf_symtab_read): Use intern.
13757 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13758 (dwarf2_compute_name, dwarf2_physname)
13759 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13761 (guess_partial_die_structure_name): Update.
13762 (partial_die_info::fixup): Intern name.
13763 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13765 (dwarf2_name): Intern name. Update.
13766 * buildsym.c (buildsym_compunit::get_macro_table): Use
13769 2020-03-04 Tom Tromey <tom@tromey.com>
13771 * jit.c (bfd_open_from_target_memory): Make "target" const.
13772 * corefile.c (gnutarget): Now const.
13773 * gdbcore.h (gnutarget): Now const.
13775 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13777 * NEWS: Mention support for WOW64 processes.
13778 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13779 (amd64_windows_segment_register_p): Remove static.
13780 (_initialize_amd64_windows_nat): Update.
13781 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13782 * i386-windows-nat.c (context_offset): Update.
13783 (i386_mappings): Rename and remove static.
13784 (i386_windows_segment_register_p): Remove static.
13785 (_initialize_i386_windows_nat): Update.
13786 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13787 (STATUS_WX86_SINGLE_STEP): New macro.
13788 (EnumProcessModulesEx): New macro.
13789 (Wow64SuspendThread): New macro.
13790 (Wow64GetThreadContext): New macro.
13791 (Wow64SetThreadContext): New macro.
13792 (Wow64GetThreadSelectorEntry): New macro.
13793 (windows_set_context_register_offsets): Add static.
13794 (windows_set_segment_register_p): Likewise.
13795 (windows_add_thread): Adapt for WOW64 processes.
13796 (windows_fetch_one_register): Likewise.
13797 (windows_nat_target::fetch_registers): Likewise.
13798 (windows_store_one_register): Likewise.
13799 (display_selector): Likewise.
13800 (display_selectors): Likewise.
13801 (handle_exception): Likewise.
13802 (windows_continue): Likewise.
13803 (windows_nat_target::resume): Likewise.
13804 (windows_add_all_dlls): Likewise.
13805 (do_initial_windows_stuff): Likewise.
13806 (windows_nat_target::attach): Likewise.
13807 (windows_get_exec_module_filename): Likewise.
13808 (windows_nat_target::create_inferior): Likewise.
13809 (windows_xfer_siginfo): Likewise.
13810 (_initialize_loadable): Initialize Wow64SuspendThread,
13811 Wow64GetThreadContext, Wow64SetThreadContext,
13812 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13813 * windows-nat.h (windows_set_context_register_offsets):
13814 Remove declaration.
13815 (windows_set_segment_register_p): Likewise.
13816 (i386_windows_segment_register_p): Add declaration.
13817 (amd64_windows_segment_register_p): Likewise.
13819 2020-03-04 Luis Machado <luis.machado@linaro.org>
13821 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13822 in "info registers" for AArch64/ARM.
13824 The change caused "info registers" to not print GPR's.
13828 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13830 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13831 when reg->group is empty and reggroup is not.
13833 2020-03-03 Tom Tromey <tromey@adacore.com>
13835 * dwarf2/frame.c (struct dwarf2_frame_cache)
13836 <checked_tailcall_bottom, entry_cfa_sp_offset,
13837 entry_cfa_sp_offset_p>: Remove members.
13838 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13839 (dwarf2_frame_prev_register): Don't call
13840 dwarf2_tailcall_sniffer_first.
13841 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13842 * frame-unwind.c (add_unwinder): New fuction.
13843 (frame_unwind_init): Use it. Add tailcall unwinder.
13845 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13846 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13848 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13849 value should be printed as true.
13851 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13853 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13854 (windows_init_abi): Set and use windows_so_ops.
13856 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13858 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13859 when verifying if dealing with a convenience variable.
13861 2020-03-03 Luis Machado <luis.machado@linaro.org>
13863 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13865 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13867 * infrun.c (gdbarch_supports_displaced_stepping): New.
13868 (use_displaced_stepping): Break up conditions in smaller pieces.
13869 Use gdbarch_supports_displaced_stepping.
13870 (displaced_step_prepare_throw): Use
13871 gdbarch_supports_displaced_stepping.
13873 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13875 * NEWS: Mention new behaviour of the history filename.
13876 * top.c (write_history_p): Add comment.
13877 (show_write_history_p): Add header comment, give a different
13878 message when history writing is on, but the history filename is
13880 (history_filename): Add comment.
13881 (history_filename_empty): New function.
13882 (show_history_filename): Add header comment, give a different
13883 message when the filename is empty.
13884 (init_history): Compare history_filename against nullptr, and only
13885 read history if the filename is not empty.
13886 (set_history_filename): Add header comment, and only make
13887 non-empty filenames absolute.
13888 (init_main): Make the filename argument to 'set history filename'
13891 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13893 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13894 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13895 (fetch_fp_register): Update.
13896 (fetch_fp_regs): Update.
13897 (store_fp_register): Update.
13898 (store_fp_regs): Update.
13899 (arm_netbsd_nat_target::read_description): New function.
13900 (fetch_elfcore_registers): Update.
13902 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13904 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13905 general_thread if the stop reply is missing a thread-id.
13906 (remote_target::process_stop_reply): Use the first non-exited
13907 thread if the target didn't pass a thread-id.
13908 * infrun.c (do_target_wait): Move call to
13909 switch_to_inferior_no_thread to ....
13910 (do_target_wait_1): ... here.
13912 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13914 * debuginfod-support.c: Include defs.h first.
13916 2020-02-28 Tom de Vries <tdevries@suse.de>
13918 * symfile.c (set_initial_language): Use default language for lookup.
13920 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13922 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13923 reader variable, pass `this` to read_cutu_die_from_dwo.
13925 2020-02-27 Aaron Merey <amerey@redhat.com>
13927 * source.c (open_source_file): Check for nullptr when computing
13930 2020-02-27 Tom Tromey <tromey@adacore.com>
13932 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13934 (dwarf2_add_field): Don't update nfields.
13935 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13937 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13939 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13942 2020-02-26 Tom Tromey <tom@tromey.com>
13944 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13945 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13946 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13947 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13950 2020-02-26 Tom Tromey <tom@tromey.com>
13952 * dwarf2/index-write.c (psym_index_map): Change type.
13953 (add_address_entry_worker, write_one_signatured_type)
13954 (recursively_count_psymbols, recursively_write_psymbols)
13955 (class debug_names, psyms_seen_size, write_gdbindex)
13956 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13958 2020-02-26 Aaron Merey <amerey@redhat.com>
13960 * Makefile.in: Handle optional debuginfod support.
13962 * README: Add --with-debuginfod summary.
13963 * config.in: Regenerate.
13964 * configure: Regenerate.
13965 * configure.ac: Handle optional debuginfod support.
13966 * debuginfod-support.c: debuginfod helper functions.
13967 * debuginfod-support.h: Ditto.
13968 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13970 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13971 when a dwz file cannot be found.
13972 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13973 debuginfo file cannot be found.
13974 * source.c (open_source_file): Query debuginfod servers when a
13975 source file cannot be found.
13976 * top.c (print_gdb_configuration): Include
13977 --{with,without}-debuginfod in the output.
13979 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13981 * thread.c (thr_try_catch_cmd): Print thread name.
13983 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13985 * dwarf2/loc.h (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 to...
13988 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13989 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13990 dwarf2_fetch_die_type_sect_off): ... here.
13991 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13992 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13993 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13995 2020-02-26 Tom de Vries <tdevries@suse.de>
13998 * symfile.c (set_initial_language): Exit-early if
13999 language_mode == language_mode_manual.
14001 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14003 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14004 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14005 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14007 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14009 * gdbtypes.c (create_array_type_with_stride): Handle negative
14011 * valarith.c (value_subscripted_rvalue): Likewise.
14013 2020-02-25 Luis Machado <luis.machado@linaro.org>
14015 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14017 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14019 * loc.h (dwarf2_get_die_type): Move to...
14020 * read.h (dwarf2_get_die_type): ... here.
14021 * read.c (dwarf2_get_die_type): Move doc to header.
14023 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14025 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14026 'gnulib/Makefile.in' to the list.
14028 2020-02-24 Tom Tromey <tom@tromey.com>
14030 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14032 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14035 2020-02-24 Tom Tromey <tom@tromey.com>
14037 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14039 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14040 (dw2_do_instantiate_symtab, dw2_get_file_names)
14041 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14043 2020-02-24 Tom Tromey <tom@tromey.com>
14045 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14046 make_scoped_restore.
14047 (dwarf2_psymtab::read_symtab): Don't clear
14048 reading_partial_symbols.
14050 2020-02-24 Tom de Vries <tdevries@suse.de>
14053 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14055 2020-02-24 Tom de Vries <tdevries@suse.de>
14057 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14058 commands layout next/prev/regs.
14060 2020-02-22 Tom Tromey <tom@tromey.com>
14062 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14063 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14065 2020-02-22 Tom Tromey <tom@tromey.com>
14067 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14069 2020-02-22 Tom Tromey <tom@tromey.com>
14071 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14072 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14073 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14074 * tui/tui.c (_initialize_tui): Add usage text.
14076 2020-02-22 Tom Tromey <tom@tromey.com>
14078 * tui/tui-win.c (tui_set_focus_command)
14079 (tui_set_win_height_command): Use error_no_arg.
14080 (_initialize_tui_win): Update help text.
14081 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14083 2020-02-22 Tom Tromey <tom@tromey.com>
14085 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14086 * tui/tui-disasm.h (struct tui_disasm_window)
14087 <display_start_addr>: Declare.
14088 * tui/tui-source.h (struct tui_source_window)
14089 <display_start_addr>: Declare.
14090 * tui/tui-winsource.h (struct tui_source_window_base)
14091 <show_source_line, display_start_addr>: New methods.
14092 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14093 Rename and move to protected section.
14094 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14095 (tui_source_window_base::do_erase_source_content): Update.
14096 (tui_source_window_base::show_source_line): Now a method.
14097 (tui_source_window_base::show_source_content)
14098 (tui_source_window_base::tui_source_window_base)
14099 (tui_source_window_base::rerender)
14100 (tui_source_window_base::refill)
14101 (tui_source_window_base::do_scroll_horizontal)
14102 (tui_source_window_base::set_is_exec_point_at)
14103 (tui_source_window_base::update_breakpoint_info)
14104 (tui_source_window_base::update_exec_info): Update.
14105 * tui/tui-source.c (tui_source_window::set_contents)
14106 (tui_source_window::showing_source_p)
14107 (tui_source_window::do_scroll_vertical)
14108 (tui_source_window::location_matches_p)
14109 (tui_source_window::line_is_displayed): Update.
14110 (tui_source_window::display_start_addr): New method.
14111 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14112 (tui_disasm_window::do_scroll_vertical)
14113 (tui_disasm_window::location_matches_p): Update.
14114 (tui_disasm_window::display_start_addr): New method.
14116 2020-02-22 Tom Tromey <tom@tromey.com>
14118 * NEWS: Add entry for gdb.register_window_type.
14119 * tui/tui-layout.h (window_factory): New typedef.
14120 (tui_register_window): Declare.
14121 * tui/tui-layout.c (saved_tui_windows): New global.
14122 (tui_apply_current_layout): Use it.
14123 (tui_register_window): New function.
14124 * python/python.c (do_start_initialization): Call
14125 gdbpy_initialize_tui.
14126 (python_GdbMethods): Add "register_window_type" function.
14127 * python/python-internal.h (gdbpy_register_tui_window)
14128 (gdbpy_initialize_tui): Declare.
14129 * python/py-tui.c: New file.
14130 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14132 2020-02-22 Tom Tromey <tom@tromey.com>
14134 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14136 2020-02-22 Tom Tromey <tom@tromey.com>
14138 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14139 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14140 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14141 (tui_set_win_focus_to): Move from tui-win.c.
14143 2020-02-22 Tom Tromey <tom@tromey.com>
14145 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14147 (known_window_types): New global.
14148 (tui_get_window_by_name): Reimplement.
14149 (initialize_known_windows): New function.
14150 (validate_window_name): Rewrite.
14151 (_initialize_tui_layout): Call initialize_known_windows.
14153 2020-02-22 Tom Tromey <tom@tromey.com>
14155 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14157 * tui/tui-winsource.h (struct tui_source_window_base)
14158 <tui_source_window_base>: Remove parameter.
14159 * tui/tui-winsource.c
14160 (tui_source_window_base::tui_source_window_base): Remove
14162 (tui_source_window_base::refill): Update.
14163 * tui/tui-stack.h (struct tui_locator_window)
14164 <tui_locator_window>: Update.
14165 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14166 Default the constructor.
14167 * tui/tui-regs.h (struct tui_data_item_window)
14168 <tui_data_item_window>: Default the constructor.
14169 (struct tui_data_window) <tui_data_window>: Likewise.
14170 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14171 Default the constructor.
14172 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14173 Default the constructor.
14175 (struct tui_win_info) <tui_win_info>: Default the constructor.
14176 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14177 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14178 Default the constructor.
14180 2020-02-22 Tom Tromey <tom@tromey.com>
14182 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14183 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14184 * tui/tui-win.c (tui_resize_all): Don't call
14185 tui_delete_invisible_windows.
14186 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14188 (tui_set_layout): Update.
14189 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14190 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14191 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14193 2020-02-22 Tom Tromey <tom@tromey.com>
14195 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14198 2020-02-22 Tom Tromey <tom@tromey.com>
14200 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14202 2020-02-22 Tom Tromey <tom@tromey.com>
14204 * tui/tui-winsource.h (struct tui_source_window_iterator)
14205 <inner_iterator>: New etytypedef.
14206 <tui_source_window_iterator>: Take "end" parameter.
14207 <tui_source_window_iterator>: Take iterator.
14208 <operator*, advance>: Update.
14209 <m_iter>: Change type.
14210 <m_end>: New field.
14211 (struct tui_source_windows) <begin, end>: Update.
14212 * tui/tui-layout.c (tui_windows): New global.
14213 (tui_apply_current_layout): Clear tui_windows.
14214 (tui_layout_window::apply): Update tui_windows.
14215 * tui/tui-data.h (tui_windows): Declare.
14216 (all_tui_windows): Now inline function.
14217 (class tui_window_iterator, struct all_tui_windows): Remove.
14219 2020-02-22 Tom Tromey <tom@tromey.com>
14222 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14223 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14225 (class tui_layout_window) <get_sizes>: Likewise.
14226 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14228 <get_sizes>: Add "height" argument.
14229 <m_vertical>: New field.
14230 * tui/tui-layout.c (tui_layout_split::clone): Update.
14231 (tui_layout_split::get_sizes): Add "height" argument.
14232 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14233 (tui_new_layout_command): Parse "-horizontal".
14234 (_initialize_tui_layout): Update help string.
14235 (tui_layout_split::specification): Add "-horizontal" when needed.
14236 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14238 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14241 2020-02-22 Tom Tromey <tom@tromey.com>
14243 * tui/tui-layout.h (enum tui_adjust_result): New.
14244 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14245 (class tui_layout_window) <adjust_size>: Return
14246 tui_adjust_result. Rewrite.
14247 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14248 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14250 2020-02-22 Tom Tromey <tom@tromey.com>
14252 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14253 parameter and return types.
14254 (class tui_layout_base) <specification>: Add "depth".
14255 (class tui_layout_window) <specification>: Add "depth".
14256 (class tui_layout_split) <specification>: Add "depth".
14257 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14259 (tui_new_layout_command): Parse sub-layouts.
14260 (_initialize_tui_layout): Update help string.
14261 (tui_layout_window::specification): Add "depth".
14262 (add_layout_command): Update.
14264 2020-02-22 Tom Tromey <tom@tromey.com>
14266 * NEWS: Add "tui new-layout" item.
14267 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14268 Add new-layout command to help text.
14269 (validate_window_name): New function.
14270 (tui_new_layout_command): New function.
14271 (_initialize_tui_layout): Register "new-layout".
14272 (tui_layout_window::specification): New method.
14273 (tui_layout_window::specification): New method.
14274 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14276 (class tui_layout_window) <specification>: New method.
14277 (class tui_layout_split) <specification>: New method.
14279 2020-02-22 Tom Tromey <tom@tromey.com>
14281 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14282 * tui/tui-win.c (window_name_completer): Update comment.
14283 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14285 (class tui_layout_window) <replace_window>: Likewise.
14286 (class tui_layout_split) <replace_window>: Likewise.
14287 (tui_set_layout): Don't declare.
14288 (tui_set_initial_layout): Declare function.
14289 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14290 (asm_regs_layout): New globals.
14291 (tui_current_layout, show_layout): Remove.
14292 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14293 (find_layout, tui_apply_layout): New function.
14294 (layout_completer): Remove.
14295 (tui_next_layout): Reimplement.
14296 (tui_next_layout_command): New function.
14297 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14298 (tui_regs_layout): Reimplement.
14299 (tui_regs_layout_command): New function.
14300 (extract_display_start_addr): Rewrite.
14301 (next_layout, prev_layout): Remove.
14302 (tui_layout_window::replace_window): New method.
14303 (tui_layout_split::replace_window): New method.
14304 (destroy_layout): New function.
14305 (layout_list): New global.
14306 (add_layout_command): New function.
14307 (initialize_layouts): Update.
14308 (tui_layout_command): New function.
14309 (_initialize_tui_layout): Install "layout" commands.
14310 * tui/tui-data.h (enum tui_layout_type): Remove.
14311 (tui_current_layout): Don't declare.
14313 2020-02-22 Tom Tromey <tom@tromey.com>
14315 * tui/tui-regs.c (tui_reg_layout): Remove.
14316 (tui_reg_command): Use tui_regs_layout.
14317 * tui/tui-layout.h (tui_reg_command): Declare.
14318 * tui/tui-layout.c (tui_reg_command): New function.
14320 2020-02-22 Tom Tromey <tom@tromey.com>
14322 * tui/tui.c (tui_rl_delete_other_windows): Call
14323 tui_remove_some_windows.
14324 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14326 (class tui_layout_window) <remove_windows>: New method.
14327 (class tui_layout_split) <remove_windows>: Declare.
14328 (tui_remove_some_windows): Declare.
14329 * tui/tui-layout.c (tui_remove_some_windows): New function.
14330 (tui_layout_split::remove_windows): New method.
14332 2020-02-22 Tom Tromey <tom@tromey.com>
14334 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14335 * tui/tui-layout.h (tui_next_layout): Declare.
14336 * tui/tui-layout.c (tui_next_layout): New function.
14338 2020-02-22 Tom Tromey <tom@tromey.com>
14340 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14341 correct coordinates.
14343 2020-02-22 Tom Tromey <tom@tromey.com>
14345 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14346 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14349 2020-02-22 Tom Tromey <tom@tromey.com>
14351 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14352 TUI_DISASM_WIN, not tui_win_list.
14354 2020-02-22 Tom Tromey <tom@tromey.com>
14356 * valprint.c (generic_val_print_enum_1)
14357 (val_print_type_code_flags): Style member names.
14358 * rust-lang.c (val_print_struct, rust_print_enum)
14359 (rust_print_struct_def, rust_internal_print_type): Style member
14361 * p-valprint.c (pascal_object_print_value_fields): Style member
14362 names. Only call fprintf_symbol_filtered for static members.
14363 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14364 * f-valprint.c (f_val_print): Style member names.
14365 * f-typeprint.c (f_type_print_base): Style member names.
14366 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14367 call fprintf_symbol_filtered for static members.
14368 (cp_print_class_member): Style member names.
14369 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14371 * ada-valprint.c (ada_print_scalar): Style enum names.
14372 (ada_val_print_enum): Likewise.
14373 * ada-typeprint.c (print_enum_type): Style enum names.
14375 2020-02-21 Tom Tromey <tom@tromey.com>
14377 * psympriv.h (struct partial_symtab): Update comment.
14379 2020-02-21 Tom Tromey <tromey@adacore.com>
14381 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14384 2020-02-21 Tom de Vries <tdevries@suse.de>
14387 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14388 if dependencies[i]->user != NULL.
14390 2020-02-21 Ali Tamur <tamur@google.com>
14392 * dwarf2/read.c (dwarf2_name): Add null check.
14394 2020-02-20 Tom Tromey <tom@tromey.com>
14396 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14397 ">=", in binary search.
14398 (dwarf2_find_containing_comp_unit): New overload.
14399 (run_test): New self-test.
14400 (_initialize_dwarf2_read): Register new test.
14402 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14404 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14405 * riscv-tdep.h: Likewise.
14406 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14408 * features/riscv/64bit-csr.xml: Regenerated.
14410 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14411 Tom Tromey <tom@tromey.com>
14413 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14414 of 'fputc_unfiltered'.
14415 (putchar_unfiltered): Call 'fputc_unfiltered'.
14416 (fputc_unfiltered): Call 'fputs_unfiltered'.
14418 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14420 * config.in: Regenerate.
14421 * configure: Regenerate.
14422 * configure.ac: Add --with-python-libdir option.
14423 * main.c: Use WITH_PYTHON_LIBDIR.
14425 2020-02-19 Tom Tromey <tom@tromey.com>
14427 * symtab.c (general_symbol_info::compute_and_set_names): Use
14428 obstack_strndup. Simplify call to symbol_set_demangled_name.
14430 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14432 * dwarf2/read.c (allocate_signatured_type_table,
14433 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14434 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14435 Remove objfile parameter, update all callers.
14437 2020-02-19 Doug Evans <dje@google.com>
14440 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14441 rust_enum_variant calculation.
14443 2020-02-19 Tom Tromey <tromey@adacore.com>
14445 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14447 2020-02-19 Tom Tromey <tromey@adacore.com>
14449 * ada-lang.c (cache_symbol): Use obstack_strdup.
14451 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14453 * configure: Regenerate.
14455 2020-02-19 Tom Tromey <tromey@adacore.com>
14457 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14460 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14462 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14464 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14466 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14467 if GDBSERVER is not defined.
14468 (riscv_tdesc_cache): Likewise, also store const target_desc.
14469 (STATIC_IN_GDB): Define.
14470 (riscv_create_target_description): Update declaration with
14472 (riscv_lookup_target_description): New function, only define if
14473 GDBSERVER is not defined.
14474 * arch/riscv.h (riscv_create_target_description): Declare only
14475 when GDBSERVER is defined.
14476 (riscv_lookup_target_description): New declaration when GDBSERVER
14478 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14479 (riscv_linux_read_features): ...this, and return
14480 riscv_gdbarch_features instead of target_desc.
14481 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14482 (riscv_linux_read_description): Rename to...
14483 (riscv_linux_read_features): ...this.
14484 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14485 Update to use riscv_gdbarch_features and
14486 riscv_lookup_target_description.
14487 * riscv-tdep.c (riscv_find_default_target_description): Use
14488 riscv_lookup_target_description instead of
14489 riscv_create_target_description.
14491 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14493 * valprint.c (generic_val_print_enum_1): When printing a flag
14494 enum with value 0 and there is no enumerator with value 0, print
14495 just "0" instead of "(unknown: 0x0)".
14497 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14499 * valprint.c (generic_val_print_enum_1): Print unknown part of
14502 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14504 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14505 flag enums to contain duplicate enumerators.
14506 * valprint.c (generic_val_print_enum_1): Update comment.
14508 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14510 * dwarf2/read.c: Include "count-one-bits.h".
14511 (update_enumeration_type_from_children): If an enumerator has
14512 multiple bits set, don't treat the enumeration as a "flag enum".
14513 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14514 of flag enums have 0 or 1 bit set.
14516 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14518 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14520 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14521 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14522 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14523 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14524 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14526 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14528 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14530 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14532 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14533 displaced_step_closure_up.
14534 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14535 (struct displaced_step_closure_up):
14536 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14537 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14538 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14540 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14541 * gdbarch.c, gdbarch.h: Re-generate.
14542 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14543 displaced_step_closure_up.
14544 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14545 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14546 * infrun.h (displaced_step_closure_up): New type alias.
14547 (struct displaced_step_inferior_state) <step_closure>: Change
14548 type to displaced_step_closure_up.
14549 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14550 displaced_step_closure_up.
14551 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14553 2020-02-14 Tom Tromey <tom@tromey.com>
14555 * minidebug.c (gnu_debug_key): New global.
14556 (find_separate_debug_file_in_section): Use it.
14558 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14560 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14562 * gdbarch.c: Re-generate.
14563 * gdbarch.h: Re-generate.
14564 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14566 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14567 type to std::unique_ptr.
14568 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14569 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14570 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14571 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14572 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14573 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14574 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14575 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14576 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14578 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14580 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14582 (displaced_step_clear): Rename to...
14583 (displaced_step_reset): ... this. Just call displaced->reset ().
14584 (displaced_step_clear_cleanup): Rename to...
14585 (displaced_step_reset_cleanup): ... this.
14586 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14587 (displaced_step_fixup): Likewise.
14588 (resume_1): Likewise.
14589 (handle_inferior_event): Restore child's memory before calling
14590 displaced_step_fixup on the parent.
14591 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14592 to std::unique_ptr.
14593 <step_closure>: Change type to std::unique_ptr.
14595 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14597 * arm-tdep.c: Include count-one-bits.h.
14598 (cleanup_block_store_pc): Use count_one_bits.
14599 (cleanup_block_load_pc): Use count_one_bits.
14600 (arm_copy_block_xfer): Use count_one_bits.
14601 (thumb2_copy_block_xfer): Use count_one_bits.
14602 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14603 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14604 (thumb_get_next_pcs_raw): Use count_one_bits.
14605 (arm_get_next_pcs_raw): Use count_one_bits_l.
14606 * arch/arm.c (bitcount): Remove.
14607 * arch/arm.h (bitcount): Remove.
14609 2020-02-14 Tom Tromey <tromey@adacore.com>
14611 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14613 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14614 * dwarf2/loc.c (call_site_find_chain_1): Return
14615 unique_xmalloc_ptr.
14616 (call_site_find_chain): Likewise.
14618 2020-02-14 Richard Biener <rguenther@suse.de>
14620 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14621 on expression with division operators.
14623 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14625 * MAINTAINERS (Write After Approval): Adding myself.
14627 2020-02-12 Tom Tromey <tom@tromey.com>
14629 * event-loop.c (event_data, gdb_event, event_handler_func):
14632 2020-02-12 Tom Tromey <tom@tromey.com>
14634 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14635 (dwarf2_frame_objfile_data): Add comment.
14636 (find_comp_unit, set_comp_unit): New functions.
14637 (dwarf2_frame_find_fde): Use find_comp_unit.
14638 (dwarf2_build_frame_info): Use set_comp_unit.
14640 2020-02-12 Tom Tromey <tom@tromey.com>
14642 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14643 (comp_unit): Don't initialize objfile.
14644 (execute_cfa_program): Add text_offset parameter.
14645 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14646 (dwarf2_frame_cache): Update.
14647 (dwarf2_build_frame_info): Don't set "objfile" member.
14649 2020-02-12 Tom Tromey <tom@tromey.com>
14651 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14652 (decode_frame_entry): Likewise.
14653 (dwarf2_build_frame_info): Update.
14655 2020-02-12 Tom Tromey <tom@tromey.com>
14657 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14658 (decode_frame_entry_1): Use the comp_unit obstack.
14660 2020-02-12 Tom Tromey <tom@tromey.com>
14662 * dwarf2/frame.c (struct comp_unit): Add initializers and
14664 (dwarf2_frame_objfile_data): Store a comp_unit.
14665 (dwarf2_frame_find_fde): Update.
14666 (dwarf2_build_frame_info): Use "new".
14668 2020-02-12 Tom Tromey <tom@tromey.com>
14670 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14671 (dwarf2_fde_table): Typedef for std::vector.
14672 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14673 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14674 (decode_frame_entry): Update.
14675 (dwarf2_build_frame_info): Use "new".
14677 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14679 * arm-tdep.c (arm_gdbarch_init): Update.
14680 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14681 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14682 have_neon, is_m>: Change to bool.
14684 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14686 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14688 2020-02-12 Tom Tromey <tom@tromey.com>
14690 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14692 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14694 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14695 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14697 2020-02-11 Tom Tromey <tom@tromey.com>
14699 * psymtab.h: Update comment.
14701 2020-02-11 Tom Tromey <tom@tromey.com>
14703 * gdb_obstack.h (struct auto_obstack): Use
14704 DISABLE_COPY_AND_ASSIGN.
14706 2020-02-11 Tom Tromey <tom@tromey.com>
14708 * dwarf2/frame.h (struct objfile): Don't forward declare.
14710 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14712 * cris-tdep.c (cris_supply_gregset): Change signature to match
14713 what struct regset expects.
14714 (cris_regset): New struct.
14715 (fetch_core_registers): Remove.
14716 (cris_iterate_over_regset_sections): New function.
14717 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14718 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14720 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14722 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14725 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14727 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14729 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14731 * configure: Re-generate.
14733 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14735 * configure: Re-generate.
14737 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14739 * acinclude: Update warning.m4 path.
14740 * warning.m4: Move to gdbsupport.
14742 2020-02-11 Tom Tromey <tromey@adacore.com>
14744 * remote.c (remote_console_output): Update.
14745 * printcmd.c (printf_command): Update.
14746 * event-loop.c (gdb_wait_for_event): Update.
14747 * linux-nat.c (sigchld_handler): Update.
14748 * remote-sim.c (gdb_os_write_stdout): Update.
14749 (gdb_os_flush_stdout): Update.
14750 (gdb_os_flush_stderr): Update.
14751 (gdb_os_write_stderr): Update.
14752 * exceptions.c (print_exception): Update.
14753 * remote-fileio.c (remote_fileio_func_read): Update.
14754 (remote_fileio_func_write): Update.
14755 * tui/tui.c (tui_enable): Update.
14756 * tui/tui-interp.c (tui_interp::init): Update.
14757 * utils.c (init_page_info): Update.
14758 (putchar_unfiltered, fputc_unfiltered): Update.
14759 (gdb_flush): Update.
14760 (emit_style_escape): Update.
14761 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14762 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14763 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14764 (stderr_file::write): Update.
14765 (stderr_file::puts): Update.
14766 * ui-file.h (ui_file_isatty, ui_file_write)
14767 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14768 (ui_file_puts): Don't declare.
14770 2020-02-10 Tom de Vries <tdevries@suse.de>
14772 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14773 sentinel to char *.
14775 2020-02-09 Tom de Vries <tdevries@suse.de>
14777 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14778 filename if it matches "<artificial>".
14780 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14782 * windows-tdep.c (struct enum_value_name): New struct.
14783 (create_enum): New function.
14784 (windows_get_siginfo_type): Create and use enum types.
14786 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14788 * NEWS: Mention $_siginfo support for Windows.
14789 * windows-nat.c (handle_exception): Set siginfo_er.
14790 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14791 (windows_xfer_siginfo): New function.
14792 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14793 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14794 (init_windows_gdbarch_data): New function.
14795 (get_windows_gdbarch_data): New function.
14796 (windows_get_siginfo_type): New function.
14797 (windows_init_abi): Register windows_get_siginfo_type.
14798 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14800 2020-02-08 Tom Tromey <tom@tromey.com>
14802 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14803 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14804 <keep>: Declare method.
14805 <m_keep>: Remove member.
14806 <~cutu_reader>: Remove.
14807 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14808 (cutu_reader::cutu_reader): Update.
14809 (cutu_reader::keep): Rename from ~cutu_reader.
14810 (process_psymtab_comp_unit, build_type_psymtabs_1)
14811 (process_skeletonless_type_unit, load_partial_comp_unit)
14812 (load_full_comp_unit, dwarf2_read_addr_index)
14813 (read_signatured_type): Update.
14815 2020-02-08 Tom Tromey <tom@tromey.com>
14817 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14818 "want_partial_unit" parameter.
14819 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14820 Inline check for DW_TAG_partial_unit.
14821 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14823 2020-02-08 Tom Tromey <tom@tromey.com>
14825 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14827 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14830 2020-02-08 Tom Tromey <tom@tromey.com>
14832 * dwarf2/read.c (read_address): Move to comp-unit.c.
14833 (dwarf2_rnglists_process, dwarf2_ranges_process)
14834 (read_attribute_value, dwarf_decode_lines_1)
14835 (var_decode_location, decode_locdesc): Update.
14836 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14837 read.c. Remove "cu" parameter.
14838 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14841 2020-02-08 Tom Tromey <tom@tromey.com>
14843 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14844 (read_indirect_line_string): Update.
14845 * dwarf2/comp-unit.c (read_offset): Remove.
14846 (read_comp_unit_head): Update.
14847 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14849 (read_offset): Don't declare.
14851 2020-02-08 Tom Tromey <tom@tromey.com>
14853 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14854 * dwarf2/read.c (struct comp_unit_head): Move to
14855 dwarf2/comp-unit.h.
14856 (enum class rcuh_kind): Move to comp-unit.h.
14857 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14858 (read_comp_unit_head, error_check_comp_unit_head)
14859 (read_and_check_comp_unit_head): Move to comp-unit.c.
14860 (read_offset, dwarf_unit_type_name): Likewise.
14861 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14862 (cutu_reader::cutu_reader, read_call_site_scope)
14863 (find_partial_die, follow_die_offset): Update.
14864 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14866 2020-02-08 Tom Tromey <tom@tromey.com>
14868 * dwarf2/read.c (read_offset_1): Move to leb.c.
14869 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14870 (dwarf_decode_macro_bytes): Update.
14871 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14872 * dwarf2/leb.h (read_offset): Declare.
14874 2020-02-08 Tom Tromey <tom@tromey.com>
14876 * dwarf2/read.c (dwarf2_section_size): Remove.
14877 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14879 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14881 2020-02-08 Tom Tromey <tom@tromey.com>
14883 * dwarf2/read.c (read_initial_length): Move to leb.c.
14884 * dwarf2/leb.h (read_initial_length): Declare.
14885 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14886 handle_nonstd parameter.
14887 * dwarf2/frame.c (read_initial_length): Remove.
14888 (decode_frame_entry_1): Update.
14890 2020-02-08 Tom Tromey <tom@tromey.com>
14892 * dwarf2/loc.c (dwarf2_find_location_expression)
14893 (dwarf_evaluate_loc_desc::get_tls_address)
14894 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14895 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14896 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14897 (dwarf2_compile_property_to_c)
14898 (dwarf2_loc_desc_get_symbol_read_needs)
14899 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14900 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14901 (loclist_describe_location, loclist_tracepoint_var_ref)
14902 (loclist_generate_c_location): Update.
14903 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14904 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14905 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14906 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14907 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14908 (dwarf2_per_cu_data::addr_size)
14909 (dwarf2_per_cu_data::ref_addr_size)
14910 (dwarf2_per_cu_data::text_offset)
14911 (dwarf2_per_cu_data::addr_type): Now methods.
14912 (per_cu_header_read_in): Make per_cu "const".
14913 (dwarf2_version): Remove.
14914 (dwarf2_per_cu_data::int_type): Now a method.
14915 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14916 (set_die_type, read_array_type, read_subrange_index_type)
14917 (read_tag_string_type, read_subrange_type): Update.
14918 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14919 offset_size, ref_addr_size, text_offset, addr_type, version,
14920 objfile, int_type, addr_sized_int_type>: Declare methods.
14922 2020-02-08 Tom Tromey <tom@tromey.com>
14924 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14927 2020-02-08 Tom Tromey <tom@tromey.com>
14929 * dwarf2/read.h (dwarf_line_debug): Declare.
14930 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14931 * dwarf2/read.c: Move line_header code to new files.
14932 (dwarf_line_debug): No longer static.
14933 * dwarf2/line-header.c: New file.
14934 * dwarf2/line-header.h: New file.
14936 2020-02-08 Tom Tromey <tom@tromey.com>
14938 * dwarf2/read.c (struct line_header) <file_full_name,
14939 file_file_name>: Return unique_xmalloc_ptr.
14940 (line_header::file_file_name): Update.
14941 (line_header::file_full_name): Update.
14942 (dw2_get_file_names_reader): Update.
14943 (macro_start_file): Update.
14945 2020-02-08 Tom Tromey <tom@tromey.com>
14947 * dwarf2/read.c (struct line_header) <file_full_name,
14948 file_file_name>: Declare methods.
14949 (dw2_get_file_names_reader): Update.
14950 (file_file_name): Now a method.
14951 (file_full_name): Likewise.
14952 (macro_start_file): Update.
14954 2020-02-08 Tom Tromey <tom@tromey.com>
14956 * dwarf2/read.c (dwarf_always_disassemble)
14957 (show_dwarf_always_disassemble): Move to loc.c.
14958 (_initialize_dwarf2_read): Move "always-disassemble" registration
14960 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14961 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14963 (show_dwarf_always_disassemble): Move from read.c.
14964 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14966 2020-02-08 Tom Tromey <tom@tromey.com>
14968 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14969 (create_quick_file_names_table): Return htab_up.
14970 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14972 * dwarf2/read.h (struct dwarf2_per_objfile)
14973 <quick_file_names_table>: Now htab_up.
14975 2020-02-08 Tom Tromey <tom@tromey.com>
14977 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14979 2020-02-08 Tom Tromey <tom@tromey.com>
14981 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14983 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14984 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14985 (abbrev_table::abbrev_table): No longer inline.
14986 (ABBREV_HASH_SIZE): Remove.
14987 (abbrev_table::m_abbrevs): Now an htab_up.
14989 2020-02-08 Tom Tromey <tom@tromey.com>
14991 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14992 (cutu_reader): Update.
14993 (build_type_psymtabs_1): Update.
14994 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14995 (abbrev_table::alloc_abbrev): Update.
14996 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14997 (abbrev_table::read): New static method, renamed from
14998 abbrev_table_read_table.
14999 (abbrev_table::alloc_abbrev)
15000 (abbrev_table::add_abbrev): Now private.
15001 (abbrev_table::abbrev_table): Now private.
15002 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15004 2020-02-08 Tom Tromey <tom@tromey.com>
15006 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15007 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15010 2020-02-08 Tom Tromey <tom@tromey.com>
15012 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15014 (lookup_dwo_unit_in_dwp): Update.
15015 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15018 2020-02-08 Tom Tromey <tom@tromey.com>
15020 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15023 2020-02-08 Tom Tromey <tom@tromey.com>
15025 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15027 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15028 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15029 Change type to htab_up.
15031 2020-02-08 Tom Tromey <tom@tromey.com>
15033 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15034 htab_up. Don't allocate on obstack.
15035 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15036 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15037 Change type to htab_up.
15039 2020-02-08 Tom Tromey <tom@tromey.com>
15041 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15042 Change type to htab_up.
15043 * dwarf2/read.c (create_signatured_type_table_from_index)
15044 (create_signatured_type_table_from_debug_names)
15045 (create_all_type_units, add_type_unit)
15046 (lookup_dwo_signatured_type, lookup_signatured_type)
15047 (process_skeletonless_type_unit): Update.
15048 (create_debug_type_hash_table, create_debug_types_hash_table):
15049 Change type of types_htab.
15050 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15051 htab_up. Don't allocate on obstack.
15052 (create_cus_hash_table): Change type of cus_htab parameter.
15053 (struct dwo_file) <cus, tus>: Now htab_up.
15054 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15055 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15056 (queue_and_load_all_dwo_tus): Update.
15057 * dwarf2/index-write.c (write_gdbindex): Update.
15058 (write_debug_names): Update.
15060 2020-02-08 Tom Tromey <tom@tromey.com>
15062 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15063 dwarf2/read.c. Remove "next" member. Add constructor ntad
15065 (struct dwarf2_per_objfile) <queue>: New member.
15066 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15068 (dwarf2_queue, dwarf2_queue_tail): Remove.
15069 (class dwarf2_queue_guard): Add parameter to constructor. Use
15070 DISABLE_COPY_AND_ASSIGN.
15071 <m_per_objfile>: New member.
15072 <~dwarf2_queue_guard>: Rewrite.
15073 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15075 (~dwarf2_queue_item): New.
15077 2020-02-08 Tom Tromey <tom@tromey.com>
15079 * dwarf2/read.c (struct die_info) <has_children>: New member.
15080 (dw2_get_file_names_reader): Remove has_children.
15081 (dw2_get_file_names): Update.
15082 (read_cutu_die_from_dwo): Remove has_children.
15083 (cutu_reader::init_tu_and_read_dwo_dies)
15084 (cutu_reader::cutu_reader): Update.
15085 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15086 Remove has_children.
15087 (build_type_psymtabs_1, process_skeletonless_type_unit)
15088 (load_partial_comp_unit, load_full_comp_unit): Update.
15089 (create_dwo_cu_reader): Remove has_children.
15090 (create_cus_hash_table, read_die_and_children): Update.
15091 (read_full_die_1,read_full_die): Remove has_children.
15092 (read_signatured_type): Update.
15093 (class cutu_reader) <has_children>: Remove.
15095 2020-02-08 Tom Tromey <tom@tromey.com>
15097 * dwarf2/expr.c: Rename from dwarf2expr.c.
15098 * dwarf2/expr.h: Rename from dwarf2expr.h.
15099 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15100 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15101 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15102 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15103 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15104 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15105 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15106 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15107 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15108 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15109 * dwarf2/loc.c: Rename from dwarf2loc.c.
15110 * dwarf2/loc.h: Rename from dwarf2loc.h.
15111 * dwarf2/read.c: Rename from dwarf2read.c.
15112 * dwarf2/read.h: Rename from dwarf2read.h.
15113 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15114 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15115 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15116 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15117 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15118 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15119 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15120 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15121 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15122 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15123 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15124 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15125 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15127 * Makefile.in (COMMON_SFILES): Update.
15128 (HFILES_NO_SRCDIR): Update.
15130 2020-02-08 Tom Tromey <tom@tromey.com>
15132 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15133 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15135 2020-02-08 Tom Tromey <tom@tromey.com>
15137 * dwarf2read.h (struct die_info): Don't declare.
15139 2020-02-08 Tom Tromey <tom@tromey.com>
15141 * dwarf2read.h (die_info_ptr): Remove typedef.
15143 2020-02-08 Tom Tromey <tom@tromey.com>
15145 * dwarf2read.c (read_call_site_scope)
15146 (handle_data_member_location, dwarf2_add_member_fn)
15147 (mark_common_block_symbol_computed, read_common_block)
15148 (attr_to_dynamic_prop, partial_die_info::read)
15149 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15150 (dwarf2_symbol_mark_computed, set_die_type): Update.
15151 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15153 (attr_form_is_block): Don't declare.
15154 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15156 2020-02-08 Tom Tromey <tom@tromey.com>
15158 * dwarf2read.c (dwarf2_find_base_address, )
15159 (read_call_site_scope, rust_containing_type)
15160 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15161 (handle_data_member_location, dwarf2_add_member_fn)
15162 (get_alignment, read_structure_type, process_structure_scope)
15163 (mark_common_block_symbol_computed, read_common_block)
15164 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15165 (partial_die_info::read, read_attribute_value, new_symbol)
15166 (lookup_die_type, dwarf2_get_ref_die_offset)
15167 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15168 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15169 (dwarf2_symbol_mark_computed): Update.
15170 * dwarf2/attribute.h (struct attribute) <value_as_address,
15171 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15173 (value_as_address, attr_form_is_section_offset)
15174 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15175 * dwarf2/attribute.c (attribute::value_as_address)
15176 (attribute::form_is_section_offset, attribute::form_is_constant)
15177 (attribute::form_is_ref): Now methods.
15179 2020-02-08 Tom Tromey <tom@tromey.com>
15181 * dwarf2read.c (struct attribute, DW_STRING)
15182 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15183 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15184 (attr_form_is_block, attr_form_is_section_offset)
15185 (attr_form_is_constant, attr_form_is_ref): Move.
15186 * dwarf2/attribute.h: New file.
15187 * dwarf2/attribute.c: New file, from dwarf2read.c.
15188 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15190 2020-02-08 Tom Tromey <tom@tromey.com>
15192 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15193 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15195 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15196 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15197 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15199 * dwarf2/abbrev.h: New file.
15200 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15201 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15203 2020-02-08 Tom Tromey <tom@tromey.com>
15205 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15206 (dwarf2_section_size, dwarf2_get_section_info)
15207 (create_signatured_type_table_from_debug_names)
15208 (create_addrmap_from_aranges, read_debug_names_from_section)
15209 (get_gdb_index_contents_from_section, read_comp_unit_head)
15210 (error_check_comp_unit_head, read_abbrev_offset)
15211 (create_debug_type_hash_table, init_cu_die_reader)
15212 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15213 (read_comp_units_from_section, create_cus_hash_table)
15214 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15215 (create_dwp_v2_section, dwarf2_rnglists_process)
15216 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15217 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15218 (read_indirect_string_from_dwz, read_addr_index_1)
15219 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15220 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15221 (fill_in_loclist_baton): Update.
15222 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15223 get_containing_section, get_bfd_owner, get_bfd_section,
15224 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15225 (dwarf2_read_section, get_section_name, get_section_file_name)
15226 (get_containing_section, get_section_bfd_owner)
15227 (get_section_bfd_section, get_section_name, get_section_file_name)
15228 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15230 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15231 (dwarf2_section_info::get_bfd_owner)
15232 (dwarf2_section_info::get_bfd_section)
15233 (dwarf2_section_info::get_name)
15234 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15235 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15236 (dwarf2_section_info::read): Now methods.
15237 * dwarf-index-write.c (class debug_names): Update.
15239 2020-02-08 Tom Tromey <tom@tromey.com>
15241 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15242 Move to dwarf2/section.h.
15243 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15244 (get_section_bfd_section, get_section_name)
15245 (get_section_file_name, get_section_id, get_section_flags)
15246 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15248 * dwarf2/section.h: New file.
15249 * dwarf2/section.c: New file, from dwarf2read.c.
15250 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15252 2020-02-08 Tom Tromey <tom@tromey.com>
15254 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15255 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15256 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15257 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15258 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15259 * dwarf2/leb.h: New file, from dwarf2read.c.
15260 * dwarf2/leb.c: New file, from dwarf2read.c.
15261 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15263 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15264 (COMMON_SFILES): Add dwarf2/leb.c.
15266 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15270 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15273 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15274 * gdb/remote.c (remote_console_output): Update.
15275 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15276 (ui_file_puts): ...this.
15277 * gdb/ui-file.h (ui_file_puts): Add declaration.
15278 * gdb/utils.c (emit_style_escape): Update.
15279 (flush_wrap_buffer): Update.
15280 (fputs_maybe_filtered): Update.
15281 (fputs_unfiltered): Add function.
15283 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15285 * gdb/event-loop.c (gdb_wait_for_event): Update.
15286 * gdb/printcmd.c (printf_command): Update.
15287 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15288 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15289 (gdb_os_flush_stderr): Update.
15290 * gdb/remote.c (remote_console_output): Update.
15291 * gdb/ui-file.c (gdb_flush): Rename to...
15292 (ui_file_flush): ...this.
15293 (stderr_file::write): Update.
15294 (stderr_file::puts): Update.
15295 * gdb/ui-file.h (gdb_flush): Rename to...
15296 (ui_file_flush): ...this.
15297 * gdb/utils.c (gdb_flush): Add function.
15298 * gdb/utils.h (gdb_flush): Add declaration.
15300 2020-02-07 Tom Tromey <tromey@adacore.com>
15302 PR breakpoints/24915:
15303 * source.c (find_and_open_source): Do not check basenames_may_differ.
15305 2020-02-07 Tom Tromey <tom@tromey.com>
15307 * README: Update gdbserver documentation.
15308 * gdbserver: Move to top level.
15309 * configure.tgt (build_gdbserver): Remove.
15310 * configure.ac: Remove --enable-gdbserver.
15311 * configure: Rebuild.
15312 * Makefile.in (distclean): Don't mention gdbserver.
15314 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15316 * source-cache.c (source_cache::ensure): Surround
15317 get_plain_source_lines with a try/catch.
15318 (source_cache::get_line_charpos): Get rid of try/catch
15319 and only check for the return value of "ensure".
15320 * tui/tui-source.c (tui_source_window::set_contents):
15321 Simplify "nlines" calculation.
15323 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15325 * MAINTAINERS (Write After Approval): Add myself.
15327 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15329 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15332 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15334 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15336 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15338 * nat/riscv-linux-tdesc.h: New file.
15339 * nat/riscv-linux-tdesc.c: New file, taking code from...
15340 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15342 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15345 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15347 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15348 we don't set the fake simulator ptid to the null_ptid.
15350 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15352 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15353 * gdbthread.h (class thread_info) <resumed>: Likewise.
15354 * infrun.c (resume_1): Likewise.
15355 (proceed): Likewise.
15356 (infrun_thread_stop_requested): Likewise.
15357 (stop_all_threads): Likewise.
15358 (handle_inferior_event): Likewise.
15359 (restart_threads): Likewise.
15360 (finish_step_over): Likewise.
15361 (keep_going_stepped_thread): Likewise.
15362 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15363 (linux_handle_extended_wait): Likewise.
15364 * record-btrace.c (get_thread_current_frame_id): Likewise.
15365 * record-full.c (record_full_wait_1): Likewise.
15366 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15367 * target.c (target_resume): Likewise.
15368 * thread.c (set_running_thread): Likewise.
15370 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15372 * f-valprint.c (f77_print_array_1): Changed datatype of index
15373 variable to LONGEST from int to enable it to contain bound
15376 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15378 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15379 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15380 offsets according to FLEN determined.
15381 (riscv_linux_nat_target::read_description): Determine FLEN
15383 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15384 according to FLEN determined.
15385 (riscv_linux_nat_target::store_registers): Likewise.
15387 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15389 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15390 when reg->group is empty and reggroup is not.
15392 2020-01-31 Tom Tromey <tromey@adacore.com>
15394 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15395 Call beneath target's mourn_inferior after unpushing.
15397 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15400 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15401 have enough lines to fill the screen, still return the lowest
15404 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15406 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15407 '-', '<', and '>' commands.
15409 2020-01-29 Pedro Alves <palves@redhat.com>
15410 Sergio Durigan Junior <sergiodj@redhat.com>
15412 * infcmd.c (construct_inferior_arguments): Assert that
15413 'argc' is greater than 0.
15415 2020-01-29 Luis Machado <luis.machado@linaro.org>
15417 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15418 (BRK_INSN_MASK): Define to 0xd4200000.
15419 (aarch64_program_breakpoint_here_p): New function.
15420 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15421 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15423 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15425 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15426 call gdbarch_program_breakpoint_here_p.
15427 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15428 default_program_breakpoint_here_p, changed return type to bool and
15430 * breakpoint.h (program_breakpoint_here): Moved prototype to
15431 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15432 return type to bool.
15433 * gdbarch.c: Regenerate.
15434 * gdbarch.h: Regenerate.
15435 * gdbarch.sh (program_breakpoint_here_p): New method.
15436 * infrun.c (handle_signal_stop): Call
15437 gdbarch_program_breakpoint_here_p.
15439 2020-01-26 Tom Tromey <tom@tromey.com>
15441 * ctfread.c (struct ctf_fp_info): Reindent.
15442 (_initialize_ctfread): Remove.
15444 2020-01-26 Tom Tromey <tom@tromey.com>
15446 * psymtab.c (partial_map_expand_apply)
15447 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15448 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15449 (psym_print_stats, psym_expand_symtabs_for_function)
15450 (psym_map_symbol_filenames, psym_map_matching_symbols)
15451 (psym_expand_symtabs_matching)
15452 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15453 (maintenance_check_psymtabs): Use new methods.
15454 * psympriv.h (struct partial_symtab) <readin_p,
15455 get_compunit_symtab>: New methods.
15456 <readin, compunit_symtab>: Remove members.
15457 (struct standard_psymtab): New.
15458 (struct legacy_psymtab): Derive from standard_psymtab.
15459 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15461 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15463 2020-01-26 Tom Tromey <tom@tromey.com>
15465 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15466 read_dependencies. Add assert.
15467 * psymtab.c (partial_symtab::read_dependencies): New method.
15468 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15470 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15471 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15473 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15476 2020-01-26 Tom Tromey <tom@tromey.com>
15478 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15479 Call expand_psymtab.
15480 (xcoff_read_symtab): Call expand_psymtab.
15481 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15482 legacy_expand_psymtab.
15483 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15485 (struct legacy_psymtab) <expand_psymtab>: Implement.
15486 <legacy_expand_psymtab>: New member.
15487 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15488 (parse_partial_symbols): Set legacy_expand_psymtab.
15489 (psymtab_to_symtab_1): Change argument order. Call
15491 (new_psymtab): Set legacy_expand_psymtab.
15492 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15493 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15495 (dwarf2_psymtab::expand_psymtab): Rename from
15496 psymtab_to_symtab_1. Call expand_psymtab.
15497 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15498 (dbx_end_psymtab): Likewise.
15499 (dbx_psymtab_to_symtab_1): Change argument order. Call
15501 (dbx_read_symtab): Call expand_psymtab.
15502 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15503 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15504 (ctf_psymtab::read_symtab): Call expand_psymtab.
15506 2020-01-26 Tom Tromey <tom@tromey.com>
15508 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15509 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15511 * mdebugread.c (mdebug_read_symtab): Remove prints.
15512 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15514 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15516 2020-01-26 Tom Tromey <tom@tromey.com>
15518 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15519 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15520 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15522 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15523 * psymtab.c (psymtab_to_symtab): Call method.
15524 (dump_psymtab): Update.
15525 * psympriv.h (struct partial_symtab): Add virtual destructor.
15526 <read_symtab>: New method.
15527 (struct legacy_symtab): New.
15528 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15529 (struct pst_map) <pst>: Now a legacy_psymtab.
15530 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15531 (new_psymtab): Use legacy_psymtab.
15532 * dwarf2read.h (struct dwarf2_psymtab): New.
15533 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15534 * dwarf2read.c (dwarf2_create_include_psymtab)
15535 (dwarf2_build_include_psymtabs, create_type_unit_group)
15536 (create_partial_symtab, process_psymtab_comp_unit_reader)
15537 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15538 (set_partial_user): Use dwarf2_psymtab.
15539 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15540 (psymtab_to_symtab_1, process_full_comp_unit)
15541 (process_full_type_unit, dwarf2_ranges_read)
15542 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15543 (dwarf_decode_lines): Use dwarf2_psymtab.
15544 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15545 (add_address_entry_worker, write_one_signatured_type)
15546 (recursively_count_psymbols, recursively_write_psymbols)
15547 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15548 (write_debug_names): Likewise.
15549 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15550 <pst>: Now a legacy_psymtab.
15551 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15552 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15553 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15554 * ctfread.c (struct ctf_psymtab): New.
15555 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15557 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15558 (create_partial_symtab): Return a ctf_psymtab.
15559 (scan_partial_symbols): Update.
15561 2020-01-26 Tom Tromey <tom@tromey.com>
15563 * xcoffread.c (xcoff_start_psymtab): Use new.
15564 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15565 renamed from start_psymtab_common.
15566 * psympriv.h (struct partial_symtab): Add new constructor.
15567 (start_psymtab_common): Don't declare.
15568 * mdebugread.c (parse_partial_symbols): Use new.
15569 * dwarf2read.c (create_partial_symtab): Use new.
15570 * dbxread.c (start_psymtab): Use new.
15571 * ctfread.c (create_partial_symtab): Use new.
15573 2020-01-26 Tom Tromey <tom@tromey.com>
15575 * xcoffread.c (xcoff_end_psymtab): Use new.
15576 * psymtab.c (start_psymtab_common): Use new.
15577 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15579 * psympriv.h (struct partial_symtab): Add parameters to
15580 constructor. Don't inline.
15581 (allocate_psymtab): Don't declare.
15582 * mdebugread.c (new_psymtab): Use new.
15583 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15584 * dbxread.c (dbx_end_psymtab): Use new.
15586 2020-01-26 Tom Tromey <tom@tromey.com>
15588 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15589 allocate_psymtab. Update documentation.
15590 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15591 allocate_psymtab. Do not use new.
15592 (allocate_psymtab): Use new. Update.
15594 2020-01-26 Tom Tromey <tom@tromey.com>
15596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15597 * psymtab.c (psym_print_stats): Update.
15598 * psympriv.h (struct partial_symtab) <readin,
15599 psymtabs_addrmap_supported, anonymous>: Now bool.
15600 * mdebugread.c (psymtab_to_symtab_1): Update.
15601 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15602 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15603 (process_full_comp_unit, process_full_type_unit): Update.
15604 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15605 * ctfread.c (psymtab_to_symtab): Update.
15607 2020-01-26 Tom Tromey <tom@tromey.com>
15609 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15610 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15611 * psymtab.c (psymtab_storage): Delete psymtabs.
15612 (psymtab_storage::allocate_psymtab): Use new.
15613 (psymtab_storage::discard_psymtab): Use delete.
15614 * psympriv.h (struct partial_symtab): Add constructor and
15617 2020-01-26 Tom Tromey <tom@tromey.com>
15619 * machoread.c: Do not include psympriv.h.
15621 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15623 * NEWS: Mention the new option and the set/show commands.
15625 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15627 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15628 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15629 (validate_exec_file): New variables, enums, functions.
15630 (exec_file_locate_attach, print_section_info): Style the filenames.
15631 (_initialize_exec): Install show_exec_file_mismatch_command and
15632 set_exec_file_mismatch_command.
15633 * gdbcore.h (validate_exec_file): Declare.
15634 * infcmd.c (attach_command): Call validate_exec_file.
15635 * remote.c ( remote_target::remote_add_inferior): Likewise.
15637 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15639 * frame.c (find_frame_sal): Move call to get_next_frame into more
15641 * inline-frame.c (inilne_state) <inline_state>: Update argument
15643 (inilne_state) <skipped_symbol>: Rename to...
15644 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15645 (skip_inline_frames): Build vector of skipped symbols and use this
15646 to reate the inline_state.
15647 (inline_skipped_symbol): Add a comment and some assertions, fetch
15648 skipped symbol from the list.
15650 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15652 * buildsym.c (lte_is_less_than): Delete.
15653 (buildsym_compunit::end_symtab_with_blockvector): Create local
15654 lambda function to sort line table entries, and use
15655 std::stable_sort instead of std::sort.
15656 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15657 markers when looking for a previous line.
15659 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15661 * dwarf2read.c (lnp_state_machine::record_line): Include
15662 end_sequence parameter in debug print out. Record the line if we
15663 are at an end_sequence marker even if it's not the start of a
15665 * symmisc.c (maintenance_print_one_line_table): Print end of
15666 sequence markers with 'END' not '0'.
15668 2020-01-24 Pedro Alves <palves@redhat.com>
15671 * thread.c (scoped_restore_current_thread::restore): Use
15672 switch_to_inferior_no_thread.
15673 * exec.c: Include "progspace-and-thread.h".
15674 (add_target_sections, remove_target_sections):
15675 scoped_restore_current_pspace_and_thread instead of
15676 scoped_restore_current_thread.
15677 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15678 and aspace to the inferior before calling clone_program_space.
15679 Remove stale comment.
15681 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15683 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15684 (arm_netbsd_nat_target::fetch_registers): ...this.
15685 (arm_nbsd_nat_target::store_registers): Rename to...
15686 (arm_netbsd_nat_target::store_registers): ...this.
15688 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15690 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15693 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15695 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15697 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15699 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15700 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15701 the correct replacement (iterate_over_regset_sections).
15702 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15705 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15708 * gdb/python/python.c (execute_gdb_command): Call
15709 async_enable_stdin in catch block.
15711 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15713 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15714 SWITCH_THRU_ALL_UIS.
15716 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15719 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15720 comment, add extra parameter, and update to store previous symbol
15722 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15723 add extra parameter.
15724 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15725 remove unneeded parameter, add try/catch around gdb_print_insn,
15726 rewrite to add items to asm_lines vector.
15727 (tui_find_backward_disassembly_start_address): New function.
15728 (tui_find_disassembly_address): Updated throughout.
15729 (tui_disasm_window::set_contents): Update for changes to
15731 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15732 number of lines to scroll.
15734 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15736 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15737 (SECT_OFF_DATA): Likewise.
15738 (SECT_OFF_RODATA): Likewise.
15739 (SECT_OFF_TEXT): Likewise.
15740 (SECT_OFF_BSS): Likewise.
15741 (struct objfile) <text_section_offset, data_section_offset>: New
15743 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15744 objfile::text_section_offset.
15745 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15746 * coffread.c (coff_symtab_read): Likewise.
15747 (enter_linenos): Likewise.
15748 (process_coff_symbol): Likewise.
15749 * ctfread.c (get_objfile_text_range): Likewise.
15750 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15751 Use objfile::data_section_offset.
15752 * dwarf2-frame.c (execute_cfa_program): Use
15753 objfile::text_section_offset.
15754 (dwarf2_frame_find_fde): Likewise.
15755 * dwarf2read.c (create_addrmap_from_index): Likewise.
15756 (create_addrmap_from_aranges): Likewise.
15757 (dw2_find_pc_sect_compunit_symtab): Likewise.
15758 (process_psymtab_comp_unit_reader): Likewise.
15759 (add_partial_symbol): Likewise.
15760 (add_partial_subprogram): Likewise.
15761 (process_full_comp_unit): Likewise.
15762 (read_file_scope): Likewise.
15763 (read_func_scope): Likewise.
15764 (read_lexical_block_scope): Likewise.
15765 (read_call_site_scope): Likewise.
15766 (dwarf2_rnglists_process): Likewise.
15767 (dwarf2_ranges_process): Likewise.
15768 (dwarf2_ranges_read): Likewise.
15769 (dwarf_decode_lines_1): Likewise.
15770 (new_symbol): Likewise.
15771 (dwarf2_fetch_die_loc_sect_off): Likewise.
15772 (dwarf2_per_cu_text_offset): Likewise.
15773 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15774 * hppa-tdep.c (read_unwind_info): Likewise.
15775 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15776 * psympriv.h (struct partial_symtab): Likewise.
15777 * psymtab.c (find_pc_sect_psymtab): Likewise.
15778 * solib-svr4.c (enable_break): Likewise.
15779 * stap-probe.c (relocate_address): Use
15780 objfile::data_section_offset.
15781 * xcoffread.c (enter_line_range): Use
15782 objfile::text_section_offset.
15783 (read_xcoff_symtab): Likewise.
15785 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15787 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15788 declaration to narrower scopes.
15790 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15792 * darwin-nat.h (struct darwin_exception_msg, enum
15793 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15795 (class darwin_nat_target) <wait_1, check_new_threads,
15796 decode_exception_message, decode_message, stop_inferior,
15797 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15798 * darwin-nat.c (darwin_check_new_threads): Rename to...
15799 (darwin_nat_target::check_new_threads): ... this.
15800 (darwin_suspend_inferior_it): Remove.
15801 (darwin_decode_exception_message): Rename to...
15802 (darwin_nat_target::decode_exception_message): ... this.
15803 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15804 (darwin_decode_message): Rename to...
15805 (darwin_nat_target::decode_message): ... this.
15806 (cancel_breakpoint): Rename to...
15807 (darwin_nat_target::cancel_breakpoint): ... this.
15808 (darwin_wait): Rename to...
15809 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15810 instead of iterate_over_inferiors.
15811 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15812 (darwin_stop_inferior): Rename to...
15813 (darwin_nat_target::stop_inferior): ... this.
15814 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15815 (darwin_init_thread_list): Rename to...
15816 (darwin_nat_target::init_thread_list): ... this.
15817 (darwin_ptrace_him): Rename to...
15818 (darwin_nat_target::ptrace_him): ... this.
15819 (darwin_nat_target::create_inferior): Pass lambda function to
15821 (darwin_nat_target::detach): Call stop_inferior instead of
15822 darwin_stop_inferior.
15823 * fork-inferior.h (fork_inferior): Change init_trace_fun
15824 parameter to gdb::function_view.
15825 * fork-inferior.c (fork_inferior): Likewise.
15827 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15829 * i386-cygwin-tdep.c (core_process_module_section): Update.
15830 * windows-nat.c (struct lm_info_windows): Add text_offset.
15831 (windows_xfer_shared_libraries): Update.
15832 * windows-tdep.c (windows_xfer_shared_library):
15833 Add text_offset_cached argument.
15834 * windows-tdep.h (windows_xfer_shared_library): Update.
15836 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15838 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15840 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15842 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15843 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15844 replace with range-based for.
15845 (gdbsim_interrupt_inferior): Remove.
15846 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15847 with a range-based for. Inline code from
15848 gdbsim_interrupt_inferior.
15850 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15852 * infrun.c (proceed): Fix indentation.
15854 2020-01-21 Tom Tromey <tromey@adacore.com>
15856 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15857 * python/python.c (python_extension_ops): Update.
15858 (gdbpy_colorize): New function.
15859 * python/lib/gdb/__init__.py (colorize): New function.
15860 * extension.h (ext_lang_colorize): Declare.
15861 * extension.c (ext_lang_colorize): New function.
15862 * extension-priv.h (struct extension_language_ops) <colorize>: New
15864 * cli/cli-style.c (_initialize_cli_style): Update help text.
15866 2020-01-21 Luis Machado <luis.machado@linaro.org>
15868 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15869 <cond>: Change type to bool.
15870 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15871 (aarch64_displaced_step_cb): Likewise.
15872 (aarch64_displaced_step_tb): Likewise.
15874 2020-01-21 Luis Machado <luis.machado@linaro.org>
15876 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15879 2020-01-21 Luis Machado <luis.machado@linaro.org>
15881 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15882 <pc_adjust>: Adjust the documentation.
15883 (aarch64_displaced_step_fixup): Check if PC really moved before
15886 2020-01-19 Tom Tromey <tom@tromey.com>
15888 * disasm.c (~gdb_disassembler): New destructor.
15889 (gdb_buffered_insn_length): Call disassemble_free_target.
15890 * disasm.h (class gdb_disassembler): Declare destructor. Use
15891 DISABLE_COPY_AND_ASSIGN.
15893 2020-01-19 Tom Tromey <tom@tromey.com>
15895 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15896 (die_reader_func_ftype): Remove.
15897 (cutu_reader): New class.
15898 (dw2_get_file_names_reader): Remove "data" parameter.
15899 (dw2_get_file_names): Use cutu_reader.
15900 (create_debug_type_hash_table): Update.
15901 (read_cutu_die_from_dwo): Update comment.
15902 (lookup_dwo_unit): Add dwo_name parameter.
15903 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15904 die_reader_func_ftype and data parameters.
15905 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15906 Remove die_reader_func_ftype and data parameters.
15907 (~cutu_reader): New; from init_cutu_and_read_dies.
15908 (cutu_reader::cutu_reader): Rename from
15909 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15910 and data parameters.
15911 (init_cutu_and_read_dies_simple): Remove.
15912 (struct process_psymtab_comp_unit_data): Remove.
15913 (process_psymtab_comp_unit_reader): Remove data parameter; add
15914 want_partial_unit and pretend_language parameters.
15915 (process_psymtab_comp_unit): Use cutu_reader.
15916 (build_type_psymtabs_reader): Remove data parameter.
15917 (build_type_psymtabs_1): Use cutu_reader.
15918 (process_skeletonless_type_unit): Likewise.
15919 (load_partial_comp_unit_reader): Remove.
15920 (load_partial_comp_unit): Use cutu_reader.
15921 (load_full_comp_unit_reader): Remove.
15922 (load_full_comp_unit): Use cutu_reader.
15923 (struct create_dwo_cu_data): Remove.
15924 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15925 dwo_unit parameters.
15926 (create_cus_hash_table): Use cutu_reader.
15927 (struct dwarf2_read_addr_index_data): Remove.
15928 (dwarf2_read_addr_index_reader): Remove.
15929 (dwarf2_read_addr_index): Use cutu_reader.
15930 (read_signatured_type_reader): Remove.
15931 (read_signatured_type): Use cutu_reader.
15933 2020-01-19 Tom Tromey <tom@tromey.com>
15935 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15936 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15937 (tui_wrefresh): Declare.
15938 * tui/tui-wingeneral.c (suppress_output): New global.
15939 (tui_suppress_output, ~tui_suppress_output): New constructor and
15941 (tui_wrefresh): New function.
15942 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15943 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15944 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15946 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15948 (tui_data_window::no_refresh): New method.
15949 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15950 (tui_reg_command): Use tui_suppress_output
15951 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15952 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15954 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15956 2020-01-19 Tom Tromey <tom@tromey.com>
15958 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15959 Handle case where symtab is null.
15961 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15963 * linux-fork.c (one_fork_p): Simplify.
15965 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15967 * top.c (struct qt_args): Remove.
15968 (kill_or_detach): Change return type to void, replace `void *`
15969 parameter with a proper one.
15970 (print_inferior_quit_action): Likewise.
15971 (quit_confirm): Use range-based for loop to iterate over inferiors.
15972 (quit_force): Likewise.
15974 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15976 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15977 `void *` parameter with proper parameters.
15978 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15979 (print_one_inferior): Change return type to void, replace `void *`
15980 parameter with proper parameters.
15981 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15983 (get_other_inferior): Remove.
15984 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15987 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15989 * mi/mi-interp.c (report_initial_inferior): Remove.
15990 (mi_interp::init): Use range-based for to iterate over inferiors.
15992 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15994 * python/py-inferior.c (build_inferior_list): Remove.
15995 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15997 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15999 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16000 (btrace_stitch_trace): Likewise.
16001 * charset.c (intermediate_encoding): Likewise (vaild).
16002 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16003 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16004 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16006 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16008 * windows-tdep.c (windows_get_tlb_type):
16009 Add rtl_user_process_parameters type.
16011 2020-01-16 Pedro Alves <palves@redhat.com>
16012 Norbert Lange <nolange79@gmail.com>
16015 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16016 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16017 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16018 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16019 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16020 (ps_plog): Redeclare exported functions with default visibility.
16022 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16024 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16025 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16027 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16029 * infcmd.c (post_create_inferior): Use get_thread_regcache
16030 instead of get_current_regcache.
16032 2020-01-14 Tom Tromey <tom@tromey.com>
16035 * python/python.c (gdbpy_decode_line): Treat empty string the same
16038 2020-01-14 Tom Tromey <tom@tromey.com>
16040 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16042 2020-01-14 Tom Tromey <tom@tromey.com>
16044 * nat/linux-btrace.c: Don't include <config.h>.
16045 * nat/linux-ptrace.c: Don't include <config.h>.
16046 * nat/x86-linux-dregs.c: Don't include <config.h>.
16048 2020-01-14 Tom Tromey <tom@tromey.com>
16050 * configure: Rebuild.
16051 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16053 2020-01-14 Tom Tromey <tom@tromey.com>
16055 * nat/x86-linux-dregs.c: Include configh.h.
16056 * nat/linux-ptrace.c: Include configh.h.
16057 * nat/linux-btrace.c: Include configh.h.
16058 * defs.h: Include config.h, bfd.h.
16059 * configure.ac: Don't source common.host.
16060 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16061 * configure: Rebuild.
16062 * acinclude.m4: Update path.
16063 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16064 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16065 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16066 (CLIBS): Add LIBSUPPORT.
16068 (COMMON_SFILES): Remove gdbsupport files.
16069 (HFILES_NO_SRCDIR): Likewise.
16070 (stamp-version): Update path to create-version.sh.
16071 (ALLDEPFILES): Remove gdbsupport files.
16073 2020-01-14 Tom Tromey <tom@tromey.com>
16075 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16076 USE_WIN32API when needed.
16077 * configure.ac (USE_WIN32API): Don't define.
16078 (WIN32LIBS): Use WIN32APILIBS.
16079 * configure: Rebuild.
16081 2020-01-14 Tom Tromey <tom@tromey.com>
16083 * configure: Rebuild.
16084 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16086 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16088 * skip.c (skip_function_command): Make skip w/o arguments use the
16089 name of the inlined function if pc is inside any inlined function.
16091 2020-01-14 Luis Machado <luis.machado@linaro.org>
16093 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16094 * infrun.c (resume_1): Likewise.
16095 (handle_inferior_event): Remove stale comment.
16096 * linux-nat.c (linux_nat_target::resume): Update comments.
16097 (save_stop_reason): Likewise.
16098 (linux_nat_filter_event): Likewise.
16099 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16101 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16103 * elfread.c (record_minimal_symbol): Set section index to 0 for
16104 non-allocatable sections.
16107 2020-01-13 Ali Tamur <tamur@google.com>
16109 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16110 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16111 to gdb::optional. Update comments.
16112 (dwo_file): Update comments.
16113 (read_attribute): Update API to take an additional out parameter,
16114 need_reprocess. This is used to mark attributes that need other
16115 attributes (e.g. str_offsets_base) for correct computation which may not
16116 have been read yet.
16117 (read_attribute_reprocess): New function declaration.
16118 (read_addr_index): Likewise.
16119 (read_dwo_str_index): Likewise.
16120 (read_stub_str_index): Likewise.
16121 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16122 (lookup_addr_base): New function definition.
16123 (lookup_ranges_base): Likewise.
16124 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16125 lookup_ranges_base.
16126 (init_cutu_and_read_dies): Update comments.
16127 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16128 unit. This is used to inherit parent's str_offsets_base and addr_base.
16130 (init_cutu_and_read_dies_simple): Reflect API changes.
16131 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16132 (create_cus_hash_table): Change API to take parent compile unit.
16133 Reflect API changes.
16134 (open_and_init_dwo_file): Reflect API changes.
16135 (dwarf2_get_pc_bounds): Update comments.
16136 (dwarf2_record_block_ranges): Likewise.
16137 (read_full_die_1): Change implementation to reprocess attributes that
16138 need str_offsets_base and addr_base.
16139 (partial_die_info::read): Likewise.
16140 (read_attribute_reprocess): New function definition.
16141 (read_attribute_value): Change API to take an additional out parameter,
16142 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16143 when a non-dwo compile unit has index based attributes.
16144 (read_attribute): Reflect API changes.
16145 (read_addr_index_1): Reflect API changes. Update comments.
16146 (dwarf2_read_addr_index_data): Reflect API changes.
16147 (dwarf2_read_addr_index): Likewise.
16148 (read_str_index): Change API and implementation. This becomes a helper
16149 to be used by the new string index related methods. Update error
16150 message and comments.
16151 (read_dwo_str_index): New function definition.
16152 (read_stub_str_index): Likewise.
16153 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16154 * symfile.h (dwarf2_debug_sections): Likewise.
16155 * xcoffread.c (dwarf2_debug_sections): Likewise.
16157 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16159 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16160 core_reg_sect type to gdb_byte *.
16161 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16162 * cris-tdep.c (fetch_core_registers): Likewise.
16163 * corelow.c (core_target::get_core_register_section): Change
16164 type of `contents` to gdb::byte_vector.
16166 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16168 * tui/tui-wingeneral.c (box_win): Position the title in the center
16171 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16173 * corelow.c (core_target::get_core_register_section): Use
16174 std::vector instead of alloca.
16176 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16178 * warning.m4: Add -Wmissing-declarations to build_warnings.
16179 * configure: Re-generate.
16181 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16183 * python/python.c (init__gdb_module): Add declaration.
16185 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16187 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16188 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16189 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16190 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16191 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16192 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16193 * ada-exp.y (_initialize_ada_exp): Add declaration.
16194 * ada-lang.c (_initialize_ada_language): Add declaration.
16195 * ada-tasks.c (_initialize_tasks): Add declaration.
16196 * agent.c (_initialize_agent): Add declaration.
16197 * aix-thread.c (_initialize_aix_thread): Add declaration.
16198 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16199 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16200 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16201 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16202 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16203 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16204 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16205 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16206 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16207 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16208 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16209 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16210 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16211 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16212 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16213 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16214 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16215 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16216 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16217 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16218 * annotate.c (_initialize_annotate): Add declaration.
16219 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16220 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16221 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16222 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16223 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16224 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16225 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16226 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16227 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16228 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16229 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16230 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16231 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16232 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16233 * auto-load.c (_initialize_auto_load): Add declaration.
16234 * auxv.c (_initialize_auxv): Add declaration.
16235 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16236 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16237 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16238 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16239 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16240 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16241 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16242 * breakpoint.c (_initialize_breakpoint): Add declaration.
16243 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16244 * btrace.c (_initialize_btrace): Add declaration.
16245 * charset.c (_initialize_charset): Add declaration.
16246 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16247 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16248 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16249 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16250 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16251 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16252 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16253 * coffread.c (_initialize_coffread): Add declaration.
16254 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16255 * compile/compile.c (_initialize_compile): Add declaration.
16256 * complaints.c (_initialize_complaints): Add declaration.
16257 * completer.c (_initialize_completer): Add declaration.
16258 * copying.c (_initialize_copying): Add declaration.
16259 * corefile.c (_initialize_core): Add declaration.
16260 * corelow.c (_initialize_corelow): Add declaration.
16261 * cp-abi.c (_initialize_cp_abi): Add declaration.
16262 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16263 * cp-support.c (_initialize_cp_support): Add declaration.
16264 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16265 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16266 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16267 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16268 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16269 * ctfread.c (_initialize_ctfread): Add declaration.
16270 * d-lang.c (_initialize_d_language): Add declaration.
16271 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16272 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16273 * dbxread.c (_initialize_dbxread): Add declaration.
16274 * dcache.c (_initialize_dcache): Add declaration.
16275 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16276 * disasm.c (_initialize_disasm): Add declaration.
16277 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16278 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16279 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16280 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16281 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16282 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16283 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16284 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16285 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16286 * elfread.c (_initialize_elfread): Add declaration.
16287 * exec.c (_initialize_exec): Add declaration.
16288 * extension.c (_initialize_extension): Add declaration.
16289 * f-lang.c (_initialize_f_language): Add declaration.
16290 * f-valprint.c (_initialize_f_valprint): Add declaration.
16291 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16292 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16293 * filesystem.c (_initialize_filesystem): Add declaration.
16294 * findcmd.c (_initialize_mem_search): Add declaration.
16295 * findvar.c (_initialize_findvar): Add declaration.
16296 * fork-child.c (_initialize_fork_child): Add declaration.
16297 * frame-base.c (_initialize_frame_base): Add declaration.
16298 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16299 * frame.c (_initialize_frame): Add declaration.
16300 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16301 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16302 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16303 * gcore.c (_initialize_gcore): Add declaration.
16304 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16305 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16306 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16307 * gdbarch.c (_initialize_gdbarch): Add declaration.
16308 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16309 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16310 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16311 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16312 * go-lang.c (_initialize_go_language): Add declaration.
16313 * go32-nat.c (_initialize_go32_nat): Add declaration.
16314 * guile/guile.c (_initialize_guile): Add declaration.
16315 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16316 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16317 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16318 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16319 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16320 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16321 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16322 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16323 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16324 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16325 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16326 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16327 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16328 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16329 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16330 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16331 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16332 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16333 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16334 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16335 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16336 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16337 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16338 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16339 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16340 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16341 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16342 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16343 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16344 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16345 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16346 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16347 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16348 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16349 * infcall.c (_initialize_infcall): Add declaration.
16350 * infcmd.c (_initialize_infcmd): Add declaration.
16351 * inflow.c (_initialize_inflow): Add declaration.
16352 * infrun.c (_initialize_infrun): Add declaration.
16353 * interps.c (_initialize_interpreter): Add declaration.
16354 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16355 * jit.c (_initialize_jit): Add declaration.
16356 * language.c (_initialize_language): Add declaration.
16357 * linux-fork.c (_initialize_linux_fork): Add declaration.
16358 * linux-nat.c (_initialize_linux_nat): Add declaration.
16359 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16360 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16361 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16362 * m2-lang.c (_initialize_m2_language): Add declaration.
16363 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16364 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16365 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16366 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16367 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16368 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16369 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16370 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16371 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16372 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16373 * machoread.c (_initialize_machoread): Add declaration.
16374 * macrocmd.c (_initialize_macrocmd): Add declaration.
16375 * macroscope.c (_initialize_macroscope): Add declaration.
16376 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16377 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16378 * maint.c (_initialize_maint_cmds): Add declaration.
16379 * mdebugread.c (_initialize_mdebugread): Add declaration.
16380 * memattr.c (_initialize_mem): Add declaration.
16381 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16382 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16383 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16384 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16385 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16386 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16387 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16388 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16389 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16390 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16391 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16392 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16393 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16394 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16395 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16396 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16397 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16398 * mipsread.c (_initialize_mipsread): Add declaration.
16399 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16400 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16401 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16402 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16403 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16404 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16405 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16406 * nto-procfs.c (_initialize_procfs): Add declaration.
16407 * objc-lang.c (_initialize_objc_language): Add declaration.
16408 * observable.c (_initialize_observer): Add declaration.
16409 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16410 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16411 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16412 * osabi.c (_initialize_gdb_osabi): Add declaration.
16413 * osdata.c (_initialize_osdata): Add declaration.
16414 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16415 * parse.c (_initialize_parse): Add declaration.
16416 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16417 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16418 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16419 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16420 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16421 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16422 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16423 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16424 * printcmd.c (_initialize_printcmd): Add declaration.
16425 * probe.c (_initialize_probe): Add declaration.
16426 * proc-api.c (_initialize_proc_api): Add declaration.
16427 * proc-events.c (_initialize_proc_events): Add declaration.
16428 * proc-service.c (_initialize_proc_service): Add declaration.
16429 * procfs.c (_initialize_procfs): Add declaration.
16430 * producer.c (_initialize_producer): Add declaration.
16431 * psymtab.c (_initialize_psymtab): Add declaration.
16432 * python/python.c (_initialize_python): Add declaration.
16433 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16434 * record-btrace.c (_initialize_record_btrace): Add declaration.
16435 * record-full.c (_initialize_record_full): Add declaration.
16436 * record.c (_initialize_record): Add declaration.
16437 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16438 * regcache.c (_initialize_regcache): Add declaration.
16439 * reggroups.c (_initialize_reggroup): Add declaration.
16440 * remote-notif.c (_initialize_notif): Add declaration.
16441 * remote-sim.c (_initialize_remote_sim): Add declaration.
16442 * remote.c (_initialize_remote): Add declaration.
16443 * reverse.c (_initialize_reverse): Add declaration.
16444 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16445 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16446 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16447 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16448 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16449 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16450 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16451 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16453 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16454 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16455 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16456 * rust-exp.y (_initialize_rust_exp): Add declaration.
16457 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16458 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16459 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16460 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16461 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16462 * score-tdep.c (_initialize_score_tdep): Add declaration.
16463 * ser-go32.c (_initialize_ser_dos): Add declaration.
16464 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16465 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16466 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16467 * ser-uds.c (_initialize_ser_socket): Add declaration.
16468 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16469 * serial.c (_initialize_serial): Add declaration.
16470 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16471 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16472 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16473 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16474 * skip.c (_initialize_step_skip): Add declaration.
16475 * sol-thread.c (_initialize_sol_thread): Add declaration.
16476 * solib-aix.c (_initialize_solib_aix): Add declaration.
16477 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16478 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16479 * solib-frv.c (_initialize_frv_solib): Add declaration.
16480 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16481 * solib-target.c (_initialize_solib_target): Add declaration.
16482 * solib.c (_initialize_solib): Add declaration.
16483 * source-cache.c (_initialize_source_cache): Add declaration.
16484 * source.c (_initialize_source): Add declaration.
16485 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16486 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16487 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16488 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16489 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16490 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16491 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16492 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16493 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16494 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16495 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16496 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16497 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16498 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16499 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16500 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16501 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16502 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16503 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16504 * stabsread.c (_initialize_stabsread): Add declaration.
16505 * stack.c (_initialize_stack): Add declaration.
16506 * stap-probe.c (_initialize_stap_probe): Add declaration.
16507 * std-regs.c (_initialize_frame_reg): Add declaration.
16508 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16509 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16510 * symfile.c (_initialize_symfile): Add declaration.
16511 * symmisc.c (_initialize_symmisc): Add declaration.
16512 * symtab.c (_initialize_symtab): Add declaration.
16513 * target.c (_initialize_target): Add declaration.
16514 * target-connection.c (_initialize_target_connection): Add
16516 * target-dcache.c (_initialize_target_dcache): Add declaration.
16517 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16518 * thread.c (_initialize_thread): Add declaration.
16519 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16520 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16521 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16522 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16523 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16524 * tracectf.c (_initialize_ctf): Add declaration.
16525 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16526 * tracefile.c (_initialize_tracefile): Add declaration.
16527 * tracepoint.c (_initialize_tracepoint): Add declaration.
16528 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16529 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16530 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16531 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16532 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16533 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16534 * tui/tui.c (_initialize_tui): Add declaration.
16535 * typeprint.c (_initialize_typeprint): Add declaration.
16536 * ui-style.c (_initialize_ui_style): Add declaration.
16537 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16538 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16539 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16540 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16541 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16542 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16543 * unittests/filtered_iterator-selftests.c
16544 (_initialize_filtered_iterator_selftests): Add declaration.
16545 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16546 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16547 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16548 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16549 * unittests/main-thread-selftests.c
16550 (_initialize_main_thread_selftests): Add declaration.
16551 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16552 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16553 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16554 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16555 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16556 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16557 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16558 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16559 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16560 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16561 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16562 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16563 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16564 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16565 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16567 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16568 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16569 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16570 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16571 * user-regs.c (_initialize_user_regs): Add declaration.
16572 * utils.c (_initialize_utils): Add declaration.
16573 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16574 * valops.c (_initialize_valops): Add declaration.
16575 * valprint.c (_initialize_valprint): Add declaration.
16576 * value.c (_initialize_values): Add declaration.
16577 * varobj.c (_initialize_varobj): Add declaration.
16578 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16579 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16580 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16581 * windows-nat.c (_initialize_windows_nat): Add declaration.
16582 (_initialize_check_for_gdb_ini): Add declaration.
16583 (_initialize_loadable): Add declaration.
16584 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16585 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16586 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16587 * xcoffread.c (_initialize_xcoffread): Add declaration.
16588 * xml-support.c (_initialize_xml_support): Add declaration.
16589 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16590 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16591 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16592 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16594 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16596 * regformats/regdat.sh: Generate declaration for init function.
16598 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16600 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16602 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16603 close_one_inferior>: New methods.
16604 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16605 pass down target to find_inferior_pid.
16606 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16607 Pass down target to find_inferior_ptid.
16608 (gdbsim_target::create_inferior): Pass down target to
16610 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16611 target down to find_inferior_ptid and switch_to_thread.
16612 (gdbsim_target::close): Update to call close_one_inferior.
16613 (struct resume_data): Remove.
16614 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16615 directly, rather than through a void pointer.
16616 (gdbsim_target::resume): Update to call resume_one_inferior.
16618 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16620 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16622 2020-01-12 Pedro Alves <palves@redhat.com>
16624 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16625 directly for the current inferior instead of
16626 discard_all_inferiors.
16627 (discard_all_inferiors): Delete.
16629 2020-01-11 Tom Tromey <tom@tromey.com>
16631 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16632 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16633 deprecated_safe_get_selected_frame.
16635 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16637 * inferior.c (print_inferior): Switch inferior before printing it.
16639 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16640 Pedro Alves <palves@redhat.com>
16642 * progspace-and-thread.c (switch_to_program_space_and_thread):
16643 Assert there's an inferior for PSPACE. Use
16644 switch_to_inferior_no_thread to switch the inferior too.
16645 * progspace.c (program_space::~program_space): Call
16646 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16647 (program_space::free_all_objfiles): Don't call clear_symtab_users
16649 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16651 2020-01-10 Pedro Alves <palves@redhat.com>
16653 * NEWS: Mention multi-target debugging, "info connections", and
16654 "add-inferior -no-connection".
16656 2020-01-10 Pedro Alves <palves@redhat.com>
16658 * infrun.c: Include "target-connection.h".
16659 (check_multi_target_resumption): New.
16660 (proceed): Call it.
16661 * target-connection.c (make_target_connection_string): Make
16663 * target-connection.h (make_target_connection_string): Declare.
16665 2020-01-10 Pedro Alves <palves@redhat.com>
16667 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16668 * inferior.c (uiout_field_connection): New function.
16669 (print_inferior): Add new "connection-id" column.
16670 (add_inferior_command): Show connection number/string of added
16672 * process-stratum-target.h
16673 (process_stratum_target::connection_string): New virtual method.
16674 (process_stratum_target::connection_number): New field.
16675 * remote.c (remote_target::connection_string): New override.
16676 * target-connection.c: New file.
16677 * target-connection.h: New file.
16678 * target.c (decref_target): Remove process_stratum targets from
16679 the connection list.
16680 (target_stack::push): Add process_stratum targets to the
16683 2020-01-10 Pedro Alves <palves@redhat.com>
16686 2016-04-12 Pedro Alves <palves@redhat.com>
16687 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16688 Remove references to name.
16689 * serial.h (struct serial) <name>: Delete.
16691 2020-01-10 Pedro Alves <palves@redhat.com>
16693 * gdbarch-selftests.c (register_to_value_test): Remove "target
16694 already pushed" check.
16696 2020-01-10 Pedro Alves <palves@redhat.com>
16697 John Baldwin <jhb@FreeBSD.org>
16699 * aarch64-linux-nat.c
16700 (aarch64_linux_nat_target::thread_architecture): Adjust.
16701 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16702 (task_command_1): Likewise.
16703 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16704 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16705 (aix_thread_target::store_registers)
16706 (aix_thread_target::thread_alive): Adjust.
16707 * amd64-fbsd-tdep.c: Include "inferior.h".
16708 (amd64fbsd_get_thread_local_address): Pass down target.
16709 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16710 thread's gdbarch instead of target_gdbarch.
16711 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16712 get_last_target_status.
16713 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16714 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16716 (update_inserted_breakpoint_locations): Skip if inferiors with no
16718 (update_global_location_list): When handling moribund locations,
16719 find representative inferior for location's pspace, and use thread
16720 count of its process_stratum target.
16721 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16722 * bsd-uthread.c (bsd_uthread_target::wait): Use
16723 as_process_stratum_target and adjust thread_change_ptid and
16725 (bsd_uthread_target::update_thread_list): Use
16726 as_process_stratum_target and adjust find_thread_ptid,
16727 thread_change_ptid and add_thread calls.
16728 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16729 find_thread_ptid call.
16730 * corelow.c (add_to_thread_list): Adjust add_thread call.
16731 (core_target_open): Adjust add_thread_silent and thread_count
16733 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16734 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16735 * event-top.c (async_disconnect): Pop targets from all inferiors.
16736 * exec.c (add_target_sections): Push exec target on all inferiors
16737 sharing the program space.
16738 (remove_target_sections): Remove the exec target from all
16739 inferiors sharing the program space.
16740 (exec_on_vfork): New.
16741 * exec.h (exec_on_vfork): Declare.
16742 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16744 (fbsd_nat_target::update_thread_list): Adjust.
16745 (fbsd_nat_target::resume): Adjust.
16746 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16748 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16749 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16750 get_thread_arch_regcache call.
16751 * fork-child.c (gdb_startup_inferior): Pass target down to
16752 startup_inferior and set_executing.
16753 * gdbthread.h (struct process_stratum_target): Forward declare.
16754 (add_thread, add_thread_silent, add_thread_with_info)
16755 (in_thread_list): Add process_stratum_target parameter.
16756 (find_thread_ptid(inferior*, ptid_t)): New overload.
16757 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16759 (all_threads()): Delete overload.
16760 (all_threads, all_non_exited_threads): Add process_stratum_target
16762 (all_threads_safe): Use brace initialization.
16763 (thread_count): Add process_stratum_target parameter.
16764 (set_resumed, set_running, set_stop_requested, set_executing)
16765 (threads_are_executing, finish_thread_state): Add
16766 process_stratum_target parameter.
16767 (switch_to_thread): Use is_current_thread.
16768 * i386-fbsd-tdep.c: Include "inferior.h".
16769 (i386fbsd_get_thread_local_address): Pass down target.
16770 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16771 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16772 have_inferiors check.
16773 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16774 (inf_ptrace_target::attach): Adjust.
16775 * infcall.c (run_inferior_call): Adjust.
16776 * infcmd.c (run_command_1): Pass target to
16777 scoped_finish_thread_state.
16778 (proceed_thread_callback): Skip inferiors with no execution.
16779 (continue_command): Rename 'all_threads' local to avoid hiding
16780 'all_threads' function. Adjust get_last_target_status call.
16781 (prepare_one_step): Adjust set_running call.
16782 (signal_command): Use user_visible_resume_target. Compare thread
16783 pointers instead of inferior_ptid.
16784 (info_program_command): Adjust to pass down target.
16785 (attach_command): Mark target's 'thread_executing' flag.
16786 (stop_current_target_threads_ns): New, factored out from ...
16787 (interrupt_target_1): ... this. Switch inferior before making
16790 (struct all_inferiors_iterator, struct all_inferiors_range)
16791 (struct all_inferiors_safe_range)
16792 (struct all_non_exited_inferiors_range): Filter on
16793 process_stratum_target too. Remove explicit.
16794 * inferior.c (inferior::inferior): Push dummy target on target
16796 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16797 Add process_stratum_target parameter, and pass it down.
16798 (have_live_inferiors): Adjust.
16799 (switch_to_inferior_and_push_target): New.
16800 (add_inferior_command, clone_inferior_command): Handle
16801 "-no-connection" parameter. Use
16802 switch_to_inferior_and_push_target.
16803 (_initialize_inferior): Mention "-no-connection" option in
16804 the help of "add-inferior" and "clone-inferior" commands.
16805 * inferior.h: Include "process-stratum-target.h".
16806 (interrupt_target_1): Use bool.
16807 (struct inferior) <push_target, unpush_target, target_is_pushed,
16808 find_target_beneath, top_target, process_target, target_at,
16810 (discard_all_inferiors): Delete.
16811 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16812 (all_inferiors, all_non_exited_inferiors): Add
16813 process_stratum_target parameter.
16814 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16815 (target_last_proc_target): New global.
16816 (follow_fork_inferior): Push target on new inferior. Pass target
16817 to add_thread_silent. Call exec_on_vfork. Handle target's
16819 (follow_fork): Adjust get_last_target_status call. Also consider
16821 (follow_exec): Push target on new inferior.
16822 (struct execution_control_state) <target>: New field.
16823 (user_visible_resume_target): New.
16824 (do_target_resume): Call target_async.
16825 (resume_1): Set target's threads_executing flag. Consider resume
16827 (commit_resume_all_targets): New.
16828 (proceed): Also consider resume target. Skip threads of inferiors
16829 with no execution. Commit resumtion in all targets.
16830 (start_remote): Pass current inferior to wait_for_inferior.
16831 (infrun_thread_stop_requested): Consider target as well. Pass
16832 thread_info pointer to clear_inline_frame_state instead of ptid.
16833 (infrun_thread_thread_exit): Consider target as well.
16834 (random_pending_event_thread): New inferior parameter. Use it.
16835 (do_target_wait): Rename to ...
16836 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16838 (threads_are_resumed_pending_p, do_target_wait): New.
16839 (prepare_for_detach): Adjust calls.
16840 (wait_for_inferior): New inferior parameter. Handle it. Use
16841 do_target_wait_1 instead of do_target_wait.
16842 (fetch_inferior_event): Adjust. Switch to representative
16843 inferior. Pass target down.
16844 (set_last_target_status): Add process_stratum_target parameter.
16845 Save target in global.
16846 (get_last_target_status): Add process_stratum_target parameter and
16848 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16849 (context_switch): Check inferior_ptid == null_ptid before calling
16851 (get_inferior_stop_soon): Pass down target.
16852 (wait_one): Rename to ...
16853 (poll_one_curr_target): ... this.
16854 (struct wait_one_event): New.
16856 (stop_all_threads): Adjust.
16857 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16859 (switch_back_to_stepped_thread): Also consider target.
16860 (print_stop_event): Update.
16861 (normal_stop): Update. Also consider the resume target.
16862 * infrun.h (wait_for_inferior): Remove declaration.
16863 (user_visible_resume_target): New declaration.
16864 (get_last_target_status, set_last_target_status): New
16865 process_stratum_target parameter.
16866 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16867 process_stratum_target parameter, and use it.
16868 (clear_inline_frame_state (thread_info*)): New.
16869 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16870 process_stratum_target parameter.
16871 (clear_inline_frame_state (thread_info*)): Declare.
16872 * linux-fork.c (delete_checkpoint_command): Pass target down to
16874 (checkpoint_command): Adjust.
16875 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16876 instead of just tweaking inferior_ptid.
16877 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16878 (exit_lwp): Pass target down to find_thread_ptid.
16879 (attach_proc_task_lwp_callback): Pass target down to
16880 add_thread/set_running/set_executing.
16881 (linux_nat_target::attach): Pass target down to
16882 thread_change_ptid.
16883 (get_detach_signal): Pass target down to find_thread_ptid.
16884 Consider last target status's target.
16885 (linux_resume_one_lwp_throw, resume_lwp)
16886 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16887 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16888 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16889 (linux_nat_target::async_wait_fd): New.
16890 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16892 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16893 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16894 * linux-thread-db.c (struct thread_db_info::process_target): New
16896 (add_thread_db_info): Save target.
16897 (get_thread_db_info): New process_stratum_target parameter. Also
16899 (delete_thread_db_info): New process_stratum_target parameter.
16901 (thread_from_lwp): Adjust to pass down target.
16902 (thread_db_notice_clone): Pass down target.
16903 (check_thread_db_callback): Pass down target.
16904 (try_thread_db_load_1): Always push the thread_db target.
16905 (try_thread_db_load, record_thread): Pass target down.
16906 (thread_db_target::detach): Pass target down. Always unpush the
16908 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16909 target down. Always unpush the thread_db target.
16910 (find_new_threads_callback, thread_db_find_new_threads_2)
16911 (thread_db_target::update_thread_list): Pass target down.
16912 (thread_db_target::pid_to_str): Pass current inferior down.
16913 (thread_db_target::get_thread_local_address): Pass target down.
16914 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16916 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16917 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16918 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16919 (procfs_init_inferior): Rename to ...
16920 (procfs_target::procfs_init_inferior): ... this and adjust.
16921 (procfs_target::create_inferior, procfs_notice_thread)
16922 (procfs_do_thread_registers): Adjust.
16923 * ppc-fbsd-tdep.c: Include "inferior.h".
16924 (ppcfbsd_get_thread_local_address): Pass down target.
16925 * proc-service.c (ps_xfer_memory): Switch current inferior and
16926 program space as well.
16927 (get_ps_regcache): Pass target down.
16928 * process-stratum-target.c
16929 (process_stratum_target::thread_address_space)
16930 (process_stratum_target::thread_architecture): Pass target down.
16931 * process-stratum-target.h
16932 (process_stratum_target::threads_executing): New field.
16933 (as_process_stratum_target): New.
16934 * ravenscar-thread.c
16935 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16936 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16938 * record-btrace.c (record_btrace_target::info_record): Adjust.
16939 (record_btrace_target::record_method)
16940 (record_btrace_target::record_is_replaying)
16941 (record_btrace_target::fetch_registers)
16942 (get_thread_current_frame_id, record_btrace_target::resume)
16943 (record_btrace_target::wait, record_btrace_target::stop): Pass
16945 * record-full.c (record_full_wait_1): Switch to event thread.
16947 * regcache.c (regcache::regcache)
16948 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16949 process_stratum_target parameter and handle it.
16950 (current_thread_target): New global.
16951 (get_thread_regcache): Add process_stratum_target parameter and
16952 handle it. Switch inferior before calling target method.
16953 (get_thread_regcache): Pass target down.
16954 (get_thread_regcache_for_ptid): Pass target down.
16955 (registers_changed_ptid): Add process_stratum_target parameter and
16957 (registers_changed_thread, registers_changed): Pass target down.
16958 (test_get_thread_arch_aspace_regcache): New.
16959 (current_regcache_test): Define a couple local test_target_ops
16960 instances and use them for testing.
16961 (readwrite_regcache): Pass process_stratum_target parameter.
16962 (cooked_read_test, cooked_write_test): Pass mock_target down.
16963 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16964 (get_thread_arch_aspace_regcache): Add process_stratum_target
16966 (regcache::target): New method.
16967 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16968 (regcache::registers_changed_ptid): Add process_stratum_target
16970 (regcache::m_target): New field.
16971 (registers_changed_ptid): Add process_stratum_target parameter.
16972 * remote.c (remote_state::supports_vCont_probed): New field.
16973 (remote_target::async_wait_fd): New method.
16974 (remote_unpush_and_throw): Add remote_target parameter.
16975 (get_current_remote_target): Adjust.
16976 (remote_target::remote_add_inferior): Push target.
16977 (remote_target::remote_add_thread)
16978 (remote_target::remote_notice_new_inferior)
16979 (get_remote_thread_info): Pass target down.
16980 (remote_target::update_thread_list): Skip threads of inferiors
16981 bound to other targets. (remote_target::close): Don't discard
16982 inferiors. (remote_target::add_current_inferior_and_thread)
16983 (remote_target::process_initial_stop_replies)
16984 (remote_target::start_remote)
16985 (remote_target::remote_serial_quit_handler): Pass down target.
16986 (remote_target::remote_unpush_target): New remote_target
16987 parameter. Unpush the target from all inferiors.
16988 (remote_target::remote_unpush_and_throw): New remote_target
16989 parameter. Pass it down.
16990 (remote_target::open_1): Check whether the current inferior has
16991 execution instead of checking whether any inferior is live. Pass
16993 (remote_target::remote_detach_1): Pass down target. Use
16994 remote_unpush_target.
16995 (extended_remote_target::attach): Pass down target.
16996 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16997 (remote_target::append_resumption): Pass down target.
16998 (remote_target::append_pending_thread_resumptions)
16999 (remote_target::remote_resume_with_hc, remote_target::resume)
17000 (remote_target::commit_resume): Pass down target.
17001 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17002 (remote_target::interrupt_query)
17003 (remote_target::remove_new_fork_children)
17004 (remote_target::check_pending_events_prevent_wildcard_vcont)
17005 (remote_target::remote_parse_stop_reply)
17006 (remote_target::process_stop_reply): Pass down target.
17007 (first_remote_resumed_thread): New remote_target parameter. Pass
17009 (remote_target::wait_as): Pass down target.
17010 (unpush_and_perror): New remote_target parameter. Pass it down.
17011 (remote_target::readchar, remote_target::remote_serial_write)
17012 (remote_target::getpkt_or_notif_sane_1)
17013 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17015 (remote_target::mourn_inferior): Pass down target. Use
17016 remote_unpush_target.
17017 (remote_target::core_of_thread)
17018 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17019 (remote_target::pid_to_exec_file)
17020 (remote_target::thread_handle_to_thread_info): Pass down target.
17021 (remote_target::async_wait_fd): New.
17022 * riscv-fbsd-tdep.c: Include "inferior.h".
17023 (riscv_fbsd_get_thread_local_address): Pass down target.
17024 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17025 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17026 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17028 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17029 * solib-svr4.c (enable_break): Pass down target.
17030 * spu-multiarch.c (parse_spufs_run): Pass down target.
17031 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17032 * target-delegates.c: Regenerate.
17033 * target.c (g_target_stack): Delete.
17034 (current_top_target): Return the current inferior's top target.
17035 (target_has_execution_1): Refer to the passed-in inferior's top
17037 (target_supports_terminal_ours): Check whether the initial
17038 inferior was already created.
17039 (decref_target): New.
17040 (target_stack::push): Incref/decref the target.
17041 (push_target, push_target, unpush_target): Adjust.
17042 (target_stack::unpush): Defref target.
17043 (target_is_pushed): Return bool. Adjust to refer to the current
17044 inferior's target stack.
17045 (dispose_inferior): Delete, and inline parts ...
17046 (target_preopen): ... here. Only dispose of the current inferior.
17047 (target_detach): Hold strong target reference while detaching.
17049 (target_thread_name): Add assertion.
17050 (target_resume): Pass down target.
17051 (target_ops::beneath, find_target_at): Adjust to refer to the
17052 current inferior's target stack.
17053 (get_dummy_target): New.
17054 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17055 has a thread running.
17056 (initialize_targets): Rename to ...
17057 (_initialize_target): ... this.
17058 * target.h: Include "gdbsupport/refcounted-object.h".
17059 (struct target_ops): Inherit refcounted_object.
17060 (target_ops::shortname, target_ops::longname): Make const.
17061 (target_ops::async_wait_fd): New method.
17062 (decref_target): Declare.
17063 (struct target_ops_ref_policy): New.
17064 (target_ops_ref): New typedef.
17065 (get_dummy_target): Declare function.
17066 (target_is_pushed): Return bool.
17067 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17068 (all_matching_threads_iterator::all_matching_threads_iterator):
17069 Handle filter target.
17070 * thread-iter.h (struct all_matching_threads_iterator, struct
17071 all_matching_threads_range, class all_non_exited_threads_range):
17072 Filter by target too. Remove explicit.
17073 * thread.c (threads_executing): Delete.
17074 (inferior_thread): Pass down current inferior.
17075 (clear_thread_inferior_resources): Pass down thread pointer
17077 (add_thread_silent, add_thread_with_info, add_thread): Add
17078 process_stratum_target parameter. Use it for thread and inferior
17080 (is_current_thread): New.
17081 (thread_info::deletable): Use it.
17082 (find_thread_ptid, thread_count, in_thread_list)
17083 (thread_change_ptid, set_resumed, set_running): New
17084 process_stratum_target parameter. Pass it down.
17085 (set_executing): New process_stratum_target parameter. Pass it
17086 down. Adjust reference to 'threads_executing'.
17087 (threads_are_executing): New process_stratum_target parameter.
17088 Adjust reference to 'threads_executing'.
17089 (set_stop_requested, finish_thread_state): New
17090 process_stratum_target parameter. Pass it down.
17091 (switch_to_thread): Also match inferior.
17092 (switch_to_thread): New process_stratum_target parameter. Pass it
17094 (update_threads_executing): Reimplement.
17095 * top.c (quit_force): Pop targets from all inferior.
17096 (gdb_init): Don't call initialize_targets.
17097 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17099 (windows_add_thread, windows_delete_thread): Adjust.
17100 (get_windows_debug_event): Rename to ...
17101 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17102 * tracefile-tfile.c (tfile_target_open): Pass down target.
17103 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17105 (switch_to_thread): Add process_stratum_target parameter.
17106 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17108 (mi_on_resume): Pass target down.
17109 * nat/fork-inferior.c (startup_inferior): Add
17110 process_stratum_target parameter. Pass it down.
17111 * nat/fork-inferior.h (startup_inferior): Add
17112 process_stratum_target parameter.
17113 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17115 2020-01-10 Pedro Alves <palves@redhat.com>
17117 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17118 directly. Instead find the first thread in the thread list and
17119 use switch_to_thread.
17121 2020-01-10 Pedro Alves <palves@redhat.com>
17123 * remote.c (remote_target::remote_add_inferior): Don't bind a
17124 process to the current inferior if the current inferior is already
17125 bound to a process.
17127 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17128 Pedro Alves <palves@redhat.com>
17130 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17131 If no process is specified, return null_ptid instead of
17133 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17134 TARGET_WAITKIND_SIGNALLED with no pid.
17136 2020-01-10 Pedro Alves <palves@redhat.com>
17138 * remote.c (first_remote_resumed_thread): New.
17139 (remote_target::wait_as): Use it as default event_ptid instead of
17142 2020-01-10 Pedro Alves <palves@redhat.com>
17144 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17146 2020-01-10 Pedro Alves <palves@redhat.com>
17148 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17151 2020-01-10 Pedro Alves <palves@redhat.com>
17153 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17154 ptid to get_last_target_status.
17155 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17156 ptid to get_last_target_status.
17157 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17158 get_last_target_status.
17159 (info_program_command): Don't pass a target_waitstatus to
17160 get_last_target_status.
17161 * infrun.c (init_wait_for_inferior): Use
17162 nullify_last_target_wait_ptid.
17163 (get_last_target_status): Handle nullptr arguments.
17164 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17165 (print_stop_event): Don't pass a ptid to get_last_target_status.
17166 (normal_stop): Don't pass a ptid to get_last_target_status.
17167 * infrun.h (get_last_target_status, set_last_target_status): Move
17168 comments here and update.
17169 (nullify_last_target_wait_ptid): Declare.
17170 * linux-fork.c (fork_load_infrun_state): Remove local extern
17171 declaration of nullify_last_target_wait_ptid.
17172 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17173 to get_last_target_status.
17175 2020-01-10 Pedro Alves <palves@redhat.com>
17177 * gdbthread.h (scoped_restore_current_thread)
17178 <dont_restore, restore, m_dont_restore>: Declare.
17179 * thread.c (thread_alive): Add assertion. Return bool.
17180 (switch_to_thread_if_alive): New.
17181 (prune_threads): Switch inferior/thread.
17182 (print_thread_info_1): Switch thread before calling target methods.
17183 (scoped_restore_current_thread::restore): New, factored out from
17185 (scoped_restore_current_thread::~scoped_restore_current_thread):
17187 (scoped_restore_current_thread::scoped_restore_current_thread):
17189 (thread_apply_all_command, thread_select): Use
17190 switch_to_thread_if_alive.
17191 * infrun.c (proceed, restart_threads, handle_signal_stop)
17192 (switch_back_to_stepped_thread): Switch current thread before
17193 calling target methods.
17195 2020-01-10 Pedro Alves <palves@redhat.com>
17197 * inferior.c (switch_to_inferior_no_thread): New function,
17198 factored out from ...
17199 (inferior_command): ... here.
17200 * inferior.h (switch_to_inferior_no_thread): Declare.
17201 * mi/mi-main.c (run_one_inferior): Use
17202 switch_to_inferior_no_thread.
17204 2020-01-10 Pedro Alves <palves@redhat.com>
17206 * infcmd.c (kill_command): Remove dead code.
17208 2020-01-10 Pedro Alves <palves@redhat.com>
17210 * remote.c (remote_target::mourn_inferior): No longer check
17211 whether the target is running.
17213 2020-01-10 Pedro Alves <palves@redhat.com>
17215 * corelow.c (core_target::has_execution): Change parameter type to
17217 * inferior.c (number_of_live_inferiors): Use
17218 inferior::has_execution instead of target_has_execution_1.
17219 * inferior.h (inferior::has_execution): New.
17220 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17221 inferior::has_execution instead of target_has_execution_1.
17222 * process-stratum-target.c
17223 (process_stratum_target::has_execution): Change parameter type to
17224 inferior pointer. Check the inferior's PID instead of
17226 * process-stratum-target.h
17227 (process_stratum_target::has_execution): Change parameter type to
17229 * record-full.c (record_full_core_target::has_execution): Change
17230 parameter type to inferior pointer.
17231 * target.c (target_has_execution_1): Change parameter type to
17233 (target_has_execution_current): Adjust.
17234 * target.h (target_ops::has_execution): Change parameter type to
17236 (target_has_execution_1): Change parameter type to inferior
17237 pointer. Change return type to bool.
17238 * tracefile.h (tracefile_target::has_execution): Change parameter
17239 type to inferior pointer.
17241 2020-01-10 Pedro Alves <palves@redhat.com>
17243 * exceptions.c (print_flush): Remove current_top_target() check.
17245 2020-01-10 Pedro Alves <palves@redhat.com>
17247 * remote.c (show_remote_exec_file): Show the current inferior's
17248 exec-file instead of the command variable's value.
17250 2020-01-10 Pedro Alves <palves@redhat.com>
17252 * record-full.c (record_full_resume_ptid): New global.
17253 (record_full_target::resume): Set it.
17254 (record_full_wait_1): Use record_full_resume_ptid instead of
17257 2020-01-10 Pedro Alves <palves@redhat.com>
17259 * gdbthread.h (scoped_restore_current_thread)
17260 <dont_restore, restore, m_dont_restore>: Declare.
17261 * thread.c (thread_alive): Add assertion. Return bool.
17262 (switch_to_thread_if_alive): New.
17263 (prune_threads): Switch inferior/thread.
17264 (print_thread_info_1): Switch thread before calling target methods.
17265 (scoped_restore_current_thread::restore): New, factored out from
17267 (scoped_restore_current_thread::~scoped_restore_current_thread):
17269 (scoped_restore_current_thread::scoped_restore_current_thread):
17271 (thread_apply_all_command, thread_select): Use
17272 switch_to_thread_if_alive.
17274 2020-01-10 George Barrett <bob@bob131.so>
17276 * stap-probe.c (stap_modify_semaphore): Don't check for null
17278 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17279 for null semaphores.
17281 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17283 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17284 all source windows, and maintain horizontal scroll status while
17287 2020-01-09 Tom Tromey <tom@tromey.com>
17290 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17291 update_source_window, not print_source_lines.
17293 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17295 * tui/tui.c (tui_enable): Register tui hooks after calling
17298 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17300 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17302 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17304 * thread.c (print_thread_info_1): Fix indentation.
17306 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17308 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17309 unique_xmalloc_ptr outside the if to always free the demangled name.
17311 2020-01-08 Tom Tromey <tromey@adacore.com>
17313 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17314 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17315 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17316 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17318 (section_offsets): New typedef.
17319 * symtab.c (fixup_section, get_msymbol_address): Update.
17320 * symmisc.c (dump_msymbols): Update.
17321 * symfile.h (relative_addr_info_to_section_offsets)
17322 (symfile_map_offsets_to_segments): Update.
17323 * symfile.c (build_section_addr_info_from_objfile)
17324 (init_objfile_sect_indices): Update.
17325 (struct place_section_arg): Change type of "offsets".
17326 (place_section): Update.
17327 (relative_addr_info_to_section_offsets): Change type of
17328 "section_offsets". Remove "num_sections" parameter.
17329 (default_symfile_offsets, syms_from_objfile_1)
17330 (set_objfile_default_section_offset): Update.
17331 (reread_symbols): No need to preserve section offsets by hand.
17332 (symfile_map_offsets_to_segments): Change type of "offsets".
17333 * stap-probe.c (relocate_address): Update.
17334 * stabsread.h (process_one_symbol): Update.
17335 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17336 (solib_target_relocate_section_addresses): Update.
17337 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17339 * solib-frv.c (frv_relocate_main_executable): Update.
17340 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17341 * solib-aix.c (solib_aix_get_section_offsets): Change return
17343 (solib_aix_solib_create_inferior_hook): Update.
17344 * remote.c (remote_target::get_offsets): Update.
17345 * psymtab.c (find_pc_sect_psymtab): Update.
17346 * psympriv.h (struct partial_symbol) <address, text_low,
17347 text_high>: Update.
17348 * objfiles.h (obj_section_offset): Update.
17349 (struct objfile) <section_offsets>: Change type.
17350 <num_sections>: Remove.
17351 (objfile_relocate): Update.
17352 * objfiles.c (entry_point_address_query): Update
17353 (relocate_one_symbol): Change type of "section_offsets".
17354 (objfile_relocate1, objfile_relocate1): Change type of
17356 (objfile_rebase1): Update.
17357 * mipsread.c (mipscoff_symfile_read): Update.
17358 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17360 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17361 (parse_external, psymtab_to_symtab_1): Update.
17362 * machoread.c (macho_symfile_offsets): Update.
17363 * ia64-tdep.c (ia64_find_unwind_table): Update.
17364 * hppa-tdep.c (read_unwind_info): Update.
17365 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17366 * dwarf2read.c (create_addrmap_from_index)
17367 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17368 (process_psymtab_comp_unit_reader, add_partial_symbol)
17369 (add_partial_subprogram, process_full_comp_unit)
17370 (read_file_scope, read_func_scope, read_lexical_block_scope)
17371 (read_call_site_scope, dwarf2_rnglists_process)
17372 (dwarf2_ranges_process, dwarf2_ranges_read)
17373 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17374 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17376 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17378 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17379 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17380 (process_one_symbol): Change type of "section_offsets".
17381 * ctfread.c (get_objfile_text_range): Update.
17382 * coffread.c (coff_symtab_read, enter_linenos)
17383 (process_coff_symbol): Update.
17384 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17387 2020-01-08 Tom Tromey <tromey@adacore.com>
17389 * dwarf2read.c (parse_macro_definition): Use std::string.
17390 (parse_macro_definition): Likewise.
17392 2020-01-08 Tom Tromey <tromey@adacore.com>
17394 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17395 (ATTR_ALLOC_CHUNK): Remove.
17397 2020-01-08 Tom Tromey <tromey@adacore.com>
17399 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17401 2020-01-08 Tom Tromey <tromey@adacore.com>
17403 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17404 (dwarf2_compute_name, open_dwo_file): Likewise.
17405 (process_enumeration_scope): Use std::vector.
17406 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17407 (partial_die_info::fixup, dwarf2_start_subfile)
17408 (guess_full_die_structure_name, dwarf2_name): Likewise.
17409 (determine_prefix): Update.
17410 (guess_full_die_structure_name): Make return type const.
17411 (partial_die_full_name): Return unique_xmalloc_ptr.
17412 (DW_FIELD_ALLOC_CHUNK): Remove.
17414 2020-01-07 Tom Tromey <tromey@adacore.com>
17417 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17419 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17421 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17423 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17425 * stack.c (print_frame_info): Move disassemble_next_line code
17426 inside source_print block.
17428 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17430 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17431 gdb/signals.h, as we are now using native signal symbols.
17433 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17435 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17436 overflow by an early check of content vs threshold.
17437 * tui/tui-source.c (tui_source_window::line_is_displayed):
17440 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17442 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17444 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17446 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17447 export table if no section contains it's RVA.
17449 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17451 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17453 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17455 * source.c (print_source_lines_base): Set last_line_listed.
17457 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17459 * tui/tui-disasm.c: Remove trailing spaces.
17461 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17462 Pedro Alves <palves@redhat.com>
17464 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17465 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17466 (windows_gdb_signal_to_target): New function, uses the above
17467 enumeration to convert GDB internal signal codes to equivalent
17469 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17470 * windows-nat.c: Include "gdb_wait.h".
17471 (get_windows_debug_event): Extract the fatal exception from the
17472 exit status and convert to the equivalent Posix signal number.
17473 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17474 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17475 * gdbsupport/gdb_wait.c: New file, implements
17476 windows_status_to_termsig.
17477 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17478 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17480 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17482 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17485 2020-01-05 Luis Machado <luis.machado@linaro.org>
17487 * aarch64-linux-nat.c
17488 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17489 and bfd_mach_aarch64.
17491 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17493 * ui-file.c (stdio_file::can_emit_style_escape)
17494 (tee_file::can_emit_style_escape): Ensure style is used also on
17495 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17497 * main.c (set_gdb_data_directory): Use file style to output the
17498 warning that the given pathname is not a directory.
17499 * top.c (show_history_filename, gdb_safe_append_history)
17500 (show_gdb_datadir): Use file style.
17502 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17504 * solib-target.c (struct lm_info_target):
17505 Change offsets to be a unique_xmalloc_ptr.
17506 (solib_target_relocate_section_addresses): Update.
17508 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17510 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17512 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17514 * MAINTAINERS (Write After Approval): Add myself.
17516 2020-01-02 Luis Machado <luis.machado@linaro.org>
17518 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17519 Cell BE architecture.
17520 * target.h (struct target_ops) <thread_architecture>: Likewise.
17522 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17524 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17526 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17528 * MAINTAINERS (Write After Approval): Add myself.
17530 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17532 * gdbarch.sh: Update copyright year range of generated files.
17534 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17536 Update copyright year range in all GDB files.
17538 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17540 * copyright.py: Convert to Python 3.
17542 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17544 * copyright.py: Adapt after move of gnulib directory from gdb
17545 directory to toplevel directory.
17547 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17549 * copyright.py (main): Exit if run from the wrong directory.
17551 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17553 * top.c (print_gdb_version): Change copyright year to 2020.
17555 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17557 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17559 For older changes see ChangeLog-2019.
17565 version-control: never