aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorgdb-2.5.3 <gdb@fsf.org>1988-06-13 01:00:00 +0100
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:30 +0100
commit7c75bab3d3ef344a6a0b13b9ab59ecd5855aceb5 (patch)
tree4e50a84965c0e24ba6734d9717e007e68879c8e0 /gdb/dbxread.c
parent6368691e88d78f0bb6a46b74d7ed86118ac84e8b (diff)
downloadgdb-7c75bab3d3ef344a6a0b13b9ab59ecd5855aceb5.zip
gdb-7c75bab3d3ef344a6a0b13b9ab59ecd5855aceb5.tar.gz
gdb-7c75bab3d3ef344a6a0b13b9ab59ecd5855aceb5.tar.bz2
gdb-2.5.3
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 05326cf..084135f 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2878,6 +2878,11 @@ read_args (pp, end)
{
rval = (struct type **) xmalloc (2 * sizeof (struct type *));
}
+ else if (TYPE_CODE (types[n-1]) != TYPE_CODE_VOID)
+ {
+ rval = (struct type **) xmalloc ((n + 1) * sizeof (struct type *));
+ bzero (rval + n, sizeof (struct type *));
+ }
else
{
rval = (struct type **) xmalloc (n * sizeof (struct type *));