aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/arc-arcompact.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/features/arc-arcompact.c')
-rw-r--r--gdb/features/arc-arcompact.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/features/arc-arcompact.c b/gdb/features/arc-arcompact.c
index a527cc2..ea84a40 100644
--- a/gdb/features/arc-arcompact.c
+++ b/gdb/features/arc-arcompact.c
@@ -10,12 +10,10 @@ static void
initialize_tdesc_arc_arcompact (void)
{
struct target_desc *result = allocate_target_description ();
- struct tdesc_feature *feature;
- struct tdesc_type *field_type;
- struct tdesc_type *type;
-
set_tdesc_architecture (result, bfd_scan_arch ("ARC700"));
+ struct tdesc_feature *feature;
+
feature = tdesc_create_feature (result, "org.gnu.gdb.arc.core.arcompact");
tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "int");
tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "int");
@@ -53,6 +51,8 @@ initialize_tdesc_arc_arcompact (void)
tdesc_create_reg (feature, "pcl", 33, 1, "", 32, "code_ptr");
feature = tdesc_create_feature (result, "org.gnu.gdb.arc.aux-minimal");
+ struct tdesc_type *field_type;
+ struct tdesc_type *type;
type = tdesc_create_flags (feature, "status32_type", 4);
tdesc_add_flag (type, 0, "H");
tdesc_add_bitfield (type, "E", 1, 2);