From 63c53499be3d98a540082f2ba3f260ac2a4d87a1 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 16 Aug 2011 12:33:19 +0000 Subject: [PATCH] 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 --- src/ca65/symtab.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.39.5