aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 06:15:27 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 06:15:27 +0000
commitf23d52e0a54905bc88c1a5ea25168227356d6f37 (patch)
tree9b55315786830882293a4225641d0bbd44fecefc /gdb/tracepoint.c
parent4d6140d95eace437441b17dd43a7b0a456d3803a (diff)
downloadgdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.zip
gdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.tar.gz
gdb-f23d52e0a54905bc88c1a5ea25168227356d6f37.tar.bz2
Cleanup free_agent_expr cleanups.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 58db9b3..eefd556 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -999,7 +999,7 @@ validate_actionline (line, t)
/* we have something to collect, make sure that the expr to
bytecode translator can handle it and that it's not too long */
aexpr = gen_trace_for_expr (t->address, exp);
- (void) make_cleanup ((make_cleanup_func) free_agent_expr, aexpr);
+ make_cleanup_free_agent_expr (aexpr);
if (aexpr->len > MAX_AGENT_EXPR_LEN)
error ("expression too complicated, try simplifying");
@@ -1617,8 +1617,7 @@ encode_actions (t, tdp_actions, stepping_actions)
default: /* full-fledged expression */
aexpr = gen_trace_for_expr (t->address, exp);
- old_chain1 = make_cleanup ((make_cleanup_func)
- free_agent_expr, aexpr);
+ old_chain1 = make_cleanup_free_agent_expr (aexpr);
ax_reqs (aexpr, &areqs);
if (areqs.flaw != agent_flaw_none)