gdb on mingw with current gcj?

Ranjit Mathew rmathew@hotmail.com
Fri Mar 19 16:03:00 GMT 2004


Per Bothner wrote:
> I'm using Mohan's scripts on thisiscool.com to compile Java to
> MinGW executables, and it basically seems to work. However, I'm
> getting an exception on code that works under GNU/Linux, and it's
> difficult to track it down with only a binary stack trace. Is
 ^^^^^^^^^^^^^^^^^^^^^^^^^
Why's that? Do you not have addr2line and c++filt in your
PATH?
> there a gdb that I can debug such an executable? I tried
> downloading gdb-6.0-20031011.exe, but that doesn't even allow me
> to set a breakpoint using source line numbers on the main Java
> file that I compikled with -g.

My smoke tests with that GDB for Java on Win32 were
fairly successful (I used Mohan's GCJ 3.4 snapshot).
The one odd thing I noticed, and that you might be
facing as well, is that it needs help in setting
up the initial breakpoint/file-to-list.
For example:
 b HelloWorld.java:5
or
 l HelloWorld.java:1
After that, it's smooth sailing.
Chris Johns (cjohns at cybertec dot com dot au) seems to
have provided that - you might want to contact him
directly for more information/insights.
Ranjit.
-- 
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /