This is the mail archive of the gdb-patches@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: [RFC] win32-nat.c 'set new-console' and interruption


On Mon, Jun 23, 2008 at 03:41:26PM +0100, Pedro Alves wrote:
>Another option is to use SuspendThread on all threads to stop the
>process, which is what I believe Visual Studio uses.  gdbserver has
>that implemented for systems that don't have DebugBreakProcess.

It may be ok in Windows XP and beyond (I haven't checked) but I don't
believe you can reliably use SuspendThread otherwise.  If you suspend a
thread at the wrong point you can cause problems.

cgf


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