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: 30 Sep 2004 11:29:36 +0100
- Subject: Re: [ECOS] RE: ctrl-c in GDB
- References: <45A1F95BB9D7D84FAB0A1EB4D67EEF96A7FD9E@is01ex01.ittiam.com>
"Vikas K. Prasad" <vikas.prasad@ittiam.com> writes:
> Nick,
>
> We are using a custom board with Excalibur on it.
> The serial Rx interrupt is enabled and is working
> fine. It is tested by typing the cntl-c on the
> HyperTerminal. Redboot prompt etc are absolutely
> fine. Is the ^c on HyperTerminal and via the
> arm-elf-gdb different?
When typing ^c to the RedBoot prompt, it will be picked up by the
polled getc routine -- no interrupts involved. When used in GDB to
stop a running program, it has to be delivered via an interrupt. This
interrupt is enabled in cyg_hal_plf_serial_control(). Maybe something
else needs to be done there to enable the interrupt, or maybe the
interrupt controller is not unmasking it properly. You will have to
take a look at what the UART and interrupt controller registers
contain.
--
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