]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* 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 7a76008dd87b4a1843edef167235e46fe5f2afae..e33a1da13f5952465d975a9665e95dd9eaed27a0 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 c5ea85da802548d2f96cbecbf830bbfa8ab2cba0..4522eb8b0f4c1e6d920622e9bbd9779c679fec06 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: