Re: [cc65] New version of debug info available

From: thefox xofeht <thefox1aspekt.fi>
Date: 2011-08-21 10:42:26
On Fri, Aug 19, 2011 at 3:48 PM, Ullrich von Bassewitz <uz@musoftware.de> wrote:
> A new snapshot has been created while I have been writing this, so go ahead,
> have a look at the new version and tell me that you think. Is anything missing
> or would additional API calls be helpful?

I'm trying to figure out if the macro nesting counter is working
incorrectly, or if I'm missing something.

test1.s (I added line numbers so it's easier to read):

001  .code
002  .macro foo
003      nop
004  .endmacro
005  .macro bar
006      lda #123
007      foo
008  .endmacro
009  bar

simple.cfg:

memory {
    PRG: start = $8000, size = $8000, type = ro, fill = yes;
}
segments {
    CODE: load = PRG, type = ro, align = $1000;
}

When compiled (with: cl65 -t none -C simple.cfg -g -Wl
--dbgfile,test1.dbg -o test1.bin test1.s) produces this debug file:

version	major=2,minor=0
info	file=1,lib=0,mod=1,scope=1,seg=6,span=5
mod	id=0,name="test1.o",file=0
seg	id=0,name="CODE",start=0x008000,size=0x0003,addrsize=absolute,type=ro,oname="test1.bin",ooffs=0
seg	id=1,name="RODATA",start=0x000000,size=0x0000,addrsize=absolute,type=rw
seg	id=2,name="BSS",start=0x000000,size=0x0000,addrsize=absolute,type=rw
seg	id=3,name="DATA",start=0x000000,size=0x0000,addrsize=absolute,type=rw
seg	id=4,name="ZEROPAGE",start=0x000000,size=0x0000,addrsize=zeropage,type=rw
seg	id=5,name="NULL",start=0x000000,size=0x0000,addrsize=absolute,type=rw
file	id=0,name="test1.s",size=91,mtime=0x4E50C312,mod=0
line	id=0,file=0,line=3,type=2,count=2,span=0
line	id=1,file=0,line=6,type=2,count=1,span=1
line	id=2,file=0,line=7,type=2,count=2,span=2
line	id=3,file=0,line=9,span=3
span	id=0,seg=0,start=2,size=1
span	id=1,seg=0,start=0,size=2
span	id=2,seg=0,start=2,size=1
span	id=3,seg=0,start=0,size=3
span	id=4,seg=0,start=0,size=3
scope	id=0,name="",mod=0,size=3,span=4

As you can see, there's a normal line info for line 9 (id = 3). Line 6
(id = 1) has a nesting count of 1. Line 7 however has a nesting count
of 2. I'd expect this to be 1 as well.

-thefox
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 21 10:42:35 2011

This archive was generated by hypermail 2.1.8 : 2011-08-21 10:42:39 CEST