aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commitb8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch)
tree1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/tracepoint.c
parent2000-12-14 Kazu Hirata <kazu@hxi.com> (diff)
downloadbinutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2
binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
Replace free() with xfree().
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index c33e552e218..f275458dfa2 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -341,7 +341,7 @@ set_raw_tracepoint (struct symtab_and_line sal)
struct cleanup *old_chain;
t = (struct tracepoint *) xmalloc (sizeof (struct tracepoint));
- old_chain = make_cleanup (free, t);
+ old_chain = make_cleanup (xfree, t);
memset (t, 0, sizeof (*t));
t->address = sal.pc;
if (sal.symtab == NULL)
@@ -576,13 +576,13 @@ tracepoint_operation (struct tracepoint *t, int from_tty,
delete_tracepoint_hook (t);
if (t->addr_string)
- free (t->addr_string);
+ xfree (t->addr_string);
if (t->source_file)
- free (t->source_file);
+ xfree (t->source_file);
if (t->actions)
free_actions (t);
- free (t);
+ xfree (t);
break;
}
}
@@ -971,7 +971,7 @@ validate_actionline (char **line, struct tracepoint *t)
error ("expression too complicated, try simplifying");
ax_reqs (aexpr, &areqs);
- (void) make_cleanup (free, areqs.reg_mask);
+ (void) make_cleanup (xfree, areqs.reg_mask);
if (areqs.flaw != agent_flaw_none)
error ("malformed expression");
@@ -1022,8 +1022,8 @@ free_actions (struct tracepoint *t)
{
next = line->next;
if (line->action)
- free (line->action);
- free (line);
+ xfree (line->action);
+ xfree (line);
}
t->actions = NULL;
}
@@ -1457,9 +1457,9 @@ free_actions_list (char **actions_list)
return;
for (ndx = 0; actions_list[ndx]; ndx++)
- free (actions_list[ndx]);
+ xfree (actions_list[ndx]);
- free (actions_list);
+ xfree (actions_list);
}
/* render all actions into gdb protocol */
@@ -2098,7 +2098,7 @@ trace_find_line_command (char *args, int from_tty)
sal = sals.sals[0];
}
- old_chain = make_cleanup (free, sals.sals);
+ old_chain = make_cleanup (xfree, sals.sals);
if (sal.symtab == 0)
{
printf_filtered ("TFIND: No line number information available");