]> git.sur5r.net Git - cc65/blobdiff - src/ld65/dbgsyms.h
Improved code generation
[cc65] / src / ld65 / dbgsyms.h
index 6964ca1ba57dd0587a8229eac5f76fddea03af3b..6a3e5cfa65cb0165b3650c15eef443de1e1226c9 100644 (file)
@@ -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);
 
 
 
-
-