This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] mingw port: Allow use of cvs GDB on Windows 95
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 4 Feb 2011 14:57:16 +0100
- Subject: RE: [RFC] mingw port: Allow use of cvs GDB on Windows 95
- References: <001201cbc46c$5b95b100$12c11300$@muller@ics-cnrs.unistra.fr>
After more debugging on
a more recent windows system,
I now think that the close of the
file descriptor scb->fd in ser_windows_close
that was created using a call
to _open_osfhandle with the HANDLE associated with
the serial port also closes that handle.
If this is correct, it probably means
that the CloseHandle call that I added to
win95_cancelio is not even necessary...
Does anyone know if the fact
that calling close on the return value of _open_osfhandle
also close the real handle used in the call?
The windows online documentation didn't seem really
explicit...
Pierre Muller.