aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-12-14 12:22:58 -0700
committerTom Tromey <tromey@adacore.com>2022-12-15 12:13:29 -0700
commitc573941878c15ecd8f0985cbe3fb8370abe4c807 (patch)
treed91a9c794cf4ccfde7a4590a8d352f98c9665222 /gdb/tui
parent38665d717a3e65c70e6432243d5eed9728a4888a (diff)
downloadgdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.zip
gdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.tar.gz
gdb-c573941878c15ecd8f0985cbe3fb8370abe4c807.tar.bz2
Remove subset_compare
I stumbled across subset_compare today, and after looking at the callers I realized it could be removed and replaced with calls to startswith. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index e24763c..bad8ffe 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -711,9 +711,9 @@ tui_set_focus_command (const char *arg, int from_tty)
struct tui_win_info *win_info = NULL;
- if (subset_compare (arg, "next"))
+ if (startswith ("next", arg))
win_info = tui_next_win (tui_win_with_focus ());
- else if (subset_compare (arg, "prev"))
+ else if (startswith ("prev", arg))
win_info = tui_prev_win (tui_win_with_focus ());
else
win_info = tui_partial_win_by_name (arg);