diff options
Diffstat (limited to 'gdb/features/s390-linux32.c')
-rw-r--r-- | gdb/features/s390-linux32.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/features/s390-linux32.c b/gdb/features/s390-linux32.c index 01c136c..18b0d0f 100644 --- a/gdb/features/s390-linux32.c +++ b/gdb/features/s390-linux32.c @@ -9,12 +9,12 @@ struct target_desc *tdesc_s390_linux32; static void initialize_tdesc_s390_linux32 (void) { - struct target_desc *result = allocate_target_description (); - set_tdesc_architecture (result, bfd_scan_arch ("s390:31-bit")); + target_desc_up result = allocate_target_description (); + set_tdesc_architecture (result.get (), bfd_scan_arch ("s390:31-bit")); struct tdesc_feature *feature; - feature = tdesc_create_feature (result, "org.gnu.gdb.s390.core"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.s390.core"); tdesc_create_reg (feature, "pswm", 0, 1, "psw", 32, "uint32"); tdesc_create_reg (feature, "pswa", 1, 1, "psw", 32, "uint32"); tdesc_create_reg (feature, "r0", 2, 1, "general", 32, "uint32"); @@ -34,7 +34,7 @@ initialize_tdesc_s390_linux32 (void) tdesc_create_reg (feature, "r14", 16, 1, "general", 32, "uint32"); tdesc_create_reg (feature, "r15", 17, 1, "general", 32, "uint32"); - feature = tdesc_create_feature (result, "org.gnu.gdb.s390.acr"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.s390.acr"); tdesc_create_reg (feature, "acr0", 18, 1, "access", 32, "uint32"); tdesc_create_reg (feature, "acr1", 19, 1, "access", 32, "uint32"); tdesc_create_reg (feature, "acr2", 20, 1, "access", 32, "uint32"); @@ -52,7 +52,7 @@ initialize_tdesc_s390_linux32 (void) tdesc_create_reg (feature, "acr14", 32, 1, "access", 32, "uint32"); tdesc_create_reg (feature, "acr15", 33, 1, "access", 32, "uint32"); - feature = tdesc_create_feature (result, "org.gnu.gdb.s390.fpr"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.s390.fpr"); tdesc_create_reg (feature, "fpc", 34, 1, "float", 32, "uint32"); tdesc_create_reg (feature, "f0", 35, 1, "float", 64, "ieee_double"); tdesc_create_reg (feature, "f1", 36, 1, "float", 64, "ieee_double"); @@ -71,8 +71,8 @@ initialize_tdesc_s390_linux32 (void) tdesc_create_reg (feature, "f14", 49, 1, "float", 64, "ieee_double"); tdesc_create_reg (feature, "f15", 50, 1, "float", 64, "ieee_double"); - feature = tdesc_create_feature (result, "org.gnu.gdb.s390.linux"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.s390.linux"); tdesc_create_reg (feature, "orig_r2", 51, 1, "system", 32, "uint32"); - tdesc_s390_linux32 = result; + tdesc_s390_linux32 = result.release (); } |