]> git.sur5r.net Git - cc65/commitdiff
Output ids for line infos to the debug info file.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 9 Aug 2011 18:48:02 +0000 (18:48 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 9 Aug 2011 18:48:02 +0000 (18:48 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5140 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/lineinfo.c

index ee8eda8a9b60cd41efac9872e905c12fe6861709..efd10f4844006edce890682f5477902d0845879f 100644 (file)
@@ -210,6 +210,7 @@ void PrintDbgLineInfo (FILE* F)
     unsigned I, J, K;
 
     /* Print line infos from all modules we have linked into the output file */
+    unsigned Id = 0;
     for (I = 0; I < CollCount (&ObjDataList); ++I) {
 
         /* Get the object file */
@@ -236,8 +237,8 @@ void PrintDbgLineInfo (FILE* F)
 
                 /* Print it */
                 fprintf (F,
-                         "line\tfile=%u,line=%lu,seg=%u,range=0x%lX-0x%lX",
-                         LI->File->Id, GetSourceLine (LI), S->Seg->Id,
+                         "line\tid=%u,file=%u,line=%lu,seg=%u,range=0x%lX-0x%lX",
+                         Id++, LI->File->Id, GetSourceLine (LI), S->Seg->Id,
                          S->Offs, S->Offs + S->Size - 1);
 
                 /* Print type if not LI_TYPE_ASM and count if not zero */