From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4373 invoked by alias); 17 Jul 2005 09:41:17 -0000 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 Received: (qmail 4358 invoked by uid 22791); 17 Jul 2005 09:41:11 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 17 Jul 2005 09:41:11 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Du5dH-0008AO-00; Sun, 17 Jul 2005 11:40:23 +0200 Date: Sun, 17 Jul 2005 09:41:00 -0000 To: Steven_cheng <05071@alphanetworks.com> Cc: ecos-discuss@sources.redhat.com Message-ID: <20050717094023.GO29363@lunn.ch> Mail-Followup-To: Steven_cheng <05071@alphanetworks.com>, ecos-discuss@sources.redhat.com References: <006d01c58864$aff5b5f0$016ffea9@stevencheng> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006d01c58864$aff5b5f0$016ffea9@stevencheng> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] What is the compiler flag to load the c/c++ source for ICE debug?? X-SW-Source: 2005-07/txt/msg00159.txt.bz2 On Thu, Jul 14, 2005 at 07:10:46PM +0800, Steven_cheng wrote: > Hi All, > > When I load the elf file (redboot.img) with ICE (T32), > I would only see the Assemble code and symbols without C code and CPP code. > It only has the symbols without C/C++ source code. > And I have added the option -g in the Global compiler flags, but it seens > not to work. > > How can I do for displaying the C/C++ code with ICE (T32) ?? > Is the compiler flag correct ?? This is really an issue with the T32 ICE debugger, and has nothing to do with eCos. Try on the T32 ICE mailling lists, if such a thing exists. One thing to note, the .img file is a stripped elf file. ie all the symbol table entries have been removed. So this file is no use for debugging. You need to use the .elf file. 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