diff options
26 files changed, 800 insertions, 767 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e30d4acef3..a6d59c07a9c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,32 @@ +2016-03-15 Doug Evans <dje@google.com> + + * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for + TYPE_CODE_FLAGS instead of "field_type", for consistency. + * features/i386/amd64-avx-linux.c: Regenerate. + * features/i386/amd64-avx.c: Regenerate. + * features/i386/amd64-avx512-linux.c: Regenerate. + * features/i386/amd64-avx512.c: Regenerate. + * features/i386/amd64-linux.c: Regenerate. + * features/i386/amd64-mpx-linux.c: Regenerate. + * features/i386/amd64-mpx.c: Regenerate. + * features/i386/amd64.c: Regenerate. + * features/i386/i386-avx-linux.c: Regenerate. + * features/i386/i386-avx.c: Regenerate. + * features/i386/i386-avx512-linux.c: Regenerate. + * features/i386/i386-avx512.c: Regenerate. + * features/i386/i386-linux.c: Regenerate. + * features/i386/i386-mmx-linux.c: Regenerate. + * features/i386/i386-mmx.c: Regenerate. + * features/i386/i386-mpx-linux.c: Regenerate. + * features/i386/i386-mpx.c: Regenerate. + * features/i386/i386.c: Regenerate. + * features/i386/x32-avx-linux.c: Regenerate. + * features/i386/x32-avx.c: Regenerate. + * features/i386/x32-avx512-linux.c: Regenerate. + * features/i386/x32-avx512.c: Regenerate. + * features/i386/x32-linux.c: Regenerate. + * features/i386/x32.c: Regenerate. + 2016-03-15 Pedro Alves <palves@redhat.com> PR gdb/19676 diff --git a/gdb/features/i386/amd64-avx-linux.c b/gdb/features/i386/amd64-avx-linux.c index ec419be610b..9c8f9ebc398 100644 --- a/gdb/features/i386/amd64-avx-linux.c +++ b/gdb/features/i386/amd64-avx-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_amd64_avx_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_amd64_avx_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-avx.c b/gdb/features/i386/amd64-avx.c index 926d3a5b1e9..42bd69ab97c 100644 --- a/gdb/features/i386/amd64-avx.c +++ b/gdb/features/i386/amd64-avx.c @@ -17,24 +17,24 @@ initialize_tdesc_amd64_avx (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_amd64_avx (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-avx512-linux.c b/gdb/features/i386/amd64-avx512-linux.c index 61a547fa4f2..ec3ba61b858 100644 --- a/gdb/features/i386/amd64-avx512-linux.c +++ b/gdb/features/i386/amd64-avx512-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_amd64_avx512_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_amd64_avx512_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-avx512.c b/gdb/features/i386/amd64-avx512.c index c11bcadc318..09b73f4bb77 100644 --- a/gdb/features/i386/amd64-avx512.c +++ b/gdb/features/i386/amd64-avx512.c @@ -17,24 +17,24 @@ initialize_tdesc_amd64_avx512 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_amd64_avx512 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-linux.c b/gdb/features/i386/amd64-linux.c index 8cbf4bf7100..02aeba523d0 100644 --- a/gdb/features/i386/amd64-linux.c +++ b/gdb/features/i386/amd64-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_amd64_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_amd64_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-mpx-linux.c b/gdb/features/i386/amd64-mpx-linux.c index 86a17748d0b..ed5c5a2e4ae 100644 --- a/gdb/features/i386/amd64-mpx-linux.c +++ b/gdb/features/i386/amd64-mpx-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_amd64_mpx_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_amd64_mpx_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64-mpx.c b/gdb/features/i386/amd64-mpx.c index 15ae5f7e2ce..af1c20592fe 100644 --- a/gdb/features/i386/amd64-mpx.c +++ b/gdb/features/i386/amd64-mpx.c @@ -17,24 +17,24 @@ initialize_tdesc_amd64_mpx (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_amd64_mpx (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/amd64.c b/gdb/features/i386/amd64.c index dd26aa97b4a..b875a9b3224 100644 --- a/gdb/features/i386/amd64.c +++ b/gdb/features/i386/amd64.c @@ -17,24 +17,24 @@ initialize_tdesc_amd64 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_amd64 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-avx-linux.c b/gdb/features/i386/i386-avx-linux.c index 312ff2876a7..4a8c6b58b95 100644 --- a/gdb/features/i386/i386-avx-linux.c +++ b/gdb/features/i386/i386-avx-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_i386_avx_linux (void) 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"); @@ -106,21 +106,21 @@ initialize_tdesc_i386_avx_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-avx.c b/gdb/features/i386/i386-avx.c index 908011194fb..1cb0f9e92ad 100644 --- a/gdb/features/i386/i386-avx.c +++ b/gdb/features/i386/i386-avx.c @@ -17,24 +17,24 @@ initialize_tdesc_i386_avx (void) set_tdesc_architecture (result, bfd_scan_arch ("i386")); 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"); @@ -104,21 +104,21 @@ initialize_tdesc_i386_avx (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-avx512-linux.c b/gdb/features/i386/i386-avx512-linux.c index 53926b20272..47a3319a133 100644 --- a/gdb/features/i386/i386-avx512-linux.c +++ b/gdb/features/i386/i386-avx512-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_i386_avx512_linux (void) 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"); @@ -106,21 +106,21 @@ initialize_tdesc_i386_avx512_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-avx512.c b/gdb/features/i386/i386-avx512.c index 2f99499a103..6e8cb553abe 100644 --- a/gdb/features/i386/i386-avx512.c +++ b/gdb/features/i386/i386-avx512.c @@ -17,24 +17,24 @@ initialize_tdesc_i386_avx512 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386")); 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"); @@ -104,21 +104,21 @@ initialize_tdesc_i386_avx512 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-linux.c b/gdb/features/i386/i386-linux.c index dda1705a4fe..42c406b3424 100644 --- a/gdb/features/i386/i386-linux.c +++ b/gdb/features/i386/i386-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_i386_linux (void) 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"); @@ -109,21 +109,21 @@ initialize_tdesc_i386_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-mmx-linux.c b/gdb/features/i386/i386-mmx-linux.c index cc97b6ebb35..e53b55f5a26 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"); diff --git a/gdb/features/i386/i386-mmx.c b/gdb/features/i386/i386-mmx.c index a34e8f8fc1f..74f67edc2d6 100644 --- a/gdb/features/i386/i386-mmx.c +++ b/gdb/features/i386/i386-mmx.c @@ -12,28 +12,29 @@ initialize_tdesc_i386_mmx (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")); 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"); diff --git a/gdb/features/i386/i386-mpx-linux.c b/gdb/features/i386/i386-mpx-linux.c index dbf8789cbf3..33f979a8ec7 100644 --- a/gdb/features/i386/i386-mpx-linux.c +++ b/gdb/features/i386/i386-mpx-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_i386_mpx_linux (void) 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"); @@ -106,21 +106,21 @@ initialize_tdesc_i386_mpx_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386-mpx.c b/gdb/features/i386/i386-mpx.c index 1e04afd942e..28f51ac9105 100644 --- a/gdb/features/i386/i386-mpx.c +++ b/gdb/features/i386/i386-mpx.c @@ -17,24 +17,24 @@ initialize_tdesc_i386_mpx (void) set_tdesc_architecture (result, bfd_scan_arch ("i386")); 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"); @@ -104,21 +104,21 @@ initialize_tdesc_i386_mpx (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/i386.c b/gdb/features/i386/i386.c index b6a0ca744ed..ede73fc60e9 100644 --- a/gdb/features/i386/i386.c +++ b/gdb/features/i386/i386.c @@ -17,24 +17,24 @@ initialize_tdesc_i386 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386")); 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"); @@ -104,21 +104,21 @@ initialize_tdesc_i386 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 32, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 33, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32-avx-linux.c b/gdb/features/i386/x32-avx-linux.c index 1f39610c766..b12c71cff4b 100644 --- a/gdb/features/i386/x32-avx-linux.c +++ b/gdb/features/i386/x32-avx-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_x32_avx_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_x32_avx_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32-avx.c b/gdb/features/i386/x32-avx.c index fb7a12cd8cf..7f62e8f4add 100644 --- a/gdb/features/i386/x32-avx.c +++ b/gdb/features/i386/x32-avx.c @@ -17,24 +17,24 @@ initialize_tdesc_x32_avx (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_x32_avx (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32-avx512-linux.c b/gdb/features/i386/x32-avx512-linux.c index 0f835d4fd9b..7b2ab90fef8 100644 --- a/gdb/features/i386/x32-avx512-linux.c +++ b/gdb/features/i386/x32-avx512-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_x32_avx512_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_x32_avx512_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32-avx512.c b/gdb/features/i386/x32-avx512.c index 23880c1137f..acbfaea0766 100644 --- a/gdb/features/i386/x32-avx512.c +++ b/gdb/features/i386/x32-avx512.c @@ -17,24 +17,24 @@ initialize_tdesc_x32_avx512 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_x32_avx512 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32-linux.c b/gdb/features/i386/x32-linux.c index 387436fdb40..1262688cbed 100644 --- a/gdb/features/i386/x32-linux.c +++ b/gdb/features/i386/x32-linux.c @@ -19,24 +19,24 @@ initialize_tdesc_x32_linux (void) 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -114,21 +114,21 @@ initialize_tdesc_x32_linux (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/features/i386/x32.c b/gdb/features/i386/x32.c index 34e5087f6db..6005d99d3d7 100644 --- a/gdb/features/i386/x32.c +++ b/gdb/features/i386/x32.c @@ -17,24 +17,24 @@ initialize_tdesc_x32 (void) set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32")); 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, "rax", 0, 1, NULL, 64, "int64"); tdesc_create_reg (feature, "rbx", 1, 1, NULL, 64, "int64"); @@ -112,21 +112,21 @@ initialize_tdesc_x32 (void) field_type = tdesc_named_type (feature, "uint128"); tdesc_add_field (type, "uint128", field_type); - field_type = tdesc_create_flags (feature, "i386_mxcsr", 4); - tdesc_add_flag (field_type, 0, "IE"); - tdesc_add_flag (field_type, 1, "DE"); - tdesc_add_flag (field_type, 2, "ZE"); - tdesc_add_flag (field_type, 3, "OE"); - tdesc_add_flag (field_type, 4, "UE"); - tdesc_add_flag (field_type, 5, "PE"); - tdesc_add_flag (field_type, 6, "DAZ"); - tdesc_add_flag (field_type, 7, "IM"); - tdesc_add_flag (field_type, 8, "DM"); - tdesc_add_flag (field_type, 9, "ZM"); - tdesc_add_flag (field_type, 10, "OM"); - tdesc_add_flag (field_type, 11, "UM"); - tdesc_add_flag (field_type, 12, "PM"); - tdesc_add_flag (field_type, 15, "FZ"); + type = tdesc_create_flags (feature, "i386_mxcsr", 4); + tdesc_add_flag (type, 0, "IE"); + tdesc_add_flag (type, 1, "DE"); + tdesc_add_flag (type, 2, "ZE"); + tdesc_add_flag (type, 3, "OE"); + tdesc_add_flag (type, 4, "UE"); + tdesc_add_flag (type, 5, "PE"); + tdesc_add_flag (type, 6, "DAZ"); + tdesc_add_flag (type, 7, "IM"); + tdesc_add_flag (type, 8, "DM"); + tdesc_add_flag (type, 9, "ZM"); + tdesc_add_flag (type, 10, "OM"); + tdesc_add_flag (type, 11, "UM"); + tdesc_add_flag (type, 12, "PM"); + tdesc_add_flag (type, 15, "FZ"); tdesc_create_reg (feature, "xmm0", 40, 1, NULL, 128, "vec128"); tdesc_create_reg (feature, "xmm1", 41, 1, NULL, 128, "vec128"); diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index d6a0f9dccf7..5ba167fc87f 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -1683,9 +1683,11 @@ maint_print_c_tdesc_cmd (char *args, int from_tty) printed_field_type = 1; } - if ((type->kind == TDESC_TYPE_UNION - || type->kind == TDESC_TYPE_STRUCT) - && VEC_length (tdesc_type_field, type->u.u.fields) > 0) + if (((type->kind == TDESC_TYPE_UNION + || type->kind == TDESC_TYPE_STRUCT) + && VEC_length (tdesc_type_field, type->u.u.fields) > 0) + || (type->kind == TDESC_TYPE_FLAGS + && VEC_length (tdesc_type_flag, type->u.f.flags) > 0)) { printf_unfiltered (" struct tdesc_type *type;\n"); printed_desc_type = 1; @@ -1803,14 +1805,14 @@ feature = tdesc_create_feature (result, \"%s\");\n", break; case TDESC_TYPE_FLAGS: printf_unfiltered - (" field_type = tdesc_create_flags (feature, \"%s\", %d);\n", + (" type = tdesc_create_flags (feature, \"%s\", %d);\n", type->name, (int) type->u.f.size); for (ix3 = 0; VEC_iterate (tdesc_type_flag, type->u.f.flags, ix3, flag); ix3++) printf_unfiltered - (" tdesc_add_flag (field_type, %d, \"%s\");\n", + (" tdesc_add_flag (type, %d, \"%s\");\n", flag->start, flag->name); break; default: |