Merge pull request #2538 from clydeshaffer/dbg_banknum

[LD65] Add bank number to `seg` entries in dbgfile
This commit is contained in:
Bob Andrews
2024-11-26 02:27:29 +01:00
committed by GitHub
4 changed files with 34 additions and 7 deletions

View File

@@ -638,6 +638,13 @@ void PrintDbgSegments (FILE* F)
fprintf (F, ",oname=\"%s\",ooffs=%lu",
S->OutputName, S->OutputOffs);
}
if (S->MemArea) {
if (S->MemArea->BankExpr) {
if (IsConstExpr (S->MemArea->BankExpr)) {
fprintf (F, ",bank=%lu", GetExprVal(S->MemArea->BankExpr));
}
}
}
fputc ('\n', F);
}
}