summaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-05-13 15:44:46 +0000
committerTom Tromey <tromey@redhat.com>2011-05-13 15:44:46 +0000
commit3089d094c1d908a1465004239b26233a8c85f6e8 (patch)
tree32ee0833819248cbf35d7752a16f700c98cccc93 /gdb/dwarf2expr.h
parented86b41d4b100256543b28b26ba6c4929e61a2bd (diff)
downloadgdb-3089d094c1d908a1465004239b26233a8c85f6e8.tar.gz
* 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.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h
index 281c65b472c..676b54bfff2 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;