aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-05-13 23:53:54 +0000
committerJeff Law <law@redhat.com>1996-05-13 23:53:54 +0000
commit24ecc17a04e024af7a9a2385f255e59e28b91536 (patch)
treebc069854ce68e6d76bce3f0b116ce8070324b5a6 /gdb/top.c
parenta50cedad0e0e4d8c6fbea30aaa3a5616170ce5ea (diff)
downloadgdb-24ecc17a04e024af7a9a2385f255e59e28b91536.zip
gdb-24ecc17a04e024af7a9a2385f255e59e28b91536.tar.gz
gdb-24ecc17a04e024af7a9a2385f255e59e28b91536.tar.bz2
* top.c (execute_control_command, case while_control): Allow
a while command to be interrupted. Fixes net bug.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 088bcd9..40a4b34 100644
--- 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);