From 0b998f49632b88e19c955a54108d96585b3ba1e6 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 27 Feb 2008 20:20:51 +0000 Subject: [PATCH] * features/rs6000/power-core.xml, features/rs6000/power64-core.xml features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: Set PC register type to "code_ptr". * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate. --- gdb/ChangeLog | 14 ++++++++++++++ gdb/features/rs6000/power-core.xml | 2 +- gdb/features/rs6000/power64-core.xml | 2 +- gdb/features/rs6000/powerpc-32.c | 2 +- gdb/features/rs6000/powerpc-403.c | 2 +- gdb/features/rs6000/powerpc-403gc.c | 2 +- gdb/features/rs6000/powerpc-505.c | 2 +- gdb/features/rs6000/powerpc-601.c | 2 +- gdb/features/rs6000/powerpc-601.xml | 2 +- gdb/features/rs6000/powerpc-602.c | 2 +- gdb/features/rs6000/powerpc-603.c | 2 +- gdb/features/rs6000/powerpc-604.c | 2 +- gdb/features/rs6000/powerpc-64.c | 2 +- gdb/features/rs6000/powerpc-7400.c | 2 +- gdb/features/rs6000/powerpc-750.c | 2 +- gdb/features/rs6000/powerpc-860.c | 2 +- gdb/features/rs6000/powerpc-e500.c | 2 +- gdb/features/rs6000/rs6000.c | 2 +- gdb/features/rs6000/rs6000.xml | 2 +- 19 files changed, 32 insertions(+), 18 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 391db8783ac..96dd838409d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2008-02-27 Joel Brobecker + + * features/rs6000/power-core.xml, features/rs6000/power64-core.xml + features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: + Set PC register type to "code_ptr". + * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, + features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, + features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, + features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, + features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, + features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, + features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: + Regenerate. + 2008-02-27 Ulrich Weigand * regformats/regdat.sh: Rename init_registers function in diff --git a/gdb/features/rs6000/power-core.xml b/gdb/features/rs6000/power-core.xml index a67c4453fd3..05b89f64cd4 100644 --- a/gdb/features/rs6000/power-core.xml +++ b/gdb/features/rs6000/power-core.xml @@ -40,7 +40,7 @@ - + diff --git a/gdb/features/rs6000/power64-core.xml b/gdb/features/rs6000/power64-core.xml index 2b046a969af..400006cc7ff 100644 --- a/gdb/features/rs6000/power64-core.xml +++ b/gdb/features/rs6000/power64-core.xml @@ -40,7 +40,7 @@ - + diff --git a/gdb/features/rs6000/powerpc-32.c b/gdb/features/rs6000/powerpc-32.c index f06f5877724..a657803cee3 100644 --- a/gdb/features/rs6000/powerpc-32.c +++ b/gdb/features/rs6000/powerpc-32.c @@ -47,7 +47,7 @@ initialize_tdesc_powerpc_32 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-403.c b/gdb/features/rs6000/powerpc-403.c index 84f49e4bb6f..69c33404fd6 100644 --- a/gdb/features/rs6000/powerpc-403.c +++ b/gdb/features/rs6000/powerpc-403.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_403 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-403gc.c b/gdb/features/rs6000/powerpc-403gc.c index 266f45969a7..b88098b898f 100644 --- a/gdb/features/rs6000/powerpc-403gc.c +++ b/gdb/features/rs6000/powerpc-403gc.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_403gc (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-505.c b/gdb/features/rs6000/powerpc-505.c index 590b7d074bc..f0fe907feec 100644 --- a/gdb/features/rs6000/powerpc-505.c +++ b/gdb/features/rs6000/powerpc-505.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_505 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-601.c b/gdb/features/rs6000/powerpc-601.c index 6aea1d3e6f8..84a42863e7e 100644 --- a/gdb/features/rs6000/powerpc-601.c +++ b/gdb/features/rs6000/powerpc-601.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_601 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "int"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "int"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "int"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "int"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "int"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "int"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "int"); diff --git a/gdb/features/rs6000/powerpc-601.xml b/gdb/features/rs6000/powerpc-601.xml index a7126560770..38016213789 100644 --- a/gdb/features/rs6000/powerpc-601.xml +++ b/gdb/features/rs6000/powerpc-601.xml @@ -46,7 +46,7 @@ - + diff --git a/gdb/features/rs6000/powerpc-602.c b/gdb/features/rs6000/powerpc-602.c index 502c9021e74..9f6182f4c60 100644 --- a/gdb/features/rs6000/powerpc-602.c +++ b/gdb/features/rs6000/powerpc-602.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_602 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-603.c b/gdb/features/rs6000/powerpc-603.c index 1bb7cfb0575..1bf1bcdfd7b 100644 --- a/gdb/features/rs6000/powerpc-603.c +++ b/gdb/features/rs6000/powerpc-603.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_603 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-604.c b/gdb/features/rs6000/powerpc-604.c index 5def0f566fd..15668a571ec 100644 --- a/gdb/features/rs6000/powerpc-604.c +++ b/gdb/features/rs6000/powerpc-604.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_604 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-64.c b/gdb/features/rs6000/powerpc-64.c index 6fdfd4bedb7..99b088b2cf3 100644 --- a/gdb/features/rs6000/powerpc-64.c +++ b/gdb/features/rs6000/powerpc-64.c @@ -47,7 +47,7 @@ initialize_tdesc_powerpc_64 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 64, "uint64"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 64, "uint64"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 64, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 64, "uint64"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 64, "uint64"); diff --git a/gdb/features/rs6000/powerpc-7400.c b/gdb/features/rs6000/powerpc-7400.c index d00016c89a6..decf7249d97 100644 --- a/gdb/features/rs6000/powerpc-7400.c +++ b/gdb/features/rs6000/powerpc-7400.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_7400 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-750.c b/gdb/features/rs6000/powerpc-750.c index 157fd94aa17..25717bf1bd0 100644 --- a/gdb/features/rs6000/powerpc-750.c +++ b/gdb/features/rs6000/powerpc-750.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_750 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-860.c b/gdb/features/rs6000/powerpc-860.c index 05d0738c283..fc33b8a904f 100644 --- a/gdb/features/rs6000/powerpc-860.c +++ b/gdb/features/rs6000/powerpc-860.c @@ -45,7 +45,7 @@ initialize_tdesc_powerpc_860 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/powerpc-e500.c b/gdb/features/rs6000/powerpc-e500.c index 17811df1166..305b24a6ed9 100644 --- a/gdb/features/rs6000/powerpc-e500.c +++ b/gdb/features/rs6000/powerpc-e500.c @@ -47,7 +47,7 @@ initialize_tdesc_powerpc_e500 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "uint32"); diff --git a/gdb/features/rs6000/rs6000.c b/gdb/features/rs6000/rs6000.c index 34afaf89dd1..e7eb5fa67c5 100644 --- a/gdb/features/rs6000/rs6000.c +++ b/gdb/features/rs6000/rs6000.c @@ -47,7 +47,7 @@ initialize_tdesc_rs6000 (void) tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "int"); tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "int"); tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "int"); - tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "int"); + tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "int"); tdesc_create_reg (feature, "cnd", 66, 1, NULL, 32, "int"); tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "int"); diff --git a/gdb/features/rs6000/rs6000.xml b/gdb/features/rs6000/rs6000.xml index c73b2077e63..cbc94f0c556 100644 --- a/gdb/features/rs6000/rs6000.xml +++ b/gdb/features/rs6000/rs6000.xml @@ -48,7 +48,7 @@ - + -- 2.30.2