[PATCH] Fix PR threads/1048

Eli Zaretskii eliz@elta.co.il
Fri Dec 26 10:01:00 GMT 2003

> Date: Thu, 25 Dec 2003 23:28:58 -0500
> From: Christopher Faylor <cgf@redhat.com>
> The Windows debugging API is nice in some ways but it is pretty brain
> dead here.  If the main thread has exited, there is never any create
> process notification when attaching to a process.  That confuses all
> sorts of things.
> "Fixed" by liberally sprinkling NULL checks in places where there really
> shouldn't be a NULL and creating a dummy create process event.

Just my $0.02: I wonder whether a comment explaining the need for
those work-arounds is in order.  Someone in the (distant) future might
become puzzled by the dummy event or the NULL checks.

More information about the Gdb-patches mailing list