Output spans to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5152 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-11 17:11:45 +00:00
parent 3e6f9a212b
commit b4967d359f
4 changed files with 72 additions and 10 deletions

View File

@@ -47,6 +47,7 @@
#include "lineinfo.h"
#include "scopes.h"
#include "segments.h"
#include "span.h"
@@ -102,17 +103,18 @@ 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
/* 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",
"info\tlib=%u,file=%u,mod=%u,scope=%u,seg=%u,span=%u\n",
FileInfoCount (),
LibraryCount (),
ObjDataCount (),
ScopeCount (),
SegmentCount (),
FileInfoCount (),
ScopeCount ()
SpanCount ()
);
/* Assign the ids to the items */
@@ -133,6 +135,9 @@ void CreateDbgFile (void)
/* Output line info */
PrintDbgLineInfo (F);
/* Output spans */
PrintDbgSpans (F);
/* Output symbols */
PrintDbgSyms (F);