From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22039 invoked by alias); 12 Apr 2006 20:45:36 -0000 Received: (qmail 22018 invoked by uid 22791); 12 Apr 2006 20:45:36 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Apr 2006 20:45:34 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FTmDS-0002hK-00; Wed, 12 Apr 2006 22:45:30 +0200 Date: Wed, 12 Apr 2006 20:45:00 -0000 To: Fahd Abidi Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20060412204530.GA10362@lunn.ch> Mail-Followup-To: Fahd Abidi , ecos-discuss@ecos.sourceware.org References: <81C69D96BDD30640952C7A404004AA2543A5A6@ultsol01.tewks.ultsol.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81C69D96BDD30640952C7A404004AA2543A5A6@ultsol01.tewks.ultsol.local> User-Agent: Mutt/1.5.11+cvs20060403 From: Andrew Lunn X-IsSubscribed: yes 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: Re: [ECOS] Trying to Debug Ecos using GDB X-SW-Source: 2006-04/txt/msg00153.txt.bz2 On Wed, Apr 12, 2006 at 04:46:21PM -0400, Fahd Abidi wrote: > I'm trying to create a test case where I will use a BDI2000 JTAG > emulator to debug the ecos kernel, for that I need an image that has all > the symbols built in. I will then strip the executable to create an > image that does not have any debug symbols to load onto the target, that > way I can debug the kernel thru a JTAG probe. The larger image with > debug symbols is used only on the host GDB and the stipped executable > sits on the target. > > Is this possible? Is there any way to tell the linker to leave the debug > symbols in place? After linking with the application to form an image The debug symbols will be in place, but just symbols you need. The debug information for symbols that are not in the image will not be in the image. There is also no need to strip the image before loading it onto the target. Your BDI2000 will be able to parse the elf image and download only what is needed onto the target, ie it won't download the debug information. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss