From 2c291032cceb2390927dbe4c2a3c793f02c526aa Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 14 Jan 2011 20:37:13 +0000 Subject: [PATCH] 2011-01-14 Yao Qi * arm-tdep.c (arm_register_reggroup_p): FPS register is in save_reggroup, restore_reggroup and all_reggroup. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b6de016c19..3788f8de10a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-01-14 Yao Qi + + * arm-tdep.c (arm_register_reggroup_p): FPS register is in + save_reggroup, restore_reggroup and all_reggroup. + 2011-01-14 Joel Brobecker * ada-valprint. (ada_printchar): Use the correct type length diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 9ec410de6e3..e24a6d9c398 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -7234,9 +7234,14 @@ static int arm_register_reggroup_p (struct gdbarch *gdbarch, int regnum, struct reggroup *group) { - /* FPS register's type is INT, but belongs to float_group. */ + /* FPS register's type is INT, but belongs to float_reggroup. Beside + this, FPS register belongs to save_regroup, restore_reggroup, and + all_reggroup, of course. */ if (regnum == ARM_FPS_REGNUM) - return (group == float_reggroup); + return (group == float_reggroup + || group == save_reggroup + || group == restore_reggroup + || group == all_reggroup); else return default_register_reggroup_p (gdbarch, regnum, group); } -- 2.30.2