gdbserver: make remove_thread a method of process_info

Same idea as the previous patch, but for `remove_thread`.

Change-Id: I7e227655be5fcf29a3256e8389eb32051f27882d
Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
This commit is contained in:
Simon Marchi
2024-11-07 16:15:43 +00:00
committed by Simon Marchi
parent 9618dbfe52
commit 2500e7d7d2
6 changed files with 13 additions and 11 deletions

View File

@@ -188,7 +188,7 @@ delete_thread_info (thread_info *thread)
{
windows_thread_info *th = (windows_thread_info *) thread_target_data (thread);
remove_thread (thread);
thread->process ()->remove_thread (thread);
delete th;
}