X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fld65%2Fdbgsyms.h;h=6a3e5cfa65cb0165b3650c15eef443de1e1226c9;hb=2fa9b6e5acbfea981887dd2824bc2e96e9ef6cfd;hp=6964ca1ba57dd0587a8229eac5f76fddea03af3b;hpb=3889a2bec9d99d2a17f56b690f0c409d2bc0c216;p=cc65 diff --git a/src/ld65/dbgsyms.h b/src/ld65/dbgsyms.h index 6964ca1ba..6a3e5cfa6 100644 --- a/src/ld65/dbgsyms.h +++ b/src/ld65/dbgsyms.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2003 Ullrich von Bassewitz */ +/* Römerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -63,8 +63,9 @@ struct DbgSym { ObjData* Obj; /* Object file that exports the name */ FilePos Pos; /* File position of definition */ ExprNode* Expr; /* Expression (0 if not def'd) */ + unsigned Name; /* Name */ unsigned char Type; /* Type of symbol */ - char* Name; /* Name - dynamically allocated */ + unsigned char AddrSize; /* Address size of symbol */ }; @@ -81,6 +82,14 @@ DbgSym* ReadDbgSym (FILE* F, ObjData* Obj); long GetDbgSymVal (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 */ @@ -92,5 +101,3 @@ void PrintDbgSymLabels (ObjData* O, FILE* F); - -