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

Side by Side Diff: gdb/osabi.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/osabi.h ('k') | gdb/osdata.h » ('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 /* OS ABI variant handling for GDB. 1 /* OS ABI variant handling for GDB.
2 2
3 Copyright (C) 2001-2004, 2007-2012 Free Software Foundation, Inc. 3 Copyright (C) 2001-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 21
22 #include "gdb_assert.h" 22 #include "gdb_assert.h"
23 #include "gdb_string.h" 23 #include <string.h>
24 24
25 #include "osabi.h" 25 #include "osabi.h"
26 #include "arch-utils.h" 26 #include "arch-utils.h"
27 #include "gdbcmd.h" 27 #include "gdbcmd.h"
28 #include "command.h" 28 #include "command.h"
29 29
30 #include "elf-bfd.h" 30 #include "elf-bfd.h"
31 31
32 #ifndef GDB_OSABI_DEFAULT 32 #ifndef GDB_OSABI_DEFAULT
33 #define GDB_OSABI_DEFAULT GDB_OSABI_UNKNOWN 33 #define GDB_OSABI_DEFAULT GDB_OSABI_UNKNOWN
(...skipping 22 matching lines...) Expand all
56 "OSF/1", 56 "OSF/1",
57 "GNU/Linux", 57 "GNU/Linux",
58 "FreeBSD a.out", 58 "FreeBSD a.out",
59 "FreeBSD ELF", 59 "FreeBSD ELF",
60 "NetBSD a.out", 60 "NetBSD a.out",
61 "NetBSD ELF", 61 "NetBSD ELF",
62 "OpenBSD ELF", 62 "OpenBSD ELF",
63 "Windows CE", 63 "Windows CE",
64 "DJGPP", 64 "DJGPP",
65 "Irix", 65 "Irix",
66 "Interix",
67 "HP/UX ELF", 66 "HP/UX ELF",
68 "HP/UX SOM", 67 "HP/UX SOM",
69 "QNX Neutrino", 68 "QNX Neutrino",
70 "Cygwin", 69 "Cygwin",
71 "AIX", 70 "AIX",
72 "DICOS", 71 "DICOS",
73 "Darwin", 72 "Darwin",
74 "Symbian", 73 "Symbian",
75 "OpenVMS", 74 "OpenVMS",
75 "LynxOS178",
76 "Newlib",
76 77
77 "<invalid>" 78 "<invalid>"
78 }; 79 };
79 80
80 const char * 81 const char *
81 gdbarch_osabi_name (enum gdb_osabi osabi) 82 gdbarch_osabi_name (enum gdb_osabi osabi)
82 { 83 {
83 if (osabi >= GDB_OSABI_UNKNOWN && osabi < GDB_OSABI_INVALID) 84 if (osabi >= GDB_OSABI_UNKNOWN && osabi < GDB_OSABI_INVALID)
84 return gdb_osabi_names[osabi]; 85 return gdb_osabi_names[osabi];
85 86
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 (*handler->init_osabi) (info, gdbarch); 361 (*handler->init_osabi) (info, gdbarch);
361 return; 362 return;
362 } 363 }
363 } 364 }
364 365
365 warning 366 warning
366 ("A handler for the OS ABI \"%s\" is not built into this configuration\n" 367 ("A handler for the OS ABI \"%s\" is not built into this configuration\n"
367 "of GDB. Attempting to continue with the default %s settings.\n", 368 "of GDB. Attempting to continue with the default %s settings.\n",
368 gdbarch_osabi_name (info.osabi), 369 gdbarch_osabi_name (info.osabi),
369 info.bfd_arch_info->printable_name); 370 info.bfd_arch_info->printable_name);

error: old chunk mismatch

OLDNEW
« no previous file with comments | « gdb/osabi.h ('k') | gdb/osdata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698