From f8e5463278a91b48434665f028688fcc984c13f2 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 18 Aug 2011 16:26:44 +0000 Subject: [PATCH] Adapt to changed information in the object files. git-svn-id: svn://svn.cc65.org/cc65/trunk@5214 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ar65/objfile.c | 1 + src/od65/dump.c | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ar65/objfile.c b/src/ar65/objfile.c index bfc3dd175..1696ecc0c 100644 --- a/src/ar65/objfile.c +++ b/src/ar65/objfile.c @@ -224,6 +224,7 @@ void ObjReadData (FILE* F, ObjData* O) /* Line info indices */ SkipLineInfoList (F); + SkipLineInfoList (F); } } diff --git a/src/od65/dump.c b/src/od65/dump.c index 1af93aba5..12ab80c60 100644 --- a/src/od65/dump.c +++ b/src/od65/dump.c @@ -378,7 +378,7 @@ void DumpObjOptions (FILE* F, unsigned long Offset) case OPT_ARGNUM: printf (" Data:%26lu", Val); - if (Type == OPT_DATETIME) { + if (Type == OPT_DATETIME) { /* Print the time as a string */ printf (" (%s)", TimeToStr (Val)); } @@ -544,7 +544,8 @@ void DumpObjImports (FILE* F, unsigned long Offset) const char* Name = GetString (&StrPool, ReadVar (F)); unsigned Len = strlen (Name); - /* Skip the line infos */ + /* Skip both line info lists */ + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -613,7 +614,8 @@ void DumpObjExports (FILE* F, unsigned long Offset) Size = ReadVar (F); } - /* Skip the line infos */ + /* Skip both line infos lists */ + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -700,7 +702,8 @@ void DumpObjDbgSyms (FILE* F, unsigned long Offset) ExportId = ReadVar (F); } - /* Skip the line infos */ + /* Skip both line info lists */ + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -937,3 +940,4 @@ void DumpObjSegSize (FILE* F, unsigned long Offset) + -- 2.39.5