From 3e6f9a212b40c890e87654ad6bbf5768a79d9878 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 11 Aug 2011 17:04:29 +0000 Subject: [PATCH] Accept the number of spans in the INFO line. git-svn-id: svn://svn.cc65.org/cc65/trunk@5151 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/dbginfo/dbginfo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.39.5