]> git.sur5r.net Git - cc65/blobdiff - src/ld65/dbgfile.c
Fixed an error: The amount of fill bytes for a section was declared as an
[cc65] / src / ld65 / dbgfile.c
index 9f2c20e3efd3cd94045941b669c82cb6a0a24495..ace32cb1e6a713ea3900a782ef6801563bbfe6e7 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2003      Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2003-2010, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -64,6 +64,12 @@ void CreateDbgFile (void)
                Error ("Cannot create debug file `%s': %s", DbgFileName, strerror (errno));
     }
 
+    /* Output version information */
+    fprintf (F, "version\tmajor=1,minor=1\n");
+
+    /* Clear the debug sym table (used to detect duplicates) */
+    ClearDbgSymTable ();
+
     /* Output the segment info */
     PrintDbgSegments (F);