From: uz Date: Thu, 11 Aug 2011 17:04:29 +0000 (+0000) Subject: Accept the number of spans in the INFO line. X-Git-Tag: V2.13.3~311 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e6f9a212b40c890e87654ad6bbf5768a79d9878;p=cc65 Accept the number of spans in the INFO line. git-svn-id: svn://svn.cc65.org/cc65/trunk@5151 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index db53c526b..88212d73e 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -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);