[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] debug info broken
From: |
foobar |
Subject: |
Re: [Tinycc-devel] debug info broken |
Date: |
Mon, 18 Dec 2017 21:47:17 +0000 |
On Mon, 18 Dec 2017 20:24:52 +0100 (CET)
Michael Matz <address@hidden> wrote:
> > I've built 0.9.27 for x86_64 and tried a see if debugging works, but:
> >
> > $ cat true.c
> > int main() { return 0; }
> >
> > $ tcc true.c -g -o true
>
> Above works for me (with 0.9.27 release and others). The .stabs debug
> info of the executable says:
>
> % objdump -g true
> true.c:
> <undefined> main ()
> { /* 0x4002c0 */
> /* file /matz/git/tinycc/true.c line 1 addr 0x4002c0 */
> /* file /matz/git/tinycc/true.c line 1 addr 0x4002cb */
> } /* 0x4002d2 */
>
true.c:
<undefined> main ()
{ /* 0x0 */
/* file true.c line 1 addr 0x0 */
/* file true.c line 1 addr 0xb */
} /* 0x12 */
maybe it's because i use musl libc ?
thanks for your reply.