can't get information of source code while using gcj + gdb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello!

I have a problem ,I following this page's instruction :
http://gcc.gnu.org/java/gdb.html
but I failed to get information of source code while debug.
I have a t.java very simple code just something like helloworld.
=================================================================
screen copy
=================================================================
[chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% javac t.java   
[chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% ls
t$1.class  t.class  t$DATA_TYPE.class  test  t.java
[chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% gcj -g --main=t -o t *.class       
[chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% ls
t  t$1.class  t.class  t$DATA_TYPE.class  test  t.java
[chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% gdb t
GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/94/Workspaces/MyEclipse8.6_2/test/src/com/t...done.
(gdb) list
1       /tmp/cct4xGDK.i: No such file or directory.
(gdb)
=================================================================
you see ,when I run list at last ,can't list any thing.
==================================================================





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux