This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: how to dbg a java pgm ?
- To: bciceron at rsn dot hp dot com
- Subject: Re: how to dbg a java pgm ?
- From: Tom Tromey <tromey at redhat dot com>
- Date: 20 Jun 2001 10:49:49 -0600
- Cc: <insight at sources dot redhat dot com>
- References: <Pine.LNX.4.33.0106191700220.7548-100000@alaska.rsn.hp.com>
- Reply-To: tromey at redhat dot com
>>>>> "ben" == bciceron <bciceron@rsn.hp.com> writes:
ben> i cannot figure out how to dbg java program :-(
ben> i force the language with :
ben> set language java
ben> but
ben> using the .class is not the right format obviously.
This is only useful if you are debugging a Java program compiled with
`gcj' to native code. You can't debug interpreted Java programs with
this. In fact you can't debug interpreted Java programs with gdb at
all. (You can debug the interpreter, but that is different.)
Once upon a time there was code around to let gdb use JVMDI to debug
interpreted Java programs. However, due to a logistical snafu, this
code isn't in the main line of gdb and I'm told it would be a lot of
work to reintegrate it.
Tom