1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

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
This commit is contained in:
uz 2011-08-30 13:09:34 +00:00
parent 2438497e9f
commit b4afe56ef1

View File

@ -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);