[kaffe] Using Kaffe with remote debugging via Eclipse
robilad at kaffe.org
Wed Aug 18 10:49:35 PDT 2004
Woloszynski, Charles wrote:
> I am looking to use Kaffe as the target VM for an embedded system. We
> would like to use Eclipse as the development IDE. Has anyone worked on
> supporting remote debugging (JPDA) under kaffe? I saw some old posts
> that this was partly done. Can anyone comment on its status?
unfortunately, there is no JDPA implementation for Kaffe available. I've
CC:ed Derek L Davies, who did some work on JPDA support in 2000, maybe
he can comment on the status of his work, and point you to unmerged patches.
An interesting way to provide a general debugger support for free
platforms, would be to take the gdb MI bindings  in eclipse's CDT
code , and use them to write a Kaffe-specific mapping of JDWP
commands to gdb MI commands to inspect the running code. On top of that.
you'd need to write an implementation of JDWP, but that shouldn;t be
that hard, if you can use code from ,, or .
The ideas behind using a runtime-specific gdb <-> JDWP mapping are that
a) all other parts of the JPDA can be runtime agnostic
b) gdb is available on and for most platforms
c) gdb allows remote debugging for embedded devices
d) JDWP commands may be able to be translated into gdb MI by looking at
developers/gdbinit for kaffe, for example
e) native and java code could both be debugged through gdb MI
f) kaffe already can emit debug info for gdb for some jits (xdebugging)
g) in future, when gcj's bc abi stabilizes, and we can use gcj-ed
libraries, one would be able to debug both kaffe's code and gcj'ed code
through the same interface: gdb MI.
but it takes a volunteer to prove them in practice. :)
If you take a look at
approach would mean that we replace the native JVMDI bit with something
that talks to gcb directly.
Other free runtimes have some rudementary debugger support:
Electrical Fire : , 
Wonka : 
 Shamelessly stolen from Tom Tromey
 http://home.earthlink.net/~jdunrue/josdi/ which seems to have a GPLd
More information about the kaffe