[binutils-gdb] darwin-nat.c: fix broken build caused by typing issues from 1ad8737b
Simon Marchi
simark@sourceware.org
Thu Oct 30 16:11:05 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3344d5a4aa77de344deaf45254f26f700676b41e
commit 3344d5a4aa77de344deaf45254f26f700676b41e
Author: Can Acar <canacar@imcan.dev>
Date: Wed Oct 29 13:02:14 2025 -0700
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>
Diff:
---
gdb/darwin-nat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index a767657b760..665e617fd2f 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -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 ⁢
}
gdb_assert_not_reached ("did not find gdb thread for darwin thread");
More information about the Gdb-cvs
mailing list