This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: debugging java code with multiple source files


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]