This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HPPA multiarching plan


On Mon, Nov 25, 2002 at 04:48:57PM -0800, Joel Brobecker wrote:

 >   - Add 2 new OSABI enums: HPPA_HPUX and HPPA64_HPUX.
 >     (it seems important to me to keep the OS name in the enum, to
 >     differentiate with HPPA_LINUX for instance)

You should not need the processor name in the OSABI ("embedded ABIs"
are kind of a special case, which is why you see the processor name
in those).  You also should not need the "64" .. I would guess that
would be differentiated based on the object file format (SOM [32] vs.
Elf32 vs. Elf64 -- assuming hppa64 binaries use the Elf64 format; I'm
not sure that they do, please educate me :-).

So, I think you only need GDB_OSABI_HPUX.
Assuming that HPPA64 and HPPA are different ABIs (true?), then they should be identified using separate OSABI designations. That way, the ABI code is independant of the underlying object file format (ELF or SOM or ....).

This is more in line with MIPS with n32, o32, o64 and 64.

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]