This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gdb on mingw with current gcj?
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java at gcc dot gnu dot org
- Cc: per at bothner dot com
- Date: Fri, 19 Mar 2004 12:44:55 +0530
- Subject: Re: gdb on mingw with current gcj?
- References: <4059F1D6.1040107@bothner.com>
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/