This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Fix PR threads/1048
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: Christopher Faylor <cgf at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 26 Dec 2003 11:59:16 +0200
- Subject: Re: [PATCH] Fix PR threads/1048
- References: <20031226042858.GA1851@redhat.com>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> 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.