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


> From: "Dave Korn" <dave.korn@artimi.com>
> Cc: <Roland.Puntaier@br-automation.com>,
> 	<gdb@sourceware.org>
> Date: Wed, 22 Aug 2007 11:12:48 +0100
> 
> > 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?

Sure.

job.c:reap_children (search for "GetCurrentThread") is where I record
the thread ID of the main thread.  command.c:fatal_error_signal is
where the main thread ID is used to stop the main thread as soon as we
enter the signal handler.

Let me know if you find any bugs ;-)


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