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

Andrew Haley
Tue Dec 31 12:55:00 GMT 2013

On 12/31/2013 07:22 AM, Terrance__Chen wrote:
> hello!
> I have a problem ,I following this page's instruction :
> but I failed to get information of source code while debug.
> I have a very simple code just something like helloworld.
> =================================================================
> screen copy
> =================================================================
> [chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% javac   

javac -g

> [chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% ls
> t$1.class  t.class  t$DATA_TYPE.class  test
> [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
> [chentr@tc]/mnt/94/Workspaces/MyEclipse8.6_2/test/src/com% gdb t
> GNU gdb (GDB) Fedora (
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <>
> 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:
> <>...
> 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

Please send the full test case to me.


More information about the Gcc-help mailing list