1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

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
This commit is contained in:
uz 2010-08-03 19:00:14 +00:00
parent 54e22eb53c
commit abda26a309

View File

@ -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 */