+2002-07-13 Aidan Skinner <aidan@velvet.net>
+
+ * ada-tasks.c (add_task_entry): replace calls to
+ malloc() with xmalloc
+ * ada-tasks.c (init_task_list): replace calls to free with xfree()
+
+ * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
+ ada_finish_decode_line_1, all_sals_for_line
+ ada_breakpoint_rewrite): replace calls to free() with xfree()
+
2002-07-12 Kevin Buettner <kevinb@redhat.com>
From Nicholas Duffek (with minor changes by Martin Hunt,
2002-04-24 Pierre Muller <ics.u-strasbg.fr>
* hpread.c (hpread_psymtab_to_symtab_1,
- hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
+ hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
with fprintf_unfiltered (gdb_stderr,...).
2002-04-24 Pierre Muller <ics.u-strasbg.fr>
newexp->elts[pc + 5].symbol = sym;
*expp = newexp;
- free (exp);
+ xfree (exp);
}
/* Type-class predicates */
if (nargs == 0)
{
static struct field dummy_field = {0, 0, 0, 0};
- free (TYPE_FIELDS (ftype));
+ xfree (TYPE_FIELDS (ftype));
TYPE_FIELDS (ftype) = &dummy_field;
}
else
memcpy ((char*) fields,
(char*) TYPE_FIELDS (ftype),
nargs * sizeof (struct field));
- free (TYPE_FIELDS (ftype));
+ xfree (TYPE_FIELDS (ftype));
TYPE_FIELDS (ftype) = fields;
}
}
selected.sals = (struct symtab_and_line*)
xmalloc (sizeof (struct symtab_and_line) * selected.nelts);
memset (selected.sals, 0, selected.nelts * sizeof (selected.sals[i]));
- make_cleanup (free, selected.sals);
+ make_cleanup (xfree, selected.sals);
i = 0;
while (i < selected.nelts)
if (canonical != NULL)
{
*canonical = (char**) xmalloc (result.nelts * sizeof (char**));
- make_cleanup (free, *canonical);
+ make_cleanup (xfree, *canonical);
for (k = 0; k < result.nelts; k += 1)
{
(*canonical)[k] =
extended_canonical_line_spec (result.sals[k], func_names[k]);
if ((*canonical)[k] == NULL)
error ("Could not locate one or more breakpoints.");
- make_cleanup (free, (*canonical)[k]);
+ make_cleanup (xfree, (*canonical)[k]);
}
}
}
arg = (char*) xmalloc (sizeof ("__gnat_raise_nodefer_with_msg if "
"long_integer(e) = long_integer(&)")
+ toklen + 1);
- make_cleanup (free, arg);
+ make_cleanup (xfree, arg);
if (toklen == 0)
strcpy (arg, "__gnat_raise_nodefer_with_msg");
else if (STREQN (tok, "unhandled", toklen))
arg = (char*)
xmalloc (sizeof ("system__assertions__raise_assert_failure")
+ strlen (tok) + 1);
- make_cleanup (free, arg);
+ make_cleanup (xfree, arg);
sprintf (arg, "system__assertions__raise_assert_failure%s", tok);
}
*/