This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: GCC version
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Bob Koninckx <bob dot koninckx at mech dot kuleuven dot ac dot be>
- Cc: David Brennan <eCos at brennanhome dot com>,eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 13 Jun 2003 06:51:17 +0100
- Subject: Re: [ECOS] GCC version
- References: <1055130038.2938.5.camel@clifford.brennanhome.cxm> <1055140827.905.6.camel@pc-002>
Bob Koninckx wrote:
On Mon, 2003-06-09 at 05:40, David Brennan wrote:
I have just started testing my ported application. I found an annoying
little "feature" in gcc 3.2.1, or insight 5.3. Inlined functions do not
report to the call stack.
[snip]
Go for the compiler. Prevent it from inlining functions and gdb will
show them in the call stack. I am not sure with gcc, but it could be as
simple as turning off the optimizer.
It is. Remove -O2 and you're done.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss