diff options
author | Tom Tromey <tromey@redhat.com> | 2011-05-13 15:44:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-05-13 15:44:49 +0000 |
commit | 72fc29ff1236177b2be5f702ed40c7d327897e7e (patch) | |
tree | bce50db16c82b81493f308495b856e7364cefcee /gdb/dwarf2expr.h | |
parent | 3ac5406bdb24ecbb504bda4c539a517fc51122e8 (diff) | |
download | gdb-72fc29ff1236177b2be5f702ed40c7d327897e7e.zip gdb-72fc29ff1236177b2be5f702ed40c7d327897e7e.tar.gz gdb-72fc29ff1236177b2be5f702ed40c7d327897e7e.tar.bz2 |
* utils.c (do_value_free): New function.
(make_cleanup_value_free): Likewise.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
freeing correctly.
(dwarf2_loc_desc_needs_frame): Call
make_cleanup_value_free_to_mark.
* dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
* dwarf2expr.c (free_dwarf_expr_context): Don't call
value_free_to_mark.
(new_dwarf_expr_context): Don't call value_mark.
* dwarf2-frame.c (execute_stack_op): Call
make_cleanup_value_free_to_mark.
* defs.h (make_cleanup_value_free): Declare.
Diffstat (limited to 'gdb/dwarf2expr.h')
-rw-r--r-- | gdb/dwarf2expr.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index 281c65b..676b54b 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -81,10 +81,6 @@ struct dwarf_expr_context /* Offset used to relocate DW_OP_addr argument. */ CORE_ADDR offset; - /* The evaluator is value-based, and frees values up to this point - when the expression context is destroyed. */ - struct value *mark; - /* An opaque argument provided by the caller, which will be passed to all of the callback functions. */ void *baton; |