J
John
I'm getting an error when I try to list the source of a Java program
while debugging with gdb. I compiled the program with gcj.
I've pasted the program and the steps I take to compile it. I'm using
gcj version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
$ javac HelloWorld.java
$ gcj --main=HelloWorld -o HelloWorld HelloWorld.class
$ gdb HelloWorld
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) l
1 /tmp/cc5usckk.i: No such file or directory.
in /tmp/cc5usckk.i
(gdb)
while debugging with gdb. I compiled the program with gcj.
I've pasted the program and the steps I take to compile it. I'm using
gcj version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
$ javac HelloWorld.java
$ gcj --main=HelloWorld -o HelloWorld HelloWorld.class
$ gdb HelloWorld
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) l
1 /tmp/cc5usckk.i: No such file or directory.
in /tmp/cc5usckk.i
(gdb)