From: uz Date: Tue, 3 Aug 2010 19:00:14 +0000 (+0000) Subject: Don't output multiple code ranges per line, since this is harder to parse. X-Git-Tag: V2.13.3~671 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=abda26a309bbc3b387628119cea5775a123d2724;p=cc65 Don't output multiple code ranges per line, since this is harder to parse. git-svn-id: svn://svn.cc65.org/cc65/trunk@4780 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/dbginfo.c b/src/ld65/dbginfo.c index 8af831ba3..4626a7c53 100644 --- a/src/ld65/dbginfo.c +++ b/src/ld65/dbginfo.c @@ -68,15 +68,6 @@ void PrintDbgInfo (ObjData* O, FILE* F) /* Get a pointer to the code ranges */ const Collection* CodeRanges = &LI->CodeRanges; - /* We must have code ranges, otherwise ignore the entry */ - if (CollCount (CodeRanges) == 0) { - continue; - } - - /* Name and line number */ - fprintf (F, "line\t\"%s\",line=%lu", GetString (LI->File->Name), - LI->Pos.Line); - /* Code ranges */ for (J = 0; J < CollCount (CodeRanges); ++J) { @@ -84,7 +75,11 @@ void PrintDbgInfo (ObjData* O, FILE* F) const CodeRange* R = CollConstAt (CodeRanges, J); /* Print it */ - fprintf (F, ",range=0x%06lX-0x%06lX", R->Offs, R->Offs + R->Size - 1); + fprintf (F, + "line\t\"%s\",line=%lu,range=0x%06lX-0x%06lX", + GetString (LI->File->Name), + LI->Pos.Line, + R->Offs, R->Offs + R->Size - 1); } /* Terminate the line */