diff options
author | Pierre Muller <muller@ics.u-strasbg.fr> | 2011-02-21 13:40:31 +0000 |
---|---|---|
committer | Pierre Muller <muller@ics.u-strasbg.fr> | 2011-02-21 13:40:31 +0000 |
commit | 0b0b05ff3863e6c52f28c6d1a7ee29d49349eddd (patch) | |
tree | c758074afa3f391186d8034e2f870c49121ea8e1 /gdb | |
parent | 8124578162a4eb352cc0e837b7f62e0297a99b33 (diff) | |
download | gdb-0b0b05ff3863e6c52f28c6d1a7ee29d49349eddd.tar.gz |
* ser-mingw.c (ser_windows_close): Reformat comment to better conform
to GNU coding standards.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/ser-mingw.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ccae2a23c1..94eaa9387c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,8 +1,12 @@ 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> + * ser-mingw.c (ser_windows_close): Reformat comment to better conform + to GNU coding standards. + +2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> + Allow use of mingw native on Windows 95 OS. - * src/gdb/ser-mingw.c (CancelIo): New macro for dynamically loaded - DLL entry. + * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. (ser_windows_close): Only call CancelIo if function exists. (_initialize_ser_windows): Use LoadLirary/GetProcAddress to check for existence of CancelIo function in kernel32 DLL. diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 2c1f0ca6830..928a03bbc20 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -221,10 +221,10 @@ ser_windows_close (struct serial *scb) { struct ser_windows_state *state; - /* Stop any pending selects. On Windows 95 OS, CancelIo function does not - exist. In that case, it can be replaced by a call to CloseHandle, but - this is not necessary here as we do close the Windows handle by calling - close (scb->fd) below. */ + /* Stop any pending selects. On Windows 95 OS, CancelIo function does + not exist. In that case, it can be replaced by a call to CloseHandle, + but this is not necessary here as we do close the Windows handle + by calling close (scb->fd) below. */ if (CancelIo) CancelIo ((HANDLE) _get_osfhandle (scb->fd)); state = scb->state; |