aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1998-10-11 19:54:57 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1998-10-11 19:54:57 +0000
commitb0a5badb69321ac3db0901c5681f0894e6931fd5 (patch)
treed48bb442429b3251841969940636087396276703 /gdb/mdebugread.c
parentc6d28b22dad86b306a86c95b5a5bb2b8c03f6aef (diff)
downloadgdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.zip
gdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.tar.gz
gdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.tar.bz2
* dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children. * mdebugread.c (parse_partial_symbols): Fix handling of stabs continuations, use xmalloc and xrealloc.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index c3fae0a..1064490 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1,5 +1,5 @@
/* Read a symbol table in ECOFF format (Third-Eye).
- Copyright 1986, 87, 89, 90, 91, 92, 93, 94, 95, 96, 1997
+ Copyright 1986, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 1998
Free Software Foundation, Inc.
Original version contributed by Alessandro Forin (af@cs.cmu.edu) at
CMU. Major work by Per Bothner, John Gilmore and Ian Lance Taylor
@@ -2749,11 +2749,12 @@ parse_partial_symbols (objfile, section_offsets)
/* Concatinate stabstring2 with stabstring1 */
if (stabstring
&& stabstring != debug_info->ss + fh->issBase + sh.iss)
- stabstring = realloc (stabstring, len + len2 + 1);
+ stabstring = xrealloc (stabstring, len + len2 + 1);
else
- stabstring = malloc (len + len2 + 1);
+ stabstring = xmalloc (len + len2 + 1);
strcpy (stabstring, stabstring1);
strcpy (stabstring + len, stabstring2);
+ len += len2;
}
#define SET_NAMESTRING() \