]> git.sur5r.net Git - cc65/commitdiff
Handle scopes with a label correctly.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Aug 2011 18:47:38 +0000 (18:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Aug 2011 18:47:38 +0000 (18:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5132 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/od65/dump.c

index 0c8e03e24e7cad4befa6abd1f6a91c7e05400c93..bb152923225112c0d2da4eeb29846ecb6f1b56f2 100644 (file)
@@ -846,6 +846,12 @@ void DumpObjScopes (FILE* F, unsigned long Offset)
            printf ("      Size:%20s0x%04lX  (%lu)\n", "", Size, Size);
        }
 
+        /* Label */
+        if (SCOPE_HAS_LABEL (Flags)) {
+            unsigned LabelId = ReadVar (F);
+            printf ("      Label id:%22u\n", LabelId);
+        }
+
         /* Spans */
         SpanCount = ReadVar (F);
         printf ("      Segment spans:\n");
@@ -855,7 +861,7 @@ void DumpObjScopes (FILE* F, unsigned long Offset)
             printf ("        Index:%23u\n", J);
             printf ("          Segment:%19lu\n", ReadVar (F));
             printf ("          Start:%13s0x%06lX\n", "", ReadVar (F));
-            printf ("          Size:%15s0x%06lX\n", "", ReadVar (F));
+            printf ("          Size:%14s0x%06lX\n", "", ReadVar (F));
         }
     }