forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user