From bbe2ba601d37a94408f5783549352571b1b87675 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sat, 25 Oct 2008 02:16:39 +0000 Subject: * ada-exp.y (write_object_renaming): Use malloc instead of xmalloc. * p-exp.y (pop_current_type): Use free instead of xfree. --- gdb/ChangeLog | 6 ++++++ gdb/ada-exp.y | 2 +- gdb/p-exp.y | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e80741..c30272b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-10-25 Pedro Alves + + * ada-exp.y (write_object_renaming): Use malloc instead of + xmalloc. + * p-exp.y (pop_current_type): Use free instead of xfree. + 2008-10-24 Pedro Alves * fork-child.c (startup_inferior): Only set threads not-executing diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index e440663..4b8bb93 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -987,7 +987,7 @@ write_object_renaming (struct block *orig_left_context, if (end == NULL) end = renaming_expr + strlen (renaming_expr); field_name.length = end - renaming_expr; - field_name.ptr = xmalloc (end - renaming_expr + 1); + field_name.ptr = malloc (end - renaming_expr + 1); strncpy (field_name.ptr, renaming_expr, end - renaming_expr); field_name.ptr[end - renaming_expr] = '\000'; renaming_expr = end; diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 4b5ceb2..e86cf89 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -1023,7 +1023,7 @@ pop_current_type (void) { current_type = tp->stored; tp_top = tp->next; - xfree (tp); + free (tp); } } -- cgit v1.1