From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26467 invoked by alias); 31 Dec 2013 07:23:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26457 invoked by uid 89); 31 Dec 2013 07:23:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.sina.com.cn Received: from mail3-166.sinamail.sina.com.cn (HELO smtp.sina.com.cn) (202.108.3.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Dec 2013 07:23:03 +0000 Received: from irja2-156.sinamail.sina.com.cn (unknown [10.69.2.156]) by smtp.sina.com.cn (SINAMAIL) with ESMTP id 427995E8FBC for ; Tue, 31 Dec 2013 15:22:58 +0800 (CST) X-Auth-ID: terrance__chen Received: from unknown (HELO localhost) ([121.33.253.70]) by irja2-156.sinamail.sina.com.cn with ESMTP; 31 Dec 2013 15:22:58 +0800 Date: Tue, 31 Dec 2013 07:23:00 -0000 From: Terrance__Chen To: "gcc-help@gcc.gnu.org" ; Subject: can't get information of source code while using gcj + gdb Message-ID: <20131231072259.GB28591@tc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-12/txt/msg00150.txt.bz2 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 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. ==================================================================