]> 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, 3 Nov 2025 06:35:21 +0000 (06:35 +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 f80cfccc7cd93f53a4c2a3fb9b6260f41efbd2cc..0d4525151e604ab05bcab0510c33b27318a6bd38 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;
@@ -2821,32 +2819,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.  */