diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-04-01 22:02:33 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-05-03 22:31:48 +0100 |
commit | 9b0797e268d96e8b46c328792aec3d6289585aa2 (patch) | |
tree | 3c600eae63cb46a827fbd6031cad105a86dd69eb /gdb/compile | |
parent | 3be08ea4728b56d35e136af4e6fd3086ade17764 (diff) | |
download | gdb-9b0797e268d96e8b46c328792aec3d6289585aa2.zip gdb-9b0797e268d96e8b46c328792aec3d6289585aa2.tar.gz gdb-9b0797e268d96e8b46c328792aec3d6289585aa2.tar.bz2 |
gdb/testsuite: Filter out some registers for riscv
On riscv the cycle counter, and instructions retired counter CSRs are
read only, this causes problems in the gdb.base/callfuncs.exp test, as
the values in these CSRs change after an inferior call, the check that
no target registers have been modified then fails.
Luckily the test already has a mechanism in place for filtering out
registers that are modified (and can't be restored) by an inferior call,
so this commit adds the problem registers into this list for riscv.
In the future we may end up needing to filter out more CSRs, but right
now, for the targets I have access too, these are the only ones causing
problems.
gdb/testsuite/ChangeLog:
* gdb.base/callfuncs.exp (fetch_all_registers): Add riscv register
filter pattern.
Diffstat (limited to 'gdb/compile')
0 files changed, 0 insertions, 0 deletions