[ECOS] RE: ctrl-c in GDB

Nick Garnett nickg@ecoscentric.com
Wed Sep 29 09:53:00 GMT 2004


"Vikas K. Prasad" <vikas.prasad@ittiam.com> writes:

> Nick,
> 
> My program has a main, which turns on an LED on the board.
> After that there  is a while(1) loop.  Could  this  be the
> problem that  somehow GDB is not getting the control back?
> 
> NOTE: Putting a breakpoint  at main()  or cyg_user_start()
> did not help.

You may have to put the breakpoint earlier in the startup code, in
some of the HAL initialization routines. Ultimately, you may have to
plant a breakpoint at the start address and single step from there
until you find out where it goes wrong.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list