Output information about the item counts in the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5136 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-08 17:15:18 +00:00
parent 57e39e0e04
commit 07cd427110
11 changed files with 88 additions and 9 deletions

View File

@@ -102,6 +102,19 @@ void CreateDbgFile (void)
/* Output version information */
fprintf (F, "version\tmajor=2,minor=0\n");
/* Output a line with the item numbers so the debug info module is able
* to preallocate the required memory.
*/
fprintf (
F,
"info\tlib=%u,mod=%u,seg=%u,file=%u,scope=%u\n",
LibraryCount (),
ObjDataCount (),
SegmentCount (),
FileInfoCount (),
ScopeCount ()
);
/* Assign the ids to the items */
AssignIds ();