aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 8255384..6c185d4 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -475,6 +475,9 @@ class CouldNotFetch(Exception):
self.regname = regname
self.explanation = explanation
+class NoRegisters(Exception):
+ pass
+
class NoSymbol(Exception):
def __init__(self, symbol):
Exception.__init__(self)
@@ -507,6 +510,8 @@ def tokenize(text):
lambda m: CannotAccess(int(m.group(1), 0))),
(r"Cannot insert breakpoint (\d+).",
lambda m: CannotInsertBreakpoint(int(m.group(1)))),
+ (r"No registers.",
+ lambda m: NoRegisters()),
(r'No symbol "(\w+)" in current context.',
lambda m: NoSymbol(m.group(1))),
(r'"([^"]*)"', lambda m: m.group(1)),