mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Improved the format of the global symbols' lists of flags, in cc65's debugging output.
This commit is contained in:
parent
6f24c07836
commit
d36f31dcff
@ -126,19 +126,19 @@ void DumpSymEntry (FILE* F, const SymEntry* E)
|
||||
/* Print the assembler name if we have one */
|
||||
if (E->AsmName) {
|
||||
fprintf (F, " AsmName: %s\n", E->AsmName);
|
||||
}
|
||||
}
|
||||
|
||||
/* Print the flags */
|
||||
SymFlags = E->Flags;
|
||||
fprintf (F, " Flags: ");
|
||||
fprintf (F, " Flags:");
|
||||
for (I = 0; I < sizeof (Flags) / sizeof (Flags[0]) && SymFlags != 0; ++I) {
|
||||
if ((SymFlags & Flags[I].Val) == Flags[I].Val) {
|
||||
SymFlags &= ~Flags[I].Val;
|
||||
fprintf (F, "%s ", Flags[I].Name);
|
||||
fprintf (F, " %s", Flags[I].Name);
|
||||
}
|
||||
}
|
||||
if (SymFlags != 0) {
|
||||
fprintf (F, "%04X", SymFlags);
|
||||
fprintf (F, " 0x%05X", SymFlags);
|
||||
}
|
||||
fprintf (F, "\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user