public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Terrance__Chen <terrance__chen@sina.com>,
	       "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: can't get information of source code while using gcj + gdb
Date: Tue, 31 Dec 2013 12:55:00 -0000	[thread overview]
Message-ID: <52C2BEB1.6090700@redhat.com> (raw)
In-Reply-To: <20131231072259.GB28591@tc>

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.

      reply	other threads:[~2013-12-31 12:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-31  7:23 Terrance__Chen
2013-12-31 12:55 ` Andrew Haley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52C2BEB1.6090700@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=terrance__chen@sina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).