aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/rs6000/powerpc-403gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/features/rs6000/powerpc-403gc.c')
-rw-r--r--gdb/features/rs6000/powerpc-403gc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/features/rs6000/powerpc-403gc.c b/gdb/features/rs6000/powerpc-403gc.c
index 402b747..4ff844d 100644
--- a/gdb/features/rs6000/powerpc-403gc.c
+++ b/gdb/features/rs6000/powerpc-403gc.c
@@ -9,10 +9,10 @@ struct target_desc *tdesc_powerpc_403gc;
static void
initialize_tdesc_powerpc_403gc (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_403gc (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_403gc (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_403gc (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, "403GC");
+ feature = tdesc_create_feature (result.get (), "403GC");
tdesc_create_reg (feature, "icdbdr", 119, 1, NULL, 32, "int");
tdesc_create_reg (feature, "esr", 120, 1, NULL, 32, "int");
tdesc_create_reg (feature, "dear", 121, 1, NULL, 32, "int");
@@ -169,5 +169,5 @@ initialize_tdesc_powerpc_403gc (void)
tdesc_create_reg (feature, "tbhu", 147, 1, NULL, 32, "int");
tdesc_create_reg (feature, "tblu", 148, 1, NULL, 32, "int");
- tdesc_powerpc_403gc = result;
+ tdesc_powerpc_403gc = result.release ();
}