Pass type of line info through the object files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4957 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-01-29 22:16:03 +00:00
parent 0e32325ca6
commit 299a0ed4cd
7 changed files with 48 additions and 26 deletions

View File

@@ -42,6 +42,7 @@
#include "coll.h"
#include "exprdefs.h"
#include "filepos.h"
#include "lidefs.h"
#include "objdefs.h"
#include "optdefs.h"
#include "segdefs.h"
@@ -714,14 +715,20 @@ void DumpObjLineInfo (FILE* F, unsigned long Offset)
/* Read and print all line infos */
for (I = 0; I < Count; ++I) {
/* Read one line info */
FilePos Pos;
/* Type of line info */
unsigned Type = ReadVar (F);
/* File position of line info */
ReadFilePos (F, &Pos);
/* Print the header */
printf (" Index:%27u\n", I);
/* Print the data */
printf (" Type:%26u\n", LI_GET_TYPE (Type));
printf (" Count:%25u\n", LI_GET_COUNT (Type));
printf (" Line:%26lu\n", Pos.Line);
printf (" Col:%27u\n", Pos.Col);
printf (" Name:%26u\n", Pos.Name);