summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-12-02 23:26:30 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-12-02 23:26:30 +0000
commitc99d909392d4b8df25da399b7eb41f9fa0474c8e (patch)
tree64823ecb23006cb2332f570ec81fa49e94747c58 /gdb/osabi.c
parent6bf870e3b1c1f61962879e2e5ede4341170b6e18 (diff)
downloadgdb-c99d909392d4b8df25da399b7eb41f9fa0474c8e.tar.gz
* osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
* osabi.c (gdb_osabi_name): Add strings images for the two new enum values. (generic_elf_osabi_sniffer): Handle HPUX objfiles.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 7caebf3d3c5..06d9c908bcb 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -46,6 +46,8 @@ static const char * const gdb_osabi_names[] =
"Irix",
"LynxOS",
"Interix",
+ "HP/UX ELF",
+ "HP/UX SOM",
"ARM EABI v1",
"ARM EABI v2",
@@ -404,6 +406,10 @@ generic_elf_osabi_sniffer (bfd *abfd)
case ELFOSABI_SOLARIS:
osabi = GDB_OSABI_SOLARIS;
break;
+
+ case ELFOSABI_HPUX:
+ osabi = GDB_OSABI_HPUX_ELF;
+ break;
}
if (osabi == GDB_OSABI_UNKNOWN)