More work on high level language debug symbols. They are now passed correctly
via the object files to the linker and written to the debug info file. git-svn-id: svn://svn.cc65.org/cc65/trunk@5285 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -79,6 +79,7 @@ ObjData* NewObjData (void)
|
||||
O->MTime = 0;
|
||||
O->Start = 0;
|
||||
O->Flags = 0;
|
||||
O->HLLSymBaseId = 0;
|
||||
O->SymBaseId = 0;
|
||||
O->ScopeBaseId = 0;
|
||||
O->SpanBaseId = 0;
|
||||
@@ -87,6 +88,7 @@ ObjData* NewObjData (void)
|
||||
O->Exports = EmptyCollection;
|
||||
O->Imports = EmptyCollection;
|
||||
O->DbgSyms = EmptyCollection;
|
||||
O->HLLDbgSyms = EmptyCollection;
|
||||
O->LineInfos = EmptyCollection;
|
||||
O->StringCount = 0;
|
||||
O->Strings = 0;
|
||||
@@ -122,6 +124,7 @@ void FreeObjData (ObjData* O)
|
||||
}
|
||||
DoneCollection (&O->Imports);
|
||||
DoneCollection (&O->DbgSyms);
|
||||
DoneCollection (&O->HLLDbgSyms);
|
||||
|
||||
for (I = 0; I < CollCount (&O->LineInfos); ++I) {
|
||||
FreeLineInfo (CollAtUnchecked (&O->LineInfos, I));
|
||||
@@ -243,6 +246,18 @@ struct Export* GetObjExport (const ObjData* O, unsigned Id)
|
||||
|
||||
|
||||
|
||||
struct DbgSym* GetObjDbgSym (const ObjData* O, unsigned Id)
|
||||
/* Get a debug symbol from an object file checking for a valid index */
|
||||
{
|
||||
if (Id >= CollCount (&O->DbgSyms)) {
|
||||
Error ("Invalid debug symbol index (%u) in module `%s'",
|
||||
Id, GetObjFileName (O));
|
||||
}
|
||||
return CollAtUnchecked (&O->DbgSyms, Id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct Scope* GetObjScope (const ObjData* O, unsigned Id)
|
||||
/* Get a scope from an object file checking for a valid index */
|
||||
{
|
||||
@@ -297,3 +312,4 @@ void PrintDbgModules (FILE* F)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user