* can't get information of source code while using gcj + gdb
@ 2013-12-31 7:23 Terrance__Chen
2013-12-31 12:55 ` Andrew Haley
0 siblings, 1 reply; 2+ messages in thread
From: Terrance__Chen @ 2013-12-31 7:23 UTC (permalink / raw)
To: gcc-help
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.
==================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: can't get information of source code while using gcj + gdb
2013-12-31 7:23 can't get information of source code while using gcj + gdb Terrance__Chen
@ 2013-12-31 12:55 ` Andrew Haley
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2013-12-31 12:55 UTC (permalink / raw)
To: Terrance__Chen, gcc-help
On 12/31/2013 07:22 AM, Terrance__Chen wrote:
> 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
javac -g
> [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.
> ==================================================================
I think that gcj's startup code is generated, then compiled, then
thrown away. Perhaps we need to suppress debug info generation for
it.
Please send the full test case to me.
Andrew.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-31 12:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-31 7:23 can't get information of source code while using gcj + gdb Terrance__Chen
2013-12-31 12:55 ` Andrew Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).