OLD | NEW |
1 /* Serial interface for local (hardwired) serial ports on Windows systems | 1 /* Serial interface for local (hardwired) serial ports on Windows systems |
2 | 2 |
3 Copyright (C) 2006-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2006-2013 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
19 | 19 |
20 #include "defs.h" | 20 #include "defs.h" |
21 #include "serial.h" | 21 #include "serial.h" |
22 #include "ser-base.h" | 22 #include "ser-base.h" |
23 #include "ser-tcp.h" | 23 #include "ser-tcp.h" |
24 | 24 |
25 #include <windows.h> | 25 #include <windows.h> |
26 #include <conio.h> | 26 #include <conio.h> |
27 | 27 |
28 #include <fcntl.h> | 28 #include <fcntl.h> |
29 #include <unistd.h> | 29 #include <unistd.h> |
30 #include <sys/types.h> | 30 #include <sys/types.h> |
31 | 31 |
32 #include "gdb_assert.h" | 32 #include "gdb_assert.h" |
33 #include "gdb_string.h" | 33 #include <string.h> |
34 | 34 |
35 #include "command.h" | 35 #include "command.h" |
36 | 36 |
37 void _initialize_ser_windows (void); | 37 void _initialize_ser_windows (void); |
38 | 38 |
39 struct ser_windows_state | 39 struct ser_windows_state |
40 { | 40 { |
41 int in_progress; | 41 int in_progress; |
42 OVERLAPPED ov; | 42 OVERLAPPED ov; |
43 DWORD lastCommMask; | 43 DWORD lastCommMask; |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 ops->setbaudrate = ser_base_setbaudrate; | 1340 ops->setbaudrate = ser_base_setbaudrate; |
1341 ops->setstopbits = ser_base_setstopbits; | 1341 ops->setstopbits = ser_base_setstopbits; |
1342 ops->drain_output = ser_base_drain_output; | 1342 ops->drain_output = ser_base_drain_output; |
1343 ops->async = ser_base_async; | 1343 ops->async = ser_base_async; |
1344 ops->read_prim = net_read_prim; | 1344 ops->read_prim = net_read_prim; |
1345 ops->write_prim = net_write_prim; | 1345 ops->write_prim = net_write_prim; |
1346 ops->wait_handle = net_windows_wait_handle; | 1346 ops->wait_handle = net_windows_wait_handle; |
1347 ops->done_wait_handle = net_windows_done_wait_handle; | 1347 ops->done_wait_handle = net_windows_done_wait_handle; |
1348 serial_add_interface (ops); | 1348 serial_add_interface (ops); |
1349 } | 1349 } |
OLD | NEW |