Add gdb_setup to target for arbitrary gdb commands
[riscv-tests.git] / debug / targets.py
index 1f4b176144a84ba89da5ce34ebb989eebe30f775..ae81517654f85d705b29e607d26d88ac0918219e 100644 (file)
@@ -30,6 +30,10 @@ class Target(object):
     # save a little time.
     misa = None
 
+    # List of commands that should be executed in gdb after connecting but
+    # before starting the test.
+    gdb_setup = []
+
     # Internal variables:
     directory = None
     temporary_files = []