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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user