Mail Archives: djgpp-workers/1998/06/03/10:46:12
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;
- Raw text -