diff options
author | Yao Qi <yao@codesourcery.com> | 2011-01-14 20:37:13 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-01-14 20:37:13 +0000 |
commit | 2c291032cceb2390927dbe4c2a3c793f02c526aa (patch) | |
tree | 6c864b71ecf31750eca8cd7b8682f9b5da8293e4 /gdb | |
parent | b075872c94cec3ee9b8eee81cbb41304da4a9942 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b6de01..3788f8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2011-01-14 Joel Brobecker <brobecker@adacore.com> * ada-valprint. (ada_printchar): Use the correct type length 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); } |