diff options
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 0b93fa2..b367e53 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1869,10 +1869,10 @@ num_lwps (int pid) { int count = 0; - for_each_thread ([&] (thread_info *thread) { - if (thread->id.pid () == pid) + for_each_thread (pid, [&] (thread_info *thread) + { count++; - }); + }); return count; } |