This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: New port: ia64-hp-openvms (1/3) - new osabi
- From: Tristan Gingold <gingold at adacore dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Cc: Rupp Douglas <rupp at adacore dot com>
- Date: Fri, 10 Feb 2012 14:21:05 +0100
- Subject: RFA: New port: ia64-hp-openvms (1/3) - new osabi
- References: <6AD2487F-8409-4F4E-93A6-9DB7FD195E71@adacore.com>
OpenVMS has its own ABI…
Tristan.
2012-02-10 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.
diff --git a/gdb/defs.h b/gdb/defs.h
index a97487a..1075111 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -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 */
};
diff --git a/gdb/osabi.c b/gdb/osabi.c
index aba9842..faffe30 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -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)