/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2001 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
#include "dbgsyms.h"
#include "error.h"
#include "exports.h"
+#include "fileinfo.h"
#include "fileio.h"
#include "lineinfo.h"
#include "objdata.h"
unsigned I;
O->FileCount = ReadVar (F);
- O->Files = xmalloc (O->FileCount * sizeof (char*));
+ O->Files = xmalloc (O->FileCount * sizeof (FileInfo*));
for (I = 0; I < O->FileCount; ++I) {
- /* Skip MTime and size */
- Read32 (F);
- Read32 (F);
- /* Read the filename */
- O->Files [I] = ReadStr (F);
+ O->Files[I] = ReadFileInfo (F, O);
}
}
/* Read the debug symbols from a file at the current position */
{
unsigned I;
-
+
O->DbgSymCount = ReadVar (F);
O->DbgSyms = xmalloc (O->DbgSymCount * sizeof (DbgSym*));
for (I = 0; I < O->DbgSymCount; ++I) {
ObjReadHeader (Obj, &O->Header, Name);
/* Initialize the object module data structure */
- O->Name = xstrdup (GetModule (Name));
- O->Flags = OBJ_HAVEDATA;
+ O->Name = xstrdup (GetModule (Name));
+ O->Flags = OBJ_HAVEDATA;
/* Read the files list from the object file */
fseek (Obj, O->Header.FileOffs, SEEK_SET);