INNER CODE UNIT · Python
InterestingBreakpoint
spacejam/sled · scripts/execution_explorer.py:68
class InterestingBreakpoint(gdb.Breakpoint):
pass
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.