From 2dab0c7ba0d69bcc16cfe58da279ce915ef24348 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 16 May 2020 09:58:45 -0600 Subject: Remove ALL_UIS Continuing my goal of removing the "ALL_*" iterator macros, this removes ALL_UIS, replacing it with an iterator adaptor. gdb/ChangeLog 2020-05-16 Tom Tromey * top.c (quit_force): Update. * infrun.c (handle_no_resumed): Update. * top.h (all_uis): New function. (ALL_UIS): Remove. --- gdb/infrun.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 601a2ac..95fc3bf 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5045,10 +5045,9 @@ handle_no_resumed (struct execution_control_state *ecs) { if (target_can_async_p ()) { - struct ui *ui; int any_sync = 0; - ALL_UIS (ui) + for (ui *ui : all_uis ()) { if (ui->prompt_state == PROMPT_BLOCKED) { -- cgit v1.1