Skip to contentSkip to conversation

how to get dwarf-1 debugging in crossGcc compilation

DISCUSSION Nick Ng 1 participant 1 message Feb 28, 2003

lore
Share & tools
lore

Nick Ng

author
#0 lore raw
Quoted 4 lines
Quoted 2 lines

I have built a cross GCC compiler (based on gcc 2.95.3) for my PowerPc embedded project. This tool chain successfully output an executable ELF

file

Quoted 1 line

which can be ran on my target board.

But when I tried to load this elf file >into my SingleStep SDS 7.5 debugger, the loading has failed. The reason is

Quoted 1 line

SDS debugger only support dwarf-1 version and my elf file contains debug

information which is disliked by her parser "fromelf.exe".

Quoted 1 line

I tried to use all sort of compilation flags like "-gdwarf", "-gdwarf-1"

and

Quoted 1 line

"-gdwarf-2" so as to produce an elf with "dwarf-1" debug information in it.

But all of

Quoted 1 line

these trials had failed. I actually dump the elf, via fromelf, file out to

see if dwarf

Quoted 1 line

information has been included but none is found! Can anyone help me on the

following questions:

Does A) Is >dwarf-1 format supported in CrossGcc for MPC target??
B) if yes, what compilation flag >should I use in my makefile. (I am using -g in the make)?

Quoted 4 lines

Thanks in advance.
p.s. gcc -v on my host computer display this version info.
Reading specs from /usr/local/lib/gcc-lib/powerpc-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)"

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/