* dwarf2expr.c (execute_stack_op): Add QUIT.

This commit is contained in:
Tom Tromey 2011-07-08 16:02:59 +00:00
parent ae9cd41118
commit e0e9434c89
2 changed files with 8 additions and 0 deletions

View 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> 2011-07-07 Hui Zhu <teawater@gmail.com>
Revert: Revert:

View File

@ -521,6 +521,10 @@ execute_stack_op (struct dwarf_expr_context *ctx,
LONGEST offset; LONGEST offset;
struct value *result_val = NULL; 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) switch (op)
{ {
case DW_OP_lit0: case DW_OP_lit0: