Created
December 10, 2019 09:15
-
-
Save tahaconfiant/215108724625d1326db8f31d487276be to your computer and use it in GitHub Desktop.
follow-fork-child-breakpoints
This file contains hidden or 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
def custom_breakpoints(debugger, command, result, internal_dict): | |
target = debugger.GetSelectedTarget() | |
breakpoint = target.BreakpointCreateByName("fork") | |
breakpoint.SetScriptCallbackFunction('follow_fork_child.fork_callback') | |
breakpoint = target.BreakpointCreateByName("waitpid") | |
breakpoint.SetScriptCallbackFunction('follow_fork_child.waitpid_callback') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment