Add the parent scope/symbol to the debug symbol attributes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5094 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -849,6 +849,15 @@ void WriteDbgSyms (void)
|
||||
/* Write the address size */
|
||||
ObjWrite8 (S->AddrSize);
|
||||
|
||||
/* Write the id of the parent. For normal symbols, this is a
|
||||
* scope (symbol table), for cheap locals, it's a symbol.
|
||||
*/
|
||||
if (SYM_IS_STD (ExprMask)) {
|
||||
ObjWriteVar (S->Sym.Tab->Id);
|
||||
} else {
|
||||
ObjWriteVar (S->Sym.Entry->DebugSymId);
|
||||
}
|
||||
|
||||
/* Write the name */
|
||||
ObjWriteVar (S->Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user