This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: debugging java code with multiple source files
- To: Wanner Stefan <stefan dot wanner at ntb dot ch>
- Subject: Re: debugging java code with multiple source files
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 03 Nov 2001 11:18:43 +1300
- CC: gdb-help at sources dot redhat dot com, java at gcc dot gnu dot org
- References: <3BE2C135.1070402@ntb.ch>
Wanner Stefan wrote:
> situation 1: compiled with gcj on a x86
> debugging works fine.
>
> situation 2:
> crosscompiled on a x86 for powerpc with powerpc-linux-gcj
> when i try to open bar.java or bar2.java in gdb i get this error:
>
> #gdb-ppc foo
> ...
> (gdb) list foo.java
> the class foo does not have any method named java
> Hint: try 'foo.java<TAB> or 'foo.java<ESC-?>
> (Note leading single quote.)
I have a similar problem on native powerpc, too, but its not
java-specific. I find you can't put a breakpoint on a file by line
number, until you have put a breakpoint on a symbol in that file.
Otherwise, you get a message similar to the above. Works fine on x86.
regards
Bryce.