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

Side by Side Diff: gdb/osabi.c

Issue 10407091: Add NaCl OS ABI to enumeration. (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@nacl-stub
Patch Set: added files to correct folder Created 8 years, 7 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/defs.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2004, 2007-2012 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.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "Irix", 65 "Irix",
66 "Interix", 66 "Interix",
67 "HP/UX ELF", 67 "HP/UX ELF",
68 "HP/UX SOM", 68 "HP/UX SOM",
69 "QNX Neutrino", 69 "QNX Neutrino",
70 "Cygwin", 70 "Cygwin",
71 "AIX", 71 "AIX",
72 "DICOS", 72 "DICOS",
73 "Darwin", 73 "Darwin",
74 "Symbian", 74 "Symbian",
75 "NaCl",
75 76
76 "<invalid>" 77 "<invalid>"
77 }; 78 };
78 79
79 const char * 80 const char *
80 gdbarch_osabi_name (enum gdb_osabi osabi) 81 gdbarch_osabi_name (enum gdb_osabi osabi)
81 { 82 {
82 if (osabi >= GDB_OSABI_UNKNOWN && osabi < GDB_OSABI_INVALID) 83 if (osabi >= GDB_OSABI_UNKNOWN && osabi < GDB_OSABI_INVALID)
83 return gdb_osabi_names[osabi]; 84 return gdb_osabi_names[osabi];
84 85
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 646
646 /* Register the "set osabi" command. */ 647 /* Register the "set osabi" command. */
647 add_setshow_enum_cmd ("osabi", class_support, gdb_osabi_available_names, 648 add_setshow_enum_cmd ("osabi", class_support, gdb_osabi_available_names,
648 &set_osabi_string, 649 &set_osabi_string,
649 _("Set OS ABI of target."), 650 _("Set OS ABI of target."),
650 _("Show OS ABI of target."), 651 _("Show OS ABI of target."),
651 NULL, set_osabi, show_osabi, 652 NULL, set_osabi, show_osabi,
652 &setlist, &showlist); 653 &setlist, &showlist);
653 user_osabi_state = osabi_auto; 654 user_osabi_state = osabi_auto;
654 } 655 }
OLDNEW
« no previous file with comments | « gdb/defs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698