gdbserver: remove pid_of(thread)

This function doesn't seem so useful, use `thread_info:🆔:pid`
directly instead.

Change-Id: I7450c4223e5b0bf66788eeb5b070ab6f5287f798
Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
This commit is contained in:
Simon Marchi
2024-11-06 15:02:11 -05:00
parent 5929ef8975
commit 65b7d4502b
6 changed files with 11 additions and 20 deletions

View File

@@ -136,14 +136,6 @@ thread_info *find_thread_in_random
thread_info *find_thread_in_random
(ptid_t ptid, gdb::function_view<bool (thread_info *)> func);
/* Get the pid of THREAD. */
static inline int
pid_of (const thread_info *thread)
{
return thread->id.pid ();
}
/* Switch the current thread. */
void switch_to_thread (thread_info *thread);