gdb: remove use of iterate_over_inferiors in py-inferior.c
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 14:51:10 +0000 (09:51 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 14:51:10 +0000 (09:51 -0500)
commitd9bc85b65b3daab0c3579be0efc3b33c1ef24620
tree3ecf1d6a88eab1230f78ff6926727e5389a23021
parentbd267fd1f9de8d22922cb599aff67f3869243020
gdb: remove use of iterate_over_inferiors in py-inferior.c

Use range-based for instead of iterate_over_inferiors in one spot in the Python
code.

gdb/ChangeLog:

* python/py-inferior.c (build_inferior_list): Remove.
(gdbpy_ref): Use range-based for loop to iterate over inferiors.
gdb/ChangeLog
gdb/python/py-inferior.c