]> git.sur5r.net Git - cc65/commitdiff
Accept the number of spans in the INFO line.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Aug 2011 17:04:29 +0000 (17:04 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Aug 2011 17:04:29 +0000 (17:04 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5151 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/dbginfo/dbginfo.c

index db53c526b91f7528e258533d02aa0a4a0d77d459..88212d73ed4a665e1d97ce69bddc272d63c09e28 100644 (file)
@@ -2406,7 +2406,7 @@ static void ParseInfo (InputData* D)
         if (D->Tok != TOK_FILE  && D->Tok != TOK_LIBRARY        &&
             D->Tok != TOK_LINE  && D->Tok != TOK_MODULE         &&
             D->Tok != TOK_SCOPE && D->Tok != TOK_SEGMENT        &&
-            D->Tok != TOK_SYM) {
+            D->Tok != TOK_SPAN  && D->Tok != TOK_SYM) {
 
             /* Try smart error recovery */
             if (D->Tok == TOK_IDENT || TokenIsKeyword (D->Tok)) {
@@ -2460,7 +2460,11 @@ static void ParseInfo (InputData* D)
                CollGrow (&D->Info->SegInfoByName, D->IVal);
                 break;
 
-            case TOK_SYM:
+            case TOK_SPAN:
+                CollGrow (&D->Info->SpanInfoById,  D->IVal);
+                break;
+
+            case TOK_SYM:          
                 CollGrow (&D->Info->SymInfoById,   D->IVal);
                 CollGrow (&D->Info->SymInfoByName, D->IVal);
                CollGrow (&D->Info->SymInfoByVal,  D->IVal);