gdbserver: turn target ops 'thread_name' and 'thread_handle' into methods
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
index dee5728f0aa6452da630a3fc2c790c1692c9cdbf..592697aaa48eb57e7d9edc8502f13c81bcef5e4a 100644 (file)
@@ -1,3 +1,65 @@
+2020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       Turn process_stratum_target's thread_name and thread_handle ops
+       into methods of process_target.
+
+       * target.h (struct process_stratum_target): Remove the target ops.
+       (class process_target): Add the target ops.
+       (target_thread_name): Update the macro.
+       (target_thread_handle): Update the macro.
+       * target.cc (process_target::thread_name): Define.
+       (process_target::thread_handle): Define.
+
+       Update the derived classes and callers below.
+
+       * linux-low.cc (linux_target_ops): Update.
+       (linux_process_target::thread_name): Define.
+       (linux_process_target::thread_handle): Define.
+       * linux-low.h (class linux_process_target): Update.
+       * lynx-low.cc (lynx_target_ops): Update.
+       * nto-low.cc (nto_target_ops): Update.
+       * win32-low.cc (win32_target_ops): Update.
+
+2020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       Turn process_stratum_target's breakpoint_kind_from_pc,
+       sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
+       ops into methods of process_target.
+
+       * target.h (struct process_stratum_target): Remove the target op.
+       (class process_target): Add the target op.
+       (target_breakpoint_kind_from_pc): Update the macro.
+       (target_breakpoint_kind_from_current_state): Update the macro.
+       (default_breakpoint_kind_from_pc): Remove declaration.
+       * target.cc (default_breakpoint_kind_from_pc): Turn into ...
+       (process_target::breakpoint_kind_from_pc): ... this.
+       (process_target::breakpoint_kind_from_current_state): Define.
+
+       Update the derived classes and callers below.
+
+       * mem-break.cc (bp_size): Update.
+       (bp_opcode): Update.
+       * linux-low.cc (linux_target_ops): Update.
+       (linux_wait_1): Update.
+       (linux_breakpoint_kind_from_pc): Turn into ...
+       (linux_process_target::breakpoint_kind_from_pc): ... this.
+       (linux_sw_breakpoint_from_kind): Turn into ...
+       (linux_process_target::sw_breakpoint_from_kind): ... this.
+       (linux_breakpoint_kind_from_current_state): Turn into ...
+       (linux_process_target::breakpoint_kind_from_current_state): ... this.
+       * linux-low.h (class linux_process_target): Update.
+       * lynx-low.cc (lynx_target_ops): Update.
+       (lynx_process_target::sw_breakpoint_from_kind): Define.
+       * lynx-low.h (class lynx_process_target): Update.
+       * nto-low.cc (nto_target_ops): Update.
+       (nto_sw_breakpoint_from_kind): Turn into ...
+       (nto_process_target::sw_breakpoint_from_kind): ... this.
+       * nto-low.h (class nto_process_target): Update.
+       * win32-low.cc (win32_target_ops): Update.
+       (win32_sw_breakpoint_from_kind): Turn into ...
+       (win32_process_target::sw_breakpoint_from_kind): ... this.
+       * win32-low.h (class win32_process_target): Update.
+
 2020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        Turn process_stratum_target's multifs_open, multifs_readlink,
This page took 0.027867 seconds and 4 git commands to generate.