fix varobj.c
c_value_of_root is missing a call to do_cleanups at one return. This fixes the problem by removing that return and letting control fall through. * varobj.c (c_value_of_root): Call do_cleanups along all return paths.
This commit is contained in:
parent
4fd2d6afa0
commit
4867f990df
@ -1,3 +1,8 @@
|
||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* varobj.c (c_value_of_root): Call do_cleanups along all
|
||||
return paths.
|
||||
|
||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* tracepoint.c (trace_dump_command): Unconditionally call
|
||||
|
@ -3474,13 +3474,11 @@ c_value_of_root (struct varobj **var_handle)
|
||||
{
|
||||
new_val = evaluate_expression (var->root->exp);
|
||||
}
|
||||
|
||||
return new_val;
|
||||
}
|
||||
|
||||
do_cleanups (back_to);
|
||||
|
||||
return NULL;
|
||||
return new_val;
|
||||
}
|
||||
|
||||
static struct value *
|
||||
|
Loading…
Reference in New Issue
Block a user