aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 21:17:33 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 21:17:33 +0000
commitb7c642601c187ba8e89c4084d0880649ede3aea1 (patch)
tree85c5cf6944d399b748b84a9328174b6132ecae6b /gdb
parentc2e1b8f216005f2bf9ad0813c9eb28e896b9630e (diff)
downloadgdb-b7c642601c187ba8e89c4084d0880649ede3aea1.zip
gdb-b7c642601c187ba8e89c4084d0880649ede3aea1.tar.gz
gdb-b7c642601c187ba8e89c4084d0880649ede3aea1.tar.bz2
2002-11-05 Elena Zannoni <ezannoni@redhat.com>
* event-loop.c (start_event_loop): Add comment. Update copyright.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/event-loop.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a85e649..b1e8d19 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-05 Elena Zannoni <ezannoni@redhat.com>
+
+ * event-loop.c (start_event_loop): Add comment.
+ Update copyright.
+
2002-11-05 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (default_print_registers_info): Do not call
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 0fa37c1..c8d12f9 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -1,5 +1,5 @@
/* Event loop machinery for GDB, the GNU debugger.
- Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
This file is part of GDB.
@@ -397,6 +397,11 @@ start_event_loop (void)
gdb_result = catch_errors (gdb_do_one_event, 0, "", RETURN_MASK_ALL);
if (gdb_result < 0)
break;
+
+ /* 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)
{
/* FIXME: this should really be a call to a hook that is