1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +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:
uz 2010-08-17 20:11:27 +00:00
parent b2b2a05a46
commit d62af9de80
3 changed files with 5 additions and 5 deletions

View File

@ -90,6 +90,7 @@ SymEntry* NewSymEntry (const StrBuf* Name, unsigned Flags)
S->GuessedUse[I] = 0;
}
S->Flags = Flags;
S->DebugSymId = ~0U;
S->ImportId = ~0U;
S->Expr = 0;
S->ExprRefs = AUTO_COLLECTION_INITIALIZER;

View File

@ -94,7 +94,8 @@ struct SymEntry {
* addressing
*/
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 */
Collection ExprRefs; /* Expressions using this symbol */
unsigned char ExportSize; /* Export address size */

View File

@ -780,12 +780,12 @@ void WriteDbgSyms (void)
/* Check if debug info is requested */
if (DbgSyms) {
/* Walk through the list and count the symbols */
/* Walk through the list, give each symbol an id and count them */
Count = 0;
S = SymList;
while (S) {
if ((S->Flags & SF_DBGINFOMASK) == SF_DBGINFOVAL) {
++Count;
S->DebugSymId = Count++;
}
S = S->List;
}
@ -856,5 +856,3 @@ void WriteScopes (void)