diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-15 13:29:33 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-15 13:29:33 +0000 |
commit | 67015556ddeea4636c86dbc501bd1122949b22db (patch) | |
tree | 6ae4d5164a290ef82f94878cae75b37482a0aa31 /gdb/ada-exp.y | |
parent | 9995109f2801070e0fdf6ecfe97dccc9cdfb2084 (diff) | |
download | gdb-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.y | 2 |
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; |