This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Trying to Debug Ecos using GDB
In gmane.os.ecos.general, you wrote:
> On Wed, Apr 12, 2006 at 04:23:48PM -0400, Fahd Abidi wrote:
>> Thank you very much for that tip. I used an example hello world
>> application and linked it to ecos and have an executable image that can
>> be opened with GDB.
>>
>> But now it seems like the executable image only has the symbols built in
>> for my hello.c program and no other kernel source files are present. How
>> can I build the application + library so that debug information for the
>> entire kernel is also present?
>
> Why would you want to do that?
>
> eCos is designed for embedded systems where memory is short.
The presence or absense of debug info in the ELF file has no
impact on the footprint of the image. I used to enable
debug symbols for kernel files when I was troubleshooting
eCos internal stuff, and it didn't require any more memory.
> So linking to the application leaves out everything that is
> not used.
True, but his problem is that he wants debug info for the stuff
that is used.
--
Grant Edwards grante Yow! It's so OBVIOUS!!
at
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss