aboutsummaryrefslogtreecommitdiff
path: root/gdb/aix-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r--gdb/aix-thread.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 4a050cd..f38d19d 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -867,16 +867,6 @@ sync_threadlists (pid_t pid)
}
}
-/* Iterate_over_threads() callback for locating a thread, using
- the TID of its associated kernel thread. */
-
-static int
-iter_tid (struct thread_info *thread, void *tidp)
-{
- const pthdb_tid_t tid = *(pthdb_tid_t *)tidp;
- return thread->ptid.lwp () == tid;
-}
-
/* Synchronize libpthdebug's state with the inferior and with GDB,
generate a composite process/thread <pid> for the current thread,
Return the ptid of the event thread if one can be found, else
@@ -906,7 +896,10 @@ pd_update (pid_t pid)
tid = get_signaled_thread (pid);
if (tid != 0)
- thread = iterate_over_threads (iter_tid, &tid);
+ thread = iterate_over_threads ([&] (struct thread_info *thread)
+ {
+ return thread->ptid.lwp () == tid;
+ });
if (!thread)
ptid = ptid_t (pid);
else