aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-error.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python/py-error.py')
-rw-r--r--gdb/testsuite/gdb.python/py-error.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-error.py b/gdb/testsuite/gdb.python/py-error.py
index 14934d4..9ef3af9 100644
--- a/gdb/testsuite/gdb.python/py-error.py
+++ b/gdb/testsuite/gdb.python/py-error.py
@@ -15,11 +15,15 @@
import gdb
+
class ClassName(gdb.Command):
- 'a'
+ "a"
+
def __init__(self):
- gdb.Command.__init__ (self, "ClassName", gdb.COMMAND_DATA, prefix=True)
+ gdb.Command.__init__(self, "ClassName", gdb.COMMAND_DATA, prefix=True)
+
def invoke(self, args, from_tty):
print
+
ClassName()