Jim Ingham 1b1d981598 Revert "Revert "Add the ability to write target stop-hooks using the ScriptInterpreter.""
This reverts commit f775fe59640a2e837ad059a8f40e26989d4f9831.

I fixed a return type error in the original patch that was causing a test failure.
Also added a REQUIRES: python to the shell test so we'll skip this for
people who build lldb w/o Python.
Also added another test for the error printing.
2020-09-29 12:01:14 -07:00

11 lines
257 B
Python

import lldb
class stop_handler:
def __init__(self, target, extra_args, dict):
self.extra_args = extra_args
self.target = target
def handle_stop(self, exe_ctx, stream):
stream.Print("I did indeed run\n")
return True