INNER CODE UNIT · Python
DeterministicExecutor
spacejam/sled · scripts/execution_explorer.py:72
class DeterministicExecutor:
def __init__(self, seed=None):
if seed:
print("seeding with", seed)
self.seed = seed
random.seed(seed)
else:
# pick a random new seed if not provided with one
self.reseed()
gdb.execute("file " + filename)
# non-stop is necessary to provide thread-specific
# information when breakpoints are hit.
gdb.execute("set non-stop on")
gdb.execute("set confirm off")
self.ready = set()