bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: stabs generation


From: Dean Wang
Subject: RE: stabs generation
Date: Thu, 13 Mar 2003 09:51:31 -0800

Nick,

Thanks for your feedback!

The question I posted is two folds:

1. In one area, we use the tool-chain based on eCos and IDT. I believed
there is no problem with gdb. However, the Insight tool complains about
un-supported MEABI (mdebug.meabi32). My understanding was the gcc does not
generate mdebug information anymore, maybe it is related to "as". I haven't
spent time in finding how to plug in "-no-mdebug" in the assember.

2. The stabs were used by a ICE vendor (EPI). Apparently, the N_SO with no
value in it causes the EPI ICE to not able to do source level debugging.
Although
gdb (in some extent Insight) has no problem at all.

Thanks for your comments!

Dean

-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Nick
Clifton
Sent: Thursday, March 13, 2003 9:44 AM
To: Dean Wang
Cc: address@hidden
Subject: Re: stabs generation


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]