diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-02-12 15:31:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-02-12 15:31:30 +0000 |
commit | 7937e00b8921eba8d287d0fe3d96e9b2ac869549 (patch) | |
tree | f692ce0c85b1825a0719eb09e805ac19d60a9274 /gdb/event-top.c | |
parent | 2072469751bb13fc964852caaf0e61a4393abe52 (diff) | |
download | gdb-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/event-top.c')
-rw-r--r-- | gdb/event-top.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 2b2c4ff2785..ceef7b9c9eb 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -39,15 +39,12 @@ /* readline defines this. */ #undef savestring -extern void _initialize_event_loop (void); - static void rl_callback_read_char_wrapper (gdb_client_data client_data); static void command_line_handler (char *rl); static void command_line_handler_continuation (struct continuation_arg *arg); static void change_line_handler (void); static void change_annotation_level (void); static void command_handler (char *command); -void cli_command_loop (void); static void async_do_nothing (gdb_client_data arg); static void async_disconnect (gdb_client_data arg); static void async_stop_sig (gdb_client_data arg); @@ -1199,12 +1196,3 @@ gdb_disable_readline (void) delete_file_handler (input_fd); } } - -void -_initialize_event_loop (void) -{ - /* Tell gdb to use the cli_command_loop as the main loop. */ - if (event_loop_p && command_loop_hook == NULL) - command_loop_hook = cli_command_loop; -} - |