Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gcj/gdb in cross env
       [not found] ` <17499.7466.139917.696459@zapata.pink>
@ 2006-05-10 13:02   ` FERANDELLE Pascal
  2006-05-10 13:06     ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: FERANDELLE Pascal @ 2006-05-10 13:02 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcj/gdb in cross env
  2006-05-10 13:02   ` gcj/gdb in cross env FERANDELLE Pascal
@ 2006-05-10 13:06     ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-05-10 13:06 UTC (permalink / raw)
  To: FERANDELLE Pascal; +Cc: gdb

On Wed, May 10, 2006 at 09:21:29AM +0200, FERANDELLE Pascal wrote:
> 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]

I have not seen this.  Does readelf -wi complain about the file also?

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-10 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <445AFEE1.7203AA30@fr.thalesgroup.com>
     [not found] ` <17499.7466.139917.696459@zapata.pink>
2006-05-10 13:02   ` gcj/gdb in cross env FERANDELLE Pascal
2006-05-10 13:06     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox