[RFA/PATCH] Add new osabis enums for hppa
Joel Brobecker
brobecker@gnat.com
Wed Nov 27 14:31:00 GMT 2002
This is in preparation for the multi-arching conversion,
2002-11-27 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.
Tested on hppa2.0w-hp-hpux11.00. The change in generic_elf_osabi_sniffer
has been hand-tested on hppa64-hp-hpux11.00 by putting a breakpoint in
this code and then hand-calling gdbarch_lookup_osabi from the debugger,
to make sure that the osabi returned was indeed HPUX_ELF.
I'll apply this week-end or next monday if I don't receive any objection.
--
Joel
-------------- next part --------------
Index: osabi.h
===================================================================
RCS file: /cvs/src/src/gdb/osabi.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 osabi.h
*** osabi.h 11 Sep 2002 22:32:45 -0000 1.5
--- osabi.h 27 Nov 2002 22:15:31 -0000
*************** enum gdb_osabi
*** 42,47 ****
--- 42,49 ----
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,
Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.8
diff -c -3 -p -r1.8 osabi.c
*** osabi.c 12 Sep 2002 00:26:30 -0000 1.8
--- osabi.c 27 Nov 2002 22:15:31 -0000
*************** static const char * const gdb_osabi_name
*** 46,51 ****
--- 46,53 ----
"Irix",
"LynxOS",
"Interix",
+ "HP/UX ELF",
+ "HP/UX SOM",
"ARM EABI v1",
"ARM EABI v2",
*************** generic_elf_osabi_sniffer (bfd *abfd)
*** 403,408 ****
--- 405,414 ----
case ELFOSABI_SOLARIS:
osabi = GDB_OSABI_SOLARIS;
+ break;
+
+ case ELFOSABI_HPUX:
+ osabi = GDB_OSABI_HPUX_ELF;
break;
}
More information about the Gdb-patches
mailing list