X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fser-base.c;h=8c220c720b629beb8589a9015d65aeb5bf3c73d3;hb=09d559e4e07c6f766fafbfddbf9212e9d9e7b777;hp=f0f5b575dfb78dc84da418e954ce165be026b6b8;hpb=a9762ec78a53fbe9209fe1654db42df0cd328d50;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-base.c b/gdb/ser-base.c index f0f5b575df..8c220c720b 100644 --- a/gdb/ser-base.c +++ b/gdb/ser-base.c @@ -1,7 +1,7 @@ /* Generic serial interface functions. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2003, - 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GDB. @@ -279,9 +279,7 @@ do_ser_base_readchar (struct serial *scb, int timeout) if (status <= 0) { if (status == 0) - /* 0 chars means timeout. (We may need to distinguish between EOF - & timeouts someday.) */ - return SERIAL_TIMEOUT; + return SERIAL_EOF; else /* Got an error from read. */ return SERIAL_ERROR;