Committed fix for PR 536

Ian Lance Taylor ian@wasabisystems.com
Wed Nov 10 16:14:00 GMT 2004


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;



More information about the Binutils mailing list