LLDB: Python API & Setting callback function for a watchpoint
问题 Looking at the documentation for SBWatchpoint at http://lldb.llvm.org/python_reference/index.html, I do not see a method for assigning a python callback function for when a watchpoint is triggered. Is there a way to do this with the Python API? 回答1: There is a watchpoint command add command that supports doing that watchpoint command add [-e <boolean>] [-s <none>] [-F <python-function>] <watchpt-id> If you have an SBWatchpoint, you can query for its ID, and then craft an appropriate command