This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RE: ctrl-c in GDB
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Vikas K. Prasad" <vikas dot prasad at ittiam dot com>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: 29 Sep 2004 10:33:34 +0100
- Subject: Re: [ECOS] RE: ctrl-c in GDB
- References: <45A1F95BB9D7D84FAB0A1EB4D67EEF96B58DFE@is01ex01.ittiam.com>
"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