This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] add comment to event-loop.c


Mini patch from the MI branch.

Elena

2002-11-05  Elena Zannoni  <ezannoni@redhat.com>

	* event-loop.c (start_event_loop): Add comment.
	Update copyright.

Index: event-loop.c
===================================================================
RCS file: /cvs/uberbaum/gdb/event-loop.c,v
retrieving revision 1.20
diff -u -p -r1.20 event-loop.c
--- event-loop.c	30 Sep 2002 21:25:47 -0000	1.20
+++ event-loop.c	5 Nov 2002 21:15:14 -0000
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]