From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6625 invoked by alias); 10 May 2006 07:21:37 -0000 Received: (qmail 6616 invoked by uid 22791); 10 May 2006 07:21:36 -0000 X-Spam-Check-By: sourceware.org Received: from thsmsgxrt11p.thalesgroup.com (HELO thsmsgxrt11p.thalesgroup.com) (192.54.144.134) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 May 2006 07:21:34 +0000 Received: from thsmsgirt22p.corp.thales (unknown [10.33.231.6]) by thsmsgxrt11p.thalesgroup.com (Postfix) with ESMTP id EBAA83C11B for ; Wed, 10 May 2006 09:21:30 +0200 (CEST) Received: from [10.33.231.31] (10.33.231.31) by thsmsgirt22p.corp.thales (7.2.055.4) id 44447C95003AACE8 for gdb@sources.redhat.com; Wed, 10 May 2006 09:21:29 +0200 Received: from (10.33.231.1) by via smtp id 5185_9a4a6568_dff5_11da_8d08_001143d32df6; Wed, 10 May 2006 07:21:30 +0000 (UTC) Received: from vpsms001.fr.thav.thales (unknown [10.33.12.35]) by thsmsgirt11p.corp.thales (Postfix) with ESMTP id DD8C63C006 for ; Wed, 10 May 2006 09:21:30 +0200 (CEST) Received: from VPSPMS02.val.fr.thav.thales (128.1.6.82) by vpsms001.fr.thav.thales (NPlex 6.5.026) id 43CFC3200041C840 for gdb@sources.redhat.com; Wed, 10 May 2006 09:21:30 +0200 Received: from ypsnplex.vly.fr.thav.thales ([128.1.121.84]) by VPSPMS02 with InterScan Messaging Security Suite; Wed, 10 May 2006 09:21:30 +0200 Received: from xmdnuspscan.vly.fr.thav.thales (128.1.121.85) by ypsnplex.vly.fr.thav.thales (NPlex 6.5.026) id 445D719D000030FC for gdb@sources.redhat.com; Wed, 10 May 2006 09:21:30 +0200 Received: from xmdnuspscan.vly.fr.thav.thales (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 29F611007A for ; Wed, 10 May 2006 09:21:30 +0200 (CEST) Received: from fr.thalesgroup.com (ypc56439.vly.fr.thav.thales [128.1.88.3]) by xmdnuspscan.vly.fr.thav.thales (Postfix) with ESMTP id 144DE10076 for ; Wed, 10 May 2006 09:21:30 +0200 (CEST) Message-ID: <44619479.C513021D@fr.thalesgroup.com> Date: Wed, 10 May 2006 13:02:00 -0000 From: FERANDELLE Pascal X-Mailer: Mozilla 4.75 [fr] (Windows NT 5.0; U) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: gcj/gdb in cross env References: <445AFEE1.7203AA30@fr.thalesgroup.com> <17499.7466.139917.696459@zapata.pink> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00102.txt.bz2 I build gcc/gcj 4.1.0 in cross env for target powerpc-linux, and did the same for gdb 6.4. As I have a "Segmentation fault" with an HelloWorld program written in Java, and compiled with powerpc-linux-gcj -g, I tried to launch powerpc-linux-gdb on the exec file, but an error occurred : Dwarf Error : wrong version in compilation unit header (is 99, should be 2) [in module HelloWorld] What I did : Host powerpc-linux-gcj -g -o HW HW.java --main=HW --static Target gdbserver host:2345 HW Host powerpc-linux-gdb HW -> Dwarf Error ... under gdb : target remote vmpc:2345 but after, no debug is possible (no symbol table, no stack, etc) When I built gdb 6.4 for target powerpc-linux, I have to configure it with --disable-werror, because without that, the build stopped due to several warnings of "value computed is not used". Thanks for your help. Pascal FERANDELLE