gdbserver: remove lwpid_of(thread)

This function doesn't seem so useful.  Use `thread_info:🆔:lwp`
directly.

Change-Id: Ib4a86eeeee6c1342bc1c092f083589ce28009be1
Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
This commit is contained in:
Simon Marchi
2024-11-06 15:00:44 -05:00
parent 90a66fe855
commit 5929ef8975
8 changed files with 118 additions and 138 deletions

View File

@@ -144,14 +144,6 @@ pid_of (const thread_info *thread)
return thread->id.pid ();
}
/* Get the lwp of THREAD. */
static inline long
lwpid_of (const thread_info *thread)
{
return thread->id.lwp ();
}
/* Switch the current thread. */
void switch_to_thread (thread_info *thread);