2012-03-05 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 5 Mar 2012 11:33:36 +0000 (11:33 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 5 Mar 2012 11:33:36 +0000 (11:33 +0000)
        * osabi.c (gdb_osabi_names): Add OpenVMS.
        (generic_elf_osabi_sniffer): Likewise.
        * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.

gdb/ChangeLog
gdb/defs.h
gdb/osabi.c

index c67cbdc8f13adedd84a3bb5af8f4f69992c5350c..33f822bdb5600ca0bd4e3b49063903b03a045b5c 100644 (file)
@@ -1,3 +1,9 @@
+2012-03-05  Tristan Gingold  <gingold@adacore.com>
+
+        * osabi.c (gdb_osabi_names): Add OpenVMS.
+        (generic_elf_osabi_sniffer): Likewise.
+        * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
+
 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Removed unused code.
index a97487a480247915bc82bf7542eeffb2a26686f0..1075111242ed41adb6275a54c52f0093886c726f 100644 (file)
@@ -948,6 +948,7 @@ enum gdb_osabi
   GDB_OSABI_DICOS,
   GDB_OSABI_DARWIN,
   GDB_OSABI_SYMBIAN,
+  GDB_OSABI_OPENVMS,
 
   GDB_OSABI_INVALID            /* keep this last */
 };
index aba98427343f1c7f1c0b2d490766fc4a017d4e7a..faffe30b448f7eda9b47f7b2b5f13a72a7883f1a 100644 (file)
@@ -72,6 +72,7 @@ static const char * const gdb_osabi_names[] =
   "DICOS",
   "Darwin",
   "Symbian",
+  "OpenVMS",
 
   "<invalid>"
 };
@@ -549,6 +550,10 @@ generic_elf_osabi_sniffer (bfd *abfd)
                             generic_elf_osabi_sniff_abi_tag_sections,
                             &osabi);
       break;
+
+    case ELFOSABI_OPENVMS:
+      osabi = GDB_OSABI_OPENVMS;
+      break;
     }
 
   if (osabi == GDB_OSABI_UNKNOWN)