diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index eb408d75471..0b5f9867c48 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -400,8 +400,6 @@ breakpoints_should_be_inserted_now (void) } else if (target_has_execution) { - struct thread_info *tp; - if (always_inserted_mode) { /* The user wants breakpoints inserted even if all threads @@ -414,7 +412,7 @@ breakpoints_should_be_inserted_now (void) /* Don't remove breakpoints yet if, even though all threads are stopped, we still have events to process. */ - ALL_NON_EXITED_THREADS (tp) + for (thread_info *tp : all_non_exited_threads ()) if (tp->resumed && tp->suspend.waitstatus_pending_p) return 1; @@ -6156,11 +6154,10 @@ print_one_breakpoint_location (struct breakpoint *b, if (loc != NULL && !header_of_multiple) { - struct inferior *inf; std::vector<int> inf_nums; int mi_only = 1; - ALL_INFERIORS (inf) + for (inferior *inf : all_inferiors ()) { if (inf->pspace == loc->pspace) inf_nums.push_back (inf->num); |