mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 00:07:21 +00:00
Debug symbolid for each symbol that goes into the debug symbol output.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4811 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b2b2a05a46
commit
d62af9de80
@ -90,6 +90,7 @@ SymEntry* NewSymEntry (const StrBuf* Name, unsigned Flags)
|
|||||||
S->GuessedUse[I] = 0;
|
S->GuessedUse[I] = 0;
|
||||||
}
|
}
|
||||||
S->Flags = Flags;
|
S->Flags = Flags;
|
||||||
|
S->DebugSymId = ~0U;
|
||||||
S->ImportId = ~0U;
|
S->ImportId = ~0U;
|
||||||
S->Expr = 0;
|
S->Expr = 0;
|
||||||
S->ExprRefs = AUTO_COLLECTION_INITIALIZER;
|
S->ExprRefs = AUTO_COLLECTION_INITIALIZER;
|
||||||
|
@ -94,7 +94,8 @@ struct SymEntry {
|
|||||||
* addressing
|
* addressing
|
||||||
*/
|
*/
|
||||||
unsigned Flags; /* Symbol flags */
|
unsigned Flags; /* Symbol flags */
|
||||||
unsigned ImportId; /* Id if imported symbol */
|
unsigned DebugSymId; /* Debug symbol id */
|
||||||
|
unsigned ImportId; /* Id of import if this is one */
|
||||||
struct ExprNode* Expr; /* Symbol expression */
|
struct ExprNode* Expr; /* Symbol expression */
|
||||||
Collection ExprRefs; /* Expressions using this symbol */
|
Collection ExprRefs; /* Expressions using this symbol */
|
||||||
unsigned char ExportSize; /* Export address size */
|
unsigned char ExportSize; /* Export address size */
|
||||||
|
@ -780,12 +780,12 @@ void WriteDbgSyms (void)
|
|||||||
/* Check if debug info is requested */
|
/* Check if debug info is requested */
|
||||||
if (DbgSyms) {
|
if (DbgSyms) {
|
||||||
|
|
||||||
/* Walk through the list and count the symbols */
|
/* Walk through the list, give each symbol an id and count them */
|
||||||
Count = 0;
|
Count = 0;
|
||||||
S = SymList;
|
S = SymList;
|
||||||
while (S) {
|
while (S) {
|
||||||
if ((S->Flags & SF_DBGINFOMASK) == SF_DBGINFOVAL) {
|
if ((S->Flags & SF_DBGINFOMASK) == SF_DBGINFOVAL) {
|
||||||
++Count;
|
S->DebugSymId = Count++;
|
||||||
}
|
}
|
||||||
S = S->List;
|
S = S->List;
|
||||||
}
|
}
|
||||||
@ -856,5 +856,3 @@ void WriteScopes (void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user