aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-09-06 08:53:09 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-09-06 08:53:09 +0000
commit4d09c5b4239111b21fd6ee20054c71b260c3b8ae (patch)
treefdfcd9b917ef2bbad1e2cd7b7cf94e1cfa303a9f /gdb/tui
parent8eb3d7b6ca8ba08fba66a25ffe1e26a571187c55 (diff)
downloadgdb-4d09c5b4239111b21fd6ee20054c71b260c3b8ae.zip
gdb-4d09c5b4239111b21fd6ee20054c71b260c3b8ae.tar.gz
gdb-4d09c5b4239111b21fd6ee20054c71b260c3b8ae.tar.bz2
Give every interpreter a command_loop_proc.
https://sourceware.org/ml/gdb-patches/2013-09/msg00179.html gdb/ChangeLog * cli/cli-interp.c (_initialize_cli_interp): Add a command_loop_proc to interp_procs. * event-top.c (cli_command_loop): Change signature to match interp_command_loop_ftype. * event-top.h (cli_command_loop): Same. * interps.c (interp_new): Require every interpreter to have a command_loop_proc. (current_interp_command_loop): Just call the command_loop_proc on the current interpreter. * tui/tui-interp.c (_initialize_tui_interp): Add a command_loop_proc to interp_procs.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-interp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 42526e6..1095220 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -153,6 +153,8 @@ _initialize_tui_interp (void)
tui_exec,
tui_display_prompt_p,
tui_ui_out,
+ NULL,
+ cli_command_loop
};
struct interp *tui_interp;