From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23326 invoked by alias); 12 Apr 2006 21:54:34 -0000 Received: (qmail 23315 invoked by uid 22791); 12 Apr 2006 21:54:33 -0000 X-Spam-Check-By: sourceware.org Received: from cenn.mc.mpls.visi.com (HELO cenn.mc.mpls.visi.com) (208.42.156.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Apr 2006 21:54:32 +0000 Received: from rivatek.dnsalias.net (rrcs-67-52-40-201.west.biz.rr.com [67.52.40.201]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id F1C0E8122 for ; Wed, 12 Apr 2006 16:54:29 -0500 (CDT) Received: by rivatek.dnsalias.net (Postfix, from userid 1000) id 74E64540D8; Wed, 12 Apr 2006 16:54:29 -0500 (CDT) To: ecos-discuss@ecos.sourceware.org From: Grant Edwards In-Reply-To: <20060412202041.GB3659@lunn.ch> References: <81C69D96BDD30640952C7A404004AA2543A5A5@ultsol01.tewks.ultsol.local> <20060412202041.GB3659@lunn.ch> Date: Wed, 12 Apr 2006 21:54:00 -0000 Message-Id: <20060412215429.74E64540D8@rivatek.dnsalias.net> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Trying to Debug Ecos using GDB X-SW-Source: 2006-04/txt/msg00156.txt.bz2 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