From: uz Date: Tue, 9 Aug 2011 18:48:02 +0000 (+0000) Subject: Output ids for line infos to the debug info file. X-Git-Tag: V2.13.3~322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36c99befccd060fd9775d233ddefa0c7f74fef62;p=cc65 Output ids for line infos to the debug info file. git-svn-id: svn://svn.cc65.org/cc65/trunk@5140 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/lineinfo.c b/src/ld65/lineinfo.c index ee8eda8a9..efd10f484 100644 --- a/src/ld65/lineinfo.c +++ b/src/ld65/lineinfo.c @@ -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 */