Write out global symbols to the debug file. Added some fixes for unusual
situations (extern symbols without attached import, because the import wasn't referenced and therefore removed by the assembler). git-svn-id: svn://svn.cc65.org/cc65/trunk@5290 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -248,7 +248,7 @@ HLLDbgSym* ReadHLLDbgSym (FILE* F, ObjData* O, unsigned Id attribute ((unused)))
|
||||
S->Flags = ReadVar (F);
|
||||
SC = HLL_GET_SC (S->Flags);
|
||||
S->Name = MakeGlobalStringId (O, ReadVar (F));
|
||||
if (SC != HLL_SC_AUTO) {
|
||||
if (HLL_HAS_SYM (S->Flags)) {
|
||||
S->Sym = GetObjDbgSym (O, ReadVar (F));
|
||||
} else {
|
||||
/* Auto variables aren't attached to asm symbols */
|
||||
@@ -483,7 +483,7 @@ void PrintHLLDbgSyms (FILE* F)
|
||||
}
|
||||
|
||||
/* For non auto symbols output the debug symbol id of the asm sym */
|
||||
if (SC != HLL_SC_AUTO) {
|
||||
if (HLL_HAS_SYM (S->Flags)) {
|
||||
fprintf (F, ",sym=%u", S->Sym->Id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user