This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH obv] Remove remaining reference to struct serial::current_timeout
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Tue, 21 Mar 2017 11:40:28 -0400
- Subject: [PATCH obv] Remove remaining reference to struct serial::current_timeout
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=ericsson.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
FYI, I pushed this as obvious.
I get this when trying to build for --host=x68_64-w64-mingw32:
/home/emaisin/src/binutils-gdb/gdb/ser-mingw.c: In function 'void ser_windows_raw(serial*)':
/home/emaisin/src/binutils-gdb/gdb/ser-mingw.c:166:8: error: 'struct serial' has no member named 'current_timeout'
scb->current_timeout = 0;
^~~~~~~~~~~~~~~
It is just a leftover from
9bcbdca808b5f9fec6217d20bd4b48a56008c460
PR remote/21188: Fix remote serial timeout
gdb/ChangeLog:
* ser-mingw.c (ser_windows_raw): Remove reference to
struct serial::current_timeout.
---
gdb/ChangeLog | 5 +++++
gdb/ser-mingw.c | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 298948e4dd..537e5beabc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
+
+ * ser-mingw.c (ser_windows_raw): Remove reference to
+ struct serial::current_timeout.
+
2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
PR tdep/20928
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index 0f2bc3d6e9..3f124582a8 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -163,8 +163,6 @@ ser_windows_raw (struct serial *scb)
state.fAbortOnError = FALSE;
state.ByteSize = 8;
- scb->current_timeout = 0;
-
if (SetCommState (h, &state) == 0)
warning (_("SetCommState failed"));
}
--
2.11.0