aboutsummaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-05-29 09:18:48 +0000
committerPedro Alves <palves@redhat.com>2013-05-29 09:18:48 +0000
commit6ac1c0821eba976e2fc85ebad462297da6044d6e (patch)
treee9c0e3cac44a09f39247ac075439e4dd31183f3b /gdb/features
parentfe59e83d6f638b5ab03e27eddbd7ebbbdad431ec (diff)
downloadgdb-6ac1c0821eba976e2fc85ebad462297da6044d6e.zip
gdb-6ac1c0821eba976e2fc85ebad462297da6044d6e.tar.gz
gdb-6ac1c0821eba976e2fc85ebad462297da6044d6e.tar.bz2
[AArch64] Remove all traces of aarch64-without-fpu.xml.
The aarch64-without-fpu description is unused. Linux requires an FPU, so the AArch64 native port always returns the with-fpu variant: static const struct target_desc * aarch64_linux_read_description (struct target_ops *ops) { initialize_tdesc_aarch64 (); return tdesc_aarch64; } When the target doesn't report a target description at all, we fallback to a register set with an FPU: aarch64_gdbarch_init () ... if (!tdesc_has_registers (tdesc)) tdesc = tdesc_aarch64; This just removes the dead description. Tested by building on x86_64 Fedora 17 with --enable=targets=all. gdb/ 2013-05-29 Pedro Alves <palves@redhat.com> * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c". (_initialize_aarch64_tdep): Don't call initialize_tdesc_aarch64_without_fpu. * features/Makefile (WHICH): Remove reference to aarch64-without-fpu. * features/aarch64-without-fpu.c: Delete file. * regformats/aarch64-without-fpu.dat: Delete file.
Diffstat (limited to 'gdb/features')
-rw-r--r--gdb/features/Makefile2
-rw-r--r--gdb/features/aarch64-without-fpu.c54
-rw-r--r--gdb/features/aarch64-without-fpu.xml13
3 files changed, 1 insertions, 68 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile
index e3a07e7..aee57d2 100644
--- a/gdb/features/Makefile
+++ b/gdb/features/Makefile
@@ -30,7 +30,7 @@
# in the GDB repository. To generate C files:
# make GDB=/path/to/gdb XMLTOC="xml files" cfiles
-WHICH = aarch64 aarch64-without-fpu \
+WHICH = aarch64 \
arm-with-iwmmxt arm-with-vfpv2 arm-with-vfpv3 arm-with-neon \
arm-with-m arm-with-m-fpa-layout arm-with-m-vfp-d16 \
i386/i386 i386/i386-linux \
diff --git a/gdb/features/aarch64-without-fpu.c b/gdb/features/aarch64-without-fpu.c
deleted file mode 100644
index dd1b029..0000000
--- a/gdb/features/aarch64-without-fpu.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
- Original: aarch64-without-fpu.xml */
-
-#include "defs.h"
-#include "osabi.h"
-#include "target-descriptions.h"
-
-struct target_desc *tdesc_aarch64_without_fpu;
-static void
-initialize_tdesc_aarch64_without_fpu (void)
-{
- struct target_desc *result = allocate_target_description ();
- struct tdesc_feature *feature;
-
- set_tdesc_architecture (result, bfd_scan_arch ("aarch64"));
-
- feature = tdesc_create_feature (result, "org.gnu.gdb.aarch64.core");
- tdesc_create_reg (feature, "x0", 0, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x1", 1, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x2", 2, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x3", 3, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x4", 4, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x5", 5, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x6", 6, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x7", 7, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x8", 8, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x9", 9, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x10", 10, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x11", 11, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x12", 12, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x13", 13, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x14", 14, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x15", 15, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x16", 16, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x17", 17, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x18", 18, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x19", 19, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x20", 20, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x21", 21, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x22", 22, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x23", 23, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x24", 24, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x25", 25, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x26", 26, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x27", 27, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x28", 28, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x29", 29, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "x30", 30, 1, NULL, 64, "int");
- tdesc_create_reg (feature, "sp", 31, 1, NULL, 64, "data_ptr");
- tdesc_create_reg (feature, "pc", 32, 1, NULL, 64, "code_ptr");
- tdesc_create_reg (feature, "cpsr", 33, 1, NULL, 32, "int");
-
- tdesc_aarch64_without_fpu = result;
-}
diff --git a/gdb/features/aarch64-without-fpu.xml b/gdb/features/aarch64-without-fpu.xml
deleted file mode 100644
index 33b9145..0000000
--- a/gdb/features/aarch64-without-fpu.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0"?>
-<!-- Copyright (C) 2009-2013 Free Software Foundation, Inc.
- Contributed by ARM Ltd.
-
- Copying and distribution of this file, with or without modification,
- are permitted in any medium without royalty provided the copyright
- notice and this notice are preserved. -->
-
-<!DOCTYPE target SYSTEM "gdb-target.dtd">
-<target>
- <architecture>aarch64</architecture>
- <xi:include href="aarch64-core.xml"/>
-</target>