aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-01-14 20:37:13 +0000
committerYao Qi <yao@codesourcery.com>2011-01-14 20:37:13 +0000
commit2c291032cceb2390927dbe4c2a3c793f02c526aa (patch)
tree6c864b71ecf31750eca8cd7b8682f9b5da8293e4 /gdb/arm-tdep.c
parentb075872c94cec3ee9b8eee81cbb41304da4a9942 (diff)
downloadgdb-2c291032cceb2390927dbe4c2a3c793f02c526aa.zip
gdb-2c291032cceb2390927dbe4c2a3c793f02c526aa.tar.gz
gdb-2c291032cceb2390927dbe4c2a3c793f02c526aa.tar.bz2
2011-01-14 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_register_reggroup_p): FPS register is in save_reggroup, restore_reggroup and all_reggroup.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 9ec410d..e24a6d9 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);
}