[patch] Arm EABI support

Paul Brook paul@codesourcery.com
Mon Dec 13 15:46:00 GMT 2004


The attached patch adds gdb support for the new Arm EABI. This involves a new 
calling convention, slightly different elf header flags, and different 
default floating point format.

Tested with cross to arm-none-elf and arm-none-eabi.
Ok?

2004-12-13  Paul Brook  <paul@codesourcery.com>

 * arm-tdep.c (arm_type_align): New function.
 (arm_push_dummy_call): Use it.  Ensure proper argument alignment.
 (arm_extract_struct_value_address): Remove.
 (arm_use_struct_convention): Rename...
 (arm_return_in_memory): ... To this.  Return nonzero for all small
 aggregates under the EABI.
 (arm_return_value): New function.
 (arm_elf_osabi_sniffer): Add EF_ARM_EABI_VER4:.
 (arm_gdbarch_init): Set different fpu and abi defaults for EABI
 objects.  Use set_gdbarch_return_value instead of obsolete functions.
 (arm_init_abi_eabi_v4): New function.
 (_initialize_arm_tdep): Register GDB_OSABI_ARM_EABI_V4.
 * arm-tdep.h (enum arm_abi_variant): Add.
 (struct gdbarch_tdep): Add abi field.
 * defs.h (enum gdb_osabi): Add GDB_OSABI_ARM_EABI_V4.
 * osabi.c (gdb_osabi_name): Add "ARM EABI v4".
 * testsuite/long_long.exp: Exclude eabi targets from arm FPA float
 format test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.gdb_eabi
Type: text/x-diff
Size: 11071 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20041213/74ec0d6b/attachment.bin>


More information about the Gdb-patches mailing list