diff options
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r-- | gdb/event-loop.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c index f098487..4e42d7e 100644 --- a/gdb/event-loop.c +++ b/gdb/event-loop.c @@ -22,7 +22,6 @@ #include "defs.h" #include "event-loop.h" #include "event-top.h" -#include "interps.h" #ifdef HAVE_POLL #if defined (HAVE_POLL_H) @@ -394,23 +393,10 @@ start_event_loop (void) longer any event sources registered. */ while (1) { - int gdb_result, interp_result; - - gdb_result = catch_errors (gdb_do_one_event, 0, "", RETURN_MASK_ALL); - if (gdb_result < 0) + int result = catch_errors (gdb_do_one_event, 0, "", RETURN_MASK_ALL); + if (result < 0) break; - - interp_result = catch_errors (interpreter_do_one_event, 0, "", RETURN_MASK_ALL); - if (interp_result < 0) - { - /* FIXME - kill the interpreter */ - } - - /* If we long-jumped out of do_one_event, we probably - didn't get around to resetting the prompt, which leaves - readline in a messed-up state. Reset it here. */ - - if (gdb_result == 0) + if (result == 0) { /* FIXME: this should really be a call to a hook that is interface specific, because interfaces can display the |