This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: GDB Source Listing
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] GDB Source Listing
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 12 Jun 2001 19:35:10 +0100
- Cc: 'eCos Discussion' <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <000901c0f36d$67e61290$090110ac@BURN>
"Trenton D. Adams" wrote:
>
> But I've never had this problem with GDB before! I used GDB a fair bit
> while in school, and it always displayed my source code perfectly. Is
> it just happening with the GDB compiled for each embedded system?
It's because eCos comes with a default main() that's used if the user
doesn't supply their own. GDB gets confused and when the user does supply
their own, it can still display the default one.
You can work around it by editting
language/c/libc/startup/current/src/main.cxx and renaming the main function
there to something else.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/