This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gdb-6.6 mingw port hangs after Ctrl-C


On 22 August 2007 04:13, Eli Zaretskii wrote:

>> Cc: Roland.Puntaier@br-automation.com,  gdb@sourceware.org
>> From: Jim Blandy <jimb@codesourcery.com>
>> Date: Tue, 21 Aug 2007 16:46:58 -0700
>> 
>>>> The issue at hand here is that we need C-c to interrupt the main
>>>> thread as it reads from the remote host.  That could be a pipe, a socket,
>>>> or a serial port. 
>>>> 
>>>> Do you know how one can safely interrupt each of these kinds of reads
>>>> in Windows?
>>> 
>>> What do you mean by ``safely interrupt''?
>> 
>> The main thread is in the midst of a 'read' or 'write' operation.  We
>> want the thread handling the C-c to be able to make the main thread
>> abandon that operation with a suitable indication of why.
> 
> Maybe I'm simply unaware of some subtle issues, but I don't know of
> any situation where this cannot be done safely.  In particular, the
> code I wrote for GNU Make works since the release of Make 3.81, and I
> have yet to see any problems with interrupting a running Make, or hear
> a single complaint or bug report related to C-c.

  I'd be curious to take a look at that, can you point me at the right part of
the sources?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]