www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/13/09:29:16

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <9808131326.AA16672@clio.rice.edu>
Subject: Re: [grbhat AT unigoa DOT ernet DOT in: Problem with process_coff()]
To: grbhat AT unigoa DOT ernet DOT in (Gurunandan R. Bhat)
Date: Thu, 13 Aug 1998 08:26:05 -0600 (CDT)
Cc: eliz AT is DOT elta DOT co DOT il, djgpp-workers AT delorie DOT com
In-Reply-To: <Pine.LNX.3.91.980813023649.726A-100000@aditya.unigoa.ernet.in> from "Gurunandan R. Bhat" at Aug 13, 98 02:46:10 am

> 	I had a problem with running fsdb on a simple "Hello World!" 
> program and have traced the problem to a loop in process_coff(...) 
> (src/debug/common/syms.c). The relevant lines (290:300) are:

A patch was sent to the workers mailing list on Jun 3 by mdruiter AT cs DOT vu DOT nl
to handle a very similar problem in the same code when running symify.

I may have missed a discussion over this patch:

--- src/debug/common/syms_old.c	Tue Jun  2 23:31:26 1998
+++ src/debug/common/syms.c	Tue Jun  2 23:31:36 1998
@@ -287,7 +287,7 @@ static void process_coff(FILE *fd, long 
         {
           files[f-1].lines = l;
         }
-	if (l_pending)
+	if (l_pending && f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno)
         {
           int lbase = f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno - 1;
           int i2;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019