diff options
Diffstat (limited to 'gdb/features/rs6000/powerpc-602.c')
-rw-r--r-- | gdb/features/rs6000/powerpc-602.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/features/rs6000/powerpc-602.c b/gdb/features/rs6000/powerpc-602.c index 7696717..7f69f44 100644 --- a/gdb/features/rs6000/powerpc-602.c +++ b/gdb/features/rs6000/powerpc-602.c @@ -9,10 +9,10 @@ struct target_desc *tdesc_powerpc_602; static void initialize_tdesc_powerpc_602 (void) { - struct target_desc *result = allocate_target_description (); + target_desc_up result = allocate_target_description (); 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, 32, "uint32"); tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r2", 2, 1, NULL, 32, "uint32"); @@ -52,7 +52,7 @@ initialize_tdesc_powerpc_602 (void) tdesc_create_reg (feature, "ctr", 68, 1, NULL, 32, "uint32"); 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"); @@ -87,7 +87,7 @@ initialize_tdesc_powerpc_602 (void) tdesc_create_reg (feature, "f31", 63, 1, NULL, 64, "ieee_double"); tdesc_create_reg (feature, "fpscr", 70, 1, "float", 32, "int"); - feature = tdesc_create_feature (result, "OEA"); + feature = tdesc_create_feature (result.get (), "OEA"); tdesc_create_reg (feature, "sr0", 71, 1, NULL, 32, "int"); tdesc_create_reg (feature, "sr1", 72, 1, NULL, 32, "int"); tdesc_create_reg (feature, "sr2", 73, 1, NULL, 32, "int"); @@ -137,7 +137,7 @@ initialize_tdesc_powerpc_602 (void) tdesc_create_reg (feature, "dabr", 117, 1, NULL, 32, "int"); tdesc_create_reg (feature, "ear", 118, 1, NULL, 32, "int"); - feature = tdesc_create_feature (result, "602"); + feature = tdesc_create_feature (result.get (), "602"); tdesc_create_reg (feature, "hid0", 119, 1, NULL, 32, "int"); tdesc_create_reg (feature, "hid1", 120, 1, NULL, 32, "int"); tdesc_create_reg (feature, "iabr", 121, 1, NULL, 32, "int"); @@ -149,5 +149,5 @@ initialize_tdesc_powerpc_602 (void) tdesc_create_reg (feature, "sp", 129, 1, NULL, 32, "int"); tdesc_create_reg (feature, "lt", 130, 1, NULL, 32, "int"); - tdesc_powerpc_602 = result; + tdesc_powerpc_602 = result.release (); } |