This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: how to dbg a java pgm ?
bciceron@rsn.hp.com writes:
> i use gdb 5.0 .
> i cannot figure out how to dbg java program :-(
>
> i force the language with :
> set language java
> but
> using the .class is not the right format obviously.
>
> should i use --interpreter=? when i build gdb/insight or at run time when
> i dbg ?
> what it the arg? /usr/java/bin/java or just java ?
Gdb can only debug Java programs that have been compiled to native code
using GCJ (http://gcc.gnu.org/java/). Stu Grossman did at one time
implement support fro debugging code in a JVM using JVMDI but that code
was never merged in.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/