From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9391 invoked by alias); 12 Apr 2006 20:18:08 -0000 Received: (qmail 9092 invoked by uid 22791); 12 Apr 2006 20:18:05 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO sccrmhc13.comcast.net) (63.240.77.83) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Apr 2006 20:17:59 +0000 Received: from ultsol.com (c-24-147-245-185.hsd1.ma.comcast.net[24.147.245.185]) by comcast.net (sccrmhc13) with ESMTP id <200604122017470130026u4be>; Wed, 12 Apr 2006 20:17:47 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Apr 2006 20:18:00 -0000 Message-ID: <81C69D96BDD30640952C7A404004AA2543A5A5@ultsol01.tewks.ultsol.local> From: "Fahd Abidi" To: "Andrew Lunn" Cc: 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/msg00150.txt.bz2 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? The resulting executable is only 2mb in size, the library with symbols was 17mb, so obviously during the linking process all the debug symbols got removed from the ecos kernel. Thanks, Fahd =20 -----Original Message----- From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Andrew Lunn Sent: Wednesday, April 12, 2006 3:00 PM To: Fahd Abidi Cc: ecos-discuss@ecos.sourceware.org Subject: Re: [ECOS] Trying to Debug Ecos using GDB On Wed, Apr 12, 2006 at 01:39:24PM -0400, Fahd Abidi wrote: > Hello, >=20 > I am using a BDI2000 JTAG emulator and am trying to debug the ecos=20 > kernel at its startup and low level functions. I am getting stuck and=20 > a very early point In the process, the Kernel Builds fine using the=20 > cygwin based tools I got from ecos.sourceware.org and I have a=20 > libtarget.a file created that has debug symbols in it. However I have=20 > been unable to read the debug symbols from the file into gdb. >=20 > Using objdup -g to display the debug info says that the .o files=20 > included have no recognized debugging info. >=20 > However using objdump-S shows that I do have source code intermixed=20 > with the disassembly so it does find source code and hence must have=20 > the debug info built in. >=20 > Using objcopy to strip the debug symbols takes the 16mb libtarget.a=20 > file to 1.7mb so I am convinced the debug symbols are in the file. >=20 > If I try and open libtarget.a with GDB6.3&4 I get an error saying=20 > "error not in executable format". This is correct. libtarget.a is a library, not an application.=20 You need to link the library to your application to form a complete system image. Then boot that image. Andrew --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss