Problem Listing Java Source using GCJ and GDB

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top