Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Side by Side Diff: gdb/serial.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/serial.h ('k') | gdb/sh-linux-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
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
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

OLDNEW
« no previous file with comments | « gdb/serial.h ('k') | gdb/sh-linux-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698