I'm using this for a target where misa is at an old address, to
set riscv use_compressed_breakpoints off
# 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 = []
thread = random.choice(self.gdb.threads())
self.gdb.thread(thread)
+ for cmd in self.target.gdb_setup:
+ self.gdb.command(cmd)
+
# FIXME: OpenOCD doesn't handle PRIV now
#self.gdb.p("$priv=3")