From: Joel Brobecker Date: Mon, 2 Dec 2002 23:26:30 +0000 (+0000) Subject: * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a09a320d6fc865fa15bebf6d492550a70fcc8c89;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 77aa84a6919..b22a8651e41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-12-02 J. Brobecker + + * 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. + 2002-12-02 Andrew Cagney * MAINTAINERS (Java): Global maintainers are responible for Java. 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) diff --git a/gdb/osabi.h b/gdb/osabi.h index 56bb0a11f38..ad2bea109f7 100644 --- a/gdb/osabi.h +++ b/gdb/osabi.h @@ -42,6 +42,8 @@ enum gdb_osabi GDB_OSABI_IRIX, GDB_OSABI_LYNXOS, GDB_OSABI_INTERIX, + GDB_OSABI_HPUX_ELF, + GDB_OSABI_HPUX_SOM, GDB_OSABI_ARM_EABI_V1, GDB_OSABI_ARM_EABI_V2,