From 10a280caf51a012cc3de94271cc4e39de6946ed1 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Fri, 25 Oct 2024 14:07:51 +0000 Subject: [PATCH] btrace: remove update_thread_list() and thread_alive() 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 | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index f80cfccc7cd..0d4525151e6 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -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. */ -- 2.47.3