]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: change inf_threads_iterator to yield references
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 3 Sep 2025 14:49:57 +0000 (10:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 7 Oct 2025 20:22:15 +0000 (16:22 -0400)
commit1ad8737b3c5ac090c2d4e991a237496e3c6a49b5
tree07d0aa4467250a6f68bdf05700e338d0607bcd58
parent7f1cdb3e37cbddded70fc3d7ee9902bcf54c4978
gdb: change inf_threads_iterator to yield references

When adding reference_to_pointer_iterator, I saw it as a temporary
thing, to not have to do a codebase-wide change right away.  Remove it
from inf_threads_iterator and adjust all the users.

It's very possible that I forgot to update some spots in the files I
can't compile, but it will be very easy to fix if that happens.

Change-Id: Iddc462fecfaafb6a9861d185b217bc714e7dc651
Approved-By: Tom Tromey <tom@tromey.com>
30 files changed:
gdb/aarch64-fbsd-nat.c
gdb/amd-dbgapi-target.c
gdb/breakpoint.c
gdb/btrace.c
gdb/darwin-nat.c
gdb/elf-none-tdep.c
gdb/fbsd-nat.c
gdb/fbsd-tdep.c
gdb/gcore.c
gdb/gdbthread.h
gdb/infcmd.c
gdb/inferior.c
gdb/inferior.h
gdb/inflow.c
gdb/infrun.c
gdb/infrun.h
gdb/linux-fork.c
gdb/linux-tdep.c
gdb/linux-thread-db.c
gdb/mi/mi-interp.c
gdb/mi/mi-main.c
gdb/netbsd-nat.c
gdb/record-btrace.c
gdb/record-full.c
gdb/remote.c
gdb/target.c
gdb/thread-iter.h
gdb/thread.c
gdb/tid-parse.c
gdb/x86-bsd-nat.c