diff options
author | Tom Tromey <tromey@redhat.com> | 2011-07-08 16:02:59 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-07-08 16:02:59 +0000 |
commit | e0e9434c89d87e12220d5efd8d56ac83bdd26dfa (patch) | |
tree | f2a87951b9bef10392df7ee8f6c57c3a5b5b2797 | |
parent | ae9cd41118fbb6452b2bcb361dcff34db8933e2e (diff) | |
download | gdb-e0e9434c89d87e12220d5efd8d56ac83bdd26dfa.zip gdb-e0e9434c89d87e12220d5efd8d56ac83bdd26dfa.tar.gz gdb-e0e9434c89d87e12220d5efd8d56ac83bdd26dfa.tar.bz2 |
* dwarf2expr.c (execute_stack_op): Add QUIT.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2expr.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7a76008..e33a1da 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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: diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index c5ea85d..4522eb8 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -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: |