* dwarf2expr.c (execute_stack_op): Add QUIT.
authorTom Tromey <tromey@redhat.com>
Fri, 8 Jul 2011 16:02:59 +0000 (16:02 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 8 Jul 2011 16:02:59 +0000 (16:02 +0000)
gdb/ChangeLog
gdb/dwarf2expr.c

index 7a76008..e33a1da 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-08  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2expr.c (execute_stack_op): Add QUIT.
+
 2011-07-07  Hui Zhu  <teawater@gmail.com>
 
        Revert:
index c5ea85d..4522eb8 100644 (file)
@@ -521,6 +521,10 @@ execute_stack_op (struct dwarf_expr_context *ctx,
       LONGEST offset;
       struct value *result_val = NULL;
 
+      /* The DWARF expression might have a bug causing an infinite
+        loop.  In that case, quitting is the only way out.  */
+      QUIT;
+
       switch (op)
        {
        case DW_OP_lit0: