diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-11-05 22:16:50 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-11-05 22:16:50 +0000 |
commit | 8ab976a3262cf4cc7c3f177166dd6ea4332f81b7 (patch) | |
tree | ad250c545d81d3e85a050d38d1b7a7d7610e94e9 | |
parent | 60ba76a79c4c36f69c77c83ce84b6d6fc6256167 (diff) | |
download | gdb-8ab976a3262cf4cc7c3f177166dd6ea4332f81b7.tar.gz |
2002-11-05 Elena Zannoni <ezannoni@redhat.com>
* event-top.c: Reorg some code, to minimize diffs with mainline.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/event-top.c | 20 |
2 files changed, 13 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 16b248b82f6..52d315d9b5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,8 @@ 2002-11-05 Elena Zannoni <ezannoni@redhat.com> + + * event-top.c: Reorg some code, to minimize diffs with mainline. + +2002-11-05 Elena Zannoni <ezannoni@redhat.com> * Makefile.in (event-loop.o): Remove dependency on interps.h. * event-loop.c: Remove include of interps.h. diff --git a/gdb/event-top.c b/gdb/event-top.c index 1b54e5ff073..8673c1d4a89 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -1114,21 +1114,12 @@ set_async_prompt (char *args, int from_tty, struct cmd_list_element *c) PROMPT (0) = savestring (new_async_prompt, strlen (new_async_prompt)); } -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; -} - /* Set things up for readline to be invoked via the alternate interface, i.e. via a callback function (rl_callback_read_char), and hook up instream to the event loop. */ void gdb_setup_readline (void) { - /* This function is a noop for the sync case. The assumption is that the sync setup is ALL done in gdb_init, and we would only mess it up here. The sync stuff should really go away over time. */ @@ -1185,8 +1176,7 @@ gdb_setup_readline (void) /* Disable command input through the standard CLI channels. Used in the suspend proc for interpreters that use the standard gdb readline - interface, like the cli & the mi. */ - + interface, like the cli & the mi. */ void gdb_disable_readline (void) { @@ -1210,3 +1200,11 @@ gdb_disable_readline (void) } } +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; +} + |