This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] partial-stab.h


Just FYI,

The check for PST was redundant (a wrapping if() had already checked
it).  GCC didn't like it either :-)

	enjoy,
		Andrew
2000-08-10  Andrew Cagney  <cagney@ops1.cygnus.com>

	* partial-stab.h (DBX_READ): Eliminate redundant check for null
	``pst''.  Also fixes GCC warning.

Index: partial-stab.h
===================================================================
RCS file: /cvs/src/src/gdb/partial-stab.h,v
retrieving revision 1.4
diff -p -r1.4 partial-stab.h
*** partial-stab.h	2000/08/10 18:26:56	1.4
--- partial-stab.h	2000/08/11 01:43:48
*************** switch (CUR_SYMBOL_TYPE)
*** 401,407 ****
  	   function relative stabs, or the address of the function's
  	   end for old style stabs.  */
  	valu = CUR_SYMBOL_VALUE + last_function_start;
! 	if (pst && pst->texthigh == 0 || valu > pst->texthigh)
  	  pst->texthigh = valu;
  	break;
        }
--- 401,407 ----
  	   function relative stabs, or the address of the function's
  	   end for old style stabs.  */
  	valu = CUR_SYMBOL_VALUE + last_function_start;
! 	if (pst->texthigh == 0 || valu > pst->texthigh)
  	  pst->texthigh = valu;
  	break;
        }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]