diff options
Diffstat (limited to 'gdb/features/s390x-linux64v2.c')
-rw-r--r-- | gdb/features/s390x-linux64v2.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/features/s390x-linux64v2.c b/gdb/features/s390x-linux64v2.c index 9aab89f..9500917 100644 --- a/gdb/features/s390x-linux64v2.c +++ b/gdb/features/s390x-linux64v2.c @@ -9,12 +9,12 @@ struct target_desc *tdesc_s390x_linux64v2; static void initialize_tdesc_s390x_linux64v2 (void) { - struct target_desc *result = allocate_target_description (); - set_tdesc_architecture (result, bfd_scan_arch ("s390:64-bit")); + target_desc_up result = allocate_target_description (); + set_tdesc_architecture (result.get (), bfd_scan_arch ("s390:64-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", 64, "uint64"); tdesc_create_reg (feature, "pswa", 1, 1, "psw", 64, "uint64"); tdesc_create_reg (feature, "r0", 2, 1, "general", 64, "uint64"); @@ -34,7 +34,7 @@ initialize_tdesc_s390x_linux64v2 (void) tdesc_create_reg (feature, "r14", 16, 1, "general", 64, "uint64"); tdesc_create_reg (feature, "r15", 17, 1, "general", 64, "uint64"); - 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_s390x_linux64v2 (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,10 +71,10 @@ initialize_tdesc_s390x_linux64v2 (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", 64, "uint64"); tdesc_create_reg (feature, "last_break", 52, 0, "system", 64, "code_ptr"); tdesc_create_reg (feature, "system_call", 53, 1, "system", 32, "uint32"); - tdesc_s390x_linux64v2 = result; + tdesc_s390x_linux64v2 = result.release (); } |