This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Ctrl-C interrupt problem.
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: Ctrl-C interrupt problem.
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Thu, 16 Nov 2000 07:10:03 +0000
- CC: gdb at sources dot redhat dot com, "Ecos-List (E-mail)" <ecos-discuss at sourceware dot cygnus dot com>, dmoseley at cygnus dot com
- Organization: Red Hat Canada Ltd. - Toronto
- References: <B1F6452C89AFD411AE0800A0CC734C23015020@EMAIL1>
Fabrice Gautier wrote:
>
> [eCos and RedBoot guys, I think this may concern you
> its about a ctrl-C problem which only happen when debugging via ethernet.
> full story in the gdb list archives ]
>
> I Got it!
> Well, i hope....
>
> And it make sens why it only happens with TCP...
>
> The problem is that when gdb send the continue packet to the target, it wait
> for the target to send the '+' Ack. During this time the SIGINT handler is
> not set.
>
> My guess is that RedBoot intedn to send it BUT (tata) the ethernet driver
> just wait to have a full packet before really sending! So this happen when a
> O packet is sent.
>
> So i guess the only thing needed in RedBoot is to add a "flush" somewhere.
> I'm not sure at what level, but i'll look at it tomorrow if nobody does it
> before.
>
Fabrice, if this is true (and it is a very plausible explanation), you have
caught a very nasty bug that was going to bother many people.
For instance, the GUI presently (with the new sources you got from cvs) is
kept active while the target is running, but not while waiting for an ACK!
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9