aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-06 15:29:10 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-09-07 21:55:20 -0400
commit3c11aea0297a3f038e552eee424c214dc5a2c4bc (patch)
tree1e6f963a7fd3a72626158c0951858efe94353c61 /gdb/event-top.c
parentbec941b342c86dcb61d017d988166ed7a68aba34 (diff)
downloadfsf-binutils-gdb-3c11aea0297a3f038e552eee424c214dc5a2c4bc.zip
fsf-binutils-gdb-3c11aea0297a3f038e552eee424c214dc5a2c4bc.tar.gz
fsf-binutils-gdb-3c11aea0297a3f038e552eee424c214dc5a2c4bc.tar.bz2
gdb: remove interp_supports_command_editing
It is a trivial wrapper around the supports_command_editing method, remove it. Change-Id: I0fe3d7dc69601b3b89f82e055f7fe3d4af1becf7 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 005ef4b..d1be23b 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -299,8 +299,8 @@ change_line_handler (int editing)
/* Don't try enabling editing if the interpreter doesn't support it
(e.g., MI). */
- if (!interp_supports_command_editing (top_level_interpreter ())
- || !interp_supports_command_editing (command_interp ()))
+ if (!top_level_interpreter ()->supports_command_editing ()
+ || !command_interp ()->supports_command_editing ())
return;
if (editing)