From 34a17005a838978388de0b1e5ed040291c38661c Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 15 Oct 2004 13:29:33 +0000 Subject: 2004-10-15 Andrew Cagney * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out. * inf-ptrace.c: Include "gdb_wait.h" instead of . * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc. Update dependencies. --- gdb/ada-exp.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ada-exp.y') diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 936a5a7..bb9e41c 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; -- cgit v1.1