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:
uz
2011-07-31 13:28:54 +00:00
parent 7466b89ed1
commit dd3a841b1a
4 changed files with 23 additions and 0 deletions

View File

@@ -55,6 +55,9 @@
/* Forwards */
struct Scope;
/* Debug symbol structure */
typedef struct DbgSym DbgSym;
struct DbgSym {
@@ -64,6 +67,11 @@ struct DbgSym {
Collection LineInfos; /* Line infos of definition */
ExprNode* Expr; /* Expression (0 if not def'd) */
unsigned long Size; /* Symbol size if any */
union {
unsigned long Id; /* Id of parent while not resolved */
struct Scope* Scope; /* Parent scope */
struct DbgSym* Sym; /* Parent symbol for cheap locals */
} Parent;
unsigned Name; /* Name */
unsigned char Type; /* Type of symbol */
unsigned char AddrSize; /* Address size of symbol */