X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=52eae109ee690fe43d92be94d65bc2ad6484845d;hb=a30cb6dabb20e26dc80b0952ae709613372359f8;hp=08362f291dee0ef5a811474e5fcae3641782904f;hpb=669203174311c5be76744a879563c697cd479853;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 08362f291d..52eae109ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1427 @@ +2020-07-01 Tom Tromey + + * tui/tui-stack.h (struct tui_locator_window): Derive from + tui_win_info. + : New methods. + : New method. + +2020-07-01 Tom Tromey + + * tui/tui-stack.h (struct tui_locator_window): Remove body. + +2020-07-01 Tom Tromey + + * tui/tui-regs.c (tui_data_window::display_registers_from) + (tui_data_window::display_registers_from) + (tui_data_window::first_data_item_displayed) + (tui_data_window::delete_data_content_windows): Update. + (tui_data_window::refresh_window, tui_data_window::no_refresh): + Remove. + (tui_data_window::check_register_values): Update. + (tui_data_item_window::rerender): Add parameters. Update. + (tui_data_item_window::refresh_window): Remove. + * tui/tui-data.h (struct tui_gen_win_info) : No longer + virtual. + * tui/tui-regs.h (struct tui_data_item_window): Don't derive from + tui_gen_win_info. + : Remove. + : Add parameters. + : New members. + (struct tui_data_window) : Remove. + : New member. + +2020-07-01 Tom Tromey + + * tui/tui-regs.c (tui_data_window::show_register_group) + (tui_data_window::check_register_values): Update. + * tui/tui-regs.h (struct tui_data_item_window) : Rename + from item_no. + +2020-07-01 Tom Tromey + + * tui/tui-regs.c (tui_data_window::show_register_group): Remove + useless "if". + +2020-07-01 Tom Tromey + + * tui/tui-regs.c (tui_data_window::show_register_group): Update. + * tui/tui-regs.h (struct tui_data_item_window) : Remove. + +2020-07-01 Tom Tromey + + * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h + * tui/tui-winsource.h (enum tui_line_or_address_kind) + (struct tui_line_or_address): Move from tui-data.h. + * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. + * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. + (tui_cmd_window, tui_source_window_base, tui_source_window) + (tui_disasm_window): Don't declare. + (enum tui_line_or_address_kind, struct tui_line_or_address): Move + to tui-winsource.h. + (SINGLE_KEY): Move to tui-stack.c. + +2020-07-01 Tom Tromey + + * tui/tui-regs.h (struct tui_data_item_window) : Now a + std::string. + * tui/tui-regs.c (class tab_expansion_file): New. + (tab_expansion_file::write): New method. + (tui_register_format): Change return type. Use + tab_expansion_file. + (tui_get_register, tui_data_window::display_registers_from) + (tui_data_item_window::rerender): Update. + * tui/tui-io.h (tui_expand_tabs): Don't declare. + * tui/tui-io.c (tui_expand_tabs): Remove. + +2020-07-01 Tom Tromey + + * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. + +2020-07-01 Fangrui Song + + * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. + +2020-07-01 Alok Kumar Sharma + + * dwarf2/read.c (set_die_type): Removed conditions to restrict + forms for DW_AT_associated and DW_AT_allocated attributes, + which is already checked in function attr_to_dynamic_prop. + +2020-06-30 Tom Tromey + + * dwarf2/read.c (quirk_rust_enum): Correctly call + alloc_rust_variant for default-less enum. + +2020-06-30 Tom Tromey + + PR build/26183: + * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use + gdb::to_string. + +2020-06-29 Simon Marchi + + * gdbarch.sh (displaced_step_copy_insn): Update doc. + * gdbarch.h: Re-generate. + +2020-06-28 Tom Tromey + + * command.h (cmd_types): Remove. + (cmd_type): Don't declare. + * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a + typedef. + * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. + * cli/cli-decode.c (cmd_type): Remove. + +2020-06-27 Pedro Alves + + * fork-child.c (prefork_hook): Adjust. + * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): + Delete. + (set_inferior_tty_command, show_inferior_tty_command): Adjust. + * inferior.c (inferior::set_tty, inferior::tty): New methods. + * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): + Remove declarations. + (struct inferior) : New methods. + (struct inferior) : Rename to ... + (struct inferior) : ... this and make private. + * main.c (captured_main_1): Adjust. + * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. + (mi_cmd_inferior_tty_show): Adjust. + * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. + * windows-nat.c (windows_nat_target::create_inferior): Adjust. + +2020-06-26 Nick Alcock + + * configure.ac: Add --enable-libctf: handle --disable-static + properly. + * acinclude.m4: sinclude ../config/enable.m4. + * Makefile.in (aclocal_m4_deps): Adjust accordingly. + (LIBCTF): Substitute in. + (CTF_DEPS): New, likewise. + (CLIBS): libctf needs symbols from libbfd: move earlier. + (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath + flags. + * ctfread.c: Surround in ENABLE_LIBCTF. + (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. + * configure: Regenerate. + * config.in: Likewise. + +2020-06-25 Simon Marchi + + * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. + +2020-06-25 Simon Marchi + + * inferior.h (struct inferior) : Change type to + gdb::unique_xmalloc_ptr. + * inferior.c (inferior::~inferior): Don't free inf->terminal. + * infcmd.c (set_inferior_io_terminal): Don't free terminal + field, adjust to unique pointer. + (get_inferior_io_terminal): Adjust to unique pointer. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (riscv_print_registers_info): Loop over all + registers, not just the known core set of registers. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (riscv_register_name): Return NULL for duplicate + fflags, frm, and fcsr registers. + (riscv_register_reggroup_p): Remove unknown CSRs from save and + restore groups. + (riscv_tdesc_unknown_reg): New function. + (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to + tdesc_use_registers. + * riscv-tdep.h (struct gdbarch_tdep): Add + unknown_csrs_first_regnum, unknown_csrs_count, + duplicate_fflags_regnum, duplicate_frm_regnum, and + duplicate_fcsr_regnum fields. + +2020-06-25 Andrew Burgess + + * target-descriptions.c (tdesc_use_registers): Add new parameter a + callback, use the callback (when not null) to help number unknown + registers. + * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. + (tdesc_use_registers): Add extra parameter to declaration. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later + in the file. + (class riscv_pending_register_alias): Likewise. + (riscv_register_feature::register_info): Change 'required_p' field + to 'required', and change its type. Add 'check' member function. + (riscv_register_feature::register_info::check): Define new member + function. + (riscv_xreg_feature): Change initialisation of 'required' field. + (riscv_freg_feature): Likewise. + (riscv_virtual_feature): Likewise. + (riscv_csr_feature): Likewise. + (riscv_check_tdesc_feature): Take extra parameter, the csr + tdesc_feature, rewrite the function to use the new + riscv_register_feature::register_info::check function. + (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. + +2020-06-25 Andrew Burgess + + * features/Makefile: Remove all references to the deleted files + below. + * features/riscv/32bit-csr.c: Deleted. + * features/riscv/32bit-csr.xml: Deleted. + * features/riscv/64bit-csr.c: Deleted. + * features/riscv/64bit-csr.xml: Deleted. + * features/riscv/rebuild-csr-xml.sh: Deleted. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (struct riscv_register_feature::register_info): Fix + whitespace error for declaration of names member variable. + (struct riscv_register_feature): Add new prefer_first_name member + variable, and fix whitespace error in declaration of registers. + (riscv_xreg_feature): Initialize prefer_first_name field. + (riscv_freg_feature): Likewise. + (riscv_virtual_feature): Likewise. + (riscv_csr_feature): Likewise. + (riscv_register_name): Expand on comments. Remove register name + modifications for CSR and virtual registers. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (struct riscv_register_feature): Fix whitespace + errors. + +2020-06-25 Andrew Burgess + + * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from + riscv-opc.h. + (class riscv_pending_register_alias): New class. + (riscv_check_tdesc_feature): Take vector of pending aliases and + populate it as appropriate. + (riscv_setup_register_aliases): Delete. + (riscv_gdbarch_init): Create vector of pending aliases and pass it + to riscv_check_tdesc_feature in all cases. Use the vector to + create the register aliases. + +2020-06-25 Rainer Orth + + * sol2-tdep.c (sol2_static_transform_name): Remove. + (sol2_init_abi): Don't register it. + * gdbarch.sh (static_transform_name): Remove. + * gdbarch.c, gdbarch.h: Regenerate. + + * dbxread.c (read_dbx_symtab) <'S'>: Remove call to + gdbarch_static_transform_name. + * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. + * stabsread.c (define_symbol) <'X'>: Remove. + (define_symbol) <'S'>: Remove gdbarch_static_transform_name + handling. + <'V'>: Likewise. + * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. + <'S'>: Remove call to gdbarch_static_transform_name. + +2020-06-25 Rainer Orth + + * procfs.c (procfs_pre_trace): New function. + (procfs_target::create_inferior): Pass it to fork_inferior. + +2020-06-25 Rainer Orth + + * configure.tgt (gdb_target_obs): Remove + sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. + (gdb_target_obs): Remove sparc64-sol2-tdep.o, + sol2-tdep.o, sparc-sol2-tdep.o. + * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. + * sparc-tdep.h (sparc32_sol2_init_abi): Remove. + * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. + * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. + +2020-06-25 Rainer Orth + + * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. + (amd64_sol2_init_abi): Use sol2_sigtramp_p. + Call sol2_init_abi. + Remove calls to set_gdbarch_skip_solib_resolver, + set_gdbarch_core_pid_to_str. + * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. + (i386_sol2_static_transform_name): Remove. + (i386_sol2_init_abi): Call sol2_init_abi. + Remove calls to set_gdbarch_sofun_address_maybe_missing, + set_gdbarch_static_transform_name, + set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. + Use sol2_sigtramp_p. + * sol2-tdep.c (sol2_pc_in_sigtramp): New function. + (sol2_sigtramp_p): New function. + (sol2_static_transform_name): New function. + (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. + (sol2_init_abi): New function. + * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. + (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. + * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. + (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. + (sparc_sol2_static_transform_name): Remove. + (sparc32_sol2_init_abi): Call sol2_init_abi. + Remove calls to set_gdbarch_sofun_address_maybe_missing, + set_gdbarch_static_transform_name, + set_gdbarch_skip_solib_resolver, + set_gdbarch_core_pid_to_str. + * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) + (sparc_sol2_static_transform_name): Remove + * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just + call sol2_sigtramp_p. + (sparc64_sol2_init_abi): Call sol2_init_abi. + Remove calls to set_gdbarch_sofun_address_maybe_missing, + set_gdbarch_static_transform_name, + set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. + +2020-06-24 Philippe Waroquiers + + * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. + * exec.c (validate_exec_file): If from_tty, set both + SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. + * symfile.c (symbol_file_add_with_addrs): if always_confirm + and from_tty, unconditionally ask a confirmation. + +2020-06-23 Andrew Burgess + + * target-descriptions.c (tdesc_architecture_name): Protect against + NULL pointer dereference. + (maint_print_xml_tdesc_cmd): New function. + (_initialize_target_descriptions): Register new 'maint print + xml-tdesc' command and give it the filename completer. + * NEWS: Mention new 'maint print xml-tdesc' command. + +2020-06-23 Andrew Burgess + + * target-descriptions.c (class tdesc_compatible_info): New class. + (struct target_desc): Change type of compatible vector. + (tdesc_compatible_p): Update for change in type of + target_desc::compatible. + (tdesc_compatible_info_list): New function. + (tdesc_compatible_info_arch_name): New function. + (tdesc_add_compatible): Update for change in type of + target_desc::compatible. + (print_c_tdesc::visit_pre): Likewise. + +2020-06-23 Andrew Burgess + + * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change + whitespace to underscore. + (maint_print_c_tdesc_cmd): Use fake filename for target + descriptions that came from the target. + (_initialize_target_descriptions): Add filename command completion + for 'maint print c-tdesc'. + +2020-06-23 Simon Marchi + + * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty + lines. + +2020-06-23 Simon Marchi + + * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty + lines. + (dwarf2_find_location_expression): Likewise. + (call_site_parameter_matches): Likewise. + (dwarf2_compile_expr_to_ax): Likewise. + (disassemble_dwarf_expression): Likewise. + (loclist_describe_location): Likewise. + +2020-06-23 Pedro Alves + + * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or + progspace-and-thread.h. Include scoped-mock-context.h instead. + (register_to_value_test): Use scoped_mock_context. + * regcache.c: Include "scoped-mock-context.h". + (cooked_read_test): Don't error out if a target is already pushed. + Use scoped_mock_context. Adjust. + * scoped-mock-context.h: New file. + +2020-06-23 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_is_string_type_p + initializer. + (ada_language::is_string_type_p): New member function. + * c-lang.c (c_language_data): Delete la_is_string_type_p + initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_is_string_type_p): Delete function, implementation + moved to f_language::is_string_type_p. + (f_language_data): Delete la_is_string_type_p initializer. + (f_language::is_string_type_p): New member function, + implementation from f_is_string_type_p. + * go-lang.c (go_is_string_type_p): Delete function, implementation + moved to go_language::is_string_type_p. + (go_language_data): Delete la_is_string_type_p initializer. + (go_language::is_string_type_p): New member function, + implementation from go_is_string_type_p. + * language.c (language_defn::is_string_type_p): Define new member + function. + (default_is_string_type_p): Make static, add comment copied from + header file. + (unknown_language_data): Delete la_is_string_type_p initializer. + (unknown_language::is_string_type_p): New member function. + (auto_language_data): Delete la_is_string_type_p initializer. + (auto_language::is_string_type_p): New member function. + * language.h (language_data): Delete la_is_string_type_p field. + (language_defn::is_string_type_p): Declare new function. + (default_is_string_type_p): Delete desclaration, move comment to + definition. + * m2-lang.c (m2_is_string_type_p): Delete function, implementation + moved to m2_language::is_string_type_p. + (m2_language_data): Delete la_is_string_type_p initializer. + (m2_language::is_string_type_p): New member function, + implementation from m2_is_string_type_p. + * objc-lang.c (objc_language_data): Delete la_is_string_type_p + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_is_string_type_p): Delete function, + implementation moved to pascal_language::is_string_type_p. + (pascal_language_data): Delete la_is_string_type_p initializer. + (pascal_language::is_string_type_p): New member function, + implementation from pascal_is_string_type_p. + * rust-lang.c (rust_is_string_type_p): Delete function, + implementation moved to rust_language::is_string_type_p. + (rust_language_data): Delete la_is_string_type_p initializer. + (rust_language::is_string_type_p): New member function, + implementation from rust_is_string_type_p. + * valprint.c (val_print_scalar_or_string_type_p): Update call to + is_string_type_p. + +2020-06-23 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_print_typedef + initializer. + (ada_language::print_typedef): New member function. + * c-lang.c (c_language_data): Delete la_print_typedef initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_language_data): Likewise. + (f_language::print_typedef): New member function. + * go-lang.c (go_language_data): Delete la_print_typedef + initializer. + * language.c (language_defn::print_typedef): Define member + function. + (unknown_language_data): Delete la_print_typedef initializer. + (unknown_language::print_typedef): New member function. + (auto_language_data): Delete la_print_typedef initializer. + (auto_language::print_typedef): New member function. + * language.h (language_data): Delete la_print_typedef field. + (language_defn::print_typedef): Declare new member function. + (LA_PRINT_TYPEDEF): Update call to print_typedef. + (default_print_typedef): Delete declaration. + * m2-lang.c (m2_language_data): Delete la_print_typedef + initializer. + (m2_language::print_typedef): New member function. + * objc-lang.c (objc_language_data): Delete la_print_typedef + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + (pascal_language::print_typedef): New member function. + * rust-lang.c (rust_print_typedef): Delete function, + implementation moved to rust_language::print_typedef. + (rust_language): Delete la_print_typedef initializer. + (rust_language::print_typedef): New member function, + implementation from rust_print_typedef. + * typeprint.c (default_print_typedef): Delete. + +2020-06-23 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_printstr initializer. + (ada_language::printstr): New member function. + * c-lang.c (c_language_data): Delete la_printstr initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_printstr): Rename to f_language::printstr. + (f_language_data): Delete la_printstr initializer. + (f_language::printstr): New member function, implementation from + f_printstr. + * go-lang.c (go_language_data): Delete la_printstr initializer. + * language.c (language_defn::printstr): Define new member + function. + (unk_lang_printstr): Delete. + (unknown_language_data): Delete la_printstr initializer. + (unknown_language::printstr): New member function. + (auto_language_data): Delete la_printstr initializer. + (auto_language::printstr): New member function. + * language.h (language_data): Delete la_printstr field. + (language_defn::printstr): Declare new member function. + (LA_PRINT_STRING): Update call to printstr. + * m2-lang.c (m2_printstr): Rename to m2_language::printstr. + (m2_language_data): Delete la_printstr initializer. + (m2_language::printstr): New member function, implementation from + m2_printstr. + * objc-lang.c (objc_language_data): Delete la_printstr + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. + (pascal_language_data): Delete la_printstr initializer. + (pascal_language::printstr): New member function, implementation + from pascal_printstr. + * p-lang.h (pascal_printstr): Delete declaration. + * rust-lang.c (rust_printstr): Update header comment. + (rust_language_data): Delete la_printstr initializer. + (rust_language::printstr): New member function. + +2020-06-23 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_printchar initializer. + (ada_language::printchar): New member function. + * c-lang.c (c_language_data): Delete la_printchar initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_printchar): Rename to f_language::printchar. + (f_language_data): Delete la_printchar initializer. + (f_language::printchar): New member function, implementation from + f_printchar. + * go-lang.c (go_language_data): Delete la_printchar initializer. + * language.c (unk_lang_printchar): Delete. + (language_defn::printchar): Define new member function. + (unknown_language_data): Delete la_printchar initializer. + (unknown_language::printchar): New member function. + (auto_language_data): Delete la_printchar initializer. + (auto_language::printchar): New member function. + * language.h (language_data): Delete la_printchar field. + (language_defn::printchar): Declare new member function. + (LA_PRINT_CHAR): Update call to printchar. + * m2-lang.c (m2_language_data): Delete la_printchar initializer. + (m2_language::printchar): New member function. + * objc-lang.c (objc_language_data): Delete la_printchar + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Delete la_printchar + initializer. + (pascal_language::printchar): New member function. + * rust-lang.c (rust_printchar): Rename to + rust_language::printchar. + (rust_language_data): Delete la_printchar initializer. + (rust_language::printchar): New member function, implementation + from rust_printchar. + +2020-06-23 Andrew Burgess + + * ada-lang.c (emit_char): Renamed to ada_language::emitchar. + (ada_language_data): Delete la_emitchar initializer. + (ada_language::emitchar): New member function, implementation from + emit_char. + * c-lang.c (c_language_data): Delete la_emitchar initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_emit_char): Rename to f_language::emitchar. + (f_language_data): Delete la_emitchar initializer. + (f_language::emitchar): New member function, implementation from + f_emit_char. + * go-lang.c (go_language_data): Delete la_emitchar initializer. + * language.c (unk_lang_emit_char): Delete. + (language_defn::emitchar): New member function definition. + (unknown_language_data): Delete la_emitchar initializer. + (unknown_language::emitchar): New member function. + (auto_language_data): Delete la_emitchar initializer. + (auto_language::emitchar): New member function. + * language.h (language_data): Delete la_emitchar field. + (language_defn::emitchar): New member field declaration. + (LA_EMIT_CHAR): Update call to emitchar. + * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. + (m2_language_data): Delete la_emitchar initializer. + (m2_language::emitchar): New member function, implementation from + m2_emit_char. + * objc-lang.c (objc_language_data): Delete la_emitchar + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. + (pascal_language_data): Delete la_emitchar initializer. + (pascal_language::emitchar): New member function, implementation + from pascal_emit_char. + * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. + (rust_language_data): Delete la_emitchar initializer. + (rust_language::emitchar): New member function, implementation + from rust_emitchar. + +2020-06-23 Andrew Burgess + + * ada-lang.c (resolve): Rename to ada_language::post_parser. + (ada_language_data): Delete la_post_parser initializer. + (ada_language::post_parser): New member function. + * c-lang.c (c_language_data): Delete la_post_parser initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_language_data): Likewise. + * go-lang.c (go_language_data): Likewise. + * language.c (unknown_language_data): Likewise. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_post_parser field. + (language_defn::post_parser): New member function. + * m2-lang.c (m2_language_data): Delete la_post_parser initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * parse.c (parse_exp_in_context): Update call to post_parser. + (null_post_parser): Delete definition. + * parser-defs.h (null_post_parser): Delete declaration. + * rust-lang.c (rust_language_data): Delete la_post_parser + initializer. + +2020-06-23 Andrew Burgess + + * ada-lang.c (parse): Rename to ada_language::parser. + (ada_language_data): Delete la_parser initializer. + (ada_language::parser): New member function, implementation from + parse. + * c-lang.c (c_language_data): Delete la_parser initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + (d_language::parser): New member function. + * f-lang.c (f_language_data): Delete la_parser initializer. + (f_language::parser): New member function. + * go-lang.c (go_language_data): Delete la_parser initializer. + (go_language::parser): New member function. + * language.c (unk_lang_parser): Delete. + (language_defn::parser): Define new member function. + (unknown_language_data): Delete la_parser initializer. + (unknown_language::parser): New member function. + (auto_language_data): Delete la_parser initializer. + (auto_language::parser): New member function. + * language.h (language_data): Delete la_parser field. + (language_defn::parser): Declare new member function. + * m2-lang.c (m2_language_data): Delete la_parser initializer. + (m2_language::parser): New member function. + * objc-lang.c (objc_language_data): Delete la_parser initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + (pascal_language::parser): New member function. + * parse.c (parse_exp_in_context): Update call to parser. + * rust-lang.c (rust_language_data): Delete la_parser initializer. + (rust_language::parser): New member function. + +2020-06-23 Andrew Burgess + + * top.c (print_gdb_configuration): Print --with-python-libdir + configuration value. + +2020-06-22 Philippe Waroquiers + + * NEWS: Mention change to the alias command. + +2020-06-22 Philippe Waroquiers + + * cli/cli-cmds.c (lookup_cmd_for_default_args) + (alias_command_completer) + (make_alias_options_def_group): New functions. + (alias_opts, alias_option_defs): New struct and array. + (alias_usage_error): Update usage. + (alias_command): Handles optional DEFAULT-ARGS... arguments. + Use option framework. + (_initialize_cli_cmds): Update alias command help. + Update aliases command help. + (show_user): + Add NULL for new default_args lookup_cmd argument. + (valid_command_p): Rename to validate_aliased_command. + Add NULL for new default_args lookup_cmd argument. Verify that the + aliased_command has no default args. + * cli/cli-decode.c (help_cmd): Show aliases definitions. + (lookup_cmd_1, lookup_cmd): New argument default_args. + (add_alias_cmd): + Add NULL for new default_args lookup_cmd argument. + (print_help_for_command): Show default args under the layout + alias some_alias = some_aliased_cmd some_alias_default_arg. + * cli/cli-decode.h (struct cmd_list_element): New member default_args. + xfree default_args in destructor. + * cli/cli-script.c (process_next_line, do_define_command): + Add NULL for new default_args lookup_cmd argument. + * command.h: Declare new default_args argument in lookup_cmd + and lookup_cmd_1. + * completer.c (complete_line_internal_1): + Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. + * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. + * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): + Likewise. + * infcmd.c (_initialize_infcmd): Likewise. + * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. + * python/py-cmd.c (gdbpy_parse_command_name): Likewise. + * python/py-param.c (add_setshow_generic): Likewise. + * remote.c (_initialize_remote): Likewise. + * top.c (execute_command): Prepend default_args if command has some. + (set_verbose): + Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. + * tracepoint.c (validate_actionline, encode_actions_1): + Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. + +2020-06-22 Tankut Baris Aktemur + + * jit.c (jit_read_descriptor): Use bool as the return type. + (jit_breakpoint_re_set_internal): Use bool as the return type. + Invert the return value logic; return true if the jit breakpoint + has been successfully initialized. + (jit_inferior_init): Update the call to + jit_breakpoint_re_set_internal. + +2020-06-22 Pedro Alves + + PR gdb/25939 + * procfs.c (procfs_target::wait): Don't reference inferior_ptid. + Use the current inferior instead. Don't return + TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and + wait again. + * sol-thread.c (sol_thread_target::wait): Don't reference + inferior_ptid. + (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) + (sol_update_thread_list_callback): Use the current inferior's pid + instead of inferior_ptid. + +2020-06-21 Rainer Orth + + * procfs.c: Cleanup many comments. + + (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) + (AFTER_WATCHFLAG): Replace by value. + + (MAIN_PROC_NAME_FORMAT): Inline ... + (create_procinfo): ... here. + + (procfs_debug_inferior): Remove SYS_exec handling. + (syscall_is_exec): Likewise. + (procfs_set_exec_trap): Likewise. + + (syscall_is_lwp_exit): Inline in callers. + (syscall_is_exit): Likewise. + (syscall_is_exec): Likewise. + (syscall_is_lwp_create): Likewise. + + (invalidate_cache): Remove #if 0 code. + + (make_signal_thread_runnable): Remove. + (procfs_target::resume): Remove #if 0 code. + +2020-06-21 Rainer Orth + + PR gdb/25939 + * procfs.c (procfs_target::procfs_init_inferior): Move push_target + call ... + (procfs_target::create_inferior): ... here. + +2020-06-21 Philippe Waroquiers + + * exec.c (validate_exec_file): Ensure the build-id is up to + date by calling reopen_exec_file (that checks file timestamp + to decide to re-read the file). + +2020-06-18 Pedro Alves + + PR gdb/25412 + * gdbthread.h (delete_thread, delete_thread_silent) + (find_thread_ptid): Update comments. + * thread.c (current_thread_): New global. + (is_current_thread): Move higher, and reimplement. + (inferior_thread): Reimplement. + (set_thread_exited): Use bool. Add assertions. + (add_thread_silent): Simplify thread-reuse handling by always + calling delete_thread. + (delete_thread): Remove intro comment. + (find_thread_ptid): Skip exited threads. + (switch_to_thread_no_regs): Write to current_thread_. + (switch_to_no_thread): Check CURRENT_THREAD_ instead of + INFERIOR_PTID. Clear current_thread_. + +2020-06-18 Pedro Alves + + * aix-thread.c (pd_update): Use switch_to_thread. + +2020-06-18 Pedro Alves + + * ravenscar-thread.c (ravenscar_thread_target): Update. + (ravenscar_thread_target::update_inferior_ptid): Rename to ... + (ravenscar_thread_target::add_active_thread): ... this. Don't + set m_base_ptid here. Update to avoid referencing inferior_ptid. + (ravenscar_thread_target::wait): Don't write to inferior_ptid. + +2020-06-18 Pedro Alves + + * nat/windows-nat.c (current_windows_thread): Remove. + * nat/windows-nat.h (current_windows_thread): Remove. + * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): + Adjust. + (display_selectors): Adjust to fetch the current + windows_thread_info based on inferior_ptid. + (fake_create_process): No longer write to current_windows_thread. + (windows_nat_target::get_windows_debug_event): + Don't set inferior_ptid or current_windows_thread. + (windows_nat_target::wait): Adjust to not rely on + current_windows_thread. + (do_initial_windows_stuff): Now a method of windows_nat_target. + Switch to the last_ptid thread. + (windows_nat_target::attach): Adjust. + (windows_nat_target::detach): Use switch_to_no_thread instead of + writing to inferior_ptid directly. + (windows_nat_target::create_inferior): Adjust. + +2020-06-18 Pedro Alves + + * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. + +2020-06-18 Pedro Alves + + * go32-nat.c (go32_nat_target::create_inferior): Switch to thread + after creating it, instead of writing to inferior_ptid. Don't + write to inferior_ptid. + +2020-06-18 Pedro Alves + + * fork-child.c (postfork_hook): Don't write to inferior_ptid. + +2020-06-18 Pedro Alves + + * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding + it, instead of writing to inferior_ptid. + +2020-06-18 Pedro Alves + + * btrace.c (btrace_fetch): Use switch_to_thread instead of writing + to inferior_ptid. + +2020-06-18 Pedro Alves + + * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread + instead of writing to inferior_ptid directly. + +2020-06-18 Pedro Alves + + * corelow.c (core_target::close): Use switch_to_no_thread instead + of writing to inferior_ptid directly. + (add_to_thread_list, core_target_open): Use switch_to_thread + instead of writing to inferior_ptid directly. + +2020-06-18 Pedro Alves + + * darwin-nat.c (darwin_nat_target::decode_message): Don't write to + inferior_ptid. + (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid + inferior_ptid. + (darwin_attach_pid): Use switch_to_no_thread instead of writing to + inferior_ptid directly. + (darwin_nat_target::init_thread_list): Switch to thread, instead + of writing to inferior_ptid. + (darwin_nat_target::attach): Don't write to inferior_ptid. + (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. + +2020-06-18 Pedro Alves + + * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added + thread. + (gnu_nat_target::attach): Don't write to inferior_ptid directly. + Instead use switch_to_thread. + (gnu_nat_target::detach): Use switch_to_no_thread + instead of writing to inferior_ptid directly. Used passed-in + inferior instead of looking up the inferior by pid. + +2020-06-18 Pedro Alves + + * go32-nat.c (go32_nat_target::create_inferior): Don't write to + inferior_ptid. + +2020-06-18 Pedro Alves + + * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid + inferior_ptid. + (nto_procfs_target::attach): Avoid inferior_ptid. Switch to + thread. + (nto_procfs_target::detach): Avoid referencing + inferior_ptid. Use switch_to_no_thread instead of writing to + inferior_ptid directly. + (nto_procfs_target::mourn_inferior): Use switch_to_no_thread + instead of writing to inferior_ptid directly. + (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch + to thread. + +2020-06-18 Pedro Alves + + * remote-sim.c (gdbsim_target::create_inferior): Switch to thread + after creating it, instead of writing to inferior_ptid. + (gdbsim_target_open): Use switch_to_no_thread instead of writing + to inferior_ptid directly. + (gdbsim_target::wait): Don't write to inferior_ptid. + +2020-06-18 Pedro Alves + + * remote.c (remote_target::remote_notice_new_inferior): Use + switch_to_thread instead of writing to inferior_ptid directly. + (remote_target::add_current_inferior_and_thread): Use + switch_to_no_thread instead of writing to inferior_ptid directly. + (extended_remote_target::attach): Use switch_to_inferior_no_thread + and switch_to_thread instead of using set_current_inferior or + writing to inferior_ptid directly. + +2020-06-18 Pedro Alves + + * tracectf.c (ctf_target_open): Switch to added thread instead of + writing to inferior_ptid directly. + (ctf_target::close): Use switch_to_no_thread instead of writing to + inferior_ptid directly. + +2020-06-18 Pedro Alves + + * tracefile-tfile.c (tfile_target_open): Don't write to + inferior_ptid directly, instead switch to added thread. + (tfile_target::close): Use switch_to_no_thread instead of writing + to inferior_ptid directly. + +2020-06-18 Pedro Alves + + * procfs.c (procfs_target::attach): Don't write to inferior_ptid. + (procfs_target::detach): Use switch_to_no_thread + instead of writing to inferior_ptid directly. + (do_attach): Change return type to void. Switch to the added + thread. + (procfs_target::create_inferior): Switch to the added thread. + (procfs_do_thread_registers): Don't write to inferior_ptid. + +2020-06-18 Pedro Alves + + * infrun.c (generic_mourn_inferior): Use switch_to_thread instead + of writing to inferior_ptid. + (scoped_restore_exited_inferior): Delete. + (handle_vfork_child_exec_or_exit): Simplify using + scoped_restore_current_pspace_and_thread. Use switch_to_thread + instead of writing to inferior_ptid. + (THREAD_STOPPED_BY): Delete. + (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) + (thread_stopped_by_hw_breakpoint): Delete. + (save_waitstatus): Use + scoped_restore_current_thread+switch_to_thread, and call + target_stopped_by_watchpoint instead of + thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint + instead of thread_stopped_by_sw_breakpoint, and + target_stopped_by_hw_breakpoint instead of + thread_stopped_by_hw_breakpoint. + (handle_inferior_event) + : Don't write to + inferior_ptid directly, nor + set_current_inferior/set_current_program_space. Use + switch_to_thread / switch_to_inferior_no_thread instead. + +2020-06-18 Pedro Alves + + * target.c (generic_mourn_inferior): Use switch_to_no_thread + instead of writing to inferior_ptid. + +2020-06-18 Pedro Alves + + * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the + added thread. + (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch + to the added thread. + (inf_ptrace_target::detach_success): Use switch_to_no_thread + instead of writing to inferior_ptid. + +2020-06-18 Pedro Alves + + * gdbarch-selftests.c: Include "progspace-and-thread.h". + (register_to_value_test): Mock a program_space too. Heap-allocate + the address space. Don't write to inferior_ptid. Use + switch_to_thread instead. + +2020-06-18 Pedro Alves + + * linux-tdep.c (find_signalled_thread(thread_info *,void *)): + Delete. + (find_signalled_thread()): New, factored out from + linux_make_corefile_notes and adjusted to handle exited threads. + (linux_make_corefile_notes): Adjust to use the new + find_signalled_thread. + +2020-06-18 Pedro Alves + + * linux-tdep.c (btrace_fetch): Save/restore current thread instead + of saving/restoring inferior_ptid. + +2020-06-17 Tom Tromey + + * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) + (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't + declare. + * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. + +2020-06-15 Simon Marchi + + * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence + of partial symtabs. + +2020-06-17 Simon Marchi + + * regformats/reg-arm.dat: Remove. + * regformats/reg-bfin.dat: Remove. + * regformats/reg-cris.dat: Remove. + * regformats/reg-crisv32.dat: Remove. + * regformats/reg-m32r.dat: Remove. + * regformats/reg-tilegx.dat: Remove. + * regformats/reg-tilegx32.dat: Remove. + +2020-06-17 Simon Marchi + + * features/Makefile (WHICH): Remove arm files. + * regformats/arm/arm-with-iwmmxt.dat: Remove. + * regformats/arm/arm-with-neon.dat: Remove. + * regformats/arm/arm-with-vfpv2.dat: Remove. + * regformats/arm/arm-with-vfpv3.dat: Remove. + +2020-06-17 Simon Marchi + + * features/Makefile (XMLTOC): Remove rx.xml. + +2020-06-17 Pedro Alves + + * gdbthread.h (thread_control_state) Update + comments. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to + ada_language::lookup_symbol_nonlocal. + (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. + (ada_language::lookup_symbol_nonlocal): New member function, + implementation from ada_lookup_symbol_nonlocal. + * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal + initializer. + (cplus_language_data): Delete la_lookup_symbol_nonlocal + initializer. + (cplus_language::lookup_symbol_nonlocal): New member function. + (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. + (minimal_language_data) Likewise. + * cp-namespace.c (cp_lookup_nested_symbol): Update comment. + * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal + initializer. + (d_language::lookup_symbol_nonlocal): New member function. + * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal + initializer. + (f_language::lookup_symbol_nonlocal): New member function. + * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal + initializer. + * language.c (unknown_language_data): Likewise. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_lookup_symbol_nonlocal + field. + (language_defn::lookup_symbol_nonlocal): New member function. + * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal + initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to + rust_language::lookup_symbol_nonlocal. + (rust_language_data): Delete la_lookup_symbol_nonlocal + initializer. + (rust_language::lookup_symbol_nonlocal): New member function, + implementation from rust_lookup_symbol_nonlocal. + * symtab.c (lookup_symbol_aux): Update call to + lookup_symbol_nonlocal. + (basic_lookup_symbol_nonlocal): Rename to... + (language_defn::lookup_symbol_nonlocal): ...this, and update + header comment. Remove language_defn parameter, and replace with + uses of `this'. + * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_value_print_inner + initializer. + (ada_language::value_print_inner): New member function. + * c-lang.c (c_language_data): Delete la_value_print_inner + initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + (d_language::value_print_inner): New member function. + * f-lang.c (f_language_data): Delete la_value_print_inner + initializer. + (f_language::value_print_inner): New member function. + * f-lang.h (f_value_print_innner): Rename to... + (f_value_print_inner): ...this (note spelling of 'inner'). + * f-valprint.c (f_value_print_innner): Rename to... + (f_value_print_inner): ...this (note spelling of 'inner'). + * go-lang.c (go_language_data): Delete la_value_print_inner + initializer. + (go_language::value_print_inner): New member function. + * language.c (language_defn::value_print_inner): Define new member + function. + (unk_lang_value_print_inner): Delete. + (unknown_language_data): Delete la_value_print_inner initializer. + (unknown_language::value_print_inner): New member function. + (auto_language_data): Delete la_value_print_inner initializer. + (auto_language::value_print_inner): New member function. + * language.h (language_data): Delete la_value_print_inner field. + (language_defn::value_print_inner): Delcare new member function. + * m2-lang.c (m2_language_data): Delete la_value_print_inner + initializer. + (m2_language::value_print_inner): New member function. + * objc-lang.c (objc_language_data): Delete la_value_print_inner + initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + (pascal_language::value_print_inner): New member function. + * rust-lang.c (rust_language_data): Delete la_value_print_inner + initializer. + (rust_language::value_print_inner): New member function. + * valprint.c (do_val_print): Update call to value_print_inner. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_value_print + initializer. + (ada_language::value_print): New member function. + * c-lang.c (c_language_data): Delete la_value_print initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_language_data): Likewise. + * go-lang.c (go_language_data): Likewise. + * language.c (unk_lang_value_print): Delete. + (language_defn::value_print): Define new member function. + (unknown_language_data): Delete la_value_print initializer. + (unknown_language::value_print): New member function. + (auto_language_data): Delete la_value_print initializer. + (auto_language::value_print): New member function. + * language.h (language_data): Delete la_value_print field. + (language_defn::value_print): Declare new member function. + (LA_VALUE_PRINT): Update call to value_print. + * m2-lang.c (m2_language_data): Delete la_value_print initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + (pascal_language::value_print): New member function. + * rust-lang.c (rust_language_data): Delete la_value_print + initializer. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_watch_location_expression): Rename to + ada_language::watch_location_expression. + (ada_language_data): Delete la_watch_location_expression + initializer. + (ada_language::watch_location_expression): New member function, + implementation from ada_watch_location_expression. + * breakpoint.c (watch_command_1): Update call to + watch_location_expression. + * c-lang.c (c_watch_location_expression): Rename to + language_defn::watch_location_expression. + (c_language_data): Delete la_watch_location_expression + initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * c-lang.h (c_watch_location_expression): Delete declaration. + * d-lang.c (d_language_data): Delete la_watch_location_expression + initializer. + * f-lang.c (f_language_data): Likewise. + * go-lang.c (go_language_data): Likewise. + * language.c (language_defn::watch_location_expression): Member + function implementation from c_watch_location_expression. + (unknown_language_data): Delete la_watch_location_expression + initializer. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_watch_location_expression + field. + (language_defn::watch_location_expression): Declare new member + function. + * m2-lang.c (m2_language_data): Delete + la_watch_location_expression initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_watch_location_expression): Rename to + rust_language::watch_location_expression. + (rust_language_data): Delete la_watch_location_expression + initializer. + (rust_language::watch_location_expression): New member function, + implementation from rust_watch_location_expression. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_collect_symbol_completion_matches): Rename to + ada_language::collect_symbol_completion_matches. + (ada_language_data): Delete la_collect_symbol_completion_matches + initializer. + (ada_language::collect_symbol_completion_matches): New member + function, implementation from + ada_collect_symbol_completion_matches. + * c-lang.c (c_language_data): Delete + la_collect_symbol_completion_matches initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * f-lang.c (f_collect_symbol_completion_matches): Rename to + f_language::collect_symbol_completion_matches. + (f_language_data): Delete la_collect_symbol_completion_matches + initializer. + (f_language::collect_symbol_completion_matches) New member + function, implementation from f_collect_symbol_completion_matches. + * go-lang.c (go_language_data): Delete + la_collect_symbol_completion_matches initializer. + * language.c (unknown_language_data): Likewise. + (auto_language_data): Likewise. + * language.h (language_data): Delete + la_collect_symbol_completion_matches field. + (language_defn::collect_symbol_completion_matches): New member + function. + * m2-lang.c (m2_language_data): Delete + la_collect_symbol_completion_matches initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_language_data): Likewise. + * symtab.c (default_collect_symbol_completion_matches): Delete. + (collect_symbol_completion_matches): Update call to + collect_symbol_completion_matches. + (collect_symbol_completion_matches_type): Likewise. + * symtab.h (default_collect_symbol_completion_matches): Delete + declaration. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. + (ada_language_data): Delete la_word_break_characters initializer. + (ada_language::word_break_characters): New member function. + * c-lang.c (c_language_data): Delete la_word_break_characters + initializer. + (cplus_language_data): Likewise. + (asm_language_data): Likewise. + (minimal_language_data): Likewise. + * completer.c: Update global comment. + (advance_to_expression_complete_word_point): Update call to + word_break_characters. + (complete_files_symbols): Likewise. + (complete_line_internal_1): Likewise. + (default_completer_handle_brkchars): Likewise. + (skip_quoted_chars): Likewise. + * d-lang.c (d_language_data): Delete la_word_break_characters + initializer. + * f-lang.c (f_word_break_characters): Delete. + (f_language_data): Delete la_word_break_characters initializer. + (f_language::word_break_characters): New member function. + * go-lang.c (go_language_data): Delete la_word_break_characters + initializer. + * language.c (unknown_language_data): Likewise. + (auto_language_data): Likewise. + * language.h (default_word_break_characters): Move declaration to + earlier in the file. + (language_data): Delete la_word_break_characters field. + (language_defn::word_break_characters): New member function. + * m2-lang.c (m2_language_data): Delete la_word_break_characters + initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_language_data): Likewise. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. + (ada_language_data): Delete la_get_symbol_name_matcher + initializer. + (language_defn::get_symbol_name_matcher_inner): New member + function. + * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher + initializer. + (cplus_language_data): Likewise. + (cplus_language::get_symbol_name_matcher_inner): New member + function. + (asm_language_data): Delete la_get_symbol_name_matcher initializer. + (minimal_language_data): Likewise. + * cp-support.h (cp_get_symbol_name_matcher): Update header comment. + * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher + initializer. + * dictionary.c (iter_match_first_hashed): Update call to + get_symbol_name_matcher. + (iter_match_next_hashed): Likewise. + (iter_match_next_linear): Likewise. + * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. + * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher + initializer. + (f_language::get_symbol_name_matcher_inner): New member function. + * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher + initializer. + * language.c (default_symbol_name_matcher): Update header comment, + make static. + (language_defn::get_symbol_name_matcher): New definition. + (language_defn::get_symbol_name_matcher_inner): Likewise. + (get_symbol_name_matcher): Delete. + (unknown_language_data): Delete la_get_symbol_name_matcher + initializer. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_get_symbol_name_matcher + field. + (language_defn::get_symbol_name_matcher): New member function. + (language_defn::get_symbol_name_matcher_inner): Likewise. + (default_symbol_name_matcher): Delete declaration. + * linespec.c (find_methods): Update call to + get_symbol_name_matcher. + * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher + initializer. + * minsyms.c (lookup_minimal_symbol): Update call to + get_symbol_name_matcher. + (iterate_over_minimal_symbols): Likewise. + * objc-lang.c (objc_language_data): Delete + la_get_symbol_name_matcher initializer. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * psymtab.c (psymbol_name_matches): Update call to + get_symbol_name_matcher. + * rust-lang.c (rust_language_data): Delete + la_get_symbol_name_matcher initializer. + * symtab.c (symbol_matches_search_name): Update call to + get_symbol_name_matcher. + (compare_symbol_name): Likewise. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_language_data): Delete la_compute_program + initializer. + * c-lang.c (c_language_data): Likewise. + (c_language::compute_program): New member function. + (cplus_language_data): Delete la_compute_program initializer. + (cplus_language::compute_program): New member function. + (asm_language_data): Delete la_compute_program initializer. + (minimal_language_data): Likewise. + * c-lang.h (c_compute_program): Update comment. + (cplus_compute_program): Likewise. + * compile/compile-c-support.c (c_compute_program): Likewise. + (cplus_compute_program): Likewise. + * compile/compile.c (compile_to_object): Update call to + la_compute_program. + * d-lang.c (d_language_data): Delete la_compute_program + initializer. + * f-lang.c (f_language_data): Likewise. + * go-lang.c (go_language_data): Likewise. + * language.c (unknown_language_data): Likewise. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_compute_program field. + (language_defn::compute_program): New member function. + * m2-lang.c (m2_language_data): Delete la_compute_program + initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_language_data): Likewise. + +2020-06-17 Andrew Burgess + + * ada-lang.c (ada_language_data) Delete + la_class_name_from_physname initializer. + * c-lang.c (c_language_data): Likewise. + (cplus_language_data): Likewise. + (cplus_language::class_name_from_physname): New member function. + (asm_language_data): Delete la_class_name_from_physname + initializer. + (minimal_language_data): Likewise. + * d-lang.c (d_language_data): Likewise. + * dwarf2/read.c (guess_partial_die_structure_name): Update to call + method on language_defn class. + (guess_full_die_structure_name): Likewise. + * f-lang.c (f_language_data): Delete la_class_name_from_physname + initializer. + * go-lang.c (go_language_data): Likewise. + * language.c (language_class_name_from_physname): Delete. + (unk_lang_class_name): Delete. + (unknown_language_data): Delete la_class_name_from_physname + initializer. + (auto_language_data): Likewise. + * language.h (language_data): Delete la_class_name_from_physname + field. + (language_defn::class_name_from_physname): New function. + (language_class_name_from_physname): Delete declaration. + * m2-lang.c (m2_language_data): Delete la_class_name_from_physname + initializer. + * objc-lang.c (objc_language_data): Likewise. + * opencl-lang.c (opencl_language_data): Likewise. + * p-lang.c (pascal_language_data): Likewise. + * rust-lang.c (rust_language_data): Likewise. + +2020-06-16 Tom Tromey + + * tui/tui-data.h (STATUS_NAME): New macro. + * tui/tui-layout.c (tui_remove_some_windows) + (initialize_known_windows, tui_register_window) + (tui_layout_split::remove_windows, initialize_layouts) + (tui_new_layout_command): Don't use hard-coded window names. + +2020-06-16 Tom Tromey + + PR tui/25348: + * tui/tui.c (tui_ensure_readline_initialized): Rename from + tui_initialize_readline. Only run once. Call rl_initialize. + * tui/tui.h (tui_ensure_readline_initialized): Rename from + tui_initialize_readline. + * tui/tui-io.c (tui_setup_io): Call + tui_ensure_readline_initialized. + * tui/tui-interp.c (tui_interp::init): Update. + +2020-06-16 Tom Tromey + + * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. + Also preserve the status window. + +2020-06-16 Tom Tromey + + * python/py-tui.c (tui_py_window::~tui_py_window): Handle case + where m_window==nullptr. + 2020-06-15 Tom Tromey * windows-nat.c (windows_nat::handle_output_debug_string):