[ECOS] I can't see vectors.s in the insight5.0?

Jonathan Larmour jlarmour@redhat.com
Tue May 21 08:09:00 GMT 2002


peter_ku wrote:
> 
> Hello,
> 
> I use insight5.0 + redboot to debug my simple program.  my target is E7T.
> My simple file is start.c
> and I build the ecos by default. (I didn't change any setting)
> gcc -g -IBASE/ecos_install/include/ start.c -LBASE/ecos_install/lib/ -Ttarget.ld -nostdlib
> 
> to generate a a.out
> 
> arm-elf-gdb a.out     to launch the insight
> 
> but when I start to use insight to debug, I found the program stop at main( ) (in main.cxx) , and main( ) call cyg_usr_start( )
> then I try to set the breakpoint at reset_vector or start (in vectors.s) , I can't see the complete source code of vectors.s and I can't run vectors.s step by step.

It's an assembly file. This is difficult. But you can sometimes get it to
work by recompiling vectors.S (see the eCos build output for how) and add
-Wa,--gstabs to the command line.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "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



More information about the Ecos-discuss mailing list