From: FERANDELLE Pascal <pascal.ferandelle@fr.thalesgroup.com>
To: gdb@sources.redhat.com
Subject: gcj/gdb in cross env
Date: Wed, 10 May 2006 13:02:00 -0000 [thread overview]
Message-ID: <44619479.C513021D@fr.thalesgroup.com> (raw)
In-Reply-To: <17499.7466.139917.696459@zapata.pink>
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
next parent reply other threads:[~2006-05-10 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <445AFEE1.7203AA30@fr.thalesgroup.com>
[not found] ` <17499.7466.139917.696459@zapata.pink>
2006-05-10 13:02 ` FERANDELLE Pascal [this message]
2006-05-10 13:06 ` Daniel Jacobowitz
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=44619479.C513021D@fr.thalesgroup.com \
--to=pascal.ferandelle@fr.thalesgroup.com \
--cc=gdb@sources.redhat.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