diff options
author | Ian Lance Taylor <ian@airs.com> | 2004-11-10 16:10:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2004-11-10 16:10:17 +0000 |
commit | 2b25cacb2137cd1c6f976ff8873f18d0c4d6f7cd (patch) | |
tree | ef862b4a21d6a0b7373c9a287ea3e04057197489 /binutils/stabs.c | |
parent | 69065f5d2f773110828d9d162e1cb1f4bffc2609 (diff) | |
download | gdb-2b25cacb2137cd1c6f976ff8873f18d0c4d6f7cd.zip gdb-2b25cacb2137cd1c6f976ff8873f18d0c4d6f7cd.tar.gz gdb-2b25cacb2137cd1c6f976ff8873f18d0c4d6f7cd.tar.bz2 |
PR binutils/536
* stabs.c (stab_demangle_template): Call stab_demangle_count
rather than stab_demangle_get_count to get the length of a pointer
target.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r-- | binutils/stabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index 52a20e8..42763e7 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -4321,7 +4321,8 @@ stab_demangle_template (struct stab_demangle_info *minfo, const char **pp, { unsigned int len; - if (! stab_demangle_get_count (pp, &len)) + len = stab_demangle_count (pp); + if (len == 0) { stab_bad_demangle (orig); return FALSE; |