Created
March 26, 2018 21:26
-
-
Save dcci/bdfa0713a02ced182667aecea65730b9 to your computer and use it in GitHub Desktop.
lldb API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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