From: uz Date: Tue, 16 Aug 2011 12:33:19 +0000 (+0000) Subject: If a debug symbol is an import, write out the import id. X-Git-Tag: V2.13.3~280 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63c53499be3d98a540082f2ba3f260ac2a4d87a1;p=cc65 If a debug symbol is an import, write out the import id. git-svn-id: svn://svn.cc65.org/cc65/trunk@5182 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/symtab.c b/src/ca65/symtab.c index b88f4f1f5..f835dc60c 100644 --- a/src/ca65/symtab.c +++ b/src/ca65/symtab.c @@ -675,7 +675,7 @@ void SymDump (FILE* F) void WriteImports (void) /* Write the imports list to the object file */ { - SymEntry* S; + SymEntry* S; /* Tell the object file module that we're about to start the imports */ ObjStartImports (); @@ -865,6 +865,11 @@ void WriteDbgSyms (void) ObjWriteVar (Size); } + /* If the symbol is an import, write out its import id */ + if (SYM_IS_IMPORT (SymFlags)) { + ObjWriteVar (GetSymImportId (S)); + } + /* Write the line infos */ WriteLineInfo (&S->LineInfos); }