This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Crash on windows hosts
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 27 Apr 2005 23:27:21 -0400
- Subject: Re: [patch] Crash on windows hosts
- References: <200504280300.34690.paul@codesourcery.com>
On Thu, Apr 28, 2005 at 03:00:34AM +0100, Paul Brook wrote:
> serial_fdopen can return NULL on non-unix (ie. windows) hosts. This was
> causing a segfault in print_flush.
> The attached patch fixes this.
>
> Ok?
>
> Paul
>
> 2005-04-28 Paul Brook <paul@codesourcery.com>
>
> * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
Hmm, this is probably OK... yeah, should be safe. Give it a day in
case anyone who knows more about Windows than I do wants to object. I
can't think of any reason to do this; we've already called the stdio
flush routines. At worst it'll be cosmetic.
--
Daniel Jacobowitz
CodeSourcery, LLC