diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-12 23:42:12 -0500 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2021-03-17 13:05:55 +0000 |
commit | f058c5210f7189e3fdc7a3b16ff89ba4f00d339f (patch) | |
tree | 8371203e5596293a9532165d842e6529b708b267 /gdb/infrun.c | |
parent | d0c99a23b21aff9107a4cf49ee626b7db0824a04 (diff) | |
download | gdb-f058c5210f7189e3fdc7a3b16ff89ba4f00d339f.zip gdb-f058c5210f7189e3fdc7a3b16ff89ba4f00d339f.tar.gz gdb-f058c5210f7189e3fdc7a3b16ff89ba4f00d339f.tar.bz2 |
gdb: remove unneeded argument in check_multi_target_resumption
If we reach the modified line, resume_target is necessarily nullptr,
because of the check at the beginning of the function. So we'll
necessarily iterate on all non-exited inferiors (across all targets),
which is what we want. So just remove the unnecessary argument.
gdb/ChangeLog:
* infrun.c (check_multi_target_resumption): Remove argument to
all_non_exited_inferiors.
Change-Id: If95704915dca19599d5f7f4732bbd6ccd20bf6b4
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index a271220..3b65a6d 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2809,7 +2809,7 @@ check_multi_target_resumption (process_stratum_target *resume_target) always-non-stop mode. */ inferior *first_not_non_stop = nullptr; - for (inferior *inf : all_non_exited_inferiors (resume_target)) + for (inferior *inf : all_non_exited_inferiors ()) { switch_to_inferior_no_thread (inf); |