From b4afe56ef1e5a1310e608e4c62ac4412afd46730 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 30 Aug 2011 13:09:34 +0000 Subject: [PATCH] For now use the void type for all debug symbols to avoid errors in the backends. git-svn-id: svn://svn.cc65.org/cc65/trunk@5287 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/function.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cc65/function.c b/src/cc65/function.c index 06676a84e..d646167ba 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -355,7 +355,7 @@ static void F_RestoreRegVars (Function* F) if (!F_HasVoidReturn (F)) { g_restore (CF_CHAR | CF_FORCECHAR); } -} +} @@ -368,7 +368,7 @@ static void EmitDebugInfo (void) const SymTable* Tab = Desc->SymTab; /* Output info for the function itself */ - AddTextLine ("\t.dbg\tfunc, \"%s\", \"\", %s, \"%s\"", + AddTextLine ("\t.dbg\tfunc, \"%s\", \"00\", %s, \"%s\"", Sym->Name, (Sym->Flags & SC_EXTERN)? "extern" : "static", Sym->AsmName); @@ -378,14 +378,14 @@ static void EmitDebugInfo (void) while (Sym) { if ((Sym->Flags & (SC_CONST|SC_TYPE)) == 0) { if (Sym->Flags & SC_AUTO) { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", auto, %d", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", auto, %d", Sym->Name, Sym->V.Offs); } else if (Sym->Flags & SC_REGISTER) { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", register, \"regbank\", %d", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", register, \"regbank\", %d", Sym->Name, Sym->V.R.RegOffs); } else { - AddTextLine ("\t.dbg\tsym, \"%s\", \"\", %s, \"%s\"", + AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", %s, \"%s\"", Sym->Name, (Sym->Flags & SC_EXTERN)? "extern" : "static", Sym->AsmName); -- 2.39.5