1ad8737b is gdb: change inf_threads_iterator to yield references
Change-Id: Ic9478f4a292c3309481b16ace24ee23e82bbed4a
Approved-By: Tom Tromey <tom@tromey.com>
{
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 ⁢
}
gdb_assert_not_reached ("did not find gdb thread for darwin thread");