This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix ICE in dwarf2out.c
Daniel wrote:
> Just a note, doing so is, or at least should be, pointless.
> Unless your debugger can't get the symbols from the actual executable,
> or something.
We use this info to implement a language feature
(java.lang.Throwable.printStackTrace())
fencer[1036] cat foo.java
public class foo
{
public static void main (String[] args)
{
try
{
String x = null;
System.out.println (x.length());
}
catch (Exception e)
{
e.printStackTrace ();
}
}
}
fencer[1037] gcj -o foo foo.java --main=foo
fencer[1038] ./foo
java.lang.NullPointerException
at 0x08048c98: foo.main(java.lang.String[]) (/horton/green/foo.java:8)
at 0x40168d62: _Jv_CreateJavaVM(void)
(/horton/green/net/i/lib/libgcj.so.2)
at 0x40168e92: JvRunMain (/horton/green/net/i/lib/libgcj.so.2)
at 0x08048c22: main (/tmp/ccEvv0K3main.i:0)
at 0x404cb1eb: __libc_start_main (/lib/libc.so.6)
at 0x08048b41: _start (??:0)