| OLD | NEW |
| 1 /* Generic serial interface routines | 1 /* Generic serial interface routines |
| 2 | 2 |
| 3 Copyright (C) 1992-2002, 2004-2012 Free Software Foundation, Inc. | 3 Copyright (C) 1992-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 <ctype.h> | 21 #include <ctype.h> |
| 22 #include "serial.h" | 22 #include "serial.h" |
| 23 #include "gdb_string.h" | 23 #include <string.h> |
| 24 #include "gdbcmd.h" | 24 #include "gdbcmd.h" |
| 25 #include "cli/cli-utils.h" |
| 25 | 26 |
| 26 extern void _initialize_serial (void); | 27 extern void _initialize_serial (void); |
| 27 | 28 |
| 28 /* Is serial being debugged? */ | 29 /* Is serial being debugged? */ |
| 29 | 30 |
| 30 static int global_serial_debug_p; | 31 static unsigned int global_serial_debug_p; |
| 31 | 32 |
| 32 /* Linked list of serial I/O handlers. */ | 33 /* Linked list of serial I/O handlers. */ |
| 33 | 34 |
| 34 static struct serial_ops *serial_ops_list = NULL; | 35 static struct serial_ops *serial_ops_list = NULL; |
| 35 | 36 |
| 36 /* Pointer to list of scb's. */ | 37 /* Pointer to list of scb's. */ |
| 37 | 38 |
| 38 static struct serial *scb_base; | 39 static struct serial *scb_base; |
| 39 | 40 |
| 40 /* Non-NULL gives filename which contains a recording of the remote session, | 41 /* Non-NULL gives filename which contains a recording of the remote session, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 serial_open (const char *name) | 185 serial_open (const char *name) |
| 185 { | 186 { |
| 186 struct serial *scb; | 187 struct serial *scb; |
| 187 struct serial_ops *ops; | 188 struct serial_ops *ops; |
| 188 const char *open_name = name; | 189 const char *open_name = name; |
| 189 | 190 |
| 190 if (strcmp (name, "pc") == 0) | 191 if (strcmp (name, "pc") == 0) |
| 191 ops = serial_interface_lookup ("pc"); | 192 ops = serial_interface_lookup ("pc"); |
| 192 else if (strncmp (name, "lpt", 3) == 0) | 193 else if (strncmp (name, "lpt", 3) == 0) |
| 193 ops = serial_interface_lookup ("parallel"); | 194 ops = serial_interface_lookup ("parallel"); |
error: old chunk mismatch |
None
| OLD | NEW |