summaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-15 13:29:33 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-15 13:29:33 +0000
commit67015556ddeea4636c86dbc501bd1122949b22db (patch)
tree6ae4d5164a290ef82f94878cae75b37482a0aa31 /gdb/ada-exp.y
parent9995109f2801070e0fdf6ecfe97dccc9cdfb2084 (diff)
downloadgdb-67015556ddeea4636c86dbc501bd1122949b22db.tar.gz
2004-10-15 Andrew Cagney <cagney@gnu.org>
* ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out. * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>. * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc. Update dependencies.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r--gdb/ada-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 936a5a7c0e1..bb9e41c7c88 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -852,7 +852,7 @@ write_object_renaming (struct block *orig_left_context,
if (end == NULL)
end = suffix + strlen (suffix);
field_name.length = end - suffix;
- field_name.ptr = (char *) malloc (end - suffix + 1);
+ field_name.ptr = xmalloc (end - suffix + 1);
strncpy (field_name.ptr, suffix, end - suffix);
field_name.ptr[end - suffix] = '\000';
suffix = end;