[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stabs generation
From: |
Nick Clifton |
Subject: |
Re: stabs generation |
Date: |
13 Mar 2003 17:43:52 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
Hi Dean,
> I am having a question on stabs generation.
Err, why are you uysing stabs with an ELF based toolchain ? Wouldn't
it be better to use DWARF2 ?
> The elf file I generated, (redboot.elf from mipsisa32-elf cross
> compiler in Windows 2000 cygwin) generate the follwoing example for
> source files:
>
> 4238 SO 0 0 00000000 39278
> /ecos-c/dev/ecos/packages/redboot/current/src/flash.c
> 18079 SO 0 0 00000000 165696
> /ecos-c/dev/ecos/packages/io/flash/current/src/flash.c
> 16408 SO 0 0 00000000 401
> /ecos-c/dev/redboot_build/redboot/current/
> 16409 SO 0 0 00000000 155759
> /ecos-c/dev/ecos/packages/redboot/current/src/net/dns.c
> 17060 SOL 0 0 9fc2240c 155759
> /ecos-c/dev/ecos/packages/redboot/current/src/net/dns.c
>
> Is this going to confuse the debugger regarding the source code
> since the SO (N_SO) has no value while some of the include files do?
Probably. :-) What version of the tools are you using ? How did you
configure and build them ? How did you build your test case ? What
happens if you load the program into GDB and attempt to list a
function inside flash.c ?
Cheers
Nick