This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: What is the compiler flag to load the c/c++ source for ICE debug??
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Steven_cheng <05071 at alphanetworks dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Sun, 17 Jul 2005 11:40:23 +0200
- Subject: Re: [ECOS] What is the compiler flag to load the c/c++ source for ICE debug??
- References: <006d01c58864$aff5b5f0$016ffea9@stevencheng>
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