X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Fdbgsyms.h;h=5ad169453f91a3c5f2deaf580910a47b164e9ea9;hb=7bd19b737aacfcf0d81e2bc3a6e537ee72a4eb2f;hp=5483116feaafc959253a2cc78b2cbd9a54ebcf34;hpb=edde7a3f453ae863d958d6b8db0a95e1062bfe77;p=cc65 diff --git a/src/ld65/dbgsyms.h b/src/ld65/dbgsyms.h index 5483116fe..5ad169453 100644 --- a/src/ld65/dbgsyms.h +++ b/src/ld65/dbgsyms.h @@ -65,6 +65,7 @@ struct DbgSym { ExprNode* Expr; /* Expression (0 if not def'd) */ unsigned Name; /* Name */ unsigned char Type; /* Type of symbol */ + unsigned char AddrSize; /* Address size of symbol */ }; @@ -78,9 +79,17 @@ struct DbgSym { DbgSym* ReadDbgSym (FILE* F, ObjData* Obj); /* Read a debug symbol from a file, insert and return it */ -long GetDbgSymVal (DbgSym* D); +long GetDbgSymVal (const DbgSym* D); /* Get the value of this symbol */ +void ClearDbgSymTable (void); +/* Clear the debug symbol table. Must be called before outputting debug syms + * or debug labels the first time. + */ + +void PrintDbgSyms (ObjData* O, FILE* F); +/* Print the debug symbols in a debug file */ + void PrintDbgSymLabels (ObjData* O, FILE* F); /* Print the debug symbols in a VICE label file */