darwin-nat.c: fix broken build caused by typing issues from 1ad8737b

1ad8737b is gdb: change inf_threads_iterator to yield references

Change-Id: Ic9478f4a292c3309481b16ace24ee23e82bbed4a
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Can Acar
2025-10-29 13:02:14 -07:00
committed by Simon Marchi
parent c1c173422d
commit 3344d5a4aa

View File

@@ -1692,10 +1692,10 @@ thread_info_from_private_thread_info (darwin_thread_info *pti)
{
for (struct thread_info &it : all_threads ())
{
darwin_thread_info *iter_pti = get_darwin_thread_info (it);
darwin_thread_info *iter_pti = get_darwin_thread_info (&it);
if (iter_pti->gdb_port == pti->gdb_port)
return it;
return &it;
}
gdb_assert_not_reached ("did not find gdb thread for darwin thread");