aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-05-16 09:58:45 -0600
committerTom Tromey <tom@tromey.com>2020-05-16 09:58:46 -0600
commit2dab0c7ba0d69bcc16cfe58da279ce915ef24348 (patch)
tree209bdb0dfa70f64c94d42dcb03d65d25e21a11c7 /gdb/top.c
parent59f7bd8d2b855162db6784c9724ead9e2377f32c (diff)
downloadgdb-2dab0c7ba0d69bcc16cfe58da279ce915ef24348.zip
gdb-2dab0c7ba0d69bcc16cfe58da279ce915ef24348.tar.gz
gdb-2dab0c7ba0d69bcc16cfe58da279ce915ef24348.tar.bz2
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 <tom@tromey.com> * top.c (quit_force): Update. * infrun.c (handle_no_resumed): Update. * top.h (all_uis): New function. (ALL_UIS): Remove.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 3589d6b..c62eb57 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1782,12 +1782,11 @@ quit_force (int *exit_arg, int from_tty)
{
if (write_history_p && history_filename)
{
- struct ui *ui;
int save = 0;
/* History is currently shared between all UIs. If there's
any UI with a terminal, save history. */
- ALL_UIS (ui)
+ for (ui *ui : all_uis ())
{
if (input_interactive_p (ui))
{