]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbsupport: remove variadicity from basic_safe_iterator constructors
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 3 Sep 2025 14:50:03 +0000 (10:50 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 7 Oct 2025 20:22:15 +0000 (16:22 -0400)
commitff20aab941bc9bb1e79011fd5dff94b16a203df0
treeca81710a73fa904704dfaf2b08c83a44ba70f4f7
parent99b6de03fe4ac1518e68ac42c124dd5fa1704397
gdbsupport: remove variadicity from basic_safe_iterator constructors

Change the constructors to accept `Iterator` objects directly.  This
requires the callers to explicitly pass `Iterator` object (unless
perhaps `Iterator` has a non-explicit one-argument constructor.

The rationale is the same as the previous patch: make the code easier to
follow and make it easier to fix build errors, at the expense of making
callers more explicit.

Change-Id: Icd2a4ef971456ca250f96227a9b83c935d619451
Approved-By: Tom Tromey <tom@tromey.com>
gdb/gdbthread.h
gdb/inferior.h
gdbsupport/safe-iterator.h