diff options
author | Maxim Grigoriev <maxim2405@gmail.com> | 2011-03-09 02:56:23 +0000 |
---|---|---|
committer | Maxim Grigoriev <maxim2405@gmail.com> | 2011-03-09 02:56:23 +0000 |
commit | 57041825ff9690eb42822677c2a5912ca8bca0ac (patch) | |
tree | a6863e3d1fa5ae877c6309aa1092ce2530855fa6 /gdb/xtensa-tdep.c | |
parent | 08b9c608aa9cf12ec7d7dfacff3dbc843be83cd0 (diff) | |
download | gdb-57041825ff9690eb42822677c2a5912ca8bca0ac.zip gdb-57041825ff9690eb42822677c2a5912ca8bca0ac.tar.gz gdb-57041825ff9690eb42822677c2a5912ca8bca0ac.tar.bz2 |
2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
while executing MI command -data-list-changed-registers.
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r-- | gdb/xtensa-tdep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 41c30d7..7de03a5 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -813,6 +813,11 @@ xtensa_register_reggroup_p (struct gdbarch *gdbarch, xtensa_register_group_t rg = reg->group; int cp_number; + if (group == save_reggroup) + /* Every single register should be included into the list of registers + to be watched for changes while using -data-list-changed-registers. */ + return 1; + /* First, skip registers that are not visible to this target (unknown and unmapped registers when not using ISS). */ @@ -828,13 +833,11 @@ xtensa_register_reggroup_p (struct gdbarch *gdbarch, return rg & xtRegisterGroupFloat; if (group == general_reggroup) return rg & xtRegisterGroupGeneral; - if (group == float_reggroup) - return rg & xtRegisterGroupFloat; if (group == system_reggroup) return rg & xtRegisterGroupState; if (group == vector_reggroup || group == xtensa_vectra_reggroup) return rg & xtRegisterGroupVectra; - if (group == save_reggroup || group == restore_reggroup) + if (group == restore_reggroup) return (regnum < gdbarch_num_regs (gdbarch) && (reg->flags & SAVE_REST_FLAGS) == SAVE_REST_VALID); if ((cp_number = xtensa_coprocessor_register_group (group)) >= 0) |