This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Bug in gas line no. info, --target=iris


   From: davidj@ICSI.Berkeley.EDU (David Johnson)
   Date: Fri, 8 Jul 1994 17:50:37 -0700

   Gas appears to get the line number debugging information wrong for the
   last ".loc" pseudo-op in a source file.

Thanks for the bug report.  I believe this this patch will fix the
problem.

Ian

Index: ecoff.c
===================================================================
RCS file: /rel/cvsfiles/devo/gas/ecoff.c,v
retrieving revision 1.16
diff -p -r1.16 ecoff.c
*** ecoff.c	1994/07/08 19:37:57	1.16
--- ecoff.c	1994/07/09 04:04:51
*************** ecoff_build_lineno (backend, buf, bufend
*** 3600,3606 ****
  	 (in words).  Do this first, so that we can skip ahead to the
  	 next useful line number entry.  */
        if (l->next == (lineno_list_t *) NULL)
! 	count = 0;
        else
  	{
  	  count = ((l->next->frag->fr_address + l->next->paddr
--- 3600,3610 ----
  	 (in words).  Do this first, so that we can skip ahead to the
  	 next useful line number entry.  */
        if (l->next == (lineno_list_t *) NULL)
! 	{
! 	  /* We want a count of zero, but it will be decremented
! 	     before it is used.  */
! 	  count = 1;
! 	}
        else
  	{
  	  count = ((l->next->frag->fr_address + l->next->paddr