gdbserver: make thread_target_data a method of thread_info

Make the field private, change the free function to be a method.

Change-Id: I05010e7d1bd58ce3895802eb263c029528427758
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Simon Marchi
2024-12-04 11:30:42 -05:00
parent 489b56a30c
commit c719eb2872
6 changed files with 13 additions and 19 deletions

View File

@@ -715,7 +715,7 @@ extern linux_process_target *the_linux_target;
static inline lwp_info *
get_thread_lwp (thread_info *thr)
{
return static_cast<lwp_info *> (thread_target_data (thr));
return static_cast<lwp_info *> (thr->target_data ());
}
/* Information about a signal that is to be delivered to a thread. */