From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11317 invoked by alias); 12 Apr 2006 18:17:20 -0000 Received: (qmail 11308 invoked by uid 22791); 12 Apr 2006 18:17:19 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.datacomm.ch (HELO smtp.datacomm.ch) (212.40.5.52) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Apr 2006 18:17:15 +0000 Received: from [127.0.0.1] (gve-gix-adsl-dynip-138-020.vtx.ch [83.228.138.20]) by smtp.datacomm.ch (8.11.7/8.11.7) with ESMTP id k3CIH4v07887; Wed, 12 Apr 2006 20:17:04 +0200 Message-ID: <443D4453.9030502@snr.ch> Date: Wed, 12 Apr 2006 18:17:00 -0000 From: "oli@snr.ch" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Fahd Abidi CC: ecos-discuss@ecos.sourceware.org References: <81C69D96BDD30640952C7A404004AA2543A59E@ultsol01.tewks.ultsol.local> In-Reply-To: <81C69D96BDD30640952C7A404004AA2543A59E@ultsol01.tewks.ultsol.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0615-1, 11.04.2006), Outbound message X-Antivirus-Status: Clean 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/msg00147.txt.bz2 For me it works like this: cygwin> arm-elf-gdb test.elf gdb> target remote IP_OF_BDI2k:2001 The informations are in the .elf file... Oliver Fahd Abidi schrieb: > Hello, > > I am using a BDI2000 JTAG emulator and am trying to debug the ecos > kernel at its startup and low level functions. I am getting stuck and a > very early point In the process, the Kernel Builds fine using the cygwin > based tools I got from ecos.sourceware.org and I have a libtarget.a file > created that has debug symbols in it. However I have been unable to read > the debug symbols from the file into gdb. > > Using objdup -g to display the debug info says that the .o files > included have no recognized debugging info. > > However using objdump-S shows that I do have source code intermixed with > the disassembly so it does find source code and hence must have the > debug info built in. > > Using objcopy to strip the debug symbols takes the 16mb libtarget.a file > to 1.7mb so I am convinced the debug symbols are in the file. > > If I try and open libtarget.a with GDB6.3&4 I get an error saying "error > not in executable format". > > I am a newbie to ecos so maybe I am not clear on how to get to opening > and viewing the kernel and its code in GDB. Any tips and assistance > would be greatly appreciated. > > Fahd > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss