This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Spurius results for cygwin selftest.exp(was Re: [RFC] fix annoying completion bug on directories)
A Thursday 10 July 2008 22:47:38, Daniel Jacobowitz wrote:
> On Thu, Jul 10, 2008 at 05:17:46PM -0400, Christopher Faylor wrote:
> > Does debugging the process cause an extra thread to be created by
> > Windows, too? I don't remember. I know it creates a thread when you
> > attach to a process but I don't know if it does just in a standard
> > debug when a process started via CreateProcess.
>
> I know one is created when you Control-C, but I'm not sure about when
> you hit a breakpoint.
None is created you hit hit a breakpoint, but one is created with
DebugBreakProcess -- this injects a thread in the debuggee whose sole
job is to hit a breakpoint.
None extra is created when you debug a process started via CreateProcess.
Attaching does create a new thread, and you can actually create a
bunch of them by detaching/attaching from the same process several
times.
--
Pedro Alves