Fwd: Fwd: [kaffe] kaffe compilation under cygwin

Dalibor Topic robilad at kaffe.org
Mon Oct 8 07:23:26 PDT 2007


Yavor Georgiev wrote:
> Hi :)
>
> AT least my 'ls' command and hexdump shows that I have some stuff in it :)
>
> $ ls -al /usr/local/classpath/lib/classpath/
> total 2784
> drwxr-xr-x 2 Administrator None       0 Oct  2 12:28 .
> drwxr-xr-x 4 Administrator None       0 Oct  2 12:28 ..
> -rw-r--r-- 1 Administrator None  299960 Oct  2 12:28 libjavaio.a
> -rw-r--r-- 1 Administrator None     768 Oct  2 12:28 libjavaio.la
> -rw-r--r-- 1 Administrator None 1141678 Oct  2 12:28 libjavalang.a
> -rw-r--r-- 1 Administrator None     774 Oct  2 12:28 libjavalang.la
> -rw-r--r-- 1 Administrator None   27978 Oct  2 12:28 libjavalangmanagement.a
> -rw-r--r-- 1 Administrator None     804 Oct  2 12:28 libjavalangmanagement.la
> -rw-r--r-- 1 Administrator None   27494 Oct  2 12:28 libjavalangreflect.a
> -rw-r--r-- 1 Administrator None     795 Oct  2 12:28 libjavalangreflect.la
> -rw-r--r-- 1 Administrator None  446200 Oct  2 12:28 libjavanet.a
> -rw-r--r-- 1 Administrator None     796 Oct  2 12:28 libjavanet.la
> -rw-r--r-- 1 Administrator None  527238 Oct  2 12:28 libjavanio.a
> -rw-r--r-- 1 Administrator None     792 Oct  2 12:28 libjavanio.la
> -rw-r--r-- 1 Administrator None   33994 Oct  2 12:28 libjavautil.a
> -rw-r--r-- 1 Administrator None     774 Oct  2 12:28 libjavautil.la
> 2007/10/8, Dalibor Topic <robilad at kaffe.org>:
>
>   
Ouch. Well, ok. Then it's time to grab gdb, and try to figure out what's 
going wrong, I guess.

KAFFE_DEBUG=gdb kaffe HelloWorldApp

should get gdb fired up. You'll see a SIGSEGV from the stack size 
detection code, which is safe to continue from.
You'll want to read kaffe/kaffevm/external.c, where the native library 
loading code sits, and set breakpoints on the
functions accordingly.

cheers,
dalibor topic




More information about the kaffe mailing list