X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdbserver%2FChangeLog;h=5f543bb5fa5b8543afbc7090bfc0cecc8bc272f6;hb=bd70b1f240b24d8c9b08868ca777f5a81d13c0c2;hp=be39358f789bf43ca951c34ae29537b60c48bb8e;hpb=52405d85ec748e4566b7893fa3cb9ff21c8a1bc4;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index be39358f78..5f543bb5fa 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,629 @@ +2020-04-02 Tankut Baris Aktemur + + Turn the 'fetch_register' linux target op into a method of + linux_process_target. + + * linux-low.h (struct linux_target_ops) : Remove. + (class linux_process_target) : Declare. + * linux-x86-low.cc (the_low_target) + * linux-aarch64-low.cc (the_low_target) + * linux-arm-low.cc (the_low_target) + * linux-bfin-low.cc (the_low_target) + * linux-cris-low.cc (the_low_target) + * linux-crisv32-low.cc (the_low_target) + * linux-m32r-low.cc (the_low_target) + * linux-m68k-low.cc (the_low_target) + * linux-nios2-low.cc (the_low_target) + * linux-ppc-low.cc (the_low_target) + * linux-s390-low.cc (the_low_target) + * linux-sh-low.cc (the_low_target) + * linux-sparc-low.cc (the_low_target) + * linux-tic6x-low.cc (the_low_target) + * linux-tile-low.cc (the_low_target) + * linux-xtensa-low.cc (the_low_target): Remove the op field. + * linux-ia64-low.cc (class ia64_target) : + Declare. + (ia64_fetch_register): Turn into... + (ia64_target::low_fetch_register): ...this. + (the_low_target): Remove the op field. + * linux-mips-low.cc (class mips_target) : + Declare. + (mips_fetch_register): Turn into... + (mips_target::low_fetch_register): ...this. + (the_low_target): Remove the op field. + * linux-riscv-low.cc (class riscv_target) : + Declare. + (riscv_fetch_register): Turn into... + (riscv_target::low_fetch_register): ...this. + (the_low_target): Remove the op field. + + Update the callers below. + + * linux-low.cc (linux_process_target::fetch_registers) + (linux_process_target::low_fetch_register) + +2020-04-02 Tankut Baris Aktemur + + Turn the 'cannot_fetch_register' and 'cannot_store_register' + linux target ops into methods of linux_process_target. + + * linux-low.h (struct linux_target_ops): Remove the low target ops. + (class linux_process_target) + + + + + Declare. + * linux-low.cc (fetch_register): Turn into... + (linux_process_target::fetch_register): ...this. + (store_register): Turn into ... + (linux_process_target::store_register): ...this. + (usr_fetch_inferior_registers): Turn into... + (linux_process_target::usr_fetch_inferior_registers): ...this. + (usr_store_inferior_registers): Turn into... + (linux_process_target::usr_store_inferior_registers): ...this. + * linux-x86-low.cc (class x86_target) + + : Declare. + (x86_cannot_store_register): Turn into... + (x86_target::low_cannot_store_register): ...this. + (x86_cannot_fetch_register): Turn into... + (x86_target::low_cannot_fetch_register): ...this. + (the_low_target): Remove the target op fields. + * linux-aarch64-low.cc (class aarch64_target) + + : Declare. + (aarch64_target::low_cannot_fetch_register) + (aarch64_target::low_cannot_store_register): Define. + (the_low_target): Remove the op fields. + * linux-arm-low.cc (class arm_target) + + : Declare. + (arm_cannot_fetch_register): Turn into... + (arm_target::low_cannot_fetch_register): ...this. + (arm_cannot_store_register): Turn into... + (arm_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-bfin-low.cc (class bfin_target) + + : Declare. + (bfin_cannot_fetch_register): Turn into... + (bfin_target::low_cannot_fetch_register): ...this. + (bfin_cannot_store_register): Turn into... + (bfin_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-cris-low.cc (class cris_target) + + : Declare. + (cris_cannot_fetch_register): Turn into... + (cris_target::low_cannot_fetch_register): ...this. + (cris_cannot_store_register): Turn into... + (cris_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-crisv32-low.cc (class crisv32_target) + + : Declare. + (crisv32_target::low_cannot_fetch_register) + (crisv32_target::low_cannot_store_register): Define. + (the_low_target): Remove the op fields. + * linux-ia64-low.cc (class ia64_target) + + : Declare. + (ia64_cannot_fetch_register): Turn into... + (ia64_target::low_cannot_fetch_register): ...this. + (ia64_cannot_store_register): Turn into... + (ia64_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-m32r-low.cc (class m32r_target) + + : Declare. + (m32r_cannot_fetch_register): Turn into... + (m32r_target::low_cannot_fetch_register): ...this. + (m32r_cannot_store_register): Turn into... + (m32r_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-m68k-low.cc (class m68k_target) + + : Declare. + (m68k_cannot_fetch_register): Turn into... + (m68k_target::low_cannot_fetch_register): ...this. + (m68k_cannot_store_register): Turn into... + (m68k_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-mips-low.cc (class mips_target) + + : Declare. + (mips_cannot_fetch_register): Turn into... + (mips_target::low_cannot_fetch_register): ...this. + (mips_cannot_store_register): Turn into... + (mips_target::low_cannot_store_register): ...this. + (get_usrregs_info): Inline at the call sites in + low_cannot_fetch_register and low_cannot_store_register, + and remove. + (the_low_target): Remove the op fields. + * linux-nios2-low.cc (class nios2_target) + + : Declare. + (nios2_cannot_fetch_register): Turn into... + (nios2_target::low_cannot_fetch_register): ...this. + (nios2_cannot_store_register): Turn into... + (nios2_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-ppc-low.cc (class ppc_target) + + : Declare. + (ppc_cannot_fetch_register): Turn into... + (ppc_target::low_cannot_fetch_register): ...this. + (ppc_cannot_store_register): Turn into... + (ppc_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-riscv-low.cc (class riscv_target) + + : Declare. + (riscv_target::low_cannot_fetch_register) + (riscv_target::low_cannot_store_register): Define. + (the_low_target): Remove the op fields. + * linux-s390-low.cc (class s390_target) + + : Declare. + (s390_cannot_fetch_register): Turn into... + (s390_target::low_cannot_fetch_register): ...this. + (s390_cannot_store_register): Turn into... + (s390_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-sh-low.cc (class sh_target) + + : Declare. + (sh_cannot_fetch_register): Turn into... + (sh_target::low_cannot_fetch_register): ...this. + (sh_cannot_store_register): Turn into... + (sh_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-sparc-low.cc (class sparc_target) + + : Declare. + (sparc_cannot_fetch_register): Turn into... + (sparc_target::low_cannot_fetch_register): ...this. + (sparc_cannot_store_register): Turn into... + (sparc_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-tic6x-low.cc (class tic6x_target) + + : Declare. + (tic6x_cannot_fetch_register): Turn into... + (tic6x_target::low_cannot_fetch_register): ...this. + (tic6x_cannot_store_register): Turn into... + (tic6x_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-tile-low.cc (class tile_target) + + : Declare. + (tile_cannot_fetch_register): Turn into... + (tile_target::low_cannot_fetch_register): ...this. + (tile_cannot_store_register): Turn into... + (tile_target::low_cannot_store_register): ...this. + (the_low_target): Remove the op fields. + * linux-xtensa-low.cc (class xtensa_target) + + : Declare. + (xtensa_target::low_cannot_fetch_register) + (xtensa_target::low_cannot_store_register): Define. + (the_low_target): Remove the op fields. + +2020-04-02 Tankut Baris Aktemur + + Turn the 'regs_info' linux target op into a method of + linux_process_target. + + * linux-low.h (struct linux_target_ops) : Remove. + (class linux_process_target) : Define. + + Update the callers below. + + * linux-low.cc (linux_process_target::fetch_registers) + (linux_process_target::store_registers) + * proc-service.cc (gregset_info) + + * linux-x86-low.cc (class x86_target) : Declare. + (x86_linux_regs_info): Turn into ... + (x86_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-aarch64-low.cc (class aarch64_target) : + Declare. + (aarch64_regs_info): Turn into ... + (aarch64_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-arm-low.cc (class arm_target) : Declare. + (arm_regs_info): Turn into ... + (arm_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-bfin-low.cc (class bfin_target) : Declare. + (bfin_regs_info): Turn into ... + (bfin_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-cris-low.cc (class cris_target) : Declare. + (cris_regs_info): Turn into ... + (cris_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-crisv32-low.cc (class crisv32_target) : + Declare. + (crisv32_regs_info): Turn into ... + (crisv32_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-ia64-low.cc (class ia64_target) : Declare. + (ia64_regs_info): Turn into ... + (ia64_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-m32r-low.cc (class m32r_target) : Declare. + (m32r_regs_info): Turn into ... + (m32r_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-m68k-low.cc (class m68k_target) : Declare. + (m68k_regs_info): Turn into ... + (m68k_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-mips-low.cc (class mips_target) : Declare. + (mips_regs_info): Turn into ... + (mips_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + (get_usrregs_info): Update the call to the op. + * linux-nios2-low.cc (class nios2_target) : Declare. + (nios2_regs_info): Turn into ... + (nios2_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-ppc-low.cc (class ppc_target) : Declare. + (ppc_regs_info): Turn into ... + (ppc_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-riscv-low.cc (class riscv_target) : Declare. + (riscv_regs_info): Turn into ... + (riscv_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-s390-low.cc (class s390_target) : Declare. + (s390_regs_info): Turn into ... + (s390_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + (s390_collect_ptrace_register) + (s390_supply_ptrace_register) + (s390_fill_gregset): Update the call to the op. + * linux-sh-low.cc (class sh_target) : Declare. + (sh_regs_info): Turn into ... + (sh_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-sparc-low.cc (class sparc_target) : Declare. + (sparc_regs_info): Turn into ... + (sparc_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-tic6x-low.cc (class tic6x_target) : Declare. + (tic6x_regs_info): Turn into ... + (tic6x_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-tile-low.cc (class tile_target) : Declare. + (tile_regs_info): Turn into ... + (tile_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + * linux-xtensa-low.cc (class xtensa_target) : + Declare. + (xtensa_regs_info): Turn into ... + (xtensa_target::get_regs_info): ...this. + (the_low_target): Remove the op field. + +2020-04-02 Tankut Baris Aktemur + + Turn the 'arch_setup' linux target op into a method of + linux_process_target. + + * linux-low.h (struct linux_target_ops) : Delete. + (class linux_process_target) + : New declarations. + * linux-low.cc (linux_arch_setup): Delete. + (linux_arch_setup_thread): Turn into... + (linux_process_target::arch_setup_thread): ... this. + + Update the callers below. + + (linux_process_target::handle_extended_wait) + (linux_process_target::post_create_inferior) + (linux_process_target::filter_event) + + * linux-x86-low.cc (class x86_target) : New + declaration. + (x86_linux_update_xmltarget): Turn into... + (x86_target::update_xmltarget): ...this. + (x86_linux_process_qsupported): Update the call to + x86_linux_update_xmltarget. + (x86_arch_setup): Turn into ... + (x86_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-aarch64-low.cc (class aarch64_target) : New + declaration. + (aarch64_arch_setup): Turn into ... + (aarch64_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-arm-low.cc (class arm_target) : New + declaration. + (arm_arch_setup): Turn into ... + (arm_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-bfin-low.cc (class bfin_target) : New + declaration. + (bfin_arch_setup): Turn into ... + (bfin_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-cris-low.cc (class cris_target) : New + declaration. + (cris_arch_setup): Turn into ... + (cris_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-crisv32-low.cc (class crisv32_target) : New + declaration. + (crisv32_arch_setup): Turn into ... + (crisv32_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-ia64-low.cc (class ia64_target) : New + declaration. + (ia64_arch_setup): Turn into ... + (ia64_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-m32r-low.cc (class m32r_target) : New + declaration. + (m32r_arch_setup): Turn into ... + (m32r_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-m68k-low.cc (class m68k_target) : New + declaration. + (m68k_arch_setup): Turn into ... + (m68k_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-mips-low.cc (class mips_target) : New + declaration. + (mips_arch_setup): Turn into ... + (mips_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-nios2-low.cc (class nios2_target) : New + declaration. + (nios2_arch_setup): Turn into ... + (nios2_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-ppc-low.cc (class ppc_target) : New + declaration. + (ppc_arch_setup): Turn into ... + (ppc_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-riscv-low.cc (class riscv_target) : New + declaration. + (riscv_arch_setup): Turn into ... + (riscv_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-s390-low.cc (class s390_target) : New + declaration. + (s390_arch_setup): Turn into ... + (s390_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-sh-low.cc (class sh_target) : New + declaration. + (sh_arch_setup): Turn into ... + (sh_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-sparc-low.cc (class sparc_target) : New + declaration. + (sparc_arch_setup): Turn into ... + (sparc_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-tic6x-low.cc (class tic6x_target) : New + declaration. + (tic6x_arch_setup): Turn into ... + (tic6x_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-tile-low.cc (class tile_target) : New + declaration. + (tile_arch_setup): Turn into ... + (tile_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + * linux-xtensa-low.cc (class xtensa_target) : New + declaration. + (xtensa_arch_setup): Turn into ... + (xtensa_target::low_arch_setup): ...this. + (the_low_target): Remove the op field. + +2020-04-02 Tankut Baris Aktemur + + * linux-low.h (the_linux_target): New extern declaration. + * linux-low.cc (initialize_low): Use 'the_linux_target' to set + 'the_target'. + (the_linux_target): Remove. + * linux-x86-low.cc (class x86_target): New class. + (the_x86_target): New static object. + (the_linux_target): Define as pointer to the_x86_target. + * linux-aarch64-low.cc (class aarch64_target): New class. + (the_aarch64_target): New static object. + (the_linux_target): Define as pointer to the_aarch64_target. + * linux-arm-low.cc (class arm_target): New class. + (the_arm_target): New static object. + (the_linux_target): Define as pointer to the_arm_target. + * linux-bfin-low.cc (class bfin_target): New class. + (the_bfin_target): New static object. + (the_linux_target): Define as pointer to the_bfin_target. + * linux-cris-low.cc (class cris_target): New class. + (the_cris_target): New static object. + (the_linux_target): Define as pointer to the_cris_target. + * linux-crisv32-low.cc (class crisv32_target): New class. + (the_crisv32_target): New static object. + (the_linux_target): Define as pointer to the_crisv32_target. + * linux-ia64-low.cc (class ia64_target): New class. + (the_ia64_target): New static object. + (the_linux_target): Define as pointer to the_ia64_target. + * linux-m32r-low.cc (class m32r_target): New class. + (the_m32r_target): New static object. + (the_linux_target): Define as pointer to the_m32r_target. + * linux-m68k-low.cc (class m68k_target): New class. + (the_m68k_target): New static object. + (the_linux_target): Define as pointer to the_m68k_target. + * linux-mips-low.cc (class mips_target): New class. + (the_mips_target): New static object. + (the_linux_target): Define as pointer to the_mips_target. + * linux-nios2-low.cc (class nios2_target): New class. + (the_nios2_target): New static object. + (the_linux_target): Define as pointer to the_nios2_target. + * linux-ppc-low.cc (class ppc_target): New class. + (the_ppc_target): New static object. + (the_linux_target): Define as pointer to the_ppc_target. + * linux-riscv-low.cc (class riscv_target): New class. + (the_riscv_target): New static object. + (the_linux_target): Define as pointer to the_riscv_target. + * linux-s390-low.cc (class s390_target): New class. + (the_s390_target): New static object. + (the_linux_target): Define as pointer to the_s390_target. + * linux-sh-low.cc (class sh_target): New class. + (the_sh_target): New static object. + (the_linux_target): Define as pointer to the_sh_target. + * linux-sparc-low.cc (class sparc_target): New class. + (the_sparc_target): New static object. + (the_linux_target): Define as pointer to the_sparc_target. + * linux-tic6x-low.cc (class tic6x_target): New class. + (the_tic6x_target): New static object. + (the_linux_target): Define as pointer to the_tic6x_target. + * linux-tile-low.cc (class tile_target): New class. + (the_tile_target): New static object. + (the_linux_target): Define as pointer to the_tile_target. + * linux-xtensa-low.cc (class xtensa_target): New class. + (the_xtensa_target): New static object. + (the_linux_target): Define as pointer to the_xtensa_target. + +2020-04-02 Tankut Baris Aktemur + + Turn some static functions in linux-low.cc into private methods of + linux_process_target. + + * linux-low.cc (handle_extended_wait): Turn into ... + (linux_process_target::handle_extended_wait): ...this. Call + 'mourn' on 'this' object instead of 'the_target'. + (maybe_move_out_of_jump_pad): Turn into... + (linux_process_target::maybe_move_out_of_jump_pad): ...this. + (linux_low_filter_event): Turn into... + (linux_process_target::filter_event): ...this. + (linux_wait_for_event_filtered): Turn into... + (linux_process_target::wait_for_event_filtered): ...this. + (linux_wait_for_event): Turn into... + (linux_process_target::wait_for_event): ...this. + (linux_wait_1): Turn into... + (linux_process_target::wait_1): ...this. + (wait_for_sigstop): Turn into... + (linux_process_target::wait_for_sigstop): ...this. + (move_out_of_jump_pad_callback): Turn into... + (linux_process_target::move_out_of_jump_pad): ...this. + (stop_all_lwps): Turn into... + (linux_process_target::stop_all_lwps): ...this. + (start_step_over): Turn into... + (linux_process_target::start_step_over): ...this. + (complete_ongoing_step_over): Turn into... + (linux_process_target::complete_ongoing_step_over): ...this. + (proceed_all_lwps): Turn into... + (linux_process_target::proceed_all_lwps): ...this. + (unstop_all_lwps): Turn into... + (linux_process_target::unstop_all_lwps): ...this. + + * linux-low.h (class linux_process_target) + + + filter_event> + + + + + + + + + + : Declare. + + Update the callers below. + + * linux-low.cc (linux_process_target::attach): Update. + (linux_process_target::stabilize_threads): Ditto. + (linux_process_target::wait): Ditto. + +2020-04-02 Tankut Baris Aktemur + + * linux-low.h (struct linux_target_ops): Update the comment for + 'cannot_store_register' to return 0 or 1. + * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead + of 2. + +2020-03-20 Simon Marchi + + * config.in: Re-generate. + * configure: Re-generate. + +2020-03-17 Kamil Rytarowski + + * regcache.cc (find_register_by_number): Update. + * tdesc.cc (init_target_desc): Likewise. + * tdesc.h (target_desc::reg_defs): Likewise. + +2020-03-12 Tom Tromey + + * configure: Rebuild. + * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs. + (WIN32APILIBS): New subst. + * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove + gdbsupport files. + (gdbsupport/%.o): Remove target. + (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables. + (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT. + (WIN32APILIBS): New variable. + (gdbserver$(EXEEXT)): Add WIN32APILIBS. + (gdbreplay$(EXEEXT)): Likewise. + +2020-03-12 Tom Tromey + + * config.in, configure: Rebuild. + * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR. + * acinclude.m4: Include gettext-sister.m4. + * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New + variables. + (INCLUDE_CFLAGS): Add INTL_CFLAGS. + (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL. + +2020-03-12 Simon Marchi + + * acinclude.m4: Update path to selftest.m4. + +2020-03-12 Simon Marchi + + * configure.ac: Don't source bfd/development.sh, move + GDB_AC_COMMON higher. + * configure: Re-generate. + +2020-03-12 Simon Marchi + + * configure: Re-generate. + +2020-03-11 Simon Marchi + + * configure: Re-generate. + +2020-03-06 Andrew Burgess + + * .dir-locals.el: New file. + +2020-03-05 Tankut Baris Aktemur + + * .gitattributes: New file. + +2020-03-02 Andrew Burgess + + * remote-utils.cc (prepare_resume_reply): Add ability to convert T + reply into an S reply. + * server.cc (disable_packet_T): New global. + (captured_main): Set new global when appropriate. + * server.h (disable_packet_T): Declare. + +2020-02-21 Tom Tromey + + * Makefile.in (mostlyclean): New target. + 2020-02-20 Tankut Baris Aktemur * target.h (struct process_stratum_target): Remove.