]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
btrace: remove update_thread_list() and thread_alive()
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 25 Oct 2024 14:07:51 +0000 (14:07 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 26 May 2025 07:01:15 +0000 (07:01 +0000)
The record btrace target does not create or destroy threads.  There is no
reason to override the update_thread_list() and thread_alive() target
methods.

gdb/record-btrace.c

index 4bb45bb6d20f5a170a66a852bb1fd651af76079c..4a4465b126b3a408f536381f704346fc1d939bc3 100644 (file)
@@ -123,8 +123,6 @@ public:
   ptid_t wait (ptid_t, struct target_waitstatus *, target_wait_flags) override;
 
   void stop (ptid_t) override;
-  void update_thread_list () override;
-  bool thread_alive (ptid_t ptid) override;
   void goto_record_begin () override;
   void goto_record_end () override;
   void goto_record (ULONGEST insn) override;
@@ -2789,32 +2787,6 @@ record_btrace_target::stopped_by_hw_breakpoint ()
   return this->beneath ()->stopped_by_hw_breakpoint ();
 }
 
-/* The update_thread_list method of target record-btrace.  */
-
-void
-record_btrace_target::update_thread_list ()
-{
-  /* We don't add or remove threads during replay.  */
-  if (record_is_replaying (minus_one_ptid))
-    return;
-
-  /* Forward the request.  */
-  this->beneath ()->update_thread_list ();
-}
-
-/* The thread_alive method of target record-btrace.  */
-
-bool
-record_btrace_target::thread_alive (ptid_t ptid)
-{
-  /* We don't add or remove threads during replay.  */
-  if (record_is_replaying (minus_one_ptid))
-    return true;
-
-  /* Forward the request.  */
-  return this->beneath ()->thread_alive (ptid);
-}
-
 /* Set the replay branch trace instruction iterator.  If IT is NULL, replay
    is stopped.  */