Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
lldb API
# Python reference http://lldb.llvm.org/python-reference.html
import lldb
def main():
dbg = lldb.SBDebugger.Create()
target = dbg.CreateTarget("a.out")
if not target:
print("Can't create target!")
return 1
breakpoint = target.BreakpointCreateByName("main",
target.GetExecutable().GetFilename());
return 0
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.