mirror of
https://github.com/cc65/cc65.git
synced 2024-10-04 18:57:06 +00:00
Use symbolic names when writing the scope type to the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5139 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
067f6d2e27
commit
a3ae02b5b7
@ -133,11 +133,24 @@ void PrintDbgScopes (FILE* F)
|
|||||||
const Scope* S = CollConstAt (&O->Scopes, J);
|
const Scope* S = CollConstAt (&O->Scopes, J);
|
||||||
|
|
||||||
fprintf (F,
|
fprintf (F,
|
||||||
"scope\tid=%u,name=\"%s\",mod=%u,type=%u",
|
"scope\tid=%u,name=\"%s\",mod=%u",
|
||||||
O->ScopeBaseId + S->Id,
|
O->ScopeBaseId + S->Id,
|
||||||
GetString (S->Name),
|
GetString (S->Name),
|
||||||
I,
|
I);
|
||||||
S->Type);
|
|
||||||
|
/* Print the type if not module */
|
||||||
|
switch (S->Type) {
|
||||||
|
|
||||||
|
case SCOPE_GLOBAL: fputs (",type=global", F); break;
|
||||||
|
case SCOPE_FILE: /* default */ break;
|
||||||
|
case SCOPE_SCOPE: fputs (",type=scope", F); break;
|
||||||
|
case SCOPE_STRUCT: fputs (",type=struct", F); break;
|
||||||
|
case SCOPE_ENUM: fputs (",type=enum", F); break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
Error ("Module `%s': Unknown scope type %u",
|
||||||
|
GetObjFileName (O), S->Type);
|
||||||
|
}
|
||||||
|
|
||||||
/* Print the size if available */
|
/* Print the size if available */
|
||||||
if (S->Size != 0) {
|
if (S->Size != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user