aboutsummaryrefslogtreecommitdiff
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
commit34a17005a838978388de0b1e5ed040291c38661c (patch)
tree14b4e08e23ee741010645b2157288ce52050354b /gdb/ada-exp.y
parent714e53abdada80ad3b1223528e2aa2fac51436a5 (diff)
downloadgdb-34a17005a838978388de0b1e5ed040291c38661c.zip
gdb-34a17005a838978388de0b1e5ed040291c38661c.tar.gz
gdb-34a17005a838978388de0b1e5ed040291c38661c.tar.bz2
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 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;