[patch, arm] Consistent display of registers in corefile
Yao Qi
yao@codesourcery.com
Thu Jan 13 13:45:00 GMT 2011
On 12/10/2010 07:37 AM, Yao Qi wrote:
> gdb/
> * arm-tdep.c (arm_register_reggroup_p): New.
> (arm_gdbarch_init): Set arm_register_reggroup_p for hook
> register_reggroup_p.
> +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. */
> + if (regnum == ARM_FPS_REGNUM)
> + return (group == float_reggroup);
FPS belongs to float_reggroup, save_reggroup, and restore_reggroup,
instead of float_reggroup only.
OK to apply?
> + else
> + return default_register_reggroup_p (gdbarch, regnum, group);
> +}
--
Yao Qi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fsp_save_restore_reggroup.patch
Type: text/x-patch
Size: 782 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110113/c00086fd/attachment.bin>
More information about the Gdb-patches
mailing list