Message-Id: Date: Wed, 3 Jun 98 16:44:25 MET DST From: Michel de Ruiter To: dj AT delorie DOT com cc: djgpp-workers AT delorie DOT com Subject: symify patch Precedence: bulk I have noticed problems with symify, with certain big executables, using gcc 2.8.1. It turned out to be a problem in syms.c. If f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno == 0, several parts of memory were overwritten with garbage. A patch follows. I hope it helps (enough :). -- Groeten, Michel. http://www.cs.vu.nl/~mdruiter ____________ \ /====\ / "You know, Beavis, you need things that suck, \/ \/ to have things that are cool", Butt-Head. --- 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;