[ECOS] GDB Source Listing
Jonathan Larmour
jlarmour@redhat.com
Tue Jun 12 11:35:00 GMT 2001
"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/
More information about the Ecos-discuss
mailing list