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

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top