From 72fc29ff1236177b2be5f702ed40c7d327897e7e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 May 2011 15:44:49 +0000 Subject: * 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) : 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. --- gdb/dwarf2expr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/dwarf2expr.c') diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 0c0760b..b42f289 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -104,7 +104,6 @@ new_dwarf_expr_context (void) retval->num_pieces = 0; retval->pieces = 0; retval->max_recursion_depth = 0x100; - retval->mark = value_mark (); return retval; } @@ -113,7 +112,6 @@ new_dwarf_expr_context (void) void free_dwarf_expr_context (struct dwarf_expr_context *ctx) { - value_free_to_mark (ctx->mark); xfree (ctx->stack); xfree (ctx->pieces); xfree (ctx); -- cgit v1.1