diff options
author | Tim Newsome <tim@sifive.com> | 2018-08-31 12:53:25 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-08-31 12:53:25 -0700 |
commit | 705c51ef7c478d537c6c7c391b0e3442810a7114 (patch) | |
tree | fd87fa7ff71f8e31485b2d2ce69f83a3b8c0a9da /debug/gdbserver.py | |
parent | 4dddbc79ada7f0a836cf538676c57c8df103ccf6 (diff) | |
download | riscv-tests-705c51ef7c478d537c6c7c391b0e3442810a7114.zip riscv-tests-705c51ef7c478d537c6c7c391b0e3442810a7114.tar.gz riscv-tests-705c51ef7c478d537c6c7c391b0e3442810a7114.tar.bz2 |
Fix CustomRegisterTest.
gdb in riscv-tools doesn't automatically create a "custom" group like
mainline gdb does.
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index c362e1d..1d58f76 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -142,7 +142,8 @@ class CustomRegisterTest(SimpleRegisterTest): return self.target.implements_custom_test def check_custom(self, magic): - regs = self.gdb.info_registers("custom") + regs = {k: v for k, v in self.gdb.info_registers("all").iteritems() + if k.startswith("custom")} assertEqual(set(regs.keys()), set(("custom1", "custom12345", |