From b747a10a7dd789620ebcde2197581ef8bf0fda33 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 1 Dec 2017 14:29:11 -0800 Subject: [PATCH] Ensure there are no unnamed registers. --- debug/gdbserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 49e42e7..521fffb 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -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 -- 2.30.2