diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-12-02 23:26:30 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-12-02 23:26:30 +0000 |
commit | a09a320d6fc865fa15bebf6d492550a70fcc8c89 (patch) | |
tree | acdc06a4682297e502c1d9504509ca6a059b932d | |
parent | 5adef1a05f7277db38dea58690aec1abc79adda1 (diff) | |
download | gdb-a09a320d6fc865fa15bebf6d492550a70fcc8c89.zip gdb-a09a320d6fc865fa15bebf6d492550a70fcc8c89.tar.gz gdb-a09a320d6fc865fa15bebf6d492550a70fcc8c89.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/osabi.c | 6 | ||||
-rw-r--r-- | gdb/osabi.h | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 77aa84a..b22a865 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-12-02 J. Brobecker <brobecker@gnat.com> + + * 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 <ac131313@redhat.com> * MAINTAINERS (Java): Global maintainers are responible for Java. diff --git a/gdb/osabi.c b/gdb/osabi.c index 7caebf3..06d9c90 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 56bb0a1..ad2bea1 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, |