Ensure there are no unnamed registers.
authorTim Newsome <tim@sifive.com>
Fri, 1 Dec 2017 22:29:11 +0000 (14:29 -0800)
committerTim Newsome <tim@sifive.com>
Fri, 1 Dec 2017 22:29:11 +0000 (14:29 -0800)
debug/gdbserver.py

index 49e42e796ec807b9377165f5d8fb76e62b3fbbde..521fffbf82ec59304f64d5df9fba502a25814f47 100755 (executable)
@@ -396,6 +396,8 @@ class Registers(DebugTest):
             output = self.gdb.command(cmd)
             for reg in ('zero', 'ra', 'sp', 'gp', 'tp'):
                 assertIn(reg, output)
+            for line in output.splitlines():
+                assertRegexpMatches(line, r"^\S")
 
         #TODO
         # mcpuid is one of the few registers that should have the high bit set