aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/i386/i386-mmx-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/features/i386/i386-mmx-linux.c')
-rw-r--r--gdb/features/i386/i386-mmx-linux.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/gdb/features/i386/i386-mmx-linux.c b/gdb/features/i386/i386-mmx-linux.c
index cc97b6e..e53b55f 100644
--- a/gdb/features/i386/i386-mmx-linux.c
+++ b/gdb/features/i386/i386-mmx-linux.c
@@ -12,30 +12,31 @@ initialize_tdesc_i386_mmx_linux (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 ("i386"));
set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux"));
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.core");
- field_type = tdesc_create_flags (feature, "i386_eflags", 4);
- tdesc_add_flag (field_type, 0, "CF");
- tdesc_add_flag (field_type, 1, "");
- tdesc_add_flag (field_type, 2, "PF");
- tdesc_add_flag (field_type, 4, "AF");
- tdesc_add_flag (field_type, 6, "ZF");
- tdesc_add_flag (field_type, 7, "SF");
- tdesc_add_flag (field_type, 8, "TF");
- tdesc_add_flag (field_type, 9, "IF");
- tdesc_add_flag (field_type, 10, "DF");
- tdesc_add_flag (field_type, 11, "OF");
- tdesc_add_flag (field_type, 14, "NT");
- tdesc_add_flag (field_type, 16, "RF");
- tdesc_add_flag (field_type, 17, "VM");
- tdesc_add_flag (field_type, 18, "AC");
- tdesc_add_flag (field_type, 19, "VIF");
- tdesc_add_flag (field_type, 20, "VIP");
- tdesc_add_flag (field_type, 21, "ID");
+ type = tdesc_create_flags (feature, "i386_eflags", 4);
+ tdesc_add_flag (type, 0, "CF");
+ tdesc_add_flag (type, 1, "");
+ tdesc_add_flag (type, 2, "PF");
+ tdesc_add_flag (type, 4, "AF");
+ tdesc_add_flag (type, 6, "ZF");
+ tdesc_add_flag (type, 7, "SF");
+ tdesc_add_flag (type, 8, "TF");
+ tdesc_add_flag (type, 9, "IF");
+ tdesc_add_flag (type, 10, "DF");
+ tdesc_add_flag (type, 11, "OF");
+ tdesc_add_flag (type, 14, "NT");
+ tdesc_add_flag (type, 16, "RF");
+ tdesc_add_flag (type, 17, "VM");
+ tdesc_add_flag (type, 18, "AC");
+ tdesc_add_flag (type, 19, "VIF");
+ tdesc_add_flag (type, 20, "VIP");
+ tdesc_add_flag (type, 21, "ID");
tdesc_create_reg (feature, "eax", 0, 1, NULL, 32, "int32");
tdesc_create_reg (feature, "ecx", 1, 1, NULL, 32, "int32");