[patch] Crash on windows hosts

Daniel Jacobowitz drow@false.org
Thu Apr 28 03:27:00 GMT 2005


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



More information about the Gdb-patches mailing list