summaryrefslogtreecommitdiff
path: root/binutils/stabs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2004-11-10 16:10:17 +0000
committerIan Lance Taylor <ian@airs.com>2004-11-10 16:10:17 +0000
commitb5a13cb12d9ef2b30ab8b2ea8e428037ee9bd6dc (patch)
tree64a58ebbe0e6825b0e4280af3d2b5ed354893156 /binutils/stabs.c
parent1ac97ca60d10ceee06a45a9308b874a82f3d8f2a (diff)
downloadbinutils-redhat-b5a13cb12d9ef2b30ab8b2ea8e428037ee9bd6dc.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c
index 52a20e848a..42763e7642 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;