* top.c (execute_control_command, case while_control): Allow
authorJeff Law <law@redhat.com>
Mon, 13 May 1996 23:53:54 +0000 (23:53 +0000)
committerJeff Law <law@redhat.com>
Mon, 13 May 1996 23:53:54 +0000 (23:53 +0000)
        a while command to be interrupted.
Fixes net bug.

gdb/ChangeLog
gdb/top.c

index 4c1880319b4bed673a7d9451437cdbc396e42416..cba7fb36261718204f98713f35323d18d9cdc637 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 13 17:40:58 1996  Jeffrey A Law  (law@cygnus.com)
+
+       * top.c (execute_control_command, case while_control): Allow
+       a while command to be interrupted.
+
 Mon May 13 16:17:36 1996  Stu Grossman  (grossman@critters.cygnus.com)
 
        * sol-thread.c:  More cleanup, add comments.
index 088bcd9d16df8bdf727950eaffce8d308d59d73b..40a4b342bce0c87eaca37ac6a9acd47716f01fac 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -823,6 +823,8 @@ execute_control_command (cmd)
        /* Keep iterating so long as the expression is true.  */
        while (loop == 1)
          {
+           QUIT;
+
            /* Evaluate the expression.  */
            val = evaluate_expression (expr);