summaryrefslogtreecommitdiff
path: root/gdb/interps.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-12 15:31:30 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-12 15:31:30 +0000
commit7937e00b8921eba8d287d0fe3d96e9b2ac869549 (patch)
treef692ce0c85b1825a0719eb09e805ac19d60a9274 /gdb/interps.c
parent2072469751bb13fc964852caaf0e61a4393abe52 (diff)
downloadgdb-7937e00b8921eba8d287d0fe3d96e9b2ac869549.tar.gz
2003-02-12 Andrew Cagney <ac131313@redhat.com>
* event-top.c (cli_command_loop): Delete declaration. (_initialize_event_loop): Delete function setting event_loop_hook. * event-top.h (cli_command_loop): Declare. Update copyright. (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H. * interps.c (current_interp_command_loop): When event_loop_p, call cli_command_loop.
Diffstat (limited to 'gdb/interps.c')
-rw-r--r--gdb/interps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/interps.c b/gdb/interps.c
index 8e33ffc7055..748b5b64901 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -275,6 +275,8 @@ current_interp_command_loop (void)
else if (current_interpreter != NULL
&& current_interpreter->procs->command_loop_proc != NULL)
current_interpreter->procs->command_loop_proc (current_interpreter->data);
+ else if (event_loop_p)
+ cli_command_loop ();
else
command_loop ();
}