This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Committed fix for PR 536
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: binutils at sourceware dot org
- Date: 10 Nov 2004 11:14:38 -0500
- Subject: Committed fix for PR 536
I commited this patch to fix PR 536, in which objdump -g failed on
code compiled by gcc 2.95.3.
Ian
Index: stabs.c
===================================================================
RCS file: /cvs/src/src/binutils/stabs.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -p -u -r1.21 -r1.22
--- stabs.c 25 Oct 2004 15:25:20 -0000 1.21
+++ stabs.c 10 Nov 2004 16:10:17 -0000 1.22
@@ -4321,7 +4321,8 @@ stab_demangle_template (struct stab_dema
{
unsigned int len;
- if (! stab_demangle_get_count (pp, &len))
+ len = stab_demangle_count (pp);
+ if (len == 0)
{
stab_bad_demangle (orig);
return FALSE;