diff options
Diffstat (limited to 'gdb/features/rs6000/powerpc-isa205-altivec64l.c')
-rw-r--r-- | gdb/features/rs6000/powerpc-isa205-altivec64l.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/features/rs6000/powerpc-isa205-altivec64l.c b/gdb/features/rs6000/powerpc-isa205-altivec64l.c index 246fcef..f91c2e8 100644 --- a/gdb/features/rs6000/powerpc-isa205-altivec64l.c +++ b/gdb/features/rs6000/powerpc-isa205-altivec64l.c @@ -9,12 +9,12 @@ struct target_desc *tdesc_powerpc_isa205_altivec64l; static void initialize_tdesc_powerpc_isa205_altivec64l (void) { - struct target_desc *result = allocate_target_description (); - set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64")); + target_desc_up result = allocate_target_description (); + set_tdesc_architecture (result.get (), bfd_scan_arch ("powerpc:common64")); struct tdesc_feature *feature; - feature = tdesc_create_feature (result, "org.gnu.gdb.power.core"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.power.core"); tdesc_create_reg (feature, "r0", 0, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "r1", 1, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "r2", 2, 1, NULL, 64, "uint64"); @@ -54,7 +54,7 @@ initialize_tdesc_powerpc_isa205_altivec64l (void) tdesc_create_reg (feature, "ctr", 68, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "xer", 69, 1, NULL, 32, "uint32"); - feature = tdesc_create_feature (result, "org.gnu.gdb.power.fpu"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.power.fpu"); tdesc_create_reg (feature, "f0", 32, 1, NULL, 64, "ieee_double"); tdesc_create_reg (feature, "f1", 33, 1, NULL, 64, "ieee_double"); tdesc_create_reg (feature, "f2", 34, 1, NULL, 64, "ieee_double"); @@ -89,11 +89,11 @@ initialize_tdesc_powerpc_isa205_altivec64l (void) tdesc_create_reg (feature, "f31", 63, 1, NULL, 64, "ieee_double"); tdesc_create_reg (feature, "fpscr", 70, 1, "float", 64, "int"); - feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.power.linux"); tdesc_create_reg (feature, "orig_r3", 71, 1, NULL, 64, "int"); tdesc_create_reg (feature, "trap", 72, 1, NULL, 64, "int"); - feature = tdesc_create_feature (result, "org.gnu.gdb.power.altivec"); + feature = tdesc_create_feature (result.get (), "org.gnu.gdb.power.altivec"); tdesc_type *element_type; element_type = tdesc_named_type (feature, "ieee_single"); tdesc_create_vector (feature, "v4f", element_type, 4); @@ -156,5 +156,5 @@ initialize_tdesc_powerpc_isa205_altivec64l (void) tdesc_create_reg (feature, "vscr", 105, 1, "vector", 32, "int"); tdesc_create_reg (feature, "vrsave", 106, 1, "vector", 32, "int"); - tdesc_powerpc_isa205_altivec64l = result; + tdesc_powerpc_isa205_altivec64l = result.release (); } |