Stephane Peiry <[EMAIL PROTECTED]> wrote:

> mh ok, I do get the stabs file,  and apparently the reason no objfile gets
> created is that "as" complains with loads of warnings and some errors when
> given the stab file.
I see. Your libc's sprintf seems to be missing the "0x" prefix for the
"%p" format. Can you verfy that with a small test:

$ cat p.c
#include <stdio.h>
int main(void) {
        printf("main %p\n", main);
        return 0;
}

$ cc -Wall p.c && ./a.out
main 0x8048400

I see two ways to work around that:

1) have a test for above case and double the lines in jit_debug.c that
use %p

#ifdef PARROT_LIBC_SPRINTF_P_IS_OK
    ... %p
else
    ... 0x%p
#endif

(a define for a specific $arch is fine in the first place)

2) use Parrot_sprintf and friends.

As this whole stuff is system dependend anyway I'd use 1) for now.

> .stabs "set.pasm",100,0,0,0
> .stabs "jit_func:F(0,1)",36,0,1,267f10

# line 2 - last item ought to be 0x267f10

leo

Reply via email to